How do I enable copy to clipboard in Firefox on Linux?

7

I released a new version of a firefox webextension, Copy All Tabs last night. The code is open source and available on github.

The new version fixes many bugs and is overall more stable. It works as expected on Windows and Mac (Firefox 61).

However, when I was testing on Linux (both Firefox 60 and 61), the "Copy Tabs" function fails.

https://www.google.com/search?q=Component+returned+failure+code&ie=utf-8&oe=utf-8&client=firefox-b-1-ab

Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE)

The function that fails on Linux is located in this file: https://github.com/charlesbrandt/copy_all_tabs/blob/master/ff-web_extension/background.js

The major shift was moving the copy and paste functions from a content script that was injected into the active tab's page to the background.js file. The content script approach was failing for Firefox specific pages (e.g. about:debugging) for security reasons.

Given the discrepancy, I'm inclined to think it has something to do with Firefox, but if it's a problem in the webextension I'd be happy to fix it.

If this is a bug in firefox, what is the best way to report it?

Alternatively, does anyone have a suggestion for how modify the extension so that it works effectively on all platforms?

Update: I followed @Dexter's advice and filed a bug in Bugzilla:

https://bugzilla.mozilla.org/show_bug.cgi?id=1473780

Since that time, the plugin eventually started working in newer versions of the browser.

javascript
firefox
firefox-addon
firefox-webextensions
asked on Stack Overflow Jun 29, 2018 by Charles Brandt • edited Mar 13, 2019 by Charles Brandt

1 Answer

0

I do NOT know if this might be your issue, but here goes.

Recently switched from Windows to Pop! OS (derived from Ubuntu/GNOME). Had problems with certain Firefox Browser Extensions, specifically those enabling the copying of links from webpages and subsequent pasting them into, say, GVim.

UNTIL I followed the instructions here:

How to Customize the GNOME Shell in Ubuntu Using Extensions https://www.makeuseof.com/tag/customize-gnome-shell-extensions/

WRT installing GNOME Tweak, GNOME Shell Extensions, and Shell Extensions for Firefox.

I would suggest you try this and see if it helps. I hope it does.

answered on Stack Overflow Sep 23, 2018 by planetscape

User contributions licensed under CC BY-SA 3.0