]> git.pld-linux.org Git - packages/firefox.git/blob - firefox-middle_click_paste.patch
- back to Firefox name, obsolete Iceweasel
[packages/firefox.git] / firefox-middle_click_paste.patch
1 --- iceweasel-13.0/mozilla/browser/base/content/browser.js.orig 2012-06-06 11:12:17.021562264 +0200
2 +++ iceweasel-13.0/mozilla/browser/base/content/browser.js      2012-06-06 11:21:37.000000000 +0200
3 @@ -5110,12 +5110,9 @@ function middleMousePaste(event) {
4    }
5  
6    getShortcutOrURIAndPostData(clipboard, data => {
7 -    try {
8 -      makeURI(data.url);
9 -    } catch (ex) {
10 -      // Not a valid URI.
11 -      return;
12 -    }
13 +    var URIFixup = Components.classes["@mozilla.org/docshell/urifixup;1"].getService(Components.interfaces.nsIURIFixup);
14 +    data.url = URIFixup.createFixupURI(data.url, 1).spec;
15 +    // 1 is FIXUP_FLAG_ALLOW_KEYWORD_LOOKUP
16  
17      try {
18        addToUrlbarHistory(data.url);
19
This page took 0.057627 seconds and 4 git commands to generate.