]> khamidou — GitHub mirrors - electron.git/commit
Fix finding the WebContents of a pending renderer process
authorCheng Zhao <zcbenz@gmail.com>
Tue, 11 Aug 2015 07:39:17 +0000 (15:39 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 11 Aug 2015 07:39:17 +0000 (15:39 +0800)
commite6a2b0a479391a09a148e2fb7ceac0f4a742cc4f
tree2ab5f0b4c1ea4e1515057d506ff4ca570a808e79
parent0f990d40ccc9eb47df66c518bb166a95e5e6b5e3
Fix finding the WebContents of a pending renderer process

Apparently after Chrome 44 a renderer process can be started before the
corresponding render view is created, though it can be patched but from
the source code Chromium is enforcing this everywhere now, so fixing it
on our side seems the only reliable solution.

This fix is very similar to what we did, but instead of blindly setting
swapped process, we now remember which process the pending process is
going to replace, so we should not have those race conditions.
atom/browser/atom_browser_client.cc
atom/browser/atom_browser_client.h