up to 55.0.3
[packages/firefox.git] / firefox-middle_click_paste.patch
1 diff -ruNp firefox-45.0.2.orig/browser/base/content/browser.js firefox-45.0.2/browser/base/content/browser.js
2 --- firefox-45.0.2.orig/browser/base/content/browser.js 2016-04-08 01:54:45.000000000 +0200
3 +++ firefox-45.0.2/browser/base/content/browser.js      2016-04-24 04:35:13.146499537 +0200
4 @@ -5646,12 +5646,9 @@ function middleMousePaste(event) {
5    }
6  
7    getShortcutOrURIAndPostData(clipboard).then(data => {
8 -    try {
9 -      makeURI(data.url);
10 -    } catch (ex) {
11 -      // Not a valid URI.
12 -      return;
13 -    }
14 +    var URIFixup = Components.classes["@mozilla.org/docshell/urifixup;1"].getService(Components.interfaces.nsIURIFixup);
15 +    data.url = URIFixup.createFixupURI(data.url, 1).spec;
16 +    // 1 is FIXUP_FLAG_ALLOW_KEYWORD_LOOKUP
17  
18      try {
19        addToUrlbarHistory(data.url);
This page took 0.072945 seconds and 3 git commands to generate.