]> git.pld-linux.org Git - packages/firefox.git/blob - mozilla-firefox-middle_click_paste.patch
- up to 25.0
[packages/firefox.git] / mozilla-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 @@ -5231,12 +5231,9 @@
4  
5    Task.spawn(function() {
6      let data = yield getShortcutOrURIAndPostData(clipboard);
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.02094 seconds and 3 git commands to generate.