[Pkg-mozext-commits] [requestpolicy] 34/50: [fix] origin "data:application/vnd.mozilla.xul+xml"

David Prévot taffit at moszumanska.debian.org
Mon Jun 27 12:50:33 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository requestpolicy.

commit 0955ee4ef9146a2eab88c032b374a13813cb0ee7
Author: Martin Kimmerle <dev at 256k.de>
Date:   Tue Jun 21 23:43:21 2016 +0200

    [fix] origin "data:application/vnd.mozilla.xul+xml"
    
    The menu overlay of some Add-Ons did not work; it stayed blank.
    
    Tested for the add-ons "Video DownloadHelper" and
    "Privacy Settings".
---
 ChangeLog.md                |  4 ++++
 src/content/lib/request.jsm | 11 +++++++++--
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/ChangeLog.md b/ChangeLog.md
index 4dcbb4b..bce4e64 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -3,6 +3,10 @@
 Note: ChangeLogs for the source code and unit tests, both not relevant for
       users, you can find in the dedicated subdirectories.
 
+#### Version 1.0.beta12.1
+* bugfixes
+  * The menu overlay of some Add-Ons did not work; it stayed blank.
+
 #### Version 1.0.beta12.0
 * improvements
   * New preference to define a keyboard shortcut for opening the RequestLog,
diff --git a/src/content/lib/request.jsm b/src/content/lib/request.jsm
index a12cfc0..df52926 100644
--- a/src/content/lib/request.jsm
+++ b/src/content/lib/request.jsm
@@ -183,8 +183,15 @@ NormalRequest.prototype.isInternal = function() {
   }
 
   // Fully internal requests.
-  if (INTERNAL_SCHEMES.has(this.aRequestOrigin.scheme) &&
-      INTERNAL_SCHEMES.has(this.aContentLocation.scheme)) {
+  if (INTERNAL_SCHEMES.has(this.aContentLocation.scheme) &&
+      (
+        INTERNAL_SCHEMES.has(this.aRequestOrigin.scheme) ||
+        // e.g.
+        // data:application/vnd.mozilla.xul+xml;charset=utf-8,<window/>
+        // resource://b9db16a4-6edc-47ec-a1f4-b86292ed211d/data/mainPanel.html
+        this.aRequestOrigin.spec.
+            startsWith("data:application/vnd.mozilla.xul+xml")
+      )) {
     Logger.info(Logger.TYPE_CONTENT, "Allowing internal request.");
     return true;
   }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git



More information about the Pkg-mozext-commits mailing list