]> git.pld-linux.org Git - packages/firefox.git/blame - firefox-middle_click_paste.patch
- fetch 93.0 sources
[packages/firefox.git] / firefox-middle_click_paste.patch
CommitLineData
8f587d77
JB
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) {
08ccc3c5 4 }
96ef4151 5
8f587d77 6 UrlbarUtils.getShortcutOrURIAndPostData(clipboard).then(data => {
c5cd9be2
JB
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
96ef4151 16
c5cd9be2 17 try {
8f587d77 18 UrlbarUtils.addToUrlbarHistory(data.url, window);
This page took 0.035889 seconds and 4 git commands to generate.