DescriptionFix a crash on Mac due to TextInputManager being null
The reference to TextInputManager instance (owned by WebContentsImpl) in RenderWidgetHostView is alive as long as
1) WebContents is alive,
2) RenderWidgetHostView is registered with TextInputManager.
On Mac, WebContents destruction might not lead to immediate destruction of the RenderWidgetHostViewMac. Therefore,
there can be a period of time where (after WebContentsImpl is deleted) |text_input_manager_| is null. Then it is only
safe to check |text_input_manager_| before dereferencing it.
BUG=709864
Review-Url: https://codereview.chromium.org/2813493003
Cr-Commit-Position: refs/heads/master@{#463338}
Committed: https://chromium.googlesource.com/chromium/src/+/f50104bb610bec50956cfe363d08c9682b930ab9
Patch Set 1 #
Total comments: 1
Messages
Total messages: 13 (8 generated)
|