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

Issue 11412273: [android_webview] Fix crash in ContentViewCore/ContentSettings. (Closed)

Created:
8 years ago by mkosiba (inactive)
Modified:
8 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

[android_webview] Fix crash in ContentViewCore/ContentSettings. Apparently it's possible for mHandler to run after .destroy has been called on mContentViewCore. Since the ContentViewCore.destroy() documentation states that no other methods may be called on it after destroy() it seems like the right fix is to add a check to the handler. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170964

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix style #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/ContentSettings.java View 1 1 chunk +6 lines, -2 lines 1 comment Download

Messages

Total messages: 10 (0 generated)
mkosiba (inactive)
8 years ago (2012-11-30 18:01:50 UTC) #1
mnaganov (inactive)
LGTM once you fix the style. https://codereview.chromium.org/11412273/diff/1/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java File content/public/android/java/src/org/chromium/content/browser/ContentSettings.java (right): https://codereview.chromium.org/11412273/diff/1/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java#newcode114 content/public/android/java/src/org/chromium/content/browser/ContentSettings.java:114: if (mContentViewCore.isAlive()) nit: ...
8 years ago (2012-12-03 12:35:16 UTC) #2
mkosiba (inactive)
https://codereview.chromium.org/11412273/diff/1/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java File content/public/android/java/src/org/chromium/content/browser/ContentSettings.java (right): https://codereview.chromium.org/11412273/diff/1/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java#newcode114 content/public/android/java/src/org/chromium/content/browser/ContentSettings.java:114: if (mContentViewCore.isAlive()) On 2012/12/03 12:35:16, Mikhail Naganov (Chromium) wrote: ...
8 years ago (2012-12-03 17:21:17 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/11412273/5002
8 years ago (2012-12-03 17:21:33 UTC) #4
commit-bot: I haz the power
Presubmit check for 11412273-5002 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-12-03 17:21:36 UTC) #5
mkosiba (inactive)
Marcus, OWNERs lgtm please?
8 years ago (2012-12-03 19:04:26 UTC) #6
bulach
lgtm, not my area but one suggestion regardless: https://chromiumcodereview.appspot.com/11412273/diff/5002/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java File content/public/android/java/src/org/chromium/content/browser/ContentSettings.java (right): https://chromiumcodereview.appspot.com/11412273/diff/5002/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java#newcode114 content/public/android/java/src/org/chromium/content/browser/ContentSettings.java:114: if ...
8 years ago (2012-12-03 20:05:12 UTC) #7
mkosiba (inactive)
@bulach - the ContentViewCore docs clearly state that clients should not call methods on the ...
8 years ago (2012-12-04 10:37:21 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/11412273/5002
8 years ago (2012-12-04 10:45:39 UTC) #9
commit-bot: I haz the power
8 years ago (2012-12-04 15:44:02 UTC) #10
Message was sent while issue was closed.
Change committed as 170964

Powered by Google App Engine
This is Rietveld 408576698