Skip to content

Commit

Permalink
Offer a way to disable tab-reloading at launch on Chromium-based brow…
Browse files Browse the repository at this point in the history
…sers

Related discussion:
- a0a9497#commitcomment-62560291

The behavior could be seen as annoying to some users, and before
this commit there is no way to opt-out of the behavior, introduced
in 1.40.0.

This commit is only intended for Chromium version of uBO, and
setting `suspendTabsUntilReady` to `no` will prevent active tab
reload at launch once filter lists are all loaded.

In next release, there will be a setting in the "Filter lists"
pane to easily control the behavior and `suspendTabsUntilReady`
will be removed.
  • Loading branch information
gorhill committed Jan 1, 2022
1 parent 50ed6b4 commit 84bd5c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/traffic.js
Original file line number Diff line number Diff line change
Expand Up @@ -1150,8 +1150,8 @@ const webRequest = {
// Mitigation: force-reload active tabs for environments not
// supporting suspended network request listeners.
if (
vAPI.net.canSuspend() !== true ||
µb.hiddenSettings.suspendTabsUntilReady === 'no'
vAPI.net.canSuspend() !== true &&
µb.hiddenSettings.suspendTabsUntilReady === 'unset'
) {
const tabs = await vAPI.tabs.query({
active: true,
Expand Down

0 comments on commit 84bd5c1

Please sign in to comment.