Skip to content

Commit

Permalink
Applying Webconverger/webconverger-addon#57 as a temporary fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kaihendry committed May 28, 2015
1 parent 654441d commit 6e4b4e6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion etc/webc/extensions/neon/components/fileBlockService.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ FileBlock.prototype = {
// If we had a whitelist, reject everything else
if (this.whitelist.length > 0) {
if (aContentType == Ci.nsIContentPolicy.TYPE_DOCUMENT) {
Services.prompt.alert(null, "Webconverger", "Not allowed, whitelist only permits: " + this.whitelist.join(", "));
// Services.prompt.alert(null, "Webconverger", "Not allowed, whitelist only permits: " + this.whitelist.join(", "));
return Ci.nsIContentPolicy.REJECT_REQUEST;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ FileBlock.prototype = {
// If we had a whitelist, reject everything else
if (this.whitelist.length > 0) {
if (aContentType == Ci.nsIContentPolicy.TYPE_DOCUMENT) {
Services.prompt.alert(null, "Webconverger", "Not allowed, whitelist only permits: " + this.whitelist.join(", "));
// Services.prompt.alert(null, "Webconverger", "Not allowed, whitelist only permits: " + this.whitelist.join(", "));
return Ci.nsIContentPolicy.REJECT_REQUEST;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ FileBlock.prototype = {
// If we had a whitelist, reject everything else
if (this.whitelist.length > 0) {
if (aContentType == Ci.nsIContentPolicy.TYPE_DOCUMENT) {
Services.prompt.alert(null, "Webconverger", "Not allowed, whitelist only permits: " + this.whitelist.join(", "));
// Services.prompt.alert(null, "Webconverger", "Not allowed, whitelist only permits: " + this.whitelist.join(", "));
return Ci.nsIContentPolicy.REJECT_REQUEST;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ FileBlock.prototype = {
// If we had a whitelist, reject everything else
if (this.whitelist.length > 0) {
if (aContentType == Ci.nsIContentPolicy.TYPE_DOCUMENT) {
Services.prompt.alert(null, "Webconverger", "Not allowed, whitelist only permits: " + this.whitelist.join(", "));
// Services.prompt.alert(null, "Webconverger", "Not allowed, whitelist only permits: " + this.whitelist.join(", "));
return Ci.nsIContentPolicy.REJECT_REQUEST;
}
}
Expand Down

0 comments on commit 6e4b4e6

Please sign in to comment.