Bug 607280 - Remove the call to getShortcutOrURI in the contentAreaClick function. r=gavin
authorAbhishek Potnis <abhishekp.bugzilla@gmail.com>
Sun, 04 Nov 2012 19:18:37 +0530
changeset 117804 2a83ad99f062144780878e6058abcf235fb76965
parent 117803 fd7a0ace6b0e5090c8874ddb0db2a85c032859d8
child 117805 0a7a2c6d72de3d278f399d6fe9b43d82cd6be67d
push idunknown
push userunknown
push dateunknown
reviewersgavin
bugs607280
milestone19.0a1
Bug 607280 - Remove the call to getShortcutOrURI in the contentAreaClick function. r=gavin
browser/base/content/browser.js
browser/base/content/test/browser_contentAreaClick.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -5324,21 +5324,17 @@ function contentAreaClick(event, isPanel
         urlSecurityCheck(href, linkNode.ownerDocument.nodePrincipal);
       }
       catch(ex) {
         // Prevent loading unsecure destinations.
         event.preventDefault();
         return;
       }
 
-      let postData = {};
-      let url = getShortcutOrURI(href, postData);
-      if (!url)
-        return;
-      loadURI(url, null, postData.value, false);
+      loadURI(href, null, null, false);
       event.preventDefault();
       return;
     }
 
     if (linkNode.getAttribute("rel") == "sidebar") {
       // This is the Opera convention for a special link that, when clicked,
       // allows to add a sidebar panel.  The link's title attribute contains
       // the title that should be used for the sidebar panel.
--- a/browser/base/content/test/browser_contentAreaClick.js
+++ b/browser/base/content/test/browser_contentAreaClick.js
@@ -108,17 +108,17 @@ let gTests = [
   },
 
   {
     desc: "Panel click",
     setup: function() {},
     clean: function() {},
     event: {},
     targets: [ "panellink" ],
-    expectedInvokedMethods: [ "urlSecurityCheck", "getShortcutOrURI", "loadURI" ],
+    expectedInvokedMethods: [ "urlSecurityCheck", "loadURI" ],
     preventDefault: true,
   },
 
   {
     desc: "Simple middle click opentab",
     setup: function() {},
     clean: function() {},
     event: { button: 1 },