RESOLVED FIXED 157963
No popstate when WebKit navigates back to a stateless history entry with page cached
https://bugs.webkit.org/show_bug.cgi?id=157963
Summary No popstate when WebKit navigates back to a stateless history entry with page...
Jiewen Tan
Reported 2016-05-20 16:45:01 PDT
For non-cached page, no popstate events will be fired when WebKit navigates back to it if it doesn't have a state (state object). However, if the page is restored from the cache, then WebKit will fire popstate events unconditionally.
Attachments
Patch (10.11 KB, patch)
2016-05-20 16:56 PDT, Jiewen Tan
no flags
Archive of layout-test-results from ews101 for mac-yosemite (1.30 MB, application/zip)
2016-05-20 17:45 PDT, Build Bot
no flags
Archive of layout-test-results from ews104 for mac-yosemite-wk2 (859.85 KB, application/zip)
2016-05-20 17:45 PDT, Build Bot
no flags
Archive of layout-test-results from ews112 for mac-yosemite (1.52 MB, application/zip)
2016-05-20 17:46 PDT, Build Bot
no flags
Archive of layout-test-results from ews126 for ios-simulator-wk2 (652.94 KB, application/zip)
2016-05-20 17:51 PDT, Build Bot
no flags
Patch (10.07 KB, patch)
2016-05-20 17:55 PDT, Jiewen Tan
bfulgham: review+
bfulgham: commit-queue-
Patch for landing (10.20 KB, patch)
2016-05-23 11:25 PDT, Jiewen Tan
buildbot: commit-queue-
Archive of layout-test-results from ews106 for mac-yosemite-wk2 (757.66 KB, application/zip)
2016-05-23 12:24 PDT, Build Bot
no flags
Archive of layout-test-results from ews121 for ios-simulator-wk2 (636.89 KB, application/zip)
2016-05-23 12:30 PDT, Build Bot
no flags
Patch for landing (10.20 KB, patch)
2016-05-23 12:36 PDT, Jiewen Tan
no flags
Jiewen Tan
Comment 1 2016-05-20 16:47:36 PDT
Jiewen Tan
Comment 2 2016-05-20 16:56:30 PDT
Build Bot
Comment 3 2016-05-20 17:45:40 PDT
Comment on attachment 279516 [details] Patch Attachment 279516 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/1356163 New failing tests: fast/loader/stateobjects/no-popstate-when-back-to-stateless-entry-with-page-cache.html
Build Bot
Comment 4 2016-05-20 17:45:44 PDT
Created attachment 279522 [details] Archive of layout-test-results from ews101 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 5 2016-05-20 17:45:45 PDT
Comment on attachment 279516 [details] Patch Attachment 279516 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/1356155 New failing tests: fast/loader/stateobjects/no-popstate-when-back-to-stateless-entry-with-page-cache.html
Build Bot
Comment 6 2016-05-20 17:45:49 PDT
Created attachment 279523 [details] Archive of layout-test-results from ews104 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 7 2016-05-20 17:46:55 PDT
Comment on attachment 279516 [details] Patch Attachment 279516 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/1356097 New failing tests: fast/loader/stateobjects/no-popstate-when-back-to-stateless-entry-with-page-cache.html
Build Bot
Comment 8 2016-05-20 17:46:59 PDT
Created attachment 279524 [details] Archive of layout-test-results from ews112 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews112 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 9 2016-05-20 17:51:00 PDT
Comment on attachment 279516 [details] Patch Attachment 279516 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/1356151 New failing tests: fast/loader/stateobjects/no-popstate-when-back-to-stateless-entry-with-page-cache.html
Build Bot
Comment 10 2016-05-20 17:51:03 PDT
Created attachment 279525 [details] Archive of layout-test-results from ews126 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews126 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.4
Jiewen Tan
Comment 11 2016-05-20 17:55:10 PDT
Brent Fulgham
Comment 12 2016-05-21 19:47:03 PDT
Comment on attachment 279526 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=279526&action=review This looks good, but I noticed a few typographical errors. Please fix them before you land. > Source/WebCore/ChangeLog:3 > + No popstate when WebKit navigates back to a stateless history entry with page cached Null popstate event fired when navigating back to a cached page with a stateless history entry > Source/WebCore/ChangeLog:9 > + unconditionally if the page is cached. Therefore, align the behavior of cached cases to ... page is cached. This results in inconsistent behavior between initial navigations and cached navigations. Align the behavior of initial and cached navigations so that we produce consistent events. > LayoutTests/fast/loader/stateobjects/no-popstate-when-back-to-stateless-entry.html:39 > + debug('bact at page 1'); 'back at page 1'
Jiewen Tan
Comment 13 2016-05-23 11:25:30 PDT
Created attachment 279569 [details] Patch for landing
Build Bot
Comment 14 2016-05-23 12:23:57 PDT
Comment on attachment 279569 [details] Patch for landing Attachment 279569 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/1370603 New failing tests: fast/loader/stateobjects/no-popstate-when-back-to-stateless-entry.html
Build Bot
Comment 15 2016-05-23 12:24:03 PDT
Created attachment 279573 [details] Archive of layout-test-results from ews106 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 16 2016-05-23 12:29:59 PDT
Comment on attachment 279569 [details] Patch for landing Attachment 279569 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/1370604 New failing tests: fast/loader/stateobjects/no-popstate-when-back-to-stateless-entry.html
Build Bot
Comment 17 2016-05-23 12:30:03 PDT
Created attachment 279574 [details] Archive of layout-test-results from ews121 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews121 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.4
Jiewen Tan
Comment 18 2016-05-23 12:36:20 PDT
Created attachment 279576 [details] Patch for landing
WebKit Commit Bot
Comment 19 2016-05-23 18:02:07 PDT
Comment on attachment 279576 [details] Patch for landing Clearing flags on attachment: 279576 Committed r201310: <http://trac.webkit.org/changeset/201310>
WebKit Commit Bot
Comment 20 2016-05-23 18:02:11 PDT
All reviewed patches have been landed. Closing bug.
Lucas Forschler
Comment 21 2019-02-06 09:19:05 PST
Mass move bugs into the DOM component.
Note You need to log in before you can comment on or make changes to this bug.