diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 55aeaec3f8b8..acecd2afa892 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -5559,7 +5559,7 @@ function middleMousePaste(event) { // Strip embedded newlines and surrounding whitespace, to match the URL // bar's behavior (stripsurroundingwhitespace) - clipboard.replace(/\s*\n\s*/g, ""); + clipboard = clipboard.replace(/\s*\n\s*/g, ""); let url = getShortcutOrURI(clipboard); try {