tab-stash/src/mock/browser
Joshua J. Berry fd7f93eb10 Track hidden tabs using session data
Whenever we hide a tab, tag it with a marker in the browser session data
so we can tell it was Tab Stash that hid it.  This allows us to more
accurately identify tabs that need to be cleaned up later.

We were previously cleaning up hidden tabs by looking only at what URLs
were removed from the stash and closing the corresponding tabs.
However, that doesn't always work, because the tab's URL could
spontaneously change (e.g. a user getting logged out), and then we
wouldn't think it belonged to us anymore.

Now, if we see a tab with the Tab Stash marker but with a URL that isn't
stashed, we know it's one of ours and we can close it, regardless of why
the URL is unrecognized.

Closes #425.
2024-05-27 20:34:06 -07:00
..
bookmarks.ts Use Prettier to organize imports 2022-11-26 14:57:12 -08:00
containers.ts Prettierify the codebase 2022-11-25 16:33:41 -08:00
index.ts Track hidden tabs using session data 2024-05-27 20:34:06 -07:00
runtime.ts `make up` 2023-06-16 21:51:47 -07:00
sessions.ts Track hidden tabs using session data 2024-05-27 20:34:06 -07:00
storage.ts `make up` 2023-09-03 09:36:09 -07:00
tabs-and-windows.ts Track hidden tabs using session data 2024-05-27 20:34:06 -07:00