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:
Tom Schuster
2024-01-31 09:36:36 +00:00
parent b1ef70d8ad
commit 00fcd6f011
13 changed files with 20 additions and 149 deletions

View File

@@ -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