WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
Patch
(8.50 KB, patch)
2016-01-25 15:21 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(10.35 KB, patch)
2016-01-26 11:43 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2016-01-25 15:19:19 PST
Created
attachment 269802
[details]
Patch
Chris Dumez
Comment 2
2016-01-25 15:21:02 PST
Created
attachment 269803
[details]
Patch
Radar WebKit Bug Importer
Comment 3
2016-01-25 15:21:59 PST
<
rdar://problem/24335880
>
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
Created
attachment 269896
[details]
Patch
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.
Top of Page
Format For Printing
XML
Clone This Bug