GeezerVison is showing github.com — v1.6.0: keep awake holds off browser discarding, why a tab is still a… · ml3dev/drowzy@e76a5e2
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: CHANGELOG.md +42Lines changed: 42 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 |
| 3 | 3 | All notable changes to Drowzy are documented here. | 4 | 4 |
| | 5 | +## [1.6.0] - 2026-10-12 | | 6 | + | | 7 | +Stability, compatibility and clarity. Keep this tab awake now also holds off the browser's own Memory Saver, the tab list says why an overdue tab is still awake, Opera and Opera GX get a gentler startup after a crash report, Close duplicate tabs stops closing tabs that are not duplicates, sessions can be imported and Replace asks before closing a window, and an old memory claim is gone from 56 translations. No new permissions, no telemetry, and the native `chrome.tabs.discard` approach is unchanged. In Chrome and every non-Opera browser, which tabs get suspended and when is exactly what it was in 1.5.0. | | 8 | + | | 9 | +### Fixed | | 10 | +- **Close duplicate tabs closed tabs that were not duplicates.** It lowercased the whole address and dropped the fragment before comparing, so two Gmail messages (`#inbox` vs `#inbox/abc`), two pages of a hash-routed app, or two case-sensitive ids counted as one page and all but one were closed, with no undo in Drowzy. A new `duplicateKey` compares the address as is, with only the scheme and host case-insensitive and a bare trailing slash ignored. A tab playing sound is never closed now, alongside pinned tabs. | | 11 | +- **Form protection could miss unsaved input right after an update.** `formcheck.js` guarded against double injection with a plain `window._drowzyFormcheckLoaded = true`. If a copy left behind by the previous version still holds that flag, the new copy exits early, the old one can no longer answer, and the check came back as "clean" until the tab reloaded. The guard is now keyed to the extension version. | | 12 | +- **One bad whitelist value could stop everything.** `getSettings` called `toLowerCase()` on every stored entry, so a single non-string in synced storage threw on every suspend path, the popup and the startup sweep. Non-string entries are now skipped. | | 13 | +- **Restoring a session in Replace mode could show Chrome's raw English error.** The failure toast now uses the translated "Failed to restore". | | 14 | + | | 15 | +### Added | | 16 | +- **Keep this tab awake also holds off the browser's own discarding.** Chrome's Memory Saver (and Opera's tab snoozing) could still sleep a held tab under memory pressure, which reads as Drowzy ignoring the hold. Holding a tab now sets `autoDiscardable: false` on it (`setBrowserAutoDiscard`), Allow sleep sets it back to `true`, and the flag is re-applied when a held tab's id is swapped (`onReplaced`). The flag only affects the browser's automatic discards, not `chrome.tabs.discard`, the page or its address, and the browser resets it when the tab closes or the browser restarts, the same lifetime as the hold. | | 17 | +- **Why an overdue tab is still awake.** The per-minute pass now remembers, in memory, why it last left a due tab awake (`_autoRefusals`: unsaved input, or still loading), and `getTabList` returns it as `waitReason`. The list shows an "Unsaved" or "Loading" badge with an explanation in place of a "soon" that never ended. Entries expire after 3 minutes and are cleared on activation, close and a successful suspend. Reporting only: nothing here feeds back into whether a tab is suspended. | | 18 | +- **"Auto-suspend is off" line** above the tab list when the timer is on Never or auto-suspend is switched off, with a link to the timer setting. | | 19 | +- **Session import.** A new button next to "Copy all sessions" reads that JSON back from the clipboard. `importSessions` rebuilds every session field by field: only http and https tabs are kept, names and titles are capped strings, group colours must be ones Chrome knows, stored favicon URLs are dropped (icons come from the browser's cache), sessions already saved (same id or same list of addresses) are skipped, and the 20-session limit still applies. | | 20 | +- **Open in side panel** button in the popup header, shown only where `chrome.sidePanel.open` exists. | | 21 | + | | 22 | +### Changed | | 23 | +- **Opera and Opera GX: gentler automatic suspending.** Issue #3 reports Opera GX crashing within about a minute of opening with Drowzy enabled (around 20 tabs, 15 minute timer) and not crashing without it. We could not reproduce it, and the cause is not confirmed. The one heavy thing Drowzy does in that window is `chrome.tabs.discard`: the startup catch-up sweep works through every restored tab the user has not looked at, some never loaded, and the first per-minute pass can follow with a batch four at a time, because restored tabs keep their old last-used times. In Opera only (`IS_OPERA`, from `navigator.userAgentData` brands or `OPR/` in the user agent): | | 24 | + - no automatic discards for the first 3 minutes after the browser starts (`OPERA_STARTUP_GRACE_MS`, counted from `onStartup` via `browserStartedAt` in session storage); restore tags are kept and the per-minute tick sweeps them afterwards | | 25 | + - one discard at a time (`SUSPEND_CONCURRENCY` is 1) with a 400 ms pause after each (`OPERA_DISCARD_GAP_MS`), in the per-minute pass, the startup sweep and Suspend Others | | 26 | + - tabs that have never loaded (`status: 'unloaded'`) are skipped by the automatic paths, since they hold no page in memory; manual Suspend Others is unchanged apart from the pacing | | 27 | +- **Whitelist import reads space-separated lists** (a column pasted from a spreadsheet, `a.com b.com`), says "All of these sites are already in your whitelist" instead of "Imported 0 new site(s)", and appends how many lines were not recognized. | | 28 | +- **Opera: never-loaded tabs show "Not loaded"** in the list instead of a countdown, since the automatic paths now leave them alone. | | 29 | +- **Replace asks for a second click.** It closes every tab in the window, pinned ones included, and a single stray click was enough. It now confirms the way Delete does. | | 30 | +- **Session restore says when it fell short.** Open mode reports "Restored 8 of 10 tabs" when some pages could not be opened, and a restore that opened nothing reports a failure instead of "Restored 0 tabs". | | 31 | +- **The lifetime memory stat is labelled as an estimate.** "Lifetime RAM saved" multiplied every suspend ever by 150 MB, so a tab slept a hundred times counted a hundred times; it now reads "Memory freed over time (est.)", next to the existing tooltip that explains the running total. | | 32 | +- **The review banner stops after a second "Maybe later".** It used to come back every 14 days for good. | | 33 | +- **System pages in Opera and Vivaldi** (`opera://`, `vivaldi://`) get the lock icon in the tab list instead of a letter. | | 34 | + | | 35 | +### i18n | | 36 | +- `featureZeroRam` on the welcome page still said suspended tabs use "zero RAM" (or "no RAM") in 56 of 57 locales, including `en_GB` and `en_US`, which most English users actually see; only `en` had been corrected. The bold part now says they release most of their memory, with the rest of each sentence untouched. | | 37 | +- The idle timer in the tab list used a hardcoded `m` (`12m`). It now uses `minutesLeftShort` with each language's own abbreviation. | | 38 | +- New keys across all 57 locales: `minutesLeftShort`, `importAllExisting`, `importSkippedInvalid`, `changelog160Title1` to `changelog160Title3`, `changelog160Desc1` to `changelog160Desc3`. `changelog160Title5` reuses each locale's existing `changelog150Title5`. | | 39 | +- Four messages no longer say "Chrome" to people using another browser: `suspendFailedGeneric`, `cantSuspendNoOtherTab`, `shortcutsHint` and `whitelistFull` now say "your browser" (or the browser), in all 57 locales. | | 40 | +- New keys across all 57 locales: `badgeUnsavedInput`, `badgeStillLoading`, `badgeNotLoaded`, `waitUnsavedInputHint`, `waitStillLoadingHint`, `waitNotLoadedHint`, `autoSuspendOffNotice`, `restoredSomeTabs`, `confirmReplaceTitle`, `importSessionsTitle`, `importedSessions`, `noSessionsToImport`, `sessionsAlreadySaved`, `openSidePanel`, `sidePanelUnavailable`, and `changelog160Title4`, `changelog160Desc4`, `changelog160Title5`, `changelog160Desc5`. Labels quoted inside the new strings (Protect tabs with forms, Settings, Replace) use each locale's own existing translation. | | 41 | +- What's New gets a five-item 1.6.0 section and 1.5.0 collapses like the releases before it. 1.6.0 is not in `SHOW_CHANGELOG_VERSIONS`, so the page does not open by itself after this update. | | 42 | + | | 43 | +### Docs | | 44 | +- Website: canonical, Open Graph, sitemap and 404 links point at drowzyextension.com (the old address already redirects there); the FAQ says Keep this tab awake also holds off Memory Saver and gains a browser support answer; the sessions and Close duplicate tabs cards match the new behaviour. `UNINSTALL_URL` stays on github.io, which redirects. | | 45 | +- README: browser support section, and keyboard shortcuts list the real per-platform defaults (Windows is `Alt+Shift+P` / `Alt+Shift+O`, not `Alt+S` / `Alt+W`), Close duplicate tabs describes the new rule, and "no idle CPU usage" is replaced with what is actually true. | | 46 | + | 5 | 47 | ## [1.5.0] - 2026-09-02 | 6 | 48 |
| 7 | 49 | Speed fixes for people with a lot of tabs, based on a store review and a GitHub issue. The popup opens right away with many tabs open, Suspend Others runs several tabs at a time and reports what it skipped, the timer can be set to 1 minute, and the Keyboard shortcuts row points to where Chrome lets you change them. No new permissions, no telemetry, and the native `chrome.tabs.discard` approach is unchanged. | |
Collapse file Copy file name to clipboardExpand all lines: README.md +13-9Lines changed: 13 additions & 9 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -53,26 +53,30 @@ On top of that, Drowzy is fully open source, collects zero data, and runs entire | 53 | 53 | ### Core | 54 | 54 | - **Auto-suspend** inactive tabs after a configurable timer (1 min - 4 hours, or manual only) | 55 | 55 | - **Smart protection** - pinned, audio-playing, and whitelisted tabs are skipped by default; the pinned and audio protections are toggles you can turn off if you want those tabs to sleep too. Optional form-data protection also skips tabs with unsaved input (off by default, requires granting page access) | 56 | | -- **Keep this tab awake** - hold a single tab awake without whitelisting the whole site. Nothing in Drowzy will sleep it until you press "Allow sleep" or close the tab; the hold clears when you restart your browser | 57 | | -- **Tells you why** - when a tab can't sleep, Drowzy says which protection is stopping it and links straight to the setting that would change it, instead of quietly hiding the button | | 56 | +- **Keep this tab awake** - hold a single tab awake without whitelisting the whole site. Nothing in Drowzy will sleep it until you press "Allow sleep" or close the tab, and the hold also tells Chrome's own Memory Saver to leave it alone; the hold clears when you restart your browser | | 57 | +- **Tells you why** - when a tab can't sleep, Drowzy says which protection is stopping it and links straight to the setting that would change it, instead of quietly hiding the button. Tabs that are due but held back by unsaved input or a slow load say so in the list, and a line above the list says when auto-suspend is off | 58 | 58 | - **Whitelist** sites with pattern matching and wildcards (e.g., `github.com/ml3dev/*`) | 59 | | -- **Keyboard shortcuts** - `Alt+S` suspend current, `Alt+Shift+S` suspend others, `Alt+W` wake all | | 59 | +- **Keyboard shortcuts** - suspend current, suspend others and wake all. Defaults are `Alt+Shift+P`, `Alt+Shift+S` and `Alt+Shift+O` on Windows, `Alt+S`, `Alt+Shift+S` and `Alt+W` elsewhere; change or clear them at `chrome://extensions/shortcuts` | 60 | 60 | - **Context menu** - right-click any page for quick suspend options | 61 | 61 |
| 62 | 62 | ### Sessions & Organization | 63 | 63 | - **Save and restore sessions** - bookmark your entire window state and reopen it later | 64 | | -- **Close duplicate tabs** - one click to deduplicate your window | | 64 | +- **Close duplicate tabs** - one click closes tabs with exactly the same address; pinned tabs and tabs playing sound are kept | 65 | 65 | - **Tab search** - filter your tab list by title or URL | 66 | | -- **Export** - copy your tab list or sessions as JSON for backup | | 66 | +- **Export and import** - copy your tab list, or copy sessions as JSON and paste them back on another computer; Replace asks for a second click before it closes the current window's tabs | 67 | 67 |
| 68 | 68 | ### Polish | 69 | 69 | - **Dark and light theme** - toggle in the header, preference is saved | 70 | | -- **Side panel** - pin Drowzy to Chrome's side panel for a persistent full-height view | | 70 | +- **Side panel** - open Drowzy in Chrome's side panel from the popup header for a persistent full-height view | 71 | 71 | - **50+ languages** - UI automatically matches your browser language | 72 | 72 | - **Suspend indicator** - optional `[zzz]` prefix on suspended tab titles (requires granting page access) | 73 | 73 | - **Suspend warning** - optional on-page notice before a tab is auto-suspended (requires granting page access) | 74 | | -- **Stats dashboard** - track how many tabs you've suspended and how much memory you've saved | 75 | | -- **Review prompt** - a gentle, dismissable nudge that only appears after about a week of real use, with "Maybe later" and "Don't ask again" options (never on install, never pushy) | | 74 | +- **Stats dashboard** - track how many tabs you've suspended and an estimate of the memory freed over time | | 75 | +- **Review prompt** - a gentle, dismissable nudge that only appears after about a week of real use, with "Maybe later" and "Don't ask again" options (never on install, and a second "Maybe later" is taken as a no) | | 76 | + | | 77 | +## Browser support | | 78 | + | | 79 | +Drowzy is built and tested for Chrome (version 120 or later). Other Chromium browsers such as Edge, Brave, Opera and Vivaldi can install it from the Chrome Web Store and the basics work the same way, though each adds its own tab features on top. In Opera and Opera GX, the automatic paths are gentler: nothing is suspended for the first 3 minutes after the browser starts, tabs are suspended one at a time, and tabs that were restored but never loaded are left to the browser. The side panel button only appears in browsers that support Chrome's side panel. | 76 | 80 |
| 77 | 81 | ## How It Works | 78 | 82 |
| @@ -87,7 +91,7 @@ Tab inactive for 15 min ──> Drowzy calls chrome.tabs.discard() | 87 | 91 | User clicks tab ──> Chrome reloads it | 88 | 92 | ``` | 89 | 93 |
| 90 | | -Drowzy runs a lightweight alarm every 60 seconds. It checks each tab's last-active timestamp and suspends any that exceed your chosen threshold. The active tab, whitelisted sites and tabs you keep awake are always skipped; pinned tabs, audio tabs and tabs with unsaved form input are skipped while those protections are on. That's it - no background pages, no content scripts running on every page, no idle CPU usage. | | 94 | +Drowzy runs a lightweight alarm every 60 seconds. It checks each tab's last-active timestamp and suspends any that exceed your chosen threshold. The active tab, whitelisted sites and tabs you keep awake are always skipped; pinned tabs, audio tabs and tabs with unsaved form input are skipped while those protections are on. That's it - no background pages and no content scripts running on every page; between checks Drowzy does nothing. | 91 | 95 |
| 92 | 96 | ## Permissions | 93 | 97 |
| |
|