Tabs become New Tab when using Window Sync
Preliminary Checks
- [x] I have read and understood the important section above.
- [x] I have searched existing issues and avoided creating duplicates.
- [x] I am not filing an enhancement request.
- [x] I have checked that this issue cannot be reproduced on Mozilla Firefox.
- [x] I have checked that this issue can be reproduced once I removed all my Mods and Custom CSS.
What happened?
Ever since Window Sync was released, I've had a number of existing tabs (i.e. tabs of actual websites, not New Tab) suddenly become New Tab. Sometimes, I can press the Back button to return to what the tab should be, particularly if I am opening Zen after exiting. However, other times, the New Tab will replace the existing tab and there is no history of what the tab used to contain.
Expected behavior
Existing tabs do not turn into New Tab
Actual behavior
Existing tabs will turn into New Tab under unknown circumstances, and sometimes lose history.
Steps to reproduce
I could not find a consistent setup to cause this issue.
Sometimes it occurs when opening Zen, despite having "Open previous windows and tabs" setting on.
Sometimes it occurs when clicking on a tab, particularly when it "appears" loaded in one window but unloaded in another.
It is relatively rare.
Screenshots and videos
No response
Version
1.18.8b
What platform are you seeing the problem on?
Windows - x64
What component is this issue related to?
Tabs
Relevant log output if applicable
I have the same issue on macOS when closing and reopening zen
@onigoetz what version? Could you please send a video?
version 1.18.9b (I also had it in previous versions). I updated this morning reopened the browser and got what I sent in the screenshot.
I tried to close the browser and reopen and couldn't reproduce this time :/
As soon as I can reproduce it I'll make a video and post the logs
https://github.com/user-attachments/assets/0a7187bf-0cd9-4b68-ad10-48d149edca77
I started recording after the first couple of tabs all turned into New Tab. But you can see another two tabs (Actual and SimpleFin) turn into New Tab. Those two were unloaded. The other two tabs, Wikipedia and Github, were NOT SELECTED/VISIBLE in the other window (not shown).
I don't know if any of these were loaded in the other window, but it's worth noting that I've seen tabs be loaded in one window but not loaded in the other.
I've just updated to 1.18.9b and will update this thread if it happens again, since the patch notes mention stability improvements to window sync.
This should be fixed now in 1.18.10b.
Give me a ping if thats not the case and I should reopen. Thanks!
@mr-cheffy This issue still happens for me on 1.18.10b.
Repro steps:
- Have the same workspace open in two windows
- Ctrl-click a link on a web page -> A new tab opens
- Click on the newly opened tab in the same window -> page content loads fine
- Click on the newly opened tab in the other window -> it turns to "New Tab" immediately and shows a blank page.
Update: Platform is Windows 11
This also happens when you close down both windows at once, either be a force close or a improper shutdown, causing random tabs to close, not just specific ones.
That should be fixed next version thanks to https://github.com/zen-browser/desktop/commit/88a647a3bbc7168357bdc98bd7f8f4f49a54816f#diff-0a3727e113084ec83a1ce06995140097242a14229b87a6d556dc861aa7252624
So I still have this happen quite regularly, and it breaks window sync after awhile (where even if I close down to one window and open a new window the viewport syncing will be busted). Sometimes now when I get a new tab, it'll eventually become what it's supposed to be after a bit.
Sometimes when it happens if I unminimize or uncover my second browser window, things will snap back into place. It's like sometimes things are unloading temporarily and the two windows can't properly communicate.
this issue is also happening to me on Windows without an sync account logged in.
i try to open my tabs and they just get turned into New Tab. mostly tabs that i wasn't using for a bit and probably fell into hybernation.
Could you please send a recording along with what OS you are in and what version?
I'm also not using any firefox sync stuff it that's relevant.
I'm on windows 11. I'll try my best to grab footage of it but annoying since I don't know how to force it, it only happens when I'm in the middle of stuff 😭 Eventually it should pop up at a convenient time though
https://github.com/user-attachments/assets/e7858e0b-abd1-40f2-8ec8-bc7adbb0d639
Here it is in an extra screwed up state. I can't get any of the tabs to come back to life or resync even though they kiiiiinda do.
https://github.com/user-attachments/assets/9e850481-9f43-47c2-9b70-32cc74705b3e
This one is me trying to restore things by opening a new window and it not working. Sync at this point is totally broken. When I restart in this situation, I always get the message that zen is still running. It took longer than normal for the windows to come back up there, that's usually not really a problem. Maybe the recording was slowing things down.
No mods or anything and pretty normal extensions (ublock and stuff).
@Kayinnasaki could you show logs when doing that? ctrl+shift+J
What zen version is this recorded in?
1.19.4b, I'll grab logs next time it breaks.
I'll keep checking the logs when things get messed up but so far this is the only thing that I've noticed pop up when something went wrong.
can't access property "isAdoptingTab", this.window.gBrowserInit is undefined ext-browser.js:1210:9
get activeTab chrome://browser/content/parent/ext-browser.js:1210
candidates chrome://extensions/content/parent/ext-tabs-base.js:2141
next self-hosted:1233
query chrome://extensions/content/parent/ext-tabs-base.js:2163
next self-hosted:1233
from self-hosted:513
query chrome://browser/content/parent/ext-tabs.js:1090
result resource://gre/modules/ExtensionParent.sys.mjs:1223
withCallContextData resource://gre/modules/ExtensionParent.sys.mjs:666
result resource://gre/modules/ExtensionParent.sys.mjs:1222
withPendingBrowser resource://gre/modules/ExtensionParent.sys.mjs:676
result resource://gre/modules/ExtensionParent.sys.mjs:1221
callAndLog resource://gre/modules/ExtensionParent.sys.mjs:1172
recvAPICall resource://gre/modules/ExtensionParent.sys.mjs:1220
AsyncFunctionNext self-hosted:780
I'd like to see a screenshot of everything, the logs you sent arent related
hopefully this is helpful but it's hard to tell when since not much tends to come up once things start breaking. I THINK this is the first time it broke since restarting the browser, so hopefully this is something.
I see, is any of these browser "unloaded" or did they get discarded?
Please open a new issue with that screenshot
I also experience this daily at 1.21.6b (Firefox 152.0.5) (64-bit) similar to video sample made by Kayinnasaki