-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Navigation] Call intercept handlers and dispatch navigateerror/navig…
…atesuccess https://bugs.webkit.org/show_bug.cgi?id=273893 Reviewed by Alex Christensen. * LayoutTests/imported/w3c/web-platform-tests/navigation-api/focus-reset/change-focus-again-in-blur-during-intercept-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/navigation-api/focus-reset/change-focus-back-to-origial-during-intercept-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/navigation-api/focus-reset/change-focus-during-intercept-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/navigation-api/focus-reset/change-focus-then-remove-during-intercept-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/navigation-api/focus-reset/focus-reset-timing-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/navigation-api/navigate-event/intercept-handler-null-or-undefined-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/navigation-api/navigate-event/intercept-handler-throws-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/navigation-api/navigate-event/intercept-multiple-times-reject-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/navigation-api/navigate-event/intercept-reject-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/navigation-api/navigate-event/navigatesuccess-same-document-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/navigation-api/ordering-and-transition/navigate-204-205-download-then-same-document-expected.txt: * Source/WebCore/page/NavigateEvent.cpp: (WebCore::NavigateEvent::intercept): * Source/WebCore/page/Navigation.cpp: (WebCore::Navigation::innerDispatchNavigateEvent): Canonical link: https://commits.webkit.org/278546@main
- Loading branch information
Showing
14 changed files
with
47 additions
and
24 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...tests/navigation-api/focus-reset/change-focus-again-in-blur-during-intercept-expected.txt
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,3 +1,3 @@ | ||
|
||
FAIL change-focus-again-in-blur-during-intercept promise_test: Unhandled rejection with value: object "TypeError: intercept_resolve is not a function. (In 'intercept_resolve()', 'intercept_resolve' is undefined)" | ||
PASS change-focus-again-in-blur-during-intercept | ||
|
2 changes: 1 addition & 1 deletion
2
...sts/navigation-api/focus-reset/change-focus-back-to-origial-during-intercept-expected.txt
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,3 +1,3 @@ | ||
|
||
FAIL change-focus-back-to-origial-during-intercept promise_test: Unhandled rejection with value: object "TypeError: intercept_resolve is not a function. (In 'intercept_resolve()', 'intercept_resolve' is undefined)" | ||
PASS change-focus-back-to-origial-during-intercept | ||
|
2 changes: 1 addition & 1 deletion
2
.../web-platform-tests/navigation-api/focus-reset/change-focus-during-intercept-expected.txt
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,3 +1,3 @@ | ||
|
||
FAIL change-focus-during-intercept promise_test: Unhandled rejection with value: object "TypeError: intercept_resolve is not a function. (In 'intercept_resolve()', 'intercept_resolve' is undefined)" | ||
PASS change-focus-during-intercept | ||
|
2 changes: 1 addition & 1 deletion
2
...m-tests/navigation-api/focus-reset/change-focus-then-remove-during-intercept-expected.txt
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,3 +1,3 @@ | ||
|
||
FAIL change-focus-then-remove-during-intercept promise_test: Unhandled rejection with value: object "TypeError: intercept_resolve is not a function. (In 'intercept_resolve()', 'intercept_resolve' is undefined)" | ||
PASS change-focus-then-remove-during-intercept | ||
|
6 changes: 5 additions & 1 deletion
6
...mported/w3c/web-platform-tests/navigation-api/focus-reset/focus-reset-timing-expected.txt
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,4 +1,8 @@ | ||
CONSOLE MESSAGE: Unhandled Promise Rejection: undefined | ||
|
||
FAIL Focus should be reset before navigatesuccess assert_true: expected true got false | ||
FAIL Focus should be reset before navigatesuccess assert_equals: Focus must be reset before navigatesuccess expected Element node <body> | ||
<script> | ||
promise_test(async t => { | ||
navigation.ad... but got Element node <button></button> | ||
FAIL Focus should be reset before navigateerror assert_unreached: Should have rejected: undefined Reached unreachable code | ||
|
2 changes: 1 addition & 1 deletion
2
...form-tests/navigation-api/navigate-event/intercept-handler-null-or-undefined-expected.txt
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,4 +1,4 @@ | ||
|
||
PASS event.intercept() should throw if the handler is null | ||
FAIL event.intercept() should not throw if the handler is explicit undefined assert_equals: expected "#2" but got "#1" | ||
PASS event.intercept() should not throw if the handler is explicit undefined | ||
|
3 changes: 3 additions & 0 deletions
3
...3c/web-platform-tests/navigation-api/navigate-event/intercept-handler-throws-expected.txt
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,3 +1,6 @@ | ||
CONSOLE MESSAGE: TypeError: a message | ||
|
||
Harness Error (FAIL), message = TypeError: a message | ||
|
||
FAIL event.intercept() should abort if the handler throws assert_equals: expected "#1" but got "" | ||
|
2 changes: 1 addition & 1 deletion
2
...platform-tests/navigation-api/navigate-event/intercept-multiple-times-reject-expected.txt
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,3 +1,3 @@ | ||
|
||
FAIL event.intercept() is called multiple times and one of the promises rejects assert_true: expected true got false | ||
FAIL event.intercept() is called multiple times and one of the promises rejects assert_unreached: [object Event] Reached unreachable code | ||
|
2 changes: 1 addition & 1 deletion
2
...ported/w3c/web-platform-tests/navigation-api/navigate-event/intercept-reject-expected.txt
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,3 +1,3 @@ | ||
|
||
FAIL event.intercept() should abort if the given promise rejects assert_equals: expected "#1" but got "" | ||
FAIL event.intercept() should abort if the given promise rejects assert_unreached: [object Event] Reached unreachable code | ||
|
4 changes: 1 addition & 3 deletions
4
...b-platform-tests/navigation-api/navigate-event/navigatesuccess-same-document-expected.txt
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,5 +1,3 @@ | ||
|
||
Harness Error (TIMEOUT), message = null | ||
|
||
TIMEOUT navigatesuccess fires for a same-document navigation Test timed out | ||
FAIL navigatesuccess fires for a same-document navigation assert_equals: expected "#1" but got "" | ||
|
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
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