diff --git a/dom/plugins/base/nsPluginTags.cpp b/dom/plugins/base/nsPluginTags.cpp index c44bd498b2c7..de3862742363 100644 --- a/dom/plugins/base/nsPluginTags.cpp +++ b/dom/plugins/base/nsPluginTags.cpp @@ -332,14 +332,7 @@ nsPluginTag::GetDisabled(bool* aDisabled) bool nsPluginTag::IsBlocklisted() { - nsCOMPtr bls = do_GetService("@mozilla.org/extensions/blocklist;1"); - if (!bls) { - return false; - } - - uint32_t state = nsIBlocklistService::STATE_NOT_BLOCKED; - bls->GetPluginBlocklistState(this, EmptyString(), EmptyString(), &state); - return state == nsIBlocklistService::STATE_BLOCKED; + return GetBlocklistState() == nsIBlocklistService::STATE_BLOCKED; } NS_IMETHODIMP