Closed
Bug 1028718
Opened 10 years ago
Closed 10 years ago
need async loader/sandbox api, deprecate old one (e10s)
Categories
(Add-on SDK Graveyard :: General, defect, P1)
Add-on SDK Graveyard
General
Tracking
(e10s+)
RESOLVED
WONTFIX
Tracking | Status | |
---|---|---|
e10s | + | --- |
People
(Reporter: zombie, Unassigned)
References
Details
Attachments
(1 file)
the current loader/sandbox api is synchronous, and doesn't abstract the raw sandbox returned from platform, thus making it incompatible with e10s.
this isn't to actually change the implementation to be e10s compatible, just:
1) provide to an async api,
2) switch to it internally, and
3) deprecate the old one ASAP
to give addon authors time to switch to the new one.
Reporter | ||
Comment 1•10 years ago
|
||
> 2) switch to it internally, and
this might be a bigger thing, and escalate to async content/sandbox and possibly even content/worker, which would warrant a separate bug.
or as they already do most stuff using events, it might all be "just fine".. must investigate.
Comment 2•10 years ago
|
||
(In reply to Tomislav Jovanovic [:zombie] from comment #0)
...
> 1) provide to an async api,
We'll obviously need a JEP for what the new api looks like.
Comment 3•10 years ago
|
||
cc'ing dcamp because this could also impact devtools code.
Comment 4•10 years ago
|
||
I have some notes from Irving about some loader changes that he wanted for telemetry recordings. Mainly promise based methods so that one can record when the async loading/unloading process starts and ends accurately.
We should jep this.
Comment 5•10 years ago
|
||
Curious about this, is this referring to a new, non-commonJS loader?
Priority: -- → P1
Reporter | ||
Comment 6•10 years ago
|
||
(In reply to Jordan Santell [:jsantell] [@jsantell] from comment #5)
> Curious about this, is this referring to a new, non-commonJS loader?
no, this is an existing low-level module in loader/sandbox.js that is used for creating a sandbox for loading our content scripts, which in e10s can't be done synchronously, thus the need for the api change.
Reporter | ||
Comment 7•10 years ago
|
||
not actually a patch ready for review, work in progress..
Updated•10 years ago
|
tracking-e10s:
--- → +
Reporter | ||
Comment 8•10 years ago
|
||
as explained in bug 1058698, this approach wont work because of platform changes. the alternative solution in bug 1058698 has landed, and this should have been closed long ago..
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•