Note: There are a few cases of duplicates in user autocompletion which are being worked on.

Implement sessions.getDevices WebExtensions API




WebExtensions: General
10 months ago
9 months ago


(Reporter: bsilverberg, Unassigned)


Firefox Tracking Flags

(Not tracked)


(Whiteboard: [sessions]triaged)



10 months ago
Implement browser.sessions.getDevices method, which is documented at

Comment 1

9 months ago
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.


Assignee: bob.silverberg → nobody
Priority: P2 → P5


9 months ago
No longer blocks: 1300399
You need to log in before you can comment on or make changes to this bug.