Bug 1547712: Remove unused variable nsIAddonPolicyService aps from Document.cpp. r=baku
authorChristoph Kerschbaumer <ckerschb@christophkerschbaumer.com>
Tue, 30 Apr 2019 14:11:57 +0000
changeset 471964 51fa10aa3b4a99e220753f6c549d5e0ff732e52f
parent 471963 1dde861b0182041efac4c4f681bd08aca247a275
child 471965 a80227abf82bcd52d816a2d855be72d5a54028ee
push id84374
push usermozilla@christophkerschbaumer.com
push dateTue, 30 Apr 2019 14:15:30 +0000
treeherderautoland@51fa10aa3b4a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1547712
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1547712: Remove unused variable nsIAddonPolicyService aps from Document.cpp. r=baku Differential Revision: https://phabricator.services.mozilla.com/D29202
dom/base/Document.cpp
--- a/dom/base/Document.cpp
+++ b/dom/base/Document.cpp
@@ -2849,19 +2849,16 @@ nsresult Document::InitCSP(nsIChannel* a
     return NS_OK;
   }
 
   MOZ_LOG(gCspPRLog, LogLevel::Debug,
           ("Document is an add-on or CSP header specified %p", this));
 
   // ----- if the doc is an addon, apply its CSP.
   if (addonPolicy) {
-    nsCOMPtr<nsIAddonPolicyService> aps =
-        do_GetService("@mozilla.org/addons/policy-service;1");
-
     nsAutoString addonCSP;
     Unused << ExtensionPolicyService::GetSingleton().GetBaseCSP(addonCSP);
     csp->AppendPolicy(addonCSP, false, false);
 
     csp->AppendPolicy(addonPolicy->ContentSecurityPolicy(), false, false);
   }
 
   // ----- if there's a full-strength CSP header, apply it.