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.


_______________________________________________
tbb-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tbb-commits

Reply via email to