Bug 1329288 - Test ContentPolicy blocks opening a new window

This commit is contained in:
janekptacijarabaci 2018-04-22 20:37:09 +02:00 • committed by Roy Tam
commit 79fb0b8506
4 changed files with 104 additions and 0 deletions

View file

@ -61,6 +61,7 @@ var policy = {
"content policy type should TYPESUBDOCUMENT");
categoryManager.deleteCategoryEntry("content-policy", POLICYNAME, false);
SimpleTest.finish();
return Ci.nsIContentPolicy.REJECT_REQUEST;
}
return Ci.nsIContentPolicy.ACCEPT;
},