-
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
Worker cleanup #164
Comments
This fixes the following from #164: * It gives workers a base URL that matches the response's url. Per https://www.w3.org/Bugs/Public/show_bug.cgi?id=28835 this matches Firefox and would also be more consistent with how the platform determines base URLs in general. (The fix is slightly ugly as it puts the URL on the global object so it can be overridden later. In HTML Standard theory the global object is optional and non-JavaScript languages need not provide it, but I think we should move away from that and while file a follow up issue on the matter.) * It keys shared worker on constructor URL rather than "location". The latter takes redirects into account and if implemented results in racy behavior. Fortunately, neither Chrome nor Firefox implemented this and instead already use this new "constructor url" concept. * It references "in parallel" where used. * It defaults name to the empty string through IDL.
This fixes the following issues from #164: * importScripts() can fetch “no-cors” cross-origin resources. If those fail to parse or throw an exception we shouldn’t simply rethrow that without muting it as that would leak data that <script> does not leak. This makes them throw a NetworkError instead. * This also clarifies that a NetworkError is thrown if the response is not an ok status using the Fetch terminology.
Fragment identifiers are included as part of the constructor url and as part of |
This fixes the following from #164: * It gives workers a base URL that matches the response's url. Per https://www.w3.org/Bugs/Public/show_bug.cgi?id=28835 this matches Firefox and would also be more consistent with how the platform determines base URLs in general. (The fix is slightly ugly as it puts the URL on the global object so it can be overridden later. In HTML Standard theory the global object is optional and non-JavaScript languages need not provide it, but I think we should move away from that: #167.) * It keys shared worker on constructor URL rather than "location". The latter takes redirects into account and if implemented results in racy behavior. Fortunately, neither Chrome nor Firefox implemented this and instead already use this new "constructor url" concept. * It references "in parallel" where used. * It defaults name to the empty string through IDL.
This matches Firefox, simplifies the model, and removes the need for URLMismatchError. Fixes part of #164.
This fixes the following issues from #164: * importScripts() can fetch “no-cors” cross-origin resources. If those fail to parse or throw an exception we shouldn’t simply rethrow that without muting it as that would leak data that <script> does not leak. This makes them throw a NetworkError instead. * This also clarifies that a NetworkError is thrown if the response is not an ok status using the Fetch terminology.
This matches Firefox, simplifies the model, and removes the need for URLMismatchError. Fixes part of #164.
This matches Firefox, simplifies the model, and removes the need for URLMismatchError. Fixes part of #164.
… out See #164 and whatwg/url#62 for details.
This fixes the following issues from #164: * importScripts() can fetch “no-cors” cross-origin resources. If those fail to parse or throw an exception we shouldn’t simply rethrow that without muting it as that would leak data that <script> does not leak. This makes them throw a NetworkError instead. * This also clarifies that a NetworkError is thrown if the response is not an ok status using the Fetch terminology.
This fixes the following issues from #164: * importScripts() can fetch “no-cors” cross-origin resources. If those fail to parse or throw an exception we shouldn’t simply rethrow that without muting it as that would leak data that <script> does not leak. This makes them throw a NetworkError instead. * This also clarifies that a NetworkError is thrown if the response is not an ok status using the Fetch terminology. Also add missing data-x="" attribute that should have been part of 8d239dd.
I'm going to punt on figuring out whether username/password can be forbidden. If anyone is interested in that I recommend figuring it out and then letting this repository know a change is needed. 😊 Inlining |
The URLUtils abstraction is not working out. See #164 and whatwg/url#62 for details.
I've been looking at workers today.
location
) as otherwise redirects make for a confusing and racy model. Implementations also do not match the specification here and use input URL. We should probably make it more explicit what theSharedWorker
map is and where it lives. (Unit of browsing contexts?)URLMismatchError
. Gecko gets away with not implementing it.URLReadonlyUtils
per discussion with @domenic.SharedWorker
name argument defaulting should move to IDL.Anything else?
The text was updated successfully, but these errors were encountered: