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

Unified Diff: LayoutTests/http/tests/navigatorcontentutils/unregister-protocol-handler-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/unregister-protocol-handler-expected.txt
diff --git a/LayoutTests/navigatorcontentutils/unregister-protocol-handler-expected.txt b/LayoutTests/http/tests/navigatorcontentutils/unregister-protocol-handler-expected.txt
similarity index 93%
rename from LayoutTests/navigatorcontentutils/unregister-protocol-handler-expected.txt
rename to LayoutTests/http/tests/navigatorcontentutils/unregister-protocol-handler-expected.txt
index bcf293e398c1d240dad678789699b2a5d5fc2763..21339638eb3ce292ee607b1fa8e98af15948a8da 100644
--- a/LayoutTests/navigatorcontentutils/unregister-protocol-handler-expected.txt
+++ b/LayoutTests/http/tests/navigatorcontentutils/unregister-protocol-handler-expected.txt
@@ -36,6 +36,7 @@ PASS Invalid scheme "magnet:+" falied.
PASS Invalid scheme "tel:sip" falied.
PASS Invalid url "" threw SyntaxError exception.Failed to execute 'unregisterProtocolHandler' on 'Navigator': The url provided ('') does not contain '%s'.".
PASS Invalid url "%S" threw SyntaxError exception.Failed to execute 'unregisterProtocolHandler' on 'Navigator': The url provided ('%S') does not contain '%s'.".
+PASS URL with origin different than document origin threw SecurityError exception: "Failed to execute 'unregisterProtocolHandler' on 'Navigator': Can only register custom handler in the document's origin.".
PASS Valid call succeeded.
Check if unregisterProtocolHandler can unregister scheme correctly. If isProtocolHandlerRegistered() returns 'new' state, unregisterProtoclHandler() works well.

Powered by Google App Engine
This is Rietveld 408576698