Index: components/plugins/renderer/webview_plugin.cc |
diff --git a/components/plugins/renderer/webview_plugin.cc b/components/plugins/renderer/webview_plugin.cc |
index 6200094c08b4ac6035218dddb1c50cad9f0133df..bc618556448f38e60ad7e1e6913a7ce5a4918c86 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; |