Open Bug 1583281 Opened 5 years ago Updated 1 month ago

Expose all tabs to the tabs API on Android, including discarded tabs

Categories

(GeckoView :: Extensions, enhancement, P3)

Unspecified
All
enhancement

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: agi, Assigned: zmckenney, Mentored)

References

(Blocks 5 open bugs, )

Details

(Whiteboard: [addons-jira])

Attachments

(2 files)

GeckoView does not store a list of all GeckoSessions by design.

Embedders might keep some GeckoSessions internally and only feed them to GeckoView whenever they need to display the page to the user.

Extension can "unload" tabs using the https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/discard API, and can get a list of all tabs (including the discarded ones).

We need to add a delegate in GeckoView to let embedders provide the full list of GeckoSessions when needed by extensions and one to "unload" a tab using the tabs.discard API.

Priority: -- → P3

Blocking browser.tabs meta bug 1543755

Blocks: 1543755
No longer blocks: webext-geckoview
Summary: Support tabs.discard → Expose all tabs to the tabs API and support tabs.discard

Mass moving bugs to the Extension component.

Component: General → Extensions
Blocks: 1410542

A way to implement this could be the following:

public class TabDetails {
     // Either this
     public GeckoSession session;
     // or all of these
     public String sessionContextId;
     public String favIconUrl;
     public int id;
     public boolean isPrivateBrowsing;
     public String title;
     public String url;
}
Mentor: agi
Assignee: nobody → ankushduacodes
Status: NEW → ASSIGNED

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

Assignee: ankushduacodes → nobody
Status: ASSIGNED → NEW
See Also: → 1782389
Severity: normal → S3
Blocks: 1796184
Duplicate of this bug: 1801363
Blocks: 1402338

Tasks and enhancements should have severity N/A.

Severity: S3 → N/A
Whiteboard: [addons-jira]
Duplicate of this bug: 1465828

When this is being worked on, please verify the scenarios described in Bug 1465828.

Note that with the coming opening up of the add on store this is going to prevent some add ons coming to Fenix

See Also: → 1856222

Adjusting title - tabs.discard is covered by bug 1402338.

Summary: Expose all tabs to the tabs API and support tabs.discard → Expose all tabs to the tabs API on Android, including discarded tabs
Blocks: 1865366
Blocks: 1812854
No longer blocks: 1796184
Assignee: nobody → zmckenney
Status: NEW → ASSIGNED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: