Landing fix for bug 258487, patch by Wladimir Palant <trev@gtchat.de>. Add code to check a pref for how to treat popups opened by a plugin. r+sr=jst@mozilla.org

git-svn-id: svn://10.0.0.236/trunk@161999 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%mozilla.jstenback.com
2004-09-09 18:53:21 +00:00
parent c49fcde0e0
commit 6d9a847d4a
2 changed files with 6 additions and 2 deletions

View File

@@ -2286,7 +2286,9 @@ NS_IMETHODIMP nsPluginInstanceOwner::GetURL(const char *aURL, const char *aTarge
}
}
nsAutoPopupStatePusher popupStatePusher(openAllowed);
PRInt32 blockPopups =
nsContentUtils::GetIntPref("privacy.popups.disable_from_plugins");
nsAutoPopupStatePusher popupStatePusher((PopupControlState)blockPopups);
rv = lh->OnLinkClick(content, eLinkVerb_Replace,
uri, unitarget.get(),