Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(561)

Issue 1109833002: Log an error, when insertVisualStateCallback is called on a destroyed WebView (Closed)

Created:
5 years, 7 months ago by Tobias Sargeant
Modified:
5 years, 7 months ago
Reviewers:
boliu, Torne
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Check for destroyed WebView before adding a callback in didNavigateMainFrame Check to make sure at the time that didNavigateMainFrame occurs that the WebView is not destroyed (in which case skip registering the visual state listener callback for onPageCommitVisible). BUG=481534 Committed: https://crrev.com/46473984c6887c2a7b5a8602ef5526e6d16b06ec Cr-Commit-Position: refs/heads/master@{#327062}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Simplify fix. #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -8 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwWebContentsObserver.java View 1 1 chunk +9 lines, -8 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
Tobias Sargeant
5 years, 7 months ago (2015-04-27 15:34:40 UTC) #2
boliu
maybe a test? https://codereview.chromium.org/1109833002/diff/1/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/1109833002/diff/1/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1029 android_webview/java/src/org/chromium/android_webview/AwContents.java:1029: protected boolean isDestroyed() { is this ...
5 years, 7 months ago (2015-04-27 15:45:57 UTC) #3
Tobias Sargeant
https://codereview.chromium.org/1109833002/diff/1/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/1109833002/diff/1/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode2305 android_webview/java/src/org/chromium/android_webview/AwContents.java:2305: if (isDestroyed()) { On 2015/04/27 15:45:57, boliu wrote: > ...
5 years, 7 months ago (2015-04-27 16:03:09 UTC) #4
boliu
https://codereview.chromium.org/1109833002/diff/1/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/1109833002/diff/1/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode2305 android_webview/java/src/org/chromium/android_webview/AwContents.java:2305: if (isDestroyed()) { On 2015/04/27 16:03:09, Tobias Sargeant wrote: ...
5 years, 7 months ago (2015-04-27 16:06:59 UTC) #5
Tobias Sargeant
On 2015/04/27 16:06:59, boliu wrote: > I mean add a new method like insertVisualStateCallbackWithDestroyCheck to ...
5 years, 7 months ago (2015-04-27 16:20:44 UTC) #6
boliu
lgtm
5 years, 7 months ago (2015-04-27 16:29:35 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1109833002/60001
5 years, 7 months ago (2015-04-27 16:37:47 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-04-27 17:00:53 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1109833002/60001
5 years, 7 months ago (2015-04-27 17:04:03 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-04-27 17:05:06 UTC) #14
commit-bot: I haz the power
5 years, 7 months ago (2015-04-27 17:06:23 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/46473984c6887c2a7b5a8602ef5526e6d16b06ec
Cr-Commit-Position: refs/heads/master@{#327062}

Powered by Google App Engine
This is Rietveld 408576698