+2

Restoring a closed window or tab fails when window/tab is 50% outside the visible screen space

dharmaturtle 3 lat temu zaktualizowano 2 lat temu 2

I use a 4k monitor with my laptop. Sometimes I "suspend" a chrome window while it's maximized on my 4k screen. I then disconnect the monitor (e.g. I'm at the dinner table) and try to restore the window. It fails. The following error appears in chrome://extensions/?errors=eggkanocgddhmamlbiijnphhppkpkmkl

Unchecked runtime.lastError: Invalid value for bounds. Bounds must be at least 50% within visible screen space.

This error is due to a change in Chrome (git commit as of Mar 29 2022): https://chromium.googlesource.com/chromium/src/+/d51682b36adc22496f45a8111358a8bb30914534%5E%21/

Workaround: in Tabs Outliner's options, uncheck "Restore saved windows in the original position and size."

+1

Some more programming details, it causes the `window.chrome.windows.create` on line 512 of `treemodel.js` to fail. In particular, `newWindow_chromeWindowObj` is null (because the window failed to be created due to being out of bounds).

+1

The workaround sometimes fails - not sure why yet.