Chromium Code Reviews
DescriptionWorklet: Move WorkletScriptLoader from MainThreadWorklet to MainThreadWorkletGlobalScope
This is a preparation CL for introducing module loading for MainThreadWorklet
(i.e., PaintWorklet). ThreadedWorklet is out of the scope for now.
According to the "fetch and invoke a worklet script" algorithm defined in the
Worklet spec[1], worklet script fetch is supposed to be conducted in the worklet
global scope execution environment (i.e., WorkletGlobalScope). However, in the
current implementation, the algorithm is partially implemented on Worklet class
that exists in document execution environment. This doesn't match the spec.
To fix it, this CL moves WorkletScriptLoader from MainThreadWorklet to
MainThreadWorkletGlobalScope. This should not change the behavior.
[1] https://drafts.css-houdini.org/worklets/#fetch-and-invoke-a-worklet-script
BUG=627945
Review-Url: https://codereview.chromium.org/2830603003
Cr-Commit-Position: refs/heads/master@{#466543}
Committed: https://chromium.googlesource.com/chromium/src/+/bd57430f53d31aa3ca7c4c28f7189667feb04908
Patch Set 1 #
Total comments: 6
Patch Set 2 : rebase #Patch Set 3 : address review comments #
Total comments: 2
Patch Set 4 : rebase #Patch Set 5 : const auto& #Messages
Total messages: 43 (31 generated)
|