Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
document.open() should abort all loads when the document is navigating
https://bugs.webkit.org/show_bug.cgi?id=245407 Reviewed by Youenn Fablet. document.open() should abort all loads when the document is navigating or there is a queued navigation: - whatwg/html#3975 This aligns our behavior with Blink and Gecko, as they already already passing those WPT tests. * LayoutTests/TestExpectations: * LayoutTests/imported/w3c/web-platform-tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/abort-refresh-immediate.window-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/abort-while-navigating.window-expected.txt: * Source/WebCore/dom/Document.cpp: (WebCore::Document::open): * Source/WebCore/loader/NavigationScheduler.cpp: (WebCore::NavigationScheduler::hasQueuedNavigation const): * Source/WebCore/loader/NavigationScheduler.h: Canonical link: https://commits.webkit.org/254699@main
- Loading branch information
Showing
7 changed files
with
38 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
|
||
Harness Error (TIMEOUT), message = null | ||
|
||
TIMEOUT document.open() aborts documents that are queued for navigation through <meta> refresh with timeout 0 (XMLHttpRequest) Test timed out | ||
FAIL document.open() aborts documents that are queued for navigation through <meta> refresh with timeout 0 (fetch()) assert_unreached: Fetch should have been aborted Reached unreachable code | ||
PASS document.open() aborts documents that are queued for navigation through <meta> refresh with timeout 0 (XMLHttpRequest) | ||
PASS document.open() aborts documents that are queued for navigation through <meta> refresh with timeout 0 (fetch()) | ||
PASS document.open() aborts documents that are queued for navigation through <meta> refresh with timeout 0 (image loading) | ||
TIMEOUT document.open() aborts documents that are queued for navigation through Refresh header with timeout 0 (XMLHttpRequest) Test timed out | ||
FAIL document.open() aborts documents that are queued for navigation through Refresh header with timeout 0 (fetch()) assert_unreached: Fetch should have been aborted Reached unreachable code | ||
PASS document.open() aborts documents that are queued for navigation through Refresh header with timeout 0 (XMLHttpRequest) | ||
PASS document.open() aborts documents that are queued for navigation through Refresh header with timeout 0 (fetch()) | ||
PASS document.open() aborts documents that are queued for navigation through Refresh header with timeout 0 (image loading) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
|
||
Harness Error (TIMEOUT), message = null | ||
|
||
TIMEOUT document.open() aborts documents that are navigating through Location (XMLHttpRequest) Test timed out | ||
FAIL document.open() aborts documents that are navigating through Location (fetch()) assert_unreached: Fetch should have been aborted Reached unreachable code | ||
FAIL document.open() aborts documents that are navigating through Location (image loading) assert_unreached: Image loading should not have succeeded Reached unreachable code | ||
TIMEOUT document.open() aborts documents that are navigating through iframe loading (XMLHttpRequest) Test timed out | ||
FAIL document.open() aborts documents that are navigating through iframe loading (fetch()) assert_unreached: Fetch should have been aborted Reached unreachable code | ||
FAIL document.open() aborts documents that are navigating through iframe loading (image loading) assert_unreached: Image loading should not have succeeded Reached unreachable code | ||
TIMEOUT document.open() aborts documents that are queued for navigation through .click() (XMLHttpRequest) Test timed out | ||
FAIL document.open() aborts documents that are queued for navigation through .click() (fetch()) assert_unreached: Fetch should have been aborted Reached unreachable code | ||
FAIL document.open() aborts documents that are queued for navigation through .click() (image loading) assert_unreached: Image loading should not have succeeded Reached unreachable code | ||
PASS document.open() aborts documents that are navigating through Location (XMLHttpRequest) | ||
PASS document.open() aborts documents that are navigating through Location (fetch()) | ||
PASS document.open() aborts documents that are navigating through Location (image loading) | ||
PASS document.open() aborts documents that are navigating through iframe loading (XMLHttpRequest) | ||
PASS document.open() aborts documents that are navigating through iframe loading (fetch()) | ||
PASS document.open() aborts documents that are navigating through iframe loading (image loading) | ||
PASS document.open() aborts documents that are queued for navigation through .click() (XMLHttpRequest) | ||
PASS document.open() aborts documents that are queued for navigation through .click() (fetch()) | ||
PASS document.open() aborts documents that are queued for navigation through .click() (image loading) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8800/common/blank.html due to access control checks. | ||
CONSOLE MESSAGE: Fetch API cannot load http://localhost:8800/common/blank.html due to access control checks. | ||
|
||
Harness Error (TIMEOUT), message = null | ||
|
||
PASS document.open() aborts documents that are navigating through Location (XMLHttpRequest) | ||
PASS document.open() aborts documents that are navigating through Location (fetch()) | ||
PASS document.open() aborts documents that are navigating through Location (image loading) | ||
TIMEOUT document.open() aborts documents that are navigating through iframe loading (XMLHttpRequest) Test timed out | ||
PASS document.open() aborts documents that are navigating through iframe loading (fetch()) | ||
PASS document.open() aborts documents that are navigating through iframe loading (image loading) | ||
PASS document.open() aborts documents that are queued for navigation through .click() (XMLHttpRequest) | ||
PASS document.open() aborts documents that are queued for navigation through .click() (fetch()) | ||
PASS document.open() aborts documents that are queued for navigation through .click() (image loading) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters