RESOLVED FIXED 188422
Disallow navigations when page cache updates the current document of the frame
https://bugs.webkit.org/show_bug.cgi?id=188422
Summary Disallow navigations when page cache updates the current document of the frame
Daniel Bates
Reported 2018-08-08 15:34:30 PDT
As part of restoring a page from the page cache we call Frame::setDocument() to re-associate the cached document into its frame. Frame::setDocument() triggers render tree construction and post style resolution callbacks that can do anything, including navigating child frames before we have restored them (and hence re-attached them to the frame tree). For example, pages embedded via an HTML object element are loaded from a post style resolution callback. We should not perform navigations during page restore.
Attachments
Patch and layout test (4.98 KB, patch)
2018-08-08 17:14 PDT, Daniel Bates
rniwa: review+
Daniel Bates
Comment 1 2018-08-08 17:14:48 PDT
Created attachment 346804 [details] Patch and layout test
Ryosuke Niwa
Comment 2 2018-08-16 16:07:15 PDT
Comment on attachment 346804 [details] Patch and layout test View in context: https://bugs.webkit.org/attachment.cgi?id=346804&action=review > LayoutTests/fast/history/go-back-to-object-subframe.html:22 > +window.onpageshow = runTest; We should probably mention in the change log that we're not preventing navigation during pageshow event.
Daniel Bates
Comment 3 2018-08-16 16:09:13 PDT
(In reply to Ryosuke Niwa from comment #2) > Comment on attachment 346804 [details] > Patch and layout test > > View in context: > https://bugs.webkit.org/attachment.cgi?id=346804&action=review > > > LayoutTests/fast/history/go-back-to-object-subframe.html:22 > > +window.onpageshow = runTest; > > We should probably mention in the change log that we're not preventing > navigation during pageshow event. Will add the following remark to the change log entry in LayoutTests/ChangeLog: This change does not prevent navigations initiated from a pageshow event handler.
Daniel Bates
Comment 4 2018-08-21 09:50:30 PDT
Radar WebKit Bug Importer
Comment 5 2018-08-21 09:51:25 PDT
Note You need to log in before you can comment on or make changes to this bug.