Commit 1e6c40b7 authored by Tobias Sargeant's avatar Tobias Sargeant Committed by Commit Bot

aw: Check if destroyed before using mWebContents in onDragEvent

Bug: 789168
Change-Id: Ib90d86b1e286c3e5c5e2b8d13adde4bf7edc9b34
Reviewed-on: https://chromium-review.googlesource.com/793818Reviewed-by: default avatarRichard Coles <torne@chromium.org>
Commit-Queue: Tobias Sargeant <tobiasjs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#519918}
parent 3314ae7b
......@@ -3282,7 +3282,9 @@ public class AwContents implements SmartClipProvider {
@Override
public boolean onDragEvent(DragEvent event) {
return mWebContents.getEventForwarder().onDragEvent(event, mContainerView);
return isDestroyedOrNoOperation(NO_WARN)
? false
: mWebContents.getEventForwarder().onDragEvent(event, mContainerView);
}
@Override
......
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