haikuwebkit/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests
Chris Dumez ff71e5a6e9 WebKit2 can only have one active navigation policy check for a given frame
https://bugs.webkit.org/show_bug.cgi?id=229012

Reviewed by Youenn Fablet.

LayoutTests/imported/w3c:

Rebaseline test that is now passing one more check.

* web-platform-tests/html/browsers/windows/noreferrer-window-name-expected.txt:

Source/WebKit:

WebKit2 could only have one active navigation policy check for a given frame
and there was a FIXME comment about this in the code. This was causing some
WPT tests to timeout in WebKit2 only because those tests would trigger
several navigations (e.g. in new windows) and only the last one would proceed
(earlier ones would get cancelled).

This patch updates the policy checking logic in WebFrame so that we can support
several concurrent policy checks.

No new tests, unskipped / rebaselined existing tests.

* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::cancelPolicyCheck):
* WebProcess/WebPage/WebFrame.cpp:
(WebKit::WebFrame::~WebFrame):
(WebKit::WebFrame::setUpPolicyListener):
(WebKit::WebFrame::setUpWillSubmitFormListener):
(WebKit::WebFrame::continueWillSubmitForm):
(WebKit::WebFrame::invalidatePolicyListeners):
(WebKit::WebFrame::didReceivePolicyDecision):
* WebProcess/WebPage/WebFrame.h:

LayoutTests:

Unskip a couple of tests that are no longer timing out in WebKit2.

* platform/ios-wk1/imported/w3c/web-platform-tests/html/browsers/windows/noreferrer-window-name-expected.txt: Removed.
* platform/mac-wk1/imported/w3c/web-platform-tests/html/browsers/windows/noreferrer-window-name-expected.txt: Removed.
* platform/wk2/TestExpectations:

Canonical link: https://commits.webkit.org/240828@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@281445 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-08-23 15:02:30 +00:00
..
FileAPI Overly verbose catchable fetch error messages lead to cross-origin leaks 2021-08-13 10:22:38 +00:00
WebCryptoAPI Remove trailing spaces from all expected.txt files outside the web-platform-tests directory 2020-09-27 14:41:48 +00:00
background-fetch Remove trailing spaces from all expected.txt files outside the web-platform-tests directory 2020-09-27 14:41:48 +00:00
clipboard-apis Overly verbose catchable fetch error messages lead to cross-origin leaks 2021-08-13 10:22:38 +00:00
content-security-policy Overly verbose catchable fetch error messages lead to cross-origin leaks 2021-08-13 10:22:38 +00:00
css Re-import css/css-fonts WPT 2021-05-06 15:30:59 +00:00
encoding/legacy-mb-japanese/iso-2022-jp Resync encoding web-platform-tests from upstream 2021-07-02 20:33:30 +00:00
fetch Overly verbose catchable fetch error messages lead to cross-origin leaks 2021-08-13 10:22:38 +00:00
html WebKit2 can only have one active navigation policy check for a given frame 2021-08-23 15:02:30 +00:00
mathml Implement support for <dialog> element cancel event 2021-08-05 20:56:52 +00:00
mediacapture-fromelement Remove trailing spaces from all expected.txt files outside the web-platform-tests directory 2020-09-27 14:41:48 +00:00
navigation-timing Move Timing-Allow-Origin checks to the network process 2021-06-10 23:29:57 +00:00
notifications Update WPT resources from upstream 2021-06-24 01:58:27 +00:00
payment-request
pointerevents Remove trailing spaces from all expected.txt files outside the web-platform-tests directory 2020-09-27 14:41:48 +00:00
resize-observer
resource-timing Move Timing-Allow-Origin checks to the network process 2021-06-10 23:29:57 +00:00
speech-api Resync speech-api WPT tests from upstream 2021-06-30 02:13:41 +00:00
streams
uievents/mouse Import web-platform-tests/uievents tests from upstream 2020-11-19 17:37:49 +00:00
xhr xhr.send(URLSearchParams) should align default Content-Type header field with Chrome and Firefox 2021-06-29 19:07:43 +00:00