Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Unified Diff: LayoutTests/http/tests/security/cross-frame-access-enumeration.html

Issue 14198015: Deny cross-origin access to 'window.history'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/cross-frame-access-enumeration.html
diff --git a/LayoutTests/http/tests/security/cross-frame-access-enumeration.html b/LayoutTests/http/tests/security/cross-frame-access-enumeration.html
index 6452bf01b4c1142566964925073e0a00bfd45320..714cd8047a1fc5ad312ddab1de008338ed99ac39 100644
--- a/LayoutTests/http/tests/security/cross-frame-access-enumeration.html
+++ b/LayoutTests/http/tests/security/cross-frame-access-enumeration.html
@@ -59,33 +59,6 @@
}
log("PASS: Cross frame access by getting the property names of the window object was denied.");
- // Test enumerating the History object
- var b_win_history = b_win.history;
- try {
- for (var k in b_win_history) {
- if (k == "customHistoryProperty") {
- log("FAIL: Cross frame access by enumerating the History object was allowed.");
- return;
- }
- }
- } catch (e) {
- }
- log("PASS: Cross frame access by enumerating the History object was denied.");
-
- var b_winHistoryKeys = Object.keys(b_win_history);
- if (b_winHistoryKeys.indexOf("customHistoryProperty") != -1) {
- log("FAIL: Cross frame access by getting the keys of the History object was allowed.");
- return;
- }
- log("PASS: Cross frame access by getting the keys of the History object was denied.");
-
- var b_winHistoryPropertyNames = Object.getOwnPropertyNames(b_win_history);
- if (b_winHistoryPropertyNames.indexOf("customHistoryProperty") != -1) {
- log("FAIL: Cross frame access by getting the property names of the History object was allowed.");
- return;
- }
- log("PASS: Cross frame access by getting the property names of the History object was denied.");
-
// Test enumerating the Location object
var b_win_location = b_win.location;
try {

Powered by Google App Engine
This is Rietveld 408576698