Open merlerm opened 1 year ago
Thanks for the stack trace, I know how to add a workaround for this issue. However, I would also like to fix the underlying bug. I was not able to reproduce this bug, so could you please clarify how you reproduce this issue? Perhaps, you could record a video?
Re-opened because I would like to figure the real reason for this bug.
Hm, I'm not sure how to reproduce since I'm not entirely sure how it happened myself - I suspect the extension stopped working after updates since I haven't changed much myself. I've tested removing every other extension and the issues persist, but I've noticed it's working as intended in incognito mode. Is there any logs or other useful information I could provide?
Is there any logs or other useful information I could provide?
Yes, there is.
In short: if you don't mind, please open browser with a few tabs which you would not consider private and then run a command to query data about them. Specifically:
chrome.tabs.query({}, (t) => console.log(JSON.stringify(t, null, 2)))
Long explanation: the underlying issue is in the way we find the currently active tab (which filter we apply). Despite decade of browser API engineering, it is still notoriously buggy task. We already have three different filter fall-backs for various cases, but it appears there is one more case we have to handle.
Sorry this took a while. I noticed that this might be related to Opera's "workspace" feature (which are basically groups of tabs one can switch between), since in a new browser window the extension seems to work in some workspaces and not in others. I've tried narrowing down a specific tab I had open but with no success. Running the line you posted in the console fails (in any workspace, both in my current browser and a new window), with
VM309:1 Uncaught TypeError: Cannot read properties of undefined (reading 'query')
at <anonymous>:1:13
(anonymous) @ VM309:1
It would appear chrome.tabs is somehow undefined? It's worth noting that this also fails in a workspace where the extension works
Prerequisites
Bug Description
Hello, I've been using the extension on Opera for years now without any issues, until it stopped working recently (possibly after an update, but I'm not certain). Opening the extension tab just results in it getting stuck on "Loading, please wait". This is on every website and persists after reinstalling. This is the console error log from chrome://extensions/
I'm on Opera Version:97.0.4719.28
Website Address
Any website
Steps To Reproduce
Expected Behavior
Extension activates and darkens websites.
Actual Behavior
Extension gets stuck on "Loading, please wait" and/or doesn't darken websites, keybindings don't work.
Screenshots
No response
Operating System
Manjaro Linux (KDE 5.26.5)
Web Browser name and version
Opera Version:97.0.4719.28
Dark Reader version
4.9.62
Additional Context
No response