vapier / chrome-ext-tabs-backup

vapier's Tabs Backup & Restore: never lose your work again! Backup an entire Chrome session (windows and tabs).

Home Page:https://chrome.google.com/webstore/detail/maonpfakiajhbgnapbpaipaidkpppfmj

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

windows are always restored to current virtual desktop

sleffler opened this issue · comments

[auto-restore isn't working so using Advanced Restore]
Restored tabs are all in the same virtual desktop.

i'm fairly certain the Chrome extension APIs do not expose virtual desktop information, so there's nothing i can do here until that changes

the first step is to create a window & set its state (size/location). then you populate the tabs using the Chrome Tabs extension APIs. the tabs APIs are responsible for things like pinned tabs.
https://developer.chrome.com/docs/extensions/reference/api/tabs#method-create

so the content of the window (e.g. tabs) is independent of the window itself. and i don't see any APIs for virtual desktop settings (querying or restoring/setting).

restoring pinned tabs works from the popup. i'm guessing you're using the advanced page ... that seems to use a diff implementation for some reason. i'll unify them.