DescriptionSimplify and weaken DOMWindowProperty unregistration
A DOMWindowProperty object should not be kept alive if it is only
referenced from a LocalDOMWindow's set of registered DOMWindowProperty
objects. Adjust LocalDOMWindow's DOMObjectProperty references to be
weak for Oilpan also.
In most cases, DOMWindowProperty objects will remain alive for at least
as long as their associated LocalDOMWindow, but this cannot be assumed.
The added test checks for that wrt DOMSelection objects created from
shadow roots.
Along with adjusting the weakness of these references, simplify
how LocalDOMWindow unregisters its DOMWindowProperty objects. That is,
no longer have the instances unregister themselves, but let the
LocalDOMWindow remove them all after having notified them of impending
destruction.
R=haraken,ager
BUG=413316
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181970
Patch Set 1 #Patch Set 2 : Simplify DOMWindowProperty notification steps #Patch Set 3 : Add test #
Total comments: 4
Messages
Total messages: 11 (3 generated)
|