Pending renderer process no longer has render view attached
This commit is contained in:
parent
6de9c4332f
commit
bfc6d77bb3
3 changed files with 33 additions and 7 deletions
|
@ -203,13 +203,8 @@ void AtomBrowserClient::AppendExtraCommandLineSwitches(
|
|||
|
||||
// Certain render process will be created with no associated render view,
|
||||
// for example: ServiceWorker.
|
||||
auto rvh = content::RenderViewHost::FromID(process_id, kDefaultRoutingID);
|
||||
if (!rvh)
|
||||
return;
|
||||
|
||||
// Get the WebContents of the render process.
|
||||
content::WebContents* web_contents =
|
||||
content::WebContents::FromRenderViewHost(rvh);
|
||||
WebContentsPreferences::GetWebContentsFromProcessID(process_id);
|
||||
if (!web_contents)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue