proginosko / LeechBlockNG-chrome

LeechBlock NG (Next Generation) for Chrome is a simple productivity tool designed to block those time-wasting sites that can suck the life out of your working day. All you need to do is specify which sites to block and when to block them.
https://www.proginosko.com/leechblock/
Mozilla Public License 2.0
72 stars 14 forks source link

Version 1.6 not working for some Chrome users #59

Open proginosko opened 7 months ago

proginosko commented 7 months ago

I've received some reports that version 1.6 is not working (at all!) for some Chrome users. I'm creating this issue as a central point for tracking the problem, collecting reports and further info, and generally trying to figure out what's going on.

Background: Version 1.6 updated LeechBlock to use Manifest V3. This was necessary because support for Manifest V2 will be phased out eventually. But it's likely that this update is behind the reported problem. It can probably be fixed, once I figure out exactly what's causing it. However, since I'm not able to reproduce the issue (LeechBlock is working fine on my system: Chrome 119.0.6045.200 on Windows 10) I'm relying on other users to provide information and to test some potential fixes.

If you're experiencing this problem, first make sure that you are using the latest version of Chrome. It is known that there have been problems with the implementation of Manifest V3 in earlier versions of Chrome.

If you're still experiencing the problem with the latest version of Chrome, please post an initial report here. Specify which OS you're using (Windows, MacOS, Linux, etc.). Also, please do the following:

proginosko commented 7 months ago

If you need a temporary workaround, you can revert to an earlier version of LeechBlock (e.g., 1.5.8) by following these steps:

v-ko commented 7 months ago

Interestingly the problem went away on my machine (I'd posted the bug above). I believe it wasn't even after a restart or update or anything. Now in the console i have just

background.js:1 Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
background.js:1 Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
background.js:1 Uncaught (in promise) Error: No tab with id: 0.
background.js:1 Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
background.js:1 Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
background.js:1 Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
background.js:1 Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.

for both the service worker and ticketer. Which is fine I guess, since the messages do not stack every second and the extension is working.

smayer97 commented 5 months ago

Errors posted for #69.

LtFrankDrebin commented 2 months ago

Hello. I have the same issue as the posters above (on the latest Chrome version):

Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist. Context background.js Stack Trace background.js:0 (anonymous function)

It doesn't work in Incognito Mode either. In fact, none of the options function properly as activating the lockdown mode did nothing. Strangely enough, this happens only on my desktop computer with Windows 10. On my laptop with Windows 11, everything is normal, the extension blocks everything as it should.

v-ko commented 2 months ago

For me the problem went away on its own shortly (don't know what fixed it exactly). So maybe try some restarts (extension/bowser/computer), idk