-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
workers/modules/shared-worker-import-failure.html is failing asynchronously for file://
URLS
#41745
Comments
@domenic @allstarschh @smaug---- @hiroshige-g thoughts? |
According to the spec, it should fail asynchronously (synchronously was the legacy behavior, but is no longer valid) |
Looking at https://wpt.fyi/results/workers/constructors/Worker/same-origin.html?label=experimental&label=master&aligned, it seems that the main issue is that:
|
|
According the test, it apparently throws a |
Why would that URL fail to parse? I think that test has the wrong expectations. Unsupported schemes end up failing in Fetch and as such should result in an asynchronous failure. I wonder if we should remove step 1 from |
Created #41758. I'm also gonna PR the HTML Standard to remove step 1: whatwg/html#9668. |
@hiroshige-g, is there a plan to align Chromium's implementation to the spec, for instance as part of Interop 2023? |
Thanks for the correction, after checking https://url.spec.whatwg.org/#concept-basic-url-parser |
Also check that a non-parsable URL throws the correct exception. Identified in #41745.
The tests have been fixed and the HTML standard no longer contains the security exception step. I'll leave this open until @hiroshige-g has had a chance to respond to Youenn. |
…eme, a=testonly Automatic update from web-platform-tests Correct worker test for unsupported: scheme Also check that a non-parsable URL throws the correct exception. Identified in web-platform-tests/wpt#41745. -- wpt-commits: 2d504ed2b20e9325243ef22fb95b9f645ae7d87c wpt-pr: 41758
…eme, a=testonly Automatic update from web-platform-tests Correct worker test for unsupported: scheme Also check that a non-parsable URL throws the correct exception. Identified in web-platform-tests/wpt#41745. -- wpt-commits: 2d504ed2b20e9325243ef22fb95b9f645ae7d87c wpt-pr: 41758
Chromium doesn't have an immediate plan for fixing the implementation and currently have any estimated time frame in which we will fix this bug. |
Also check that a non-parsable URL throws the correct exception. Identified in web-platform-tests#41745.
…eme, a=testonly Automatic update from web-platform-tests Correct worker test for unsupported: scheme Also check that a non-parsable URL throws the correct exception. Identified in web-platform-tests/wpt#41745. -- wpt-commits: 2d504ed2b20e9325243ef22fb95b9f645ae7d87c wpt-pr: 41758
…eme, a=testonly Automatic update from web-platform-tests Correct worker test for unsupported: scheme Also check that a non-parsable URL throws the correct exception. Identified in web-platform-tests/wpt#41745. -- wpt-commits: 2d504ed2b20e9325243ef22fb95b9f645ae7d87c wpt-pr: 41758
@hiroshige-g Is there likely to be any change in the Chromium implementation on this? @youennf @annevk same question for Webkit. Firefox is currently experiencing notable breakage on support.apple.com with video playback (BMO bug 1919592) where a control flow path involving Workers diverges because Firefox is not throwing synchronously on |
It looks like we're going to have Firefox converge to what other browsers are doing. We should probably revert the changes in whatwg/html#9668 and upgrade "may" in the dedicated worker case to "should" or "must". Then the test changes in https://phabricator.services.mozilla.com/D179544 would be ~reverted with passing the test requiring that the exception is thrown synchronously. |
Reverting that HTML change would not handle the CSP case that is causing issues. That was actually removing something that was never implemented so I don't see why we'd restore that. It also seems quite bad to forever enshrine numerous Fetch checks to have to be done synchronously. If we can limit the damage somehow I think we should. |
I hear you, but Apple's site is still broken and so we're planning to move to match other browsers on this, so I think the spec will have to change. Tentatively this will be changed as part of https://bugzilla.mozilla.org/show_bug.cgi?id=1471805 |
cc @karlcow |
Thanks @annevk @asutherland but fwiw, there are positive signs that it could be fixed on the server side at Apple. Let's hope we can have a soonish resolution so Firefox users have a good user experience on Apple servers. |
Looks like the Apple support page doesn't have the how to update video currently and the issue in https://bugzilla.mozilla.org/show_bug.cgi?id=1912873 is fixed. For aligning the behavior of implementations, I feel that we should align with current spec. I've posted a comment at web-platform-tests/interop#855, which is more focused on the scenario of CSP blocked worker. |
Looking at WPT results, Chrome and Safari are failing synchronously and Firefox is failing asynchronously.
From looking at the spec, both are allowed.
It would be good to get consensus on what we collectively want there.
The text was updated successfully, but these errors were encountered: