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

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

Issue 19095003: Throw 'SecurityError' upon cross-origin Location access. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline. Created 7 years, 5 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
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. 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. 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. 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. 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. 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. 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. 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. 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 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 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.
10 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. 10 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.
11 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. 11 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.
12 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. 12 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.
13 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.
14 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.
15 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.
16 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.
17 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.
18 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.
19 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.
20 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.
21 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.
22 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.
23 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.
13 24
14 25
15 ----- tests for getting window.location's properties ----- 26 ----- tests for getting window.location's properties -----
16 27
17 PASS: canGet('targetWindow.location') should be 'true' and is. 28 PASS: canGet('targetWindow.location') should be 'true' and is.
18 PASS: toString('targetWindow.location', '') should be '' and is. 29 PASS: toString('targetWindow.location', '') should be '' and is.
19 Firefox allows access to 'location.toString' but throws an exception when you ca ll it. 30 Firefox allows access to 'location.toString' but throws an exception when you ca ll it.
20 PASS: canGet('targetWindow.location.toString') should be 'false' and is. 31 PASS: canGet('targetWindow.location.toString') should be 'false' and is.
32 PASS: accessThrowsException('targetWindow.location.toString') should be 'true' a nd is.
21 PASS: canGet('targetWindow.location.href') should be 'false' and is. 33 PASS: canGet('targetWindow.location.href') should be 'false' and is.
22 PASS: canGet('targetWindow.location.hash') should be 'false' and is. 34 PASS: canGet('targetWindow.location.hash') should be 'false' and is.
23 PASS: canGet('targetWindow.location.host') should be 'false' and is. 35 PASS: canGet('targetWindow.location.host') should be 'false' and is.
24 PASS: canGet('targetWindow.location.hostname') should be 'false' and is. 36 PASS: canGet('targetWindow.location.hostname') should be 'false' and is.
25 PASS: canGet('targetWindow.location.pathname') should be 'false' and is. 37 PASS: canGet('targetWindow.location.pathname') should be 'false' and is.
26 PASS: canGet('targetWindow.location.port') should be 'false' and is. 38 PASS: canGet('targetWindow.location.port') should be 'false' and is.
27 PASS: canGet('targetWindow.location.protocol') should be 'false' and is. 39 PASS: canGet('targetWindow.location.protocol') should be 'false' and is.
28 PASS: canGet('targetWindow.location.search') should be 'false' and is. 40 PASS: canGet('targetWindow.location.search') should be 'false' and is.
41 PASS: canGet('targetWindow.location.existingCustomProperty') should be 'false' a nd is.
42 PASS: canGet('targetWindow.location[1]') should be 'false' and is.
43 PASS: accessThrowsException('targetWindow.location.href') should be 'true' and i s.
44 PASS: accessThrowsException('targetWindow.location.hash') should be 'true' and i s.
45 PASS: accessThrowsException('targetWindow.location.host') should be 'true' and i s.
46 PASS: accessThrowsException('targetWindow.location.hostname') should be 'true' a nd is.
47 PASS: accessThrowsException('targetWindow.location.pathname') should be 'true' a nd is.
48 PASS: accessThrowsException('targetWindow.location.port') should be 'true' and i s.
49 PASS: accessThrowsException('targetWindow.location.protocol') should be 'true' a nd is.
50 PASS: accessThrowsException('targetWindow.location.search') should be 'true' and is.
51 PASS: accessThrowsException('targetWindow.location.existingCustomProperty') shou ld be 'true' and is.
52 PASS: accessThrowsException('targetWindow.location[1]') should be 'true' and is.
29 PASS: canGet('targetWindow.location.assign') should be 'true' and is. 53 PASS: canGet('targetWindow.location.assign') should be 'true' and is.
30 PASS: canGet('targetWindow.location.reload') should be 'true' and is. 54 PASS: canGet('targetWindow.location.reload') should be 'true' and is.
31 PASS: canGet('targetWindow.location.replace') should be 'true' and is. 55 PASS: canGet('targetWindow.location.replace') should be 'true' and is.
32 PASS: canGet('targetWindow.location.existingCustomProperty') should be 'false' a nd is.
33 56
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698