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

Unified Diff: LayoutTests/http/tests/navigatorcontentutils/is-protocol-handler-registered-expected.txt

Issue 392993005: Custom handlers should throw SecurityError exception if the URL's origin differs from the document'… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Done Created 6 years, 3 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/navigatorcontentutils/is-protocol-handler-registered-expected.txt
diff --git a/LayoutTests/navigatorcontentutils/is-protocol-handler-registered-expected.txt b/LayoutTests/http/tests/navigatorcontentutils/is-protocol-handler-registered-expected.txt
similarity index 79%
rename from LayoutTests/navigatorcontentutils/is-protocol-handler-registered-expected.txt
rename to LayoutTests/http/tests/navigatorcontentutils/is-protocol-handler-registered-expected.txt
index 9e268b6115bdc6c0f8ef9b2100bdf64c061b79e8..73832f87a7be8d120b4440027c38dc89d15107b2 100644
--- a/LayoutTests/navigatorcontentutils/is-protocol-handler-registered-expected.txt
+++ b/LayoutTests/http/tests/navigatorcontentutils/is-protocol-handler-registered-expected.txt
@@ -6,6 +6,7 @@ PASS Invalid scheme "mailto:" falied.
PASS Invalid scheme "ssh:/" falied.
PASS Invalid scheme "magnet:+" falied.
PASS Invalid scheme "tel:sip" falied.
+PASS URL with origin different than document origin threw SecurityError exception: "Failed to execute 'isProtocolHandlerRegistered' on 'Navigator': Can only register custom handler in the document's origin.".
Check if isProtocolHandlerRegistered() works correctly. If isProtocolHandlerRegistered() returns 'new' state, it works well.
'bitcoin' scheme will be registered, and then checks if the 'bitcoin' scheme is registered by isProtocolHandlerRegistered().

Powered by Google App Engine
This is Rietveld 408576698