Similar to our policy of preventing new navigations from onbeforeunload handlers we should prevent new navigations that are initiated from onunload handlers. Such navigations go against the expectation of the user.
Created attachment 305051 [details] Patch and layout test
Comment on attachment 305051 [details] Patch and layout test Attachment 305051 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/3379602 New failing tests: fast/frames/reparent-in-unload-contentdocument.html fast/parser/xml-error-unload-iframe.html fast/frames/unload-reparent-sibling-frame.html fast/loader/unload-hyperlink-targeted.html
Created attachment 305073 [details] Archive of layout-test-results from ews102 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Comment on attachment 305051 [details] Patch and layout test Attachment 305051 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/3379631 New failing tests: fast/frames/reparent-in-unload-contentdocument.html fast/loader/unload-hyperlink-targeted.html fast/frames/unload-reparent-sibling-frame.html fast/parser/xml-error-unload-iframe.html
Created attachment 305074 [details] Archive of layout-test-results from ews104 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Comment on attachment 305051 [details] Patch and layout test Attachment 305051 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/3379629 New failing tests: fast/frames/reparent-in-unload-contentdocument.html fast/parser/xml-error-unload-iframe.html fast/frames/unload-reparent-sibling-frame.html fast/loader/unload-hyperlink-targeted.html
Created attachment 305075 [details] Archive of layout-test-results from ews112 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews112 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Comment on attachment 305051 [details] Patch and layout test Attachment 305051 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/3379688 New failing tests: fast/frames/reparent-in-unload-contentdocument.html fast/parser/xml-error-unload-iframe.html fast/frames/unload-reparent-sibling-frame.html fast/loader/unload-hyperlink-targeted.html
Created attachment 305077 [details] Archive of layout-test-results from ews123 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews123 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Created attachment 305294 [details] Patch and layout test
Comment on attachment 305294 [details] Patch and layout test r=me, nice.
<rdar://problem/31247584>
Committed r214365: <http://trac.webkit.org/changeset/214365>
Mass move bugs into the DOM component.
*** Bug 169121 has been marked as a duplicate of this bug. ***