Created attachment 158938 [details] test When loading a page, the following should not alert: <!doctype html><script>window.onpopstate = function(event) { alert("onpopstate"); }</script> because the spec path that leads to the event being fired (http://www.whatwg.org/specs/web-apps/current-work/#read-html "update the session history with the new page") happens before any script execution, so when it's fired, window.onpopstate has not been set yet. Firefox doesn't alert. It's less clear to me whether <body onpopstate="alert('test')"> should alert. I don't think it's intended to, but I have an open question about this (http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2012-August/036926.html).
See also: https://code.google.com/p/chromium/issues/detail?id=63040
One of the Opera devs has now fixed it in blink: https://src.chromium.org/viewvc/blink?revision=165221&view=revision
<rdar://problem/22931046>
Created attachment 262250 [details] Patch
Comment on attachment 262250 [details] Patch Attachment 262250 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/232669 New failing tests: fast/loader/javascript-url-iframe-remove-on-navigate.html
Created attachment 262252 [details] Archive of layout-test-results from ews101 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-mavericks Platform: Mac OS X 10.9.5
Comment on attachment 262250 [details] Patch Attachment 262250 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/232677 New failing tests: fast/loader/javascript-url-iframe-remove-on-navigate.html
Created attachment 262253 [details] Archive of layout-test-results from ews107 for mac-mavericks-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-mavericks-wk2 Platform: Mac OS X 10.9.5
Created attachment 262254 [details] Patch
Comment on attachment 262254 [details] Patch Attachment 262254 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/232805 New failing tests: fast/loader/stateobjects/pushstate-object-types.html
Created attachment 262258 [details] Archive of layout-test-results from ews104 for mac-mavericks-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-mavericks-wk2 Platform: Mac OS X 10.9.5
Created attachment 262327 [details] Patch
Comment on attachment 262327 [details] Patch Clearing flags on attachment: 262327 Committed r190505: <http://trac.webkit.org/changeset/190505>
All reviewed patches have been landed. Closing bug.