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

Side by Side Diff: LayoutTests/http/tests/security/cross-frame-access-history-get-expected.txt

Issue 14198015: Deny cross-origin access to 'window.history'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 CONSOLE MESSAGE: Blocked a frame with origin "http://127.0.0.1:8000" from access ing a frame with origin "http://localhost:8000". Protocols, domains, and ports m ust match.
2 CONSOLE MESSAGE: Blocked a frame with origin "http://127.0.0.1:8000" from access ing a frame with origin "http://localhost:8000". Protocols, domains, and ports m ust match.
3 CONSOLE MESSAGE: Blocked a frame with origin "http://127.0.0.1:8000" from access ing a frame with origin "http://localhost:8000". Protocols, domains, and ports m ust match.
4 CONSOLE MESSAGE: Blocked a frame with origin "http://127.0.0.1:8000" from access ing a frame with origin "http://localhost:8000". Protocols, domains, and ports m ust match.
5 CONSOLE MESSAGE: Blocked a frame with origin "http://127.0.0.1:8000" from access ing a frame with origin "http://localhost:8000". Protocols, domains, and ports m ust match.
6 CONSOLE MESSAGE: Blocked a frame with origin "http://127.0.0.1:8000" from access ing a frame with origin "http://localhost:8000". Protocols, domains, and ports m ust match.
7 CONSOLE MESSAGE: Blocked a frame with origin "http://127.0.0.1:8000" from access ing a frame with origin "http://localhost:8000". Protocols, domains, and ports m ust match.
8 CONSOLE MESSAGE: Blocked a frame with origin "http://127.0.0.1:8000" from access ing a frame with origin "http://localhost:8000". Protocols, domains, and ports m ust match.
9
10
11 ----- tests for getting window.history and its properties -----
12
13 PASS: canGet('targetWindow.history.length') should be 'false' and is.
14 PASS: canGet('targetWindow.history.back') should be 'true' and is.
15 PASS: canGet('targetWindow.history.forward') should be 'true' and is.
16 PASS: canGet('targetWindow.history.go') should be 'true' and is.
17 *** FAIL: canGet('targetWindow.history.toString') should be 'true' but instead i s false. ***
18 *** FAIL: toString('targetWindow.history') should be '[object History]' but inst ead is [exception]. ***
19 PASS: canGet('targetWindow.__proto__') should be 'false' and is.
20 PASS: canGet('targetWindow.constructor') should be 'false' and is.
21 PASS: canGet('targetWindow.history.existingCustomProperty') should be 'false' an d is.
22 PASS: canGet('targetWindow.history.__proto__.prototypeCustomProperty') should be 'false' and is.
23 PASS: canCall('targetWindow.history.existingCustomFunction') should be 'false' a nd is.
24 PASS: canCall('targetWindow.history.prototypeCustomFunction') should be 'false' and is.
25
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698