DescriptionMake StorageArea cleanly observe its cached frame
StorageArea caches the result of its last access check wrt to a
LocalFrame. With Oilpan, we have to weakly hold on to that frame
so as not to have scripts be able to retain an entire frame.
Also, the cached frame might be destroyed before the StorageArea
holding a reference is; the implementation is better off clearing
that reference when this happens (with or without Oilpan.)
Address both by making StorageArea a FrameDestructionObserver that
observes its cached frame. It is a weak reference and it will be
cleared upon frame destruction.
To accommodate StorageArea switching the frame it is observing,
make FrameDestructionObserver::observeFrame() again a protected
method.
R=haraken,ager,zerny
BUG=340522
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182501
Patch Set 1 #Patch Set 2 : Make StorageArea a FrameDestructionObserver instead #Patch Set 3 : Make FrameDestructionObserver::observeFrame() protected again #
Messages
Total messages: 17 (4 generated)
|