fix: loading dedicated/shared worker scripts over custom protocol#20625
Merged
Conversation
Member
Author
|
|
deepak1556
force-pushed
the
robo/fix_worker_custom_protocol
branch
from
October 18, 2019 02:21
1e20e47 to
467e29f
Compare
jkleinsc
approved these changes
Oct 18, 2019
deepak1556
force-pushed
the
robo/fix_worker_custom_protocol
branch
from
March 27, 2020 10:43
467e29f to
d5db43a
Compare
6 tasks
zcbenz
approved these changes
Mar 30, 2020
deepak1556
force-pushed
the
robo/fix_worker_custom_protocol
branch
from
April 1, 2020 04:09
d5db43a to
a8cbcfe
Compare
|
Wouldn't know where to begin with writing the tests, but would love to see this merged, especially as v6 is now not supported and was the last version where shared workers worked! |
|
I thought this had been ready to go for a while and just needed to be merged... I assumed there were tests in the last commit since it was approved. (Should probably have looked to confirm before writing this comment, but maybe they are already done?) |
6 tasks
[worker_global_scope.cc(111)] Check failed: url_.IsValid().
Backports https://chromium-review.googlesource.com/c/chromium/src/+/1798250 that distinguishes loading the main script resource of dedicated/shared worker, this allows us to register a custom URLLoaderFactory.
codebytere
force-pushed
the
robo/fix_worker_custom_protocol
branch
from
July 27, 2020 21:36
a8cbcfe to
644c751
Compare
codebytere
force-pushed
the
robo/fix_worker_custom_protocol
branch
from
July 27, 2020 21:52
d7b03dc to
14f35c0
Compare
codebytere
approved these changes
Jul 27, 2020
MarshallOfSound
approved these changes
Jul 27, 2020
Member
|
macOS failures are: #24748. Will merge when woa finishes. |
This was referenced Jul 28, 2020
Contributor
|
I have automatically backported this PR to "10-x-y", please check out #24749 |
Contributor
|
I have automatically backported this PR to "9-x-y", please check out #24750 |
6 tasks
miniak
pushed a commit
that referenced
this pull request
Oct 23, 2020
…0625) Co-authored-by: Shelley Vohr <[email protected]>
Contributor
miniak
pushed a commit
that referenced
this pull request
Oct 23, 2020
miniak
pushed a commit
that referenced
this pull request
Oct 24, 2020
miniak
pushed a commit
that referenced
this pull request
Oct 28, 2020
miniak
pushed a commit
that referenced
this pull request
Oct 28, 2020
deepak1556
added a commit
that referenced
this pull request
Oct 29, 2020
…0625) (#26142) Co-authored-by: Robo <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Closes #20557.
Closes #24715.
This is a two part fix,
Part I: Fix crash when loading over data: protocol mentioned in the above issue
This issue will appear only with nodeintegration enabled in the worker. Adds patch
worker_feat_add_hook_to_notify_script_ready.patchthat explains the root cause of this issue, I am gonna try upstreaming this, will see how it goes. The access to global properties from Node.js happens innode::MaybeInitializeContextwhich modifies the global object for primordials.Part II: Cannot load worker scripts over custom protocol
After https://chromium-review.googlesource.com/c/chromium/src/+/1798250 we need to explicitly register custom URLLoaderFactories for dedicated/shared workers.
Checklist
npm testpassesRelease Notes
Notes: