Lusito / forget-me-not

Make the browser forget website data, except for the data you want to keep.
zlib License
227 stars 25 forks source link

Error logged to console when new window is opened #130

Closed rugk closed 5 years ago

rugk commented 5 years ago

During testing my add-on (https://github.com/rugk/mastodon-simplified-federation/issues/14) I noticed your add-on always seems to log some kind of error, when a new popup (window) or tab is opened:

grafik

22:44:22.991 Error: Could not establish connection. Receiving end does not exist. background.js:1:17097

I guess, this is not good… :smile:

I traced it back to your add-on via the URL (and extension ID) shown when you hover over the JS file at the right.

Firefox 65 Linux

Lusito commented 5 years ago

Thanks for the report, but this is nothing to be worried about. When using browser.runtime.sendMessage, it will show an error, if noone received it.

I use this to send "hey, settings updated" or similar to tabs (in this case the extension popup). If the extension popup is not there, it will show an error. I'll make sure the error won't show in the future.

rugk commented 5 years ago

Yeah, it is just annoying for debugging or so. :smile: (especially as that thing also shows when you debug other add-ons)