Firefox Zotero Connector bug: “Copy Unproxied URL” fails due to clipboard permission error


Debug ID: D1120775827

=== Issue ===
Copy Unproxied URL from journal page links (not PDFs) fails in Firefox.

=== Environment ===
Firefox 145.0.2,
Zotero Connector 5.0.189beta2, all extension permissions allowed.

=== Debugging Output ===
Console output when selecting “Copy Unproxied URL”:

***
Uncaught (in promise) Error: permissions.request may only be called from a user input handler link moz-extension://f13af334-c12e-477b-b780-067d0afbf1c1/background.js:744_handleContextMenuClick moz-extension://f13af334-c12e-477b-b780-067d0afbf1c1/background.js:772 2**
***

=== Possible Explanation ===
Firefox rejects Zotero Connector’s “Copy Unproxied URL” action because the extension calls permissions.request() for clipboard access after an asynchronous operation, outside the required user-activation context of a context-menu click. Firefox throws permissions.request may only be called from a user input handler, causing the operation to fail silently and no URL to be copied. Debug log D1120775827 confirms that the URLs are derived correctly but the clipboard write fails.
  • edited 24 days ago
    This should be fixed now in Zotero Connector 5.0.193. Thanks.
Sign In or Register to comment.