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

Issue 8496024: Don't close crashed tabs from extensions with background pages. (Closed)

Created:
9 years, 1 month ago by Yoyo Zhou
Modified:
9 years, 1 month ago
Reviewers:
Matt Perry
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, Erik does not do reviews, ajwong+watch_chromium.org, jam, mihaip+watch_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Don't close tabs from crashed extensions with background pages. Make the crashed extension reload when the sad tab is reloaded. ('Extensions' includes packaged apps.) BUG=71629 BUG=94177 TEST=Added ExtensionCrashRecoveryTest.ReloadTabsWithBackgroundPage. Manually: Open a packaged app with a background page. Kill it from Task Manager. Its tab should not close. Reload the tab and it should show the app (and the crash notification bubble should be gone). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109675

Patch Set 1 #

Patch Set 2 : now with test #

Patch Set 3 : . #

Patch Set 4 : fix info map #

Total comments: 11

Patch Set 5 : mpcomplete's #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -22 lines) Patch
M chrome/browser/background/background_contents_service.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_crash_recovery_browsertest.cc View 1 2 3 4 2 chunks +40 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_info_map.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_render_view_host_observer.cc View 1 2 3 4 1 chunk +9 lines, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 1 1 chunk +19 lines, -15 lines 0 comments Download
M chrome/common/extensions/extension_constants.h View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Yoyo Zhou
9 years, 1 month ago (2011-11-10 02:52:32 UTC) #1
Yoyo Zhou
Deleted the blurb about the task manager bug since I landed the fix for that.
9 years, 1 month ago (2011-11-10 04:12:40 UTC) #2
Matt Perry
mostly lgtm http://codereview.chromium.org/8496024/diff/9001/chrome/browser/extensions/extension_crash_recovery_browsertest.cc File chrome/browser/extensions/extension_crash_recovery_browsertest.cc (right): http://codereview.chromium.org/8496024/diff/9001/chrome/browser/extensions/extension_crash_recovery_browsertest.cc#newcode473 chrome/browser/extensions/extension_crash_recovery_browsertest.cc:473: content::NOTIFICATION_LOAD_STOP, This should be unnecessary. NavigateToURL already ...
9 years, 1 month ago (2011-11-10 22:07:59 UTC) #3
Matt Perry
http://codereview.chromium.org/8496024/diff/9001/chrome/browser/renderer_host/chrome_render_view_host_observer.cc File chrome/browser/renderer_host/chrome_render_view_host_observer.cc (right): http://codereview.chromium.org/8496024/diff/9001/chrome/browser/renderer_host/chrome_render_view_host_observer.cc#newcode144 chrome/browser/renderer_host/chrome_render_view_host_observer.cc:144: service->ReloadExtension(site.host()); Wait, this won't work for unpacked extensions, right? ...
9 years, 1 month ago (2011-11-10 22:18:12 UTC) #4
Yoyo Zhou
http://codereview.chromium.org/8496024/diff/9001/chrome/browser/extensions/extension_crash_recovery_browsertest.cc File chrome/browser/extensions/extension_crash_recovery_browsertest.cc (right): http://codereview.chromium.org/8496024/diff/9001/chrome/browser/extensions/extension_crash_recovery_browsertest.cc#newcode473 chrome/browser/extensions/extension_crash_recovery_browsertest.cc:473: content::NOTIFICATION_LOAD_STOP, On 2011/11/10 22:07:59, Matt Perry wrote: > This ...
9 years, 1 month ago (2011-11-10 23:26:30 UTC) #5
Matt Perry
lgtm http://codereview.chromium.org/8496024/diff/9001/chrome/browser/renderer_host/chrome_render_view_host_observer.cc File chrome/browser/renderer_host/chrome_render_view_host_observer.cc (right): http://codereview.chromium.org/8496024/diff/9001/chrome/browser/renderer_host/chrome_render_view_host_observer.cc#newcode144 chrome/browser/renderer_host/chrome_render_view_host_observer.cc:144: service->ReloadExtension(site.host()); On 2011/11/10 23:26:30, Yoyo Zhou wrote: > ...
9 years, 1 month ago (2011-11-10 23:28:21 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/8496024/9002
9 years, 1 month ago (2011-11-11 18:11:07 UTC) #7
commit-bot: I haz the power
9 years, 1 month ago (2011-11-11 19:27:58 UTC) #8
Change committed as 109675

Powered by Google App Engine
This is Rietveld 408576698