Bug 607280 - Remove the call to getShortcutOrURI in the contentAreaClick function. r=gavin
--- 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 },