-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make script fetching more correct with regard to request destinations
- Previously, "fetch a classic worker script" took a boolean "is shared". This generalizes poorly to service workers, so now it takes a destination. - Previously, fetching modules always set a request destination of "subresource". Now, "fetch a module script tree" takes a destination argument, which is threaded through to all modules fetched in the tree, and all its callers (viz. <script> preparation, worker creation, and shared worker creation) pass the proper destination value. - Previously, "fetch a classic script" did not set a destination at all. Now it correctly sets "script". Some other minor changes in related areas: - Previously, "run a worker" took a boolean "is shared". This was not necessary, as it could be inferred from other arguments; it's been removed. - Removed a useless and presumably leftover step from "fetch a classic script".
- Loading branch information
Showing
1 changed file
with
43 additions
and
39 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