| Index: LayoutTests/http/tests/security/xss-DENIED-window-name-navigator.html
|
| diff --git a/LayoutTests/http/tests/security/xss-DENIED-window-name-navigator.html b/LayoutTests/http/tests/security/xss-DENIED-window-name-navigator.html
|
| index 584e392d3970fc2922bef297007c810bdcadea3d..354beceab71cf82ed9829de1854ca1e9257a2355 100644
|
| --- a/LayoutTests/http/tests/security/xss-DENIED-window-name-navigator.html
|
| +++ b/LayoutTests/http/tests/security/xss-DENIED-window-name-navigator.html
|
| @@ -4,6 +4,24 @@ if (window.testRunner)
|
| </script>
|
| <iframe sandbox="allow-scripts"
|
| src="data:text/html,<script>
|
| + try {
|
| + top.navigator;
|
| + alert('FAIL');
|
| + } catch(e) {
|
| + alert(e);
|
| + }
|
| + this.x = 7;
|
| window.name='navigator';
|
| - alert(top.navigator === undefined ? 'PASS' : 'FAIL');
|
| + alert(top.navigator === this ? 'PASS' : 'FAIL');
|
| + alert(top.navigator.x === 7 ? 'PASS' : 'FAIL');
|
| + </script>"></iframe>
|
| +<iframe sandbox="allow-scripts"
|
| + src="data:text/html,<script>
|
| + alert(top.navigator !== this ? 'PASS' : 'FAIL');
|
| + try {
|
| + top.navigator.x;
|
| + alert('FAIL');
|
| + } catch(e) {
|
| + alert(e);
|
| + }
|
| </script>"></iframe>
|
|
|