- rel 1
[packages/firefox.git] / firefox-middle_click_paste.patch
CommitLineData
96ef4151
JB
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
08ccc3c5
JB
3@@ -5110,12 +5110,9 @@ function middleMousePaste(event) {
4 }
96ef4151 5
08ccc3c5 6 getShortcutOrURIAndPostData(clipboard, 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
JB
17 try {
18 addToUrlbarHistory(data.url);
19
This page took 0.029305 seconds and 4 git commands to generate.