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

Issue 7640020: Browser should not crash when a page showing a quota infobar is closed/reloaded (Closed)

Created:
9 years, 4 months ago by kinuko
Modified:
9 years, 4 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Browser should not crash when a page showing a quota infobar is closed/reloaded BUG=92620 TEST=no crash Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96751

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -4 lines) Patch
M chrome/browser/chrome_quota_permission_context.cc View 1 chunk +1 line, -4 lines 1 comment Download

Messages

Total messages: 4 (0 generated)
kinuko
9 years, 4 months ago (2011-08-12 17:34:21 UTC) #1
Bernhard Bauer
LGTM.
9 years, 4 months ago (2011-08-13 00:48:56 UTC) #2
michaeln
sorry for the late comments, but i've got some questions about this change http://codereview.chromium.org/7640020/diff/1/chrome/browser/chrome_quota_permission_context.cc File ...
9 years, 4 months ago (2011-08-15 17:51:05 UTC) #3
kinuko
9 years, 4 months ago (2011-08-17 03:58:25 UTC) #4
On 2011/08/15 17:51:05, michaeln wrote:
> sorry for the late comments, but i've got some questions about this change
> 
>
http://codereview.chromium.org/7640020/diff/1/chrome/browser/chrome_quota_per...
> File chrome/browser/chrome_quota_permission_context.cc (left):
> 
>
http://codereview.chromium.org/7640020/diff/1/chrome/browser/chrome_quota_per...
> chrome/browser/chrome_quota_permission_context.cc:53:
DCHECK(!callback_.get());
> The fact that we're tripping on this DCHECK indicates something wasn't working
> as expected. Is it really ok to just remove the check, or is more needed to
> handle this case?
> 
> - is it ok to not run the callback, is the caller left hanging?
> - is it ok to delete the calback on the UI thread instead of the IO thread?
> 
> Would it be better to call...
> 
> context_->DispatchCallbackOnIOThread(
>    callback_.release(),    
>    QuotaPermissionContext::kResponseCancelled);
> 
> ... at this point?

Good catch, seems like we should rather fire the callback on IO thread.  I'll
request review for the fix.

Powered by Google App Engine
This is Rietveld 408576698