-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore document.open/write after the active parser has been aborted #4907
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great. Thank you for putting it together, and my apologies for the horrible review lag...
@rniwa Do you know who on the WebKit side should take a look at this? |
I filed a WebKit bug at https://bugs.webkit.org/show_bug.cgi?id=203028 (also in the OP with the Gecko and Blink bugs) |
Are there WPT tests for this? |
https://bugs.webkit.org/show_bug.cgi?id=203028 Reviewed by Geoffrey Garen. LayoutTests/imported/w3c: Rebaseline WPT test that is now passing. * web-platform-tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/aborted-parser.window-expected.txt: Source/WebCore: Ignore document.open/write after the active parser has been aborted, as per: - whatwg/html#4907 Test: imported/blink/fast/loader/document-write-after-location-change.html * dom/Document.cpp: (WebCore::Document::open): (WebCore::Document::cancelParsing): (WebCore::Document::implicitOpen): (WebCore::Document::write): * dom/Document.h: LayoutTests: Import test from blink. * imported/blink/fast/loader/document-write-after-location-change-expected.txt: Added. * imported/blink/fast/loader/document-write-after-location-change.html: Added. * imported/blink/fast/loader/resources/pass-and-notify-done.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@251506 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fixes #4723.
(See WHATWG Working Mode: Changes for more details.)
/browsing-the-web.html ( diff )
/dynamic-markup-insertion.html ( diff )