DescriptionEnsure WebContentsObserver.destroy is called
When a Java-based WebContents instance is destroyed, it may yet have
Java-based WebContentsObserver instances. Previously, these instances
would always see a destroy (formerly detach) call, as they each had
a native counterpart.
With the introduction of the proxy WebContentsObserver, destroy was not
always called, as the remaining observers were simply cleared from the
observer list. Explicitly call WebContentsObserver.destroy for these
dangling instances, ensuring proper cleanup.
BUG=464076
Committed: https://crrev.com/28f5f23899a3131bcd63bf73707479d8fa082c20
Cr-Commit-Position: refs/heads/master@{#319162}
Patch Set 1 #
Total comments: 5
Patch Set 2 : assert #Patch Set 3 : Fix build #
Messages
Total messages: 12 (3 generated)
|