rNeomy / auto-tab-discard

Use native tab discarding method to automatically reduce memory usage of inactive tabs
https://webextension.org/listing/tab-discard.html
Mozilla Public License 2.0
888 stars 76 forks source link

Discarded tab loses focus on the web content #298

Open knoajp opened 2 years ago

knoajp commented 2 years ago

How to reproduce in Chrome on Mac:

  1. Set the "Discard inactive tabs" after [1] minutes for reproducing the issue easily.
  2. Open some tabs.
  3. Wait 1 minute.
  4. Switch to one of the discarded tabs.
  5. The tab will automatically reload the web content.
  6. Just after the tab reloads, you can't manipulate the web content with the keyboard. (such as Up/Down/Tab, or any keyboard shortcuts of YouTube videos)
  7. If you intentionally click somewhere on the web page, or switch to another tab and come back to the tab already reloaded and not discarded yet, now you can manipulate the web content with the keyboard.
rNeomy commented 1 year ago

It seems like a Chrome bug. I could not find how to fix this from the extension side. Since this happens from chrome://discards/, you can report it to https://bugs.chromium.org/p/chromium/issues/list

knoajp commented 1 year ago

Thank you. I have reported this issue as a comment on an existing Chromium issue. https://bugs.chromium.org/p/chromium/issues/detail?id=998458