Factor module loader out of nsScriptLoader
Categories
(Core :: DOM: Core & HTML, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox97 | --- | fixed |
People
(Reporter: jonco, Assigned: yulia)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [overhead:noted])
Attachments
(18 files, 10 obsolete 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 | |
(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 |
Updated•7 years ago
|
Updated•6 years ago
|
Updated•5 years ago
|
Comment 2•3 years ago
|
||
Hey Yulia, is this on the WebVM team's radar? It seems audio worklets not being able to import module scripts (bug 1572644) is starting to become a compatibility problem of sorts per padenot.
Assignee | ||
Comment 3•3 years ago
|
||
I had 1572644 in mind. Thanks for the heads up about the compat issue, will look into it and see if we can get it done soon.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 4•3 years ago
|
||
Assignee | ||
Comment 5•3 years ago
|
||
Depends on D124761
Assignee | ||
Comment 6•3 years ago
|
||
Depends on D124762
Assignee | ||
Comment 7•3 years ago
|
||
Depends on D124763
Assignee | ||
Comment 8•3 years ago
|
||
Depends on D124765
Assignee | ||
Comment 9•3 years ago
|
||
Depends on D124766
Assignee | ||
Comment 10•3 years ago
|
||
Depends on D124767
Assignee | ||
Comment 11•3 years ago
|
||
Depends on D124768
Assignee | ||
Comment 12•3 years ago
|
||
Depends on D124769
Assignee | ||
Comment 13•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 14•3 years ago
|
||
Previously, we were setting the ProcessingScriptTag for Module compilation as well as script
execution. This patch creates a helper function (GetGlobalWithContext) and removes a superfluous
setting of the "ProcessingScriptTag".
ProcessingScriptTag should be set when a script is executing, as it helps correct our behavior
around history replacement during JS execution: https://searchfox.org/mozilla-central/rev/e9cd2997be1071b9bb76fc14df0f01a2bd721c30/dom/base/LocationBase.cpp#223-231
Assignee | ||
Comment 15•3 years ago
|
||
The Scriptloader will be shared by multiple modules, not all of them have ready access to the
docshell (MozJSComponentLoader currently uses the JSContext for this purpose. Workers and worklets
are not tracking performance yet). Our profiling code relies on the docShell present in the script loader. This changes the
current profiling code to use the JSContext instead.
Depends on D132603
Assignee | ||
Comment 16•3 years ago
|
||
The goal of splitting classic script loading from module script loading was to keep a minimum
selection of methods for other script loaders to implement. In addition, the security
flags were distinct for the two cases, and had no overlap.
Caching behavior was left as shared, as it is likely modules will have this soon.
Depends on D132604
Assignee | ||
Comment 17•3 years ago
|
||
first initialization is on line 3140 and covers the module case.
Depends on D132605
Assignee | ||
Comment 18•3 years ago
|
||
Depends on D132606
Assignee | ||
Comment 19•3 years ago
|
||
Depends on D132607
Assignee | ||
Comment 20•3 years ago
|
||
Depends on D132608
Assignee | ||
Comment 21•3 years ago
|
||
Depends on D132609
Assignee | ||
Comment 22•3 years ago
|
||
Depends on D132610
Assignee | ||
Comment 23•3 years ago
|
||
Depends on D132611
Assignee | ||
Comment 24•3 years ago
|
||
Depends on D132612
Assignee | ||
Comment 25•3 years ago
|
||
Depends on D132613
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 26•3 years ago
|
||
Depends on D132613
Assignee | ||
Comment 27•3 years ago
|
||
Module evaluation is independent of it's context. We just need the globalObject to set up the
execution environment.
Depends on D132677
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 28•3 years ago
|
||
Depends on D132614
Assignee | ||
Comment 29•3 years ago
|
||
Depends on D132613
Assignee | ||
Comment 30•3 years ago
|
||
Depends on D132678
Assignee | ||
Comment 31•3 years ago
|
||
Depends on D132950
Comment 32•3 years ago
|
||
Comment 33•3 years ago
|
||
Backed out for failures on test_script_loader_js_cache.html
Backout link: https://hg.mozilla.org/integration/autoland/rev/113958177845cc69f9c369f7c75ca8d5ba179757
Log link: https://treeherder.mozilla.org/logviewer?job_id=360497917&repo=autoland&lineNumber=2695
There were also failures on test_bug1656248.html -> https://treeherder.mozilla.org/logviewer?job_id=360497915&repo=autoland&lineNumber=2102
Assignee | ||
Updated•3 years ago
|
Comment 34•3 years ago
|
||
Comment 35•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/bfea110e6afe
https://hg.mozilla.org/mozilla-central/rev/beb9e9b17522
https://hg.mozilla.org/mozilla-central/rev/eac12c9d76b7
https://hg.mozilla.org/mozilla-central/rev/68ab853d072d
https://hg.mozilla.org/mozilla-central/rev/ebc87f932050
https://hg.mozilla.org/mozilla-central/rev/15df1b7e0208
https://hg.mozilla.org/mozilla-central/rev/d130a9772d31
https://hg.mozilla.org/mozilla-central/rev/340bd3d73849
https://hg.mozilla.org/mozilla-central/rev/0ef6c06dac5b
https://hg.mozilla.org/mozilla-central/rev/258188246118
https://hg.mozilla.org/mozilla-central/rev/79aac20615b8
https://hg.mozilla.org/mozilla-central/rev/a151ddb7068d
https://hg.mozilla.org/mozilla-central/rev/2deb35690efb
https://hg.mozilla.org/mozilla-central/rev/9ecb9ac4f2f7
https://hg.mozilla.org/mozilla-central/rev/7b266f1fbbff
https://hg.mozilla.org/mozilla-central/rev/d6f6a7d13dc2
https://hg.mozilla.org/mozilla-central/rev/fd3a9e4f5e5e
https://hg.mozilla.org/mozilla-central/rev/0e1179305bc2
Comment 36•3 years ago
|
||
Backed out for causing Hazard failures at ScriptLoader.cpp
Backout link: https://hg.mozilla.org/integration/autoland/rev/6015268227ac3ab1e504f8d76317f188faeef630
Push where failures started: https://treeherder.mozilla.org/jobs?repo=autoland&selectedTaskRun=SstG0XNWT-2OzWnx88rslQ.0&resultStatus=testfailed%2Cbusted%2Cexception%2Cretry%2Cusercancel&revision=01f0300c5ce1be25ac07cebe077edc0df0f19cbc
Failure log: https://treeherder.mozilla.org/logviewer?job_id=360568105&repo=autoland&lineNumber=92649
Comment 37•3 years ago
|
||
Backout merged to central: https://hg.mozilla.org/mozilla-central/rev/6015268227ac
Comment 38•3 years ago
|
||
Assignee | ||
Updated•3 years ago
|
Comment 39•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/00fc94ca6194
https://hg.mozilla.org/mozilla-central/rev/9b34af047654
https://hg.mozilla.org/mozilla-central/rev/a25fe257d5b8
https://hg.mozilla.org/mozilla-central/rev/7c63590b66f4
https://hg.mozilla.org/mozilla-central/rev/6664c04f4830
https://hg.mozilla.org/mozilla-central/rev/732e15c4958d
https://hg.mozilla.org/mozilla-central/rev/e4eb33a27999
https://hg.mozilla.org/mozilla-central/rev/cb1f93008fcb
https://hg.mozilla.org/mozilla-central/rev/1095d8b43ce7
https://hg.mozilla.org/mozilla-central/rev/2deb80998e49
https://hg.mozilla.org/mozilla-central/rev/90253f348658
https://hg.mozilla.org/mozilla-central/rev/345f2b65d68a
https://hg.mozilla.org/mozilla-central/rev/fa7f6356b9d7
https://hg.mozilla.org/mozilla-central/rev/a61540a0e574
https://hg.mozilla.org/mozilla-central/rev/b7f3da90d4a7
https://hg.mozilla.org/mozilla-central/rev/b6c210ac83f7
https://hg.mozilla.org/mozilla-central/rev/b3315084d575
https://hg.mozilla.org/mozilla-central/rev/5968a2827351
Description
•