The default bug view has changed. See this FAQ.

Implement sessions.getDevices WebExtensions API

NEW
Unassigned

Status

()

Toolkit
WebExtensions: General
P5
normal
6 months ago
5 months ago

People

(Reporter: bsilverberg, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [sessions]triaged)

Implement browser.sessions.getDevices method, which is documented at https://developer.chrome.com/extensions/sessions#method-getDevices.
Based on the lack of response/interest to the intent to implement email for this feature I am marking it as a P5 and unassigning myself from it.

For future reference, the content of the intent to implement email regarding this was:

-----------------------

We have been looking into implementing the getDevices method of the sessions API and a question has come up about whether we should implement it for Firefox or not. Syncing is a bit different between Chrome and Firefox: in Firefox we have the concept of synced tabs, but not windows.

The Chrome sessions.getDevices API returns an array of Device objects, each of which contains an array of Session objects, each of which contains an open Window object, each of which in turn contains an array of Tab objects. This is documented [1].

The issue here is that the current architecture of Firefox Sync does not have the concept of a synced window, only synced tabs. Therefore we are not able to return an array of Sessions each of which contains an open Window object, but we are able to return an array of Session objects, each of which contains an open Tab object. This is strictly legal, as a Session object can contain either a Window or a Tab object, but it does not conform to the description or behaviour of the Chrome API.

An option would be to wrap all of the synced tabs we find in a single fake window object, which would allow us to return a Session that contains a Window rather than a Tab, but I'm not sure if that is a good idea.

If you have any feedback or suggestions about this issue please reply to this thread.

Thanks,
Bob
 
[1] https://developer.chrome.com/extensions/sessions#method-getDevices

-----------------------
Assignee: bob.silverberg → nobody
Status: ASSIGNED → NEW
Priority: P2 → P5
No longer blocks: 1300399
You need to log in before you can comment on or make changes to this bug.