Skip to content
Snippets Groups Projects
Verified Commit 629dff85 authored by cypherpunks1's avatar cypherpunks1 Committed by Pier Angelo Vendrame
Browse files

fixup! Bug 40925: Implemented the Security Level component

Bug 43129: Allow Android error pages to use svg images on the Safest security level
parent ea73ffbe
No related branches found
No related tags found
1 merge request!1222Bug 43166: Rebased alpha onto 128.3.0esr
......@@ -344,6 +344,16 @@ 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment