Verified Commit d04a7d0e authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃 Committed by ma1
Browse files

fixup! BB 40925: Implemented the Security Level component

BB 43498: Remove our old patch for 43129.

This commit should be ignored at the next rebase (and we will likely
have a conflict on the security level commit).
parent bc3f852d
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -344,16 +344,6 @@ void nsNodeInfoManager::RemoveNodeInfo(NodeInfo* aNodeInfo) {
}

static bool IsSystemOrAddonOrAboutPrincipal(nsIPrincipal* aPrincipal) {
#ifdef ANDROID
  if (aPrincipal->SchemeIs("resource")) {
    nsAutoCString spec;
    aPrincipal->GetAsciiSpec(spec);
    if (StringBeginsWith(spec, "resource://android/assets/"_ns)) {
      return true;
    }
  }
#endif

  return aPrincipal->IsSystemPrincipal() ||
         BasePrincipal::Cast(aPrincipal)->AddonPolicy() ||
         // NOTE: about:blank and about:srcdoc inherit the principal of their