RESOLVED FIXED 153449
Make sure a page is still PageCache-able after firing the 'pagehide' events
https://bugs.webkit.org/show_bug.cgi?id=153449
Summary Make sure a page is still PageCache-able after firing the 'pagehide' events
Chris Dumez
Reported 2016-01-25 14:53:52 PST
Make sure a page is still PageCache-able after firing the 'pagehide' events and abort if it isn't. This should improve robustness and it is easy for pagehide event handlers to do things that would make a Page no longer PageCache-able and this leads to bugs that are difficult to investigate.
Attachments
Patch (8.29 KB, patch)
2016-01-25 15:19 PST, Chris Dumez
no flags
Patch (8.50 KB, patch)
2016-01-25 15:21 PST, Chris Dumez
no flags
Patch (10.35 KB, patch)
2016-01-26 11:43 PST, Chris Dumez
no flags
Chris Dumez
Comment 1 2016-01-25 15:19:19 PST
Chris Dumez
Comment 2 2016-01-25 15:21:02 PST
Radar WebKit Bug Importer
Comment 3 2016-01-25 15:21:59 PST
Chris Dumez
Comment 4 2016-01-25 15:25:03 PST
Comment on attachment 269803 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=269803&action=review > Source/WebCore/history/PageCache.cpp:423 > + if (!canCache(page)) { I am planning to add diagnostic logging for this in a follow-up patch so we can see how often this happens.
Andreas Kling
Comment 5 2016-01-26 10:36:49 PST
Comment on attachment 269803 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=269803&action=review r=me > Source/WebCore/history/PageCache.cpp:402 > + // Create the CachedFrames for all Frames in the FrameTree. > + for (RefPtr<Frame> child = frame.tree().firstChild(); child; child = child->tree().nextSibling()) > + firePageHideEventRecursively(*child); This comment doesn't make sense here.
Chris Dumez
Comment 6 2016-01-26 11:43:47 PST
WebKit Commit Bot
Comment 7 2016-01-26 11:57:59 PST
Comment on attachment 269896 [details] Patch Clearing flags on attachment: 269896 Committed r195605: <http://trac.webkit.org/changeset/195605>
WebKit Commit Bot
Comment 8 2016-01-26 11:58:04 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.