-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
On restore, Delete bookmarks before closing the active tab [#377]
When restoring and removing tabs from the stash, during the "restore" phase, we close the active tab if it's a "blank" tab (i.e. the new-tab page, the homepage,`about:blank`, and so on). Only after closing the blank tab do we then delete the stashed tabs from the bookmark store. The problem is that Tab Stash itself might be the "blank" tab (e.g. if Tab Stash is set as the user's homepage). If Tab Stash closes itself, it cannot finish cleaning up the bookmarks for the restored tabs. This patch deletes the bookmarks (if needed) before attempting to close the active "blank" tab, so the bookmarks will always get cleaned up regardless of whether Tab Stash is considered to be a "blank" tab.
- Loading branch information
1 parent
9e32fe0
commit f314f42
Showing
3 changed files
with
28 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters