BlackGlory / copycat

🌳 Copy content from web powerful than ever before.
https://chrome.google.com/webstore/detail/jdjbiojkklnaeoanimopafmnmhldejbg
MIT License
266 stars 35 forks source link

Missing context menu #48

Closed maxkolenko closed 11 months ago

maxkolenko commented 1 year ago

Context menu is missing until the extension is toggled off and on again in Firefox 114.0.2 on Windows. This behavior has been observed for several months already.

BlackGlory commented 1 year ago

Consider that Copycat's context menu has been working correctly for at least two years (the last version of Firefox was released 3 years ago) and has always worked correctly in Chrome. I can only think this is a Firefox bug, and I'm afraid there is no non-hack way to fix it.

Here's the code related to the context menu: https://github.com/BlackGlory/copycat/blob/7c7a865ad7b7125c25ef653a4ff95ce204bb95ca/src/background/index.ts#L68-L79

maxkolenko commented 11 months ago

I've moved to MacOS with Firefox 119 and the issue is there as well. I understand that there're Firefox bugs but other extensions somehow manage to show consistently their entries in the contex menu. I hope there's a solution for this issue in this great extension. I've tried to move to alternative extensions but Copycat is the best.

BlackGlory commented 11 months ago

Just tried to solve this problem and sadly found that debugging the relevant behavior of the extension is not possible in the latest version of Firefox:

Years later, Firefox extension development experience is still the worst, I guess I can only debug by submitting a new version (very stupid), I don't want to continue wasting time on this.

BlackGlory commented 11 months ago

So I haven't given up yet. It took me 20 minutes to figure out how to sign my extension without submitting a new version.

I think the problem might be related to https://github.com/BlackGlory/copycat/blob/7c7a865ad7b7125c25ef653a4ff95ce204bb95ca/src/manifest.json#L62

BlackGlory commented 11 months ago

v2.4.6 has just been released, which should solve this problem.