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

Issue 316018: Fix crash with page actions without icons (Closed)

Created:
11 years, 2 months ago by Finnur
Modified:
9 years, 6 months ago
Reviewers:
Matt Perry
CC:
chromium-reviews_googlegroups.com, Aaron Boodman, Erik does not do reviews, ben+cc_chromium.org, pam+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Page actions that don't specify an icon (ie. have a spelling error in the manifest, such as icon instead of icons/default_icon) caused a crash when they try to display their icon. We now check when the extension tries to enable the page action whether there are any icons to display. If not, we don't proceed and log an error to the console. BUG=25562 TEST=Covered by browser test. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29861

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -18 lines) Patch
M chrome/browser/extensions/extension_browsertests_misc.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_page_actions_module.cc View 1 2 3 chunks +14 lines, -17 lines 0 comments Download
M chrome/browser/gtk/location_bar_view_gtk.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/views/location_bar_view.cc View 1 2 2 chunks +10 lines, -1 line 0 comments Download
A chrome/test/data/extensions/browsertest/crash_25562/background.html View 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/browsertest/crash_25562/chrome-16.png View Binary file 0 comments Download
A chrome/test/data/extensions/browsertest/crash_25562/manifest.json View 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/browsertest/crash_25562/script.js View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Finnur
11 years, 2 months ago (2009-10-22 22:25:53 UTC) #1
Matt Perry
linux too! http://codereview.chromium.org/316018/diff/1/7 File chrome/browser/extensions/extension_page_actions_module.cc (right): http://codereview.chromium.org/316018/diff/1/7#newcode60 Line 60: if (icon_id < 0) { the ...
11 years, 2 months ago (2009-10-22 22:41:06 UTC) #2
Finnur
Uploaded and sprinkled some Linux love onto the patch.
11 years, 2 months ago (2009-10-22 23:19:02 UTC) #3
Matt Perry
11 years, 2 months ago (2009-10-22 23:22:40 UTC) #4
lgtm

Powered by Google App Engine
This is Rietveld 408576698