Bug 1876276 - Remove dead nsIDocShell allowPlugins code. r=emilio,sessionstore-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D199491
This commit is contained in:
@@ -1778,20 +1778,6 @@ nsDocShell::GetHasTrackingContentBlocked(Promise** aPromise) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocShell::GetAllowPlugins(bool* aAllowPlugins) {
|
||||
NS_ENSURE_ARG_POINTER(aAllowPlugins);
|
||||
|
||||
*aAllowPlugins = mBrowsingContext->GetAllowPlugins();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocShell::SetAllowPlugins(bool aAllowPlugins) {
|
||||
// XXX should enable or disable a plugin host
|
||||
return mBrowsingContext->SetAllowPlugins(aAllowPlugins);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocShell::GetCssErrorReportingEnabled(bool* aEnabled) {
|
||||
MOZ_ASSERT(aEnabled);
|
||||
@@ -13102,19 +13088,6 @@ bool nsDocShell::ShouldBlockLoadingForBackButton() {
|
||||
return canGoForward;
|
||||
}
|
||||
|
||||
bool nsDocShell::PluginsAllowedInCurrentDoc() {
|
||||
if (!mDocumentViewer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Document* doc = mDocumentViewer->GetDocument();
|
||||
if (!doc) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return doc->GetAllowPlugins();
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Web Shell Services API
|
||||
|
||||
|
||||
Reference in New Issue
Block a user