4 <script src=
"/resources/testharness.js"></script>
5 <script src=
"/resources/testharnessreport.js"></script>
9 if (document
.location
.hostname
== "127.0.0.1") {
10 document
.location
.hostname
= "subdomain.example.test";
12 var t
= async_test("Calling context doesn't change via document.domain.");
15 var i
= document
.createElement('iframe');
16 i
.src
= 'resources/innocent-victim.html';
17 i
.onload
= t
.step_func(function () {
18 window
.f
= frames
[0].atob
;
19 document
.domain
= 'example.test';
20 assert_equals(btoa(window
.f('PASS')), 'PASS');
23 document
.body
.appendChild(i
);