]> git.pld-linux.org Git - packages/firefox.git/blobdiff - firefox-middle_click_paste.patch
- back to Firefox name, obsolete Iceweasel
[packages/firefox.git] / firefox-middle_click_paste.patch
diff --git a/firefox-middle_click_paste.patch b/firefox-middle_click_paste.patch
new file mode 100644 (file)
index 0000000..14fc91a
--- /dev/null
@@ -0,0 +1,19 @@
+--- iceweasel-13.0/mozilla/browser/base/content/browser.js.orig        2012-06-06 11:12:17.021562264 +0200
++++ iceweasel-13.0/mozilla/browser/base/content/browser.js     2012-06-06 11:21:37.000000000 +0200
+@@ -5110,12 +5110,9 @@ function middleMousePaste(event) {
+   }
+   getShortcutOrURIAndPostData(clipboard, data => {
+-    try {
+-      makeURI(data.url);
+-    } catch (ex) {
+-      // Not a valid URI.
+-      return;
+-    }
++    var URIFixup = Components.classes["@mozilla.org/docshell/urifixup;1"].getService(Components.interfaces.nsIURIFixup);
++    data.url = URIFixup.createFixupURI(data.url, 1).spec;
++    // 1 is FIXUP_FLAG_ALLOW_KEYWORD_LOOKUP
+     try {
+       addToUrlbarHistory(data.url);
+
This page took 0.085554 seconds and 4 git commands to generate.