Bug 1579088 - Correct the expecting result for img in test_strict_dynamic_default_src.html; r=ckerschb
authorEdgar Chen <echen@mozilla.com>
Mon, 09 Sep 2019 17:44:37 +0000
changeset 553747 48cbb73a01add0c158fd17bfe633efd93a7ebd22
parent 553746 bdbfce5477b817b6267eb8dd74f0bd2d2899c9b0
child 553748 0867c7e61ee2d33585d97d379e592f89e673bd6c
push id12169
push userffxbld-merge
push dateMon, 14 Oct 2019 16:59:29 +0000
treeherdermozilla-beta@c819687300ed [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersckerschb
bugs1579088
milestone71.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1579088 - Correct the expecting result for img in test_strict_dynamic_default_src.html; r=ckerschb The description and expected result of some tests aren't matched. Differential Revision: https://phabricator.services.mozilla.com/D44843
dom/security/test/csp/test_strict_dynamic_default_src.html
--- a/dom/security/test/csp/test_strict_dynamic_default_src.html
+++ b/dom/security/test/csp/test_strict_dynamic_default_src.html
@@ -61,24 +61,24 @@ var tests = [
     script_result: "allowed",
     img_result: "blocked",
     policy: "script-src 'nonce-foo'; default-src 'strict-dynamic';"
   },
   {
     script_desc: "(test 6) script should be allowed because of valid nonce",
     img_desc: "(test 6) img should be blocked because of default-src http:",
     script_result: "blocked",
-    img_result: "allowed",
+    img_result: "blocked",
     policy: "script-src 'nonce-bar' http:; default-src 'strict-dynamic' http:;"
   },
   {
     script_desc: "(test 7) script should be allowed because of invalid nonce",
     img_desc: "(test 7) img should be blocked because of image-src http:",
     script_result: "blocked",
-    img_result: "allowed",
+    img_result: "blocked",
     policy: "script-src 'nonce-bar' http:; default-src 'strict-dynamic' http:; img-src http:"
   },
 ];
 
 var counter = 0;
 var curTest;
 
 function loadNextTest() {