forked from WebKit/WebKit-http
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[[Delete]] should throw for cross-origin Window / Location objects
https://bugs.webkit.org/show_bug.cgi?id=161397 Reviewed by Ryosuke Niwa. Source/WebCore: [[Delete]] should throw for cross-origin Window / Location objects: - whatwg/html#1728 Firefox and Chrome already throw. Previously, WebKit was merely ignoring the call and logging an error message. No new tests, updated existing test. * bindings/js/JSDOMWindowCustom.cpp: (WebCore::JSDOMWindow::deleteProperty): (WebCore::JSDOMWindow::deletePropertyByIndex): * bindings/js/JSLocationCustom.cpp: (WebCore::JSLocation::deleteProperty): (WebCore::JSLocation::deletePropertyByIndex): LayoutTests: Update / rebaseline existing test to reflect behavior change. * http/tests/security/cross-frame-access-delete-expected.txt: * http/tests/security/cross-frame-access-delete.html: * http/tests/security/resources/cross-frame-iframe-for-delete-test.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@205200 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
cdumez@apple.com
committed
Aug 30, 2016
1 parent
e5fba8d
commit 1a72400
Showing
7 changed files
with
69 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 15 additions & 9 deletions
24
LayoutTests/http/tests/security/cross-frame-access-delete-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters