Evaluating window named element may return wrong result
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 May 2017 19:40:48 +0000 (19:40 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 May 2017 19:40:48 +0000 (19:40 +0000)
commit8c4111b7805b840d6c4553753eaf05e169081652
tree3c77a94a3ea6256ac1c012a480711e4369eab05d
parent83ea2fca1ddfe2715fd96c4c66f12cbf040a7ef3
Evaluating window named element may return wrong result
https://bugs.webkit.org/show_bug.cgi?id=166792
<rdar://problem/29801059>

Reviewed by Chris Dumez.

Add tests to ensure we do not regress evaluation of window named elements.

* http/tests/security/named-window-property-from-same-origin-inactive-document-expected.txt: Added.
* http/tests/security/named-window-property-from-same-origin-inactive-document.html: Added.
* http/tests/security/resources/innocent-victim-with-named-elements.html: Added.
* http/tests/security/xss-DENIED-named-window-property-from-cross-origin-inactive-document-expected.txt: Added.
* http/tests/security/xss-DENIED-named-window-property-from-cross-origin-inactive-document.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@217061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/security/named-window-property-from-same-origin-inactive-document-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/security/named-window-property-from-same-origin-inactive-document.html [new file with mode: 0644]
LayoutTests/http/tests/security/resources/innocent-victim-with-named-elements.html [new file with mode: 0644]
LayoutTests/http/tests/security/xss-DENIED-named-window-property-from-cross-origin-inactive-document-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/security/xss-DENIED-named-window-property-from-cross-origin-inactive-document.html [new file with mode: 0644]