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

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: 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
« no previous file with comments | « Source/web/NavigatorContentUtilsClientImpl.h ('k') | public/web/WebViewClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/NavigatorContentUtilsClientImpl.cpp
diff --git a/Source/web/NavigatorContentUtilsClientImpl.cpp b/Source/web/NavigatorContentUtilsClientImpl.cpp
index a5b37553c3cfc048298eb584b48e089921311249..d904a996bbc2828a0ea4649ca5e5054974de4eb8 100644
--- a/Source/web/NavigatorContentUtilsClientImpl.cpp
+++ b/Source/web/NavigatorContentUtilsClientImpl.cpp
@@ -20,19 +20,19 @@ NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebViewImpl* we
{
}
-void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& scheme, const KURL& baseURL, const KURL& url, const String& title)
+void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& scheme, const 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 KURL& baseURL, const KURL& url)
+NavigatorContentUtilsClient::CustomHandlersState NavigatorContentUtilsClientImpl::isProtocolHandlerRegistered(const String& scheme, const 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 KURL& baseURL, const KURL& url)
+void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& scheme, const KURL& url)
{
- m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url);
+ m_webView->client()->unregisterProtocolHandler(scheme, url);
}
} // namespace blink
« no previous file with comments | « Source/web/NavigatorContentUtilsClientImpl.h ('k') | public/web/WebViewClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698