Open Bug 1401372 Opened 7 years ago Updated 8 months ago

Run extension API scripts in the shared module global

Categories

(WebExtensions :: General, enhancement, P3)

enhancement

Tracking

(firefox57 wontfix)

Tracking Status
firefox57 --- wontfix

People

(Reporter: kmag, Unassigned)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [MemShrink:P2][overhead:?])

Currently, extension API scripts run in a dedicated Sandbox global (rather than the plain object contexts from a JSM that they used to run in), which means that they incur a lot of wrapper overhead when communicating with the rest of the framework. We need to update them to run in the context of a normal JSM scope instead.

The main issue here is that those scripts are loaded using the ScriptPreloader, which currently only supports execution in the context of a global, not a non-syntactic scope. We need to update it to accept a non-syntactic scope, with awareness of existing JSM non-syntactic scopes, and possibly allow it to create a NSVO scope of its own.
You filed and assigned this bug, can you set priority and status-firefox57 flags please.
Flags: needinfo?(kmaglione+bmo)
Flags: needinfo?(kmaglione+bmo)
Priority: -- → P2
Depends on: 1393270
Product: Toolkit → WebExtensions
Whiteboard: [MemShrink]
Whiteboard: [MemShrink] → [MemShrink:P2][overhead:?]
Depends on: 1432901
Priority: P2 → P3
Severity: normal → S3

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: kmaglione+bmo → nobody
You need to log in before you can comment on or make changes to this bug.