Browse Source

Bug 20701: Allow the directory listing stylesheet in the content policy.

Yawning Angel 3 years ago
parent
commit
dcc5f9eb0f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/components/content-policy.js

+ 3 - 0
src/components/content-policy.js

@@ -37,6 +37,9 @@ ContentPolicy.prototype = {
 
     // Resizing text boxes.
     "chrome://global/content/bindings/resizer.xml": Ci.nsIContentPolicy.TYPE_XBL,
+
+    // Directory listing.
+    "chrome://global/skin/dirListing/dirListing.css": Ci.nsIContentPolicy.TYPE_STYLESHEET,
   },
 
   shouldLoad: function(aContentType, aContentLocation, aRequestOrigin, aContext, aMimeTypeGuess, aExtra) {