tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

document-tree-child-browsing-context-name-property-set.sub.html (847B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>document-tree child browsing context name property set</title>
      4 <link rel="help" href="https://html.spec.whatwg.org/C/#document-tree-child-browsing-context-name-property-set">
      5 
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 
      9 <iframe src="//{{domains[www]}}:{{ports[http][1]}}/common/window-name-setter.html#spices"></iframe>
     10 <iframe name="spices"></iframe>
     11 <iframe name="fruits"></iframe>
     12 
     13 <script>
     14 "use strict";
     15 setup({ explicit_done: true });
     16 
     17 window.onload = () => {
     18  test(() => {
     19    assert_equals(window.spices, undefined);
     20    assert_not_equals(window.fruits, undefined);
     21    assert_equals(window.fruits, window[2]);
     22  }, "Cross origin child window's name shadows the second candidate of a same origin iframe");
     23 
     24  done();
     25 };
     26 </script>