diff --git a/mozilla/layout/generic/nsObjectFrame.cpp b/mozilla/layout/generic/nsObjectFrame.cpp index 76002cf11dc..d3455795fe7 100644 --- a/mozilla/layout/generic/nsObjectFrame.cpp +++ b/mozilla/layout/generic/nsObjectFrame.cpp @@ -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(), diff --git a/mozilla/layout/html/base/src/nsObjectFrame.cpp b/mozilla/layout/html/base/src/nsObjectFrame.cpp index 76002cf11dc..d3455795fe7 100644 --- a/mozilla/layout/html/base/src/nsObjectFrame.cpp +++ b/mozilla/layout/html/base/src/nsObjectFrame.cpp @@ -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(),