File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -278,10 +278,19 @@ void Shell::ShowDevTools() {
278
278
manifest.SetInteger (switches::kmWidth, 700 );
279
279
manifest.SetInteger (switches::kmHeight, 500 );
280
280
281
+ ShellBrowserContext* browser_context =
282
+ static_cast <ShellBrowserContext*>(web_contents_->GetBrowserContext ());
283
+
284
+ browser_context->set_pinning_renderer (false ); // opens devtool in
285
+ // new renderer
286
+ // process or break
287
+ // points will stall both
281
288
Shell* shell = new Shell (
282
289
WebContents::Create (web_contents ()->GetBrowserContext (),
283
290
NULL , MSG_ROUTING_NONE, NULL ),
284
291
&manifest);
292
+ browser_context->set_pinning_renderer (true );
293
+
285
294
int rh_id = shell->web_contents_ ->GetRenderProcessHost ()->GetID ();
286
295
ChildProcessSecurityPolicyImpl::GetInstance ()->GrantScheme (rh_id, chrome::kFileScheme );
287
296
shell->is_devtools_ = true ;
You can’t perform that action at this time.
0 commit comments