Refactor the module loader to make it more generic
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox100 | --- | fixed |
People
(Reporter: jonco, Assigned: jonco)
References
Details
Attachments
(10 files)
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details |
The aim of this bug is to make the module loader code more generic in preparation for using it in mozJSComponentLoader. We should try and move the DOM-specific code out and pull in any remaining generic module code.
Assignee | ||
Comment 1•3 years ago
|
||
This restricts access to mDynamicImportRequests and adds the appropriate accessors.
Assignee | ||
Comment 2•3 years ago
|
||
This splits the interface of ModuleLoaderBase into sections and restricts acess
for internal methods.
Depends on D141248
Assignee | ||
Comment 3•3 years ago
|
||
This can work it out if it needs it by calling GetGlobalForRequest.
Depends on D141249
Assignee | ||
Comment 4•3 years ago
|
||
I'm not sure why this was there because this can't run script.
Depends on D141250
Assignee | ||
Comment 5•3 years ago
|
||
I don't know why these are there; there's nothing in the spec to say these
operations perform a microtask checkpoint (unlike executing a module).
Depends on D141251
Assignee | ||
Comment 6•3 years ago
|
||
This layer doesn't add much above calling into the JS engine and it's DOM
specific so let's remove it.
Depends on D141252
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Comment 8•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a8e0362d4e6d
https://hg.mozilla.org/mozilla-central/rev/a3c688ed0dbf
https://hg.mozilla.org/mozilla-central/rev/fcbec93f7598
https://hg.mozilla.org/mozilla-central/rev/e9a2cd65cf4a
https://hg.mozilla.org/mozilla-central/rev/4036fd69dfb6
https://hg.mozilla.org/mozilla-central/rev/27af2350c258
Assignee | ||
Comment 9•3 years ago
|
||
This adds a virtual method to nsIGlobalObject and implements it for
nsGlobalWindowInner and SandboxPrivate. This means we don't have to put the
logic for dealing with all the different kinds of globals in once place.
Assignee | ||
Comment 10•3 years ago
|
||
This adds a new virtual to the module loader base, along the same lines as the
one to create a load request for a static import. This makes the
HostImportModuleDynamically hook generic.
Depends on D141733
Assignee | ||
Comment 11•3 years ago
|
||
Now we can move the JS engine integration hooks into the generic module loader.
There is still some code there to deal with web extension globals. This will be
removed in a later patch.
Depends on D141734
Assignee | ||
Comment 12•3 years ago
|
||
StartModuleLoadImpl moves to the base class and uses to new virtual methods
CanStartLoad and StartFetch which are implemented by the derived class.
Depends on D141735
Comment 13•3 years ago
|
||
Assignee | ||
Updated•3 years ago
|
Comment 14•3 years ago
|
||
Comment 15•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7a711fde3cc8
https://hg.mozilla.org/mozilla-central/rev/9f2bd46d25f0
https://hg.mozilla.org/mozilla-central/rev/59c0f85d61e1
Comment 16•3 years ago
|
||
bugherder |
Description
•