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

ma1 (@ma1) git at gitlab.torproject.org
Thu Sep 19 05:44:39 UTC 2024



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:

- dom/base/nsNodeInfoManager.cpp


Changes:

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



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/5f325aeb69d60bda9eb825877382e544324adaab

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/5f325aeb69d60bda9eb825877382e544324adaab
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20240919/6d6e6f17/attachment.htm>


More information about the tor-commits mailing list