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

Unified Diff: Source/web/NavigatorContentUtilsClientImpl.cpp

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: moved navigatorcontentutils to http/tests Created 6 years, 4 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: Source/web/NavigatorContentUtilsClientImpl.cpp
diff --git a/Source/web/NavigatorContentUtilsClientImpl.cpp b/Source/web/NavigatorContentUtilsClientImpl.cpp
index 22890fece7309cde5658f319ed40010daf058ad7..e3109f223e594bbfb66c4c40dab016b8274918b4 100644
--- a/Source/web/NavigatorContentUtilsClientImpl.cpp
+++ b/Source/web/NavigatorContentUtilsClientImpl.cpp
@@ -22,19 +22,19 @@ NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebViewImpl* we
{
}
-void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& scheme, const blink::KURL& baseURL, const blink::KURL& url, const String& title)
+void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& scheme, const blink::KURL& url, const String& title)
{
- m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title);
+ m_webView->client()->registerProtocolHandler(scheme, url, title);
}
-NavigatorContentUtilsClient::CustomHandlersState NavigatorContentUtilsClientImpl::isProtocolHandlerRegistered(const String& scheme, const blink::KURL& baseURL, const blink::KURL& url)
+NavigatorContentUtilsClient::CustomHandlersState NavigatorContentUtilsClientImpl::isProtocolHandlerRegistered(const String& scheme, const blink::KURL& url)
{
- return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webView->client()->isProtocolHandlerRegistered(scheme, baseURL, url));
+ return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webView->client()->isProtocolHandlerRegistered(scheme, url));
}
-void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& scheme, const blink::KURL& baseURL, const blink::KURL& url)
+void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& scheme, const blink::KURL& url)
{
- m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url);
+ m_webView->client()->unregisterProtocolHandler(scheme, url);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698