Skip to content
Snippets Groups Projects
Commit 5f325aeb authored by cypherpunks1's avatar cypherpunks1
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 a5048088
Branches
No related tags found
2 merge requests!1211Bug 43129: Allow Android error pages to use svg images on the Safest security level,!1202Bug_43099: 2024 YEC Strings
......@@ -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