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

Unified Diff: LayoutTests/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: baseURL is not required anymore Created 6 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/navigatorcontentutils/is-protocol-handler-registered-expected.txt
diff --git a/LayoutTests/navigatorcontentutils/is-protocol-handler-registered-expected.txt b/LayoutTests/navigatorcontentutils/is-protocol-handler-registered-expected.txt
index a1a60ee518d234f4c209d0e5bae4a7e21b69e282..0d8d84b7fdd81b3cabf9750c6b82962af62adb55 100644
--- a/LayoutTests/navigatorcontentutils/is-protocol-handler-registered-expected.txt
+++ b/LayoutTests/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' protocol will be registered, and then checks if the 'bitcoin' protocol is registered by isProtocolHandlerRegistered().

Powered by Google App Engine
This is Rietveld 408576698