Closed Bug 1587880 Opened 5 years ago Closed 2 years ago

Adapt menus/contextMenus API to suspendible extension contexts

Categories

(WebExtensions :: Frontend, task, P3)

task
Points:
3

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1748558

People

(Reporter: rpl, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: mv3:m3 [mv3-m3])

Attachments

(1 obsolete file)

the menus/contextMenus API would need at least the following changes:

  • in the menus.create API method, which takes an id parameter, this parameter is currently optional, but it should be mandatory for suspendible extension contexts (as it is what makes the API able to recognize when a certain menu item was already created before the extension context is being suspended and then wake up in response of a received event).

  • the menus API events should be persisted and replaced with "primed listeners" when the extension context has been suspended (so that the "primed listener" will be able to receive the events while the extension context is gone, and then wake up the context and fire the pending events received in the meantime).

Assignee: nobody → lgreco
Blocks: 1587876
Status: NEW → ASSIGNED
Priority: -- → P1
Depends on: 1587879
Summary: Adapt menus/contextMenus API to suspendable extension contexts → Adapt menus/contextMenus API to suspendible extension contexts
Attachment #9101380 - Attachment description: Bug 1587880 - Adapt menus/contextMenus API to suspendable extension contexts. → Bug 1587880 - Adapt menus/contextMenus API to suspendible extension contexts.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: General → Frontend
Priority: P1 → P2
Severity: normal → N/A
Priority: P2 → P3
Whiteboard: mv3:m3
Whiteboard: mv3:m3 → mv3:m3 [mv3-m3]
Depends on: 1718323
Points: --- → 3

We are resuming this work in Bug 1748558, and this is technically a duplicate of that.

Assignee: lgreco → nobody
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
Attachment #9101380 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: