Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 605
Charles Brandt Avatar asked Jun 29 '18 23:06

Charles Brandt


People also ask

How do I access the clipboard in Firefox?

In order to access stored clipboard items, please open toolbar popup or right-click on an editable area and then choose clipboard manager in the right-click. Then, click on a desired clipboard item; and it will be inserted to the editable filed.


1 Answers

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.

like image 60
planetscape Avatar answered Oct 05 '22 04:10

planetscape