Don't call through stale pointers in the "hung page" dialog.
While the "hung page" dialog is up, the [X] button has the same effect as the "Wait" button. However, when the hung process goes away, the "hung page" dialog tries to silently close itself with no effect, but calling Close() on itself ends up calling through to the function handling the [X] button, which tries to take an action on a dead process. The "hung page" dialog closes itself, without taking any action, in two cases. The first case was when the render process became responsive again. In that case, internal pointers were nulled out so that no action would be taken when the dialog closed. This is the second case, where the process died for other reasons. In this case too, now, the internal pointers are nulled out to ensure no action (and no crash). BUG=810750 Change-Id: Ifc65c44003457fba87abf1e9977cdfe4218af168 Reviewed-on: https://chromium-review.googlesource.com/911729 Commit-Queue: Avi Drissman <avi@chromium.org> Reviewed-by:Bret Sepulveda <bsep@chromium.org> Cr-Commit-Position: refs/heads/master@{#535915}
Showing
Please register or sign in to comment