Implement ScriptLoaderInterface for Workers
Categories
(Core :: DOM: Workers, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox107 | --- | fixed |
People
(Reporter: yulia, Assigned: yulia)
References
Details
Attachments
(3 files)
The WorkerScriptLoader now roughly adheres to the same structure as the DOM Script Loader. There are still significant differences: It is still recreated for every importScripts call, meaning that a single worker will have multiple, nested, workerScriptLoaders.
However, we can start sharing code. This change will have WorkerScriptLoader implement the ScriptLoaderInterface, allowing us to plug in the ModuleLoader code.
Assignee | ||
Comment 1•3 years ago
|
||
This introduces the basic skeleton to make WorkerScriptLoader a ScriptLoaderInterface.
ScriptLoaderInterface defines the methods that are shared between any given ScriptLoader (for
example the DOM script loader, the ComponentScriptLoader) and the ModuleLoader for a particular
component.
This patch also adds documentation to make the role and responsibilities of the
ScriptLoaderInterface clear.
Assignee | ||
Comment 2•3 years ago
|
||
Fill out the ReportErrorToConsole method, and add documentation for ReportWarningToConsole
Assignee | ||
Comment 3•3 years ago
|
||
Comment 5•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ae19d0d9ad84
https://hg.mozilla.org/mozilla-central/rev/9d91e7bba726
https://hg.mozilla.org/mozilla-central/rev/8d35cee853a5
Description
•