Bug 438526 - Opening links with target="_search" in the sidebar is broken, no longer supported by IE, and should be removed, r=mconnor

This commit is contained in:
Phil Ringnalda 2008-06-14 15:43:20 -07:00
parent ed1fb00196
commit 5b20afbd06

View File

@ -4809,26 +4809,6 @@ function asyncOpenWebPanel(event)
event.preventDefault();
return false;
}
else if (target == "_search") {
// Used in WinIE as a way of transiently loading pages in a sidebar. We
// mimic that WinIE functionality here and also load the page transiently.
// DISALLOW_INHERIT_PRINCIPAL is used here in order to also
// block javascript and data: links targeting the sidebar.
try {
const nsIScriptSecurityMan = Ci.nsIScriptSecurityManager;
urlSecurityCheck(wrapper.href,
wrapper.ownerDocument.nodePrincipal,
nsIScriptSecurityMan.DISALLOW_INHERIT_PRINCIPAL);
}
catch(ex) {
return false;
}
openWebPanel(gNavigatorBundle.getString("webPanels"), wrapper.href);
event.preventDefault();
return false;
}
}
else {
handleLinkClick(event, wrapper.href, linkNode);