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)

defect

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.
> 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.
(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.
cc'ing dcamp because this could also impact devtools code.
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.
Curious about this, is this referring to a new, non-commonJS loader?
(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.
not actually a patch ready for review, work in progress..
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
No longer blocks: 1075249
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: