[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-128.2.0esr-14.0-1] fixup! Bug 40925: Implemented the Security Level component



Title: GitLab

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
    fixup! Bug 40925: Implemented the Security Level component
    
    Bug 43129: Allow Android error pages to use svg images on the Safest security level
    

1 changed file:

Changes:

  • dom/base/nsNodeInfoManager.cpp
    ... ... @@ -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
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits