Sandbox flags do not support document.domain control
[WebKit-https.git] / LayoutTests / fast / frames / resources / sandboxed-iframe-set-domain.html
1 <script>
2 function runTest()
3 {
4     try {
5         document.domain = 'localhost';
6         window.top.performedDomainChange("Allowed to set document.domain", true);
7     } catch (e) {
8         window.top.performedDomainChange("Denied: " + e.message, false);
9     }
10 }
11 </script>
12 <body onload="runTest();">
13     TEST CONTENT
14 </body>