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

This commit is contained in:
jst%mozilla.jstenback.com 2004-09-09 18:53:21 +00:00
parent 2810017b17
commit cef12da780
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(),

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(),