ma1 pushed to branch tor-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Tor Browser
Commits:
-
5f325aeb
by cypherpunks1 at 2024-09-18T18:02:45-08:00
1 changed file:
Changes:
... | ... | @@ -344,6 +344,16 @@ void nsNodeInfoManager::RemoveNodeInfo(NodeInfo* aNodeInfo) { |
344 | 344 | }
|
345 | 345 | |
346 | 346 | static bool IsSystemOrAddonOrAboutPrincipal(nsIPrincipal* aPrincipal) {
|
347 | +#ifdef ANDROID
|
|
348 | + if (aPrincipal->SchemeIs("resource")) {
|
|
349 | + nsAutoCString spec;
|
|
350 | + aPrincipal->GetAsciiSpec(spec);
|
|
351 | + if (StringBeginsWith(spec, "resource://android/assets/"_ns)) {
|
|
352 | + return true;
|
|
353 | + }
|
|
354 | + }
|
|
355 | +#endif
|
|
356 | + |
|
347 | 357 | return aPrincipal->IsSystemPrincipal() ||
|
348 | 358 | BasePrincipal::Cast(aPrincipal)->AddonPolicy() ||
|
349 | 359 | // NOTE: about:blank and about:srcdoc inherit the principal of their
|