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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user