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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/cross-origin-access-over-property-descriptor-expected.txt

Issue 1380503002: binding: Makes Window/Location's attributes accessor-type properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated a test result. Created 4 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
OLDNEW
1 Cross-origin access to 'window.location.pathname' over 'get' and 'set' in proper ty descriptor should throw a SecurityError. 1 Cross-origin access through 'get' and 'set' in a property descriptor should thro w a SecurityError.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 FAIL pathnameDescriptor should be non-null. Was undefined 6 PASS [object HTMLIFrameElement] is non-null.
7 FAIL typeof pathnameDescriptor.get should be function. Threw exception TypeError : Cannot read property 'get' of undefined 7 PASS [object Window] is non-null.
8 FAIL typeof pathnameDescriptor.set should be function. Threw exception TypeError : Cannot read property 'set' of undefined 8 PASS pathnameDescriptor is non-null.
9 FAIL pathnameDescriptor.get.call(targetWindow.location) should throw SecurityErr or: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-o rigin frame.. Threw exception TypeError: Cannot read property 'get' of undefined . 9 PASS typeof pathnameDescriptor.get is "function"
10 FAIL pathnameDescriptor.set.call(targetWindow.location, 1) should throw Security Error: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cros s-origin frame.. Threw exception TypeError: Cannot read property 'set' of undefi ned. 10 PASS typeof pathnameDescriptor.set is "function"
11 PASS devicePixelRatio is non-null.
12 PASS typeof devicePixelRatioDescriptor.get is "function"
13 PASS typeof devicePixelRatioDescriptor.set is "function"
14 PASS pathnameDescriptor.get.call(targetWindow.location) threw exception Security Error: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cros s-origin frame..
15 PASS pathnameDescriptor.set.call(targetWindow.location, 1) threw exception Secur ityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a c ross-origin frame..
16 PASS devicePixelRatioDescriptor.get.call(targetWindow) threw exception SecurityE rror: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross -origin frame..
17 PASS devicePixelRatioDescriptor.set.call(targetWindow, 1) threw exception Securi tyError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cr oss-origin frame..
11 PASS successfullyParsed is true 18 PASS successfullyParsed is true
12 19
13 TEST COMPLETE 20 TEST COMPLETE
14 21
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698