-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)web-dev-compiler
Description
If DDC-compiled code in an iframe calls window.parent, DDC injects a bunch of monkey-patches into the parent Window's prototype. If the iframe is later killed, these monkey-patches remain; what's worse, on Chrome they stop the frame's entire DOM tree from being garbage collected. This can create a memory leak when a DDC app is loaded in a child frame, even if that app only ever communicates with the parent window using something like window.postMessage() that doesn't involve sending Dart objects back and forth.
Metadata
Metadata
Assignees
Labels
area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)web-dev-compiler