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

Issue 20243003: Fix crash when reloading packaged app. (Closed)

Created:
7 years, 5 months ago by benwells
Modified:
7 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Visibility:
Public.

Description

Fix crash when reloading packaged app. When a shell window was closed, it wasn't removed from the registry immediately (it was removed in a callback from OnNativeClose, which happens a bit later.) This meant that when the app was loaded again, the window was still in the registry with a stale pointer to the old extension. ExtensionSettingsHandler was tickling this by iterating shell windows on extension load. BUG=174250 TEST=On chromeos, enable the 'Enable debugging for packed apps.' flag. Then open chrome://extensions. Then open a packaged app, and reload it. Chrome should not crash. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214844 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215745

Patch Set 1 #

Patch Set 2 : With jeremya's change merged in #

Total comments: 2

Patch Set 3 : Feedback #

Patch Set 4 : Rebase #

Patch Set 5 : Fix stuff up #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase to after mac app shim fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -16 lines) Patch
M apps/shell_window.h View 1 2 3 4 5 6 2 chunks +5 lines, -1 line 0 comments Download
M apps/shell_window.cc View 1 2 3 4 5 6 4 chunks +22 lines, -7 lines 0 comments Download
M chrome/browser/extensions/platform_app_browsertest.cc View 1 2 3 4 5 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/extensions/shell_window_registry.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.mm View 1 2 3 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/extensions/native_app_window_gtk.cc View 1 2 chunks +9 lines, -5 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
benwells
This is https://codereview.chromium.org/12210107/ updated for the current state of the world. It originally caused some ...
7 years, 5 months ago (2013-07-25 08:50:33 UTC) #1
benwells
7 years, 5 months ago (2013-07-25 08:50:51 UTC) #2
benwells
Forgot to mention, thakis for c/b/ui/cocoa estade for c/b/ui/gtk koz for rest
7 years, 5 months ago (2013-07-25 22:59:12 UTC) #3
Evan Stade
gtk lgtm
7 years, 5 months ago (2013-07-26 16:41:35 UTC) #4
Nico
cocoa lgtm
7 years, 5 months ago (2013-07-26 16:48:50 UTC) #5
koz (OOO until 15th September)
https://codereview.chromium.org/20243003/diff/3001/apps/shell_window.cc File apps/shell_window.cc (right): https://codereview.chromium.org/20243003/diff/3001/apps/shell_window.cc#newcode294 apps/shell_window.cc:294: if (shell_window_contents_ && extension_) Could you add a comment ...
7 years, 4 months ago (2013-07-29 00:32:37 UTC) #6
benwells
https://codereview.chromium.org/20243003/diff/3001/apps/shell_window.cc File apps/shell_window.cc (right): https://codereview.chromium.org/20243003/diff/3001/apps/shell_window.cc#newcode294 apps/shell_window.cc:294: if (shell_window_contents_ && extension_) On 2013/07/29 00:32:37, koz wrote: ...
7 years, 4 months ago (2013-07-30 05:25:43 UTC) #7
koz (OOO until 15th September)
lgtm
7 years, 4 months ago (2013-07-30 05:35:25 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/20243003/29001
7 years, 4 months ago (2013-07-30 08:03:08 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/20243003/29001
7 years, 4 months ago (2013-07-30 13:23:11 UTC) #10
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=153728
7 years, 4 months ago (2013-07-30 23:01:45 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/20243003/58001
7 years, 4 months ago (2013-07-31 07:16:49 UTC) #12
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 4 months ago (2013-07-31 10:20:54 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/20243003/58001
7 years, 4 months ago (2013-07-31 11:52:22 UTC) #14
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=3173
7 years, 4 months ago (2013-07-31 12:09:59 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/20243003/58001
7 years, 4 months ago (2013-07-31 22:17:37 UTC) #16
commit-bot: I haz the power
Change committed as 214844
7 years, 4 months ago (2013-07-31 22:51:40 UTC) #17
benwells
On 2013/07/31 22:51:40, I haz the power (commit-bot) wrote: > Change committed as 214844 A ...
7 years, 4 months ago (2013-08-01 02:05:47 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/20243003/94001
7 years, 4 months ago (2013-08-05 22:34:07 UTC) #19
commit-bot: I haz the power
7 years, 4 months ago (2013-08-06 00:51:18 UTC) #20
Message was sent while issue was closed.
Change committed as 215745

Powered by Google App Engine
This is Rietveld 408576698