-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected load #4
Comments
This will need some research. Currently I simply ask the browser to move the tabs from one window to another. It may be a limitation of the browser extension API that wakes them all up. It may need something like how pinned tabs are handled: where we first need to check the load status for all tabs, and after moving them to a different window reset that status. That would not fully fix the issue though, as tabs may still try and load at the moment of moving. |
Thanks. If it helps: extensions such as Tab Mover can move a tab without loading it. |
That is interesting, seeing how both addons run essentially the same code. Mine: browserext-window-merger/background.js Line 86 in b025a48
Tab Mover (background.js lines 35–36): browser.tabs.move(selectedTabs.map(selectedTab => selectedTab.id),
{windowId: targetWindowId, index: -1}); Likely something in the pre- or post-processing I do that triggers tabs to load then. Question: did you see this with just random tabs or with pinned tabs in particular? Pinned tabs cannot be moved without unpinning them and then pinning them again. This is just one type of processing I do that Tab Mover does not do. |
Thanks AFAICT version 0.4.0:
Using Auto Tab Discard for test purposes, to manually discard a tab in a multi-tabbed window, before merging all tabs from that window into a different window. |
Hello ! I am experiencing the same issue. Running After a fresh reboot, I opened firefox When using the "merge all windows into this one" This happens then you wait a long time (5-10 minutes), All browser function appear frozen I tried using Stop All Button addon button, it had no effect the computer gets tired and this happens I tried using LoadTabOnSelect 3, which prevents tabs from loading in the background. It had no effect I also tried an alternative addon Merge Windows, it was much slower to merge the windows and still awoke all the tabs ! |
NOTE : https://github.com/doriantaylor/w3x-taborder Can move large numbers of tabs (many hundreds), without trigger this problem. I have also noticed that the merge window problem of high load, does not always happen, and it more likely to happen when the system is already at high load. Possibly a few tabs get woken up by the move (possibly just one tab per window, but over 20+ windows) and this might trigger a memory saving features which pushes the system over the edge. |
I just checked the code used by the tab reorder add-on, and it uses the exact same code as Window Merger as well as the previously mentioned Tab Mover. Order Tabs by Domain (main.js line 87): let p = browser.tabs.move(id, spec); The only difference between my add-on and the reorder add-on is that tabs are moved between windows. Which may make a difference, but if it does, it seems to be undocumented by Mozilla. We simply use the move API as the browser makes it available. I was really hoping they might be doing something different so I would have had something to go on. If anyone know a good way to track and log tab states, maybe through an additional add-on, I would love to check it out. Another thing that might help is if we can figure out a minimal reproduction case that does not require someone to have 20 windows with 30 tabs each to max out their memory first. It might just be that I need to file a bug with Mozilla, but would like to have a reproduction ready. |
I finally ran into this problem myself. But seemingly only because I am testing out Zen Browser (currently version 1.0.1-a.7) where I saw a bunch of tabs get activated after move. These tabs were discarded by the browser itself, not manually using Discard Tab (GitHub). The usual add-on I use to discard memory heavy tabs. So I am not sure I can emulate the issue even there. Revisiting this also got me to realise that the previously mentioned Order Tabs (GitHub) might be suffering from the same issue. I am guessing that seemingly random trigger of this problem is why @shodanx2 might not have seen it happen (yet). See: |
If tabs are not loaded prior to merge, they should remain not loaded after the merge.
Thanks
The text was updated successfully, but these errors were encountered: