From 5b20afbd06f981fbed7f01ea1e5ed8ee71b4343e Mon Sep 17 00:00:00 2001 From: Phil Ringnalda Date: Sat, 14 Jun 2008 15:43:20 -0700 Subject: [PATCH] Bug 438526 - Opening links with target="_search" in the sidebar is broken, no longer supported by IE, and should be removed, r=mconnor --- browser/base/content/browser.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 77c426acd0a..8113afb0907 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -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);