Bug 1466770 [wpt PR 11341] - HTML: Fix sandbox-disallow-same-origin.html to expect SecurityError, a=testonly
authorSimon Pieters <zcorpan@gmail.com>
Mon, 25 Jun 2018 21:51:52 +0000
changeset 424221 177e1c4f2f7e1d387df2bdef0f7d7bf560f51a6a
parent 424220 08129490a58d611520f5f49d38b3b271fece1e94
child 424222 5ffdb75443cc057d3d9c08f50e7101b170be56b9
push id104753
push userarchaeopteryx@coole-files.de
push dateThu, 28 Jun 2018 12:34:45 +0000
treeherdermozilla-inbound@fe94281f7c25 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1466770, 11341, 11269
milestone63.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 1466770 [wpt PR 11341] - HTML: Fix sandbox-disallow-same-origin.html to expect SecurityError, a=testonly Automatic update from web-platform-testsHTML: Fix sandbox-disallow-same-origin.html to expect SecurityError Part of #11269. -- wpt-commits: e4fd758fb3ed204ec4234eb678323273a99eb685 wpt-pr: 11341
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/html/browsers/sandboxing/sandbox-disallow-same-origin.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -570174,17 +570174,17 @@
    "3aa5996022d6ca80f085981190811efc490aa2e0",
    "testharness"
   ],
   "html/browsers/sandboxing/sandbox-allow-scripts.html": [
    "d0c563dc26bd083be7bf9c90a21c9fa2fe259adb",
    "testharness"
   ],
   "html/browsers/sandboxing/sandbox-disallow-same-origin.html": [
-   "5227604766655481e4a168c603de51772f93c41e",
+   "62e0e820de95397a412e9ea4f5a8d34255a9b552",
    "testharness"
   ],
   "html/browsers/sandboxing/sandbox-disallow-scripts.html": [
    "bbb480a9ca5139877fbab165f9356b2a67305a9c",
    "testharness"
   ],
   "html/browsers/sandboxing/sandbox-parse-noscript-ref.html": [
    "4f185501effadf33e7d90e4c3990ec06ee936b43",
--- a/testing/web-platform/tests/html/browsers/sandboxing/sandbox-disallow-same-origin.html
+++ b/testing/web-platform/tests/html/browsers/sandboxing/sandbox-disallow-same-origin.html
@@ -1,30 +1,35 @@
 <!DOCTYPE html>
 <html>
   <head>
     <title>Access to sandbox iframe</title>
     <link rel="author" title="Kinuko Yasuda" href="mailto:kinuko@chromium.org">
-    <link rel="help" href="http://www.w3.org/html/wg/drafts/html/master/browsers.html#sandboxing">
+    <link rel="help" href="https://html.spec.whatwg.org/multipage/#sandboxed-origin-browsing-context-flag">
+    <link rel="help" href="https://html.spec.whatwg.org/multipage/#integration-with-idl">
     <script src="/resources/testharness.js"></script>
     <script src="/resources/testharnessreport.js"></script>
   </head>
 
   <body>
     <h1>Access to sandbox iframe</h1>
     <script type="text/javascript">
       var t = async_test("Access to sandbox iframe is disallowed")
       var called = 0;
       function calledFromIframe() {
         called++;
       }
       function loaded() {
-        assert_equals(document.getElementById('sandboxedframe').contentWindow.document, undefined);
-        assert_equals(called, 0);
-        t.done();
+        t.step(() => {
+          assert_throws("SecurityError", () => {
+            document.getElementById('sandboxedframe').contentWindow.document;
+          });
+          assert_equals(called, 0);
+          t.done();
+        });
       }
     </script>
 
     <iframe src="/html/browsers/sandboxing/inner-iframe.html" style="visibility:hidden;display:none" sandbox id="sandboxedframe" onload="loaded();"></iframe>
   </body>
 
     <div id="log"></div>
 </html>