Closed Bug 1587883 Opened 5 years ago Closed 2 years ago

Adapt contentScripts/userScripts API to suspendible extension contexts

Categories

(WebExtensions :: General, task, P2)

task

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: rpl, Unassigned)

References

(Blocks 1 open bug)

Details

The contentScripts/userScripts API needs at least the following changes:

  • allow to specify an id in the contentScripts/userScripts.register API method, and make the id mandatory for suspendible extension contexts (the id will be needed to make the API able to detect when the suspended page is re-registering the same script once it is waking up)

  • scripts registered from a suspendible extension context should not be destroyed and unregistered automatically when the extension context is being suspended

Blocks: 1587876
Depends on: 1587879
Priority: -- → P2
Summary: Adapt contentScripts/userScripts API to suspendable extension contexts → Adapt contentScripts/userScripts API to suspendible extension contexts
See Also: → 1687761
See Also: → 1516478

Closing as wontfix:

Bug 1766615 has enabled the scripting API for MV2 extension, and the scripting API has been specifically designed to also cover this since the start and it will also available for MV3 extensions (while the contentScripts and userScripts API namespaces are not available to MV3 extensions) and so the scripting API is also a better path for extensions that will be using the event page in MV2 as part of transitioning to MV3.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
See Also: → 1766615
You need to log in before you can comment on or make changes to this bug.