You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Paste fails on Firefox due to asynchronous clipboard read (NotAllowedError) #919
When attempting to paste text or content into the Logseq web app on Firefox, the paste operation fails, and the following error is thrown in the developer console: DOMException NotAllowedError: Clipboard read operation is not allowed.
This issue occurs because Logseq attempts to read the clipboard asynchronously (e.g., using navigator.clipboard.read or readText) after the initial paste event. Firefox has a strict security policy that blocks any asynchronous clipboard read operations unless a specific development flag (dom.events.testing.asyncClipboard) is enabled in about:config, which is insecure for daily use.
Unlike Logseq, most other web apps (like Notion, GitHub, etc.) handle pasting successfully on Firefox because they extract the clipboard data synchronously within the native paste event handler.
Click on a block in Logseq and press Ctrl + V (or Cmd + V on macOS) to paste.
Notice that nothing is pasted into the block.
Open the browser's Developer Tools (F12) -> Console, and you will see the NotAllowedError: Clipboard read operation is not allowed. error.
Expected Behavior
Pasting should work seamlessly on Firefox without requiring users to change risky about:config settings.
To resolve this fundamentally, Logseq should be updated to extract clipboard data synchronously within the paste event handler using e.clipboardData.getData('text/plain') (and 'text/html'), rather than requesting it asynchronously later via the Clipboard API.
Fixed in logseq/logseq#13892 (fix(clipboard): copy, cut and paste keep working when Firefox refuses a clipboard call). Its description has the cause and the test that pins it; it fails on current master and passes with the fix.
Activity
yuxi-liu-wired commentedon Oct 27, 2026
Fixed in logseq/logseq#13892 (fix(clipboard): copy, cut and paste keep working when Firefox refuses a clipboard call). Its description has the cause and the test that pins it; it fails on current master and passes with the fix.
fix(paste): paste text in Firefox when reading the clipboard is refused
fix(paste): paste text in Firefox when reading the clipboard is refused
fix(paste): paste text in Firefox when reading the clipboard is refused
fix(paste): paste text in Firefox when reading the clipboard is refused
fix(paste): paste text in Firefox when reading the clipboard is refused
fix(paste): paste text in Firefox when reading the clipboard is refused
fix(paste): paste text in Firefox when reading the clipboard is refused
fix(paste): paste text in Firefox when reading the clipboard is refused
fix(paste): paste text in Firefox when reading the clipboard is refused
fix(paste): paste text in Firefox when reading the clipboard is refused
fix(paste): paste text in Firefox when reading the clipboard is refused
fix(paste): paste text in Firefox when reading the clipboard is refused
test(paste): the Firefox paste test stubs a real edit input
fix(paste): paste text in Firefox when reading the clipboard is refused
16 remaining items
test(paste): the Firefox paste test stubs a real edit input
fix(paste): paste text in Firefox when reading the clipboard is refused
test(paste): the Firefox paste test stubs a real edit input
fix(paste): paste text in Firefox when reading the clipboard is refused
test(paste): the Firefox paste test stubs a real edit input
fix(paste): paste text in Firefox when reading the clipboard is refused
test(paste): the Firefox paste test stubs a real edit input
fix(paste): paste text in Firefox when reading the clipboard is refused
test(paste): the Firefox paste test stubs a real edit input
fix(paste): paste text in Firefox when reading the clipboard is refused
test(paste): the Firefox paste test stubs a real edit input
fix(paste): paste text in Firefox when reading the clipboard is refused
test(paste): the Firefox paste test stubs a real edit input
fix(paste): paste text in Firefox when reading the clipboard is refused
test(paste): the Firefox paste test stubs a real edit input