Index: components/plugins/renderer/webview_plugin.cc |
diff --git a/components/plugins/renderer/webview_plugin.cc b/components/plugins/renderer/webview_plugin.cc |
index 19e2e3c681e172da7afba392bbbbab0857378226..96347fd5b22894d909c842c3dc25a6d2309d1aa9 100644 |
--- a/components/plugins/renderer/webview_plugin.cc |
+++ b/components/plugins/renderer/webview_plugin.cc |
@@ -61,6 +61,7 @@ WebViewPlugin* WebViewPlugin::Create(WebViewPlugin::Delegate* delegate, |
const WebPreferences& preferences, |
const std::string& html_data, |
const GURL& url) { |
+ DCHECK(url.is_valid()) << "Blink requires the WebView to have a valid URL."; |
WebViewPlugin* plugin = new WebViewPlugin(delegate, preferences); |
plugin->web_view()->mainFrame()->loadHTMLString(html_data, url); |
return plugin; |