Skip to content

Commit

Permalink
Bug 1874200 - Disable the clipboard provider if the clipboard content…
Browse files Browse the repository at this point in the history
…s are too large. r=mak

Differential Revision: https://phabricator.services.mozilla.com/D198288
  • Loading branch information
klubana-m committed Jan 12, 2024
1 parent 33a7cf2 commit 7ee5c5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser/components/urlbar/UrlbarProviderClipboard.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class ProviderClipboard extends UrlbarProvider {
return false;
}
let textFromClipboard = controller.browserWindow.readFromClipboard();
if (!textFromClipboard) {
if (!textFromClipboard || textFromClipboard.length > 2048) {
return false;
}
textFromClipboard =
Expand Down

0 comments on commit 7ee5c5d

Please sign in to comment.