Not always working correctly in version 2.2.1
Before version 2.2.1, the function consistently worked without fail. However, in version 2.2.1, tabs occasionally and randomly open as foreground tabs instead of in the background.
Check the configuration of the options page and list the rules
Like this?:
More info: I'm using Catsxp 4.11.3 (Kernel: 131.0.6778.89).
I've reverted to an older version of the extension for now. I'm just curious if I'm the only one experiencing this issue. If that's the case, I guess I'll need to check if something on my end is causing it.
You are not alone, I'm having the same issue on Chrome 131.0.6778.140, W11.
I've received similar feedback, but I'm unable to reproduce the issue yet.
Could you please check the extension Service Worker logs in the Chrome console?
Could you please check the extension Service Worker logs in the Chrome console?
How do I do that? Do you mean inspecting the background js from chrome://inspect/#service-workers ?
I'll try when it happens next time.
Yes, inspect the background js from chrome://inspect/#service-workers
link may like chrome-extension://dbepggeogbaibhgnhhndojpepiihcmeb/background_scripts/background.js
So here's what I've observed:
- If I kept the inspection opened, the extension would actually keep on working correctly, with logs like
Tab Active ########in the console. - If I then close the inspection and then open it again right away, I can see all the logs are preserved.
- Now, if I close the inspection and continue browsing, the extension will start to stop working randomly after a while. When this happens and I open the inspection again, the logs will all be gone with only
Options loaded Objectand a timestamp of just a few seconds ago.
Extension page showing the service worker as 無法使用 ('unavailable' in English?):
the only log in the console when I open it right after the extension failed to open a tab in the background:
It seems related to Chrome's rules on background service workers. https://stackoverflow.com/questions/66114920/service-worker-registration-failed-chrome-extension.
A new version (v2.2.2) has been submitted today. https://github.com/monque/ChromeExtension-ForceBackgroundTab/commit/d66cd411ee276c937f5341912ecba06b7b09af77
Two suggestions:
- Try updating Chrome to the latest version.
- Update the extension to v2.2.2.
Please let me know if the extension works.
I tried v2.2.2 in dev mode, and unfortunately it still randomly stops working from time to time.
Checking the Service Worker logs right after a tab failing to open in the background would revel the same - only a Options loaded entry in the console, no logs of Tab Active etc.