cxw42 / TabFern

Google Chrome extension for saving and restoring sets of tabs, and for switching between windows and tabs from a vertical, grouped list.
https://cxw42.github.io/TabFern/
Other
170 stars 29 forks source link

Chrome 79: opening a tab in a partially-open windows leaves new_tab.html visible #198

Closed cxw42 closed 4 years ago

cxw42 commented 4 years ago

Bug

Steps:

Expected: the tab opens

Observed: a blank tab opens (and appears in the tree) showing the chrome-extension...new_tab.html#id URL.

Edit the underlying issue also prevents you from opening the Settings dialog in the currently-released version.

Initial observations

In Chrome 79, onTabCreated happens before the Chrome callback to chrome.tabs.create instead of after. This didn't used to be the case. As a result, the tab_val initialization in the callback hasn't happened when onTabCreated runs, so onTabCreated can't find the tab_val.

The Right Thing(TM) is probably to put the onTabCreated material in a seq triggered when the tabs.create completes, but I don't know for sure.

philiprhoades commented 4 years ago

Ah right - I did see #173 but must have skimmed it too much and not recognised it as the same issue . .

Thanks!

cxw42 commented 4 years ago

@philiprhoades after further investigation, it looks like the problem was simpler than I realized :) . master now has a barely-tested fix --- b7b2ba4. Would you please try it and let me know how it goes? Thanks!

Edit you can use the latest master, 8e1c3aa6e6f65c338fecdb4d587d30b4579c3e18

philiprhoades commented 4 years ago

I installed the latest from the Chrome Web Store (is that the same as 8e1c3aa ?) but that does not allow me to open individual tabs . . also it seems to be duplicating tabs . .

cxw42 commented 4 years ago

0.2.1 is 441cc92.

cxw42 commented 4 years ago

I've been using 0.2.1 for several days now and haven't experienced this. Closing - let me know if you experience this specific problem (new_tab.html tabs) again.