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 13:23:52 +00:00
parent c1a2295a6b
commit 2b5651c78d
14 changed files with 20 additions and 150 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