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

Unified Diff: LayoutTests/http/tests/inspector/console-cross-origin-iframe-logging.html

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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/inspector/console-cross-origin-iframe-logging.html
diff --git a/LayoutTests/http/tests/inspector/console-cross-origin-iframe-logging.html b/LayoutTests/http/tests/inspector/console-cross-origin-iframe-logging.html
index 57d21a51ec3260144d4acd6ba038f39fcaa7841c..0fb12cc4dfe2851c0ae83c492838c25820e89cc0 100644
--- a/LayoutTests/http/tests/inspector/console-cross-origin-iframe-logging.html
+++ b/LayoutTests/http/tests/inspector/console-cross-origin-iframe-logging.html
@@ -6,10 +6,14 @@
function accessFrame()
{
// Should fail.
- var host = frames[0].location.host;
+ try {
+ var host = frames[0].location.host;
+ } catch (e) {}
// Should fail.
- frames[0].location.reload();
+ try {
+ frames[0].location.reload();
+ } catch (e) {}
// Should fail.
frames[0].postMessage("fail", "http://127.0.0.1:8000");

Powered by Google App Engine
This is Rietveld 408576698