webscrapbook icon indicating copy to clipboard operation
webscrapbook copied to clipboard

Copy info doesn't work in Firefox unless `dom.event.clipboardevents.enabled` is set to `true`

Open grotesque opened this issue 2 years ago • 12 comments

  1. it doesn't copy anything for me

grotesque avatar Jan 10 '23 13:01 grotesque

Please provide clear steps to reproduce the problem.

danny0838 avatar Jan 10 '23 13:01 danny0838

Hi Danny, I'm using python server backend. I right click a saved webpage in sidebar select copy info. Nothing is copied to clipboard. The "Copy info format" in settings is set to %url%

grotesque avatar Jan 10 '23 14:01 grotesque

What is the URL of the item you right click on?

danny0838 avatar Jan 10 '23 14:01 danny0838

https://itsfoss.com/librewolf-vs-firefox/

grotesque avatar Jan 10 '23 14:01 grotesque

Can you provide a minimal copy of scrapbook with the item that can reproduce the issue?

danny0838 avatar Jan 10 '23 14:01 danny0838

timepass.zip I've removed "personal" and "work" scrapbooks.

grotesque avatar Jan 10 '23 14:01 grotesque

Did the above attachment work?

grotesque avatar Jan 11 '23 10:01 grotesque

I cannot reproduce the problem. Copy info on the item gets http://localhost:8080/timepass/20230110134852538.maff, which is as expected of %url%.

What is the version of your browser, WSB, and PyWSB?

danny0838 avatar Jan 11 '23 14:01 danny0838

I figured it out. I had toggled "dom.event.clipboardevents.enabled" as per https://lifehacker.com/enable-copy-paste-in-web-pages-that-disallow-it-with-a-1601848114 this helps stop website who disable copy/paste functionality(why?) not do it.

Maybe you can make the addon work with

grotesque avatar Jan 12 '23 12:01 grotesque

So you are using Firefox and had dom.event.clipboardevents.enabled set to false? And it works after toggling it to true?

danny0838 avatar Jan 12 '23 13:01 danny0838

Yes.

grotesque avatar Jan 13 '23 07:01 grotesque

It seems that clipboard is by default not allowed in the extension context. There seems to be many technical issues to implement full support, though.

danny0838 avatar Jan 13 '23 16:01 danny0838