Bug 1513916 [wpt PR 14497] - Trusted Types: Fix type of HTMLObjectElement's data and codeBase, a=testonly
authorJakub Vrana <jakubvrana@google.com>
Thu, 31 Jan 2019 12:11:57 +0000
changeset 457732 151613232338c20127b9c99901265660c262ed31
parent 457731 99ae7096cf2609da9115f6dee732fff32dcd0e58
child 457733 a7dd430b682d05f200293283c300b00879e84229
push id35518
push useropoprus@mozilla.com
push dateFri, 08 Feb 2019 09:55:14 +0000
treeherdermozilla-central@3a3e393396f4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1513916, 14497, 739170, 1374352, 617422
milestone67.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 1513916 [wpt PR 14497] - Trusted Types: Fix type of HTMLObjectElement's data and codeBase, a=testonly Automatic update from web-platform-tests Trusted Types: Fix type of HTMLObjectElement's data and codeBase These are TrustedScriptURL according to https://github.com/WICG/trusted-types/blob/1f6f3011/src/enforcer.js#L110-L111. Bug: 739170 Change-Id: If83044d0a8ba35354e9434f347f10f3f15cb237c Reviewed-on: https://chromium-review.googlesource.com/c/1374352 Commit-Queue: Mike West <mkwst@chromium.org> Reviewed-by: Mike West <mkwst@chromium.org> Reviewed-by: Daniel Vogelheim <vogelheim@chromium.org> Cr-Commit-Position: refs/heads/master@{#617422} -- wpt-commits: a377796dc7d860651f48c5dada67260a1e3a4132 wpt-pr: 14497
testing/web-platform/tests/trusted-types/block-string-assignment-to-Element-setAttribute.tentative.html
testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLElement-generic.tentative.html
--- a/testing/web-platform/tests/trusted-types/block-string-assignment-to-Element-setAttribute.tentative.html
+++ b/testing/web-platform/tests/trusted-types/block-string-assignment-to-Element-setAttribute.tentative.html
@@ -15,33 +15,33 @@
     [ 'area', 'href' ],
     [ 'base', 'href' ],
     [ 'frame', 'src' ],
     [ 'iframe', 'src' ],
     [ 'img', 'src' ],
     [ 'input', 'src' ],
     [ 'link', 'href' ],
     [ 'video', 'src' ],
-    [ 'object', 'data' ],
-    [ 'object', 'codeBase' ],
     [ 'source', 'src' ],
     [ 'track', 'src' ]
   ];
 
   URLTestCases.forEach(c => {
     test(t => {
       assert_element_accepts_trusted_url_explicit_set(window, c, t, c[0], c[1], RESULTS.URL);
       assert_throws_no_trusted_type_explicit_set(c[0], c[1], 'A string');
       assert_throws_no_trusted_type_explicit_set(c[0], c[1], null);
     }, c[0] + "." + c[1] + " accepts only TrustedURL");
   });
 
   // TrustedScriptURL Assignments
   const scriptURLTestCases = [
     [ 'embed', 'src' ],
+    [ 'object', 'data' ],
+    [ 'object', 'codeBase' ],
     [ 'script', 'src' ]
   ];
 
   scriptURLTestCases.forEach(c => {
     test(t => {
       assert_element_accepts_trusted_script_url_explicit_set(window, c, t, c[0], c[1], RESULTS.SCRIPTURL);
       assert_throws_no_trusted_type_explicit_set(c[0], c[1], 'A string');
       assert_throws_no_trusted_type_explicit_set(c[0], c[1], null);
--- a/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLElement-generic.tentative.html
+++ b/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLElement-generic.tentative.html
@@ -16,33 +16,33 @@
     [ 'area', 'href' ],
     [ 'base', 'href' ],
     [ 'frame', 'src' ],
     [ 'iframe', 'src' ],
     [ 'img', 'src' ],
     [ 'input', 'src' ],
     [ 'link', 'href' ],
     [ 'video', 'src' ],
-    [ 'object', 'data' ],
-    [ 'object', 'codeBase' ],
     [ 'source', 'src' ],
     [ 'track', 'src' ]
   ];
 
   URLTestCases.forEach(c => {
     test(t => {
       assert_element_accepts_trusted_url(window, ++testnb, t, c[0], c[1], RESULTS.URL);
       assert_throws_no_trusted_type(c[0], c[1], 'A string');
       assert_throws_no_trusted_type(c[0], c[1], null);
     }, c[0] + "." + c[1] + " accepts only TrustedURL");
   });
 
   // TrustedScriptURL Assignments
   const scriptURLTestCases = [
     [ 'embed', 'src' ],
+    [ 'object', 'codeBase' ],
+    [ 'object', 'data' ],
     [ 'script', 'src' ]
   ];
 
   testnb = 0;
   scriptURLTestCases.forEach(c => {
     test(t => {
       assert_element_accepts_trusted_script_url(window, ++testnb, t, c[0], c[1], RESULTS.SCRIPTURL);
       assert_throws_no_trusted_type(c[0], c[1], 'A string');