Turn off web security for devtools.

This commit is contained in:
Cheng Zhao 2014-08-26 16:05:10 +08:00
parent f1e72914f5
commit 263c4b9ab4

View file

@ -85,6 +85,12 @@ void AtomBrowserClient::OverrideWebkitPrefs(
prefs->allow_displaying_insecure_content = true;
prefs->allow_running_insecure_content = true;
// Turn off web security for devtools.
if (url.SchemeIs("chrome-devtools")) {
prefs->web_security_enabled = false;
return;
}
NativeWindow* window = NativeWindow::FromRenderView(
render_view_host->GetProcess()->GetID(),
render_view_host->GetRoutingID());