]> git.pld-linux.org Git - packages/firefox.git/blob - firefox-middle_click_paste.patch
up to 88.0.1
[packages/firefox.git] / firefox-middle_click_paste.patch
1 --- firefox-66.0.3/browser/base/content/browser.js.orig 2019-04-22 16:11:47.908683607 +0200
2 +++ firefox-66.0.3/browser/base/content/browser.js      2019-04-22 16:20:26.249208849 +0200
3 @@ -6165,12 +6165,9 @@ function middleMousePaste(event) {
4    }
5  
6    UrlbarUtils.getShortcutOrURIAndPostData(clipboard).then(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        UrlbarUtils.addToUrlbarHistory(data.url, window);
This page took 0.020804 seconds and 3 git commands to generate.