Commit 3fb63360 authored by Bo Liu's avatar Bo Liu Committed by Commit Bot

android: Throw if WebContentsImpl is used after destroy

Right now the trend is to just add a null check every time there is a
crash in native code. I'm going to reverse this by putting all remaining
WebContentsImpl native calls behind an IllegalStateException check. Then
we'll know exactly what code is causing these exceptions, and fix the
client code accordingly.

Inspired by crbug.com/901130 although this is not directly relevant.

Change-Id: I444b912db01567925b6f662d2c11267d60e54624
Reviewed-on: https://chromium-review.googlesource.com/c/1324992Reviewed-by: default avatarTed Choc <tedchoc@chromium.org>
Commit-Queue: Bo <boliu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#606303}
parent 2d5d35d8
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment