Skip to content

Don't search NativeWindow or guest view by child process ID - #1850

Merged
zcbenz merged 5 commits into
masterfrom
webview-update-process-id
Jun 3, 2015
Merged

zcbenz merged 5 commits into
masterfrom
webview-update-process-id

Conversation

@zcbenz

@zcbenz zcbenz commented Jun 3, 2015

Copy link
Copy Markdown
Contributor

The renderer process's ID is not reliable to be used to search for NativeWindow or guest WebContents, because pending navigations can happen for multiple times before the WebContents switches to the new renderer process, so it would be impossible to determine the owner of a pending renderer process according to its process.

This PR changes to only use WebContents for search, which doesn't change between navigations. It also fixed a bug of <webview> that changing src would call loadUrl for twice, which is the direct cause of #1843.

Fix #1766
Fix #1754
Fix #1820
Fix #1843
Fix #1823

zcbenz added a commit that referenced this pull request Jun 3, 2015
Don't search NativeWindow or guest view by child process ID
@zcbenz
zcbenz merged commit c2352d3 into master Jun 3, 2015
@zcbenz
zcbenz deleted the webview-update-process-id branch June 3, 2015 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant