| Index: third_party/WebKit/LayoutTests/imported/wpt/html/browsers/history/the-location-interface/security_location_0.sub.htm
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/browsers/history/the-location-interface/security_location_0.sub.htm b/third_party/WebKit/LayoutTests/imported/wpt/html/browsers/history/the-location-interface/security_location_0.sub.htm
|
| index b6ebbc28a45eb7cea8caaa1e849aecb4f82f4e5d..f509c23b18c55bbd6f1a180d1dfc2f0706b2e38f 100644
|
| --- a/third_party/WebKit/LayoutTests/imported/wpt/html/browsers/history/the-location-interface/security_location_0.sub.htm
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/html/browsers/history/the-location-interface/security_location_0.sub.htm
|
| @@ -11,13 +11,17 @@
|
| <body>
|
| <p>Access location object from different origins doesn't raise SECURITY_ERR exception</p>
|
| <div id=log></div>
|
| + <script src="/common/get-host-info.sub.js"></script>
|
| <script>
|
| var runTest = async_test("Accessing location object from different origins doesn't raise SECURITY_ERR exception").step_func_done(function() {
|
| var frame = document.getElementById('testframe');
|
| frame.setAttribute('onload', '');
|
| - frame.contentWindow.location = 'http://{{domains[www1]}}:{{ports[http][0]}}/'
|
| + frame.contentWindow.location = get_host_info().HTTP_REMOTE_ORIGIN + "/";
|
| });
|
| </script>
|
| - <iframe id='testframe' src="http://{{domains[www]}}:{{ports[http][0]}}/" onload="runTest()">Test Frame</iframe>
|
| + <iframe id='testframe' onload="runTest()">Test Frame</iframe>
|
| + <script>
|
| + document.getElementById('testframe').setAttribute('src', get_host_info().HTTP_REMOTE_ORIGIN + '/');
|
| + </script>
|
| </body>
|
| </html>
|
|
|