Refactor mozJSComponentLoader to split up script loading in preparation for loading ES6 modules
Categories
(Core :: XPConnect, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox102 | --- | fixed |
People
(Reporter: jonco, Assigned: jonco)
References
Details
Attachments
(4 external files, 2 obsolete files)
Here are some patches to split up script loading in mozJSComponentLoader into a bunch of smaller methods. This will allow a module loader to call only the parts it needs.
| Assignee | ||
Comment 1•4 years ago
|
||
Minor fix. This didn't check for errors when defining functions. The patch gives
it a return value and returns null if this fails.
| Assignee | ||
Comment 2•4 years ago
|
||
Depends on D145469
| Assignee | ||
Comment 3•4 years ago
|
||
We won't call PrepareObjectForLocation when loading ES6 modules.
Depends on D145470
| Assignee | ||
Comment 4•4 years ago
|
||
Depends on D145471
| Assignee | ||
Comment 5•4 years ago
|
||
Depends on D145472
| Assignee | ||
Comment 6•4 years ago
|
||
This adds a flag to ComponentLoaderInfo to say whether it represents a module
and calls the appriate JS APIs based on this.
Depends on D145561
Comment 7•4 years ago
|
||
Comment on attachment 9275162 [details]
Bug 1767800 - Part 8: Add option to compile source to module stencil in mozJSComponentLoader r?yulia
Revision D145562 was moved to bug 1432901. Setting attachment 9275162 [details] to obsolete.
Comment 9•4 years ago
|
||
Backed out for causing hazard failures on mozJSComponentLoader.cpp
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | hazards | unrooted '<returnvalue>' of type 'JSObject*' live across GC call at js/xpconnect/loader/mozJSComponentLoader.cpp:597
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
| Assignee | ||
Updated•4 years ago
|
Comment 10•4 years ago
|
||
Comment 11•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/c911f99fd05c
https://hg.mozilla.org/mozilla-central/rev/b9fb752be4a1
https://hg.mozilla.org/mozilla-central/rev/4b22d24b5c4e
https://hg.mozilla.org/mozilla-central/rev/f92a19fe87cc
Description
•