DescriptionThis patch improves the way that GuestViewManager tracks the destruction of GuestView embedders. A RenderProcessHostObserver is now used instead of a WebContentsObserver.
There were two main problems with the existing method that are now fixed:
1) The WebContentsObserver would only notify if an embedder crashed, and did nothingwhen it closed normally. (this led to the WebView in the chrome sign-in page not getting cleaned up properly when navigating away from that page)
2) The WebContentsObserver was created in GuestViewBase, so it would not even exist if a GuestView's embedder crashed before its GuestViewBase instance was created.
BUG=355360
Committed: https://crrev.com/bc4600abb6ba65953c6cefd139062e21f0b64977
Cr-Commit-Position: refs/heads/master@{#339658}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Addressed comment by fsamuel@. #
Total comments: 2
Patch Set 3 : Addressed comment. Now using weak pointer to GuestViewManager. #
Total comments: 2
Patch Set 4 : Rebased. #Patch Set 5 : Fix for failing tests. #
Total comments: 1
Patch Set 6 : Addressed comment by kalman@. #Messages
Total messages: 31 (14 generated)
|