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

Issue 1424663005: Prevent browser crashes when a site is added to shelf with extensions blacklisted. (Closed)

Created:
5 years, 1 month ago by dominickn
Modified:
5 years, 1 month ago
Reviewers:
benwells
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent browser crashes when a site is added to shelf with extensions blacklisted. The bookmark app installer underpinning the add to shelf functionality assumes the validity of the extension pointer returned from the app installation process with a DCHECK. However, CrxInstaller issues a DONE notification with a null extension pointer attached when installation fails, e.g. when extensions are blacklisted. Dereferencing the null pointer leads to a whole browser crash that is 100% reproducible whenever add to shelf is used while extensions are blacklisted (and under any other conditions which cause extension installation to fail). This CL fixes the crash by explicitly checking the extension pointer instead of DCHECKing it. When a null extension pointer is returned from CrxInstaller, add to shelf will silently fail and the browser won't crash. A future CL will stop the add to shelf functionality from being exposed if extensions are disabled by policy. BUG=545541 Committed: https://crrev.com/a5a950ab63b1e7abb7dbdb03a50fb090144cc262 Cr-Commit-Position: refs/heads/master@{#356231}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -4 lines) Patch
M chrome/browser/extensions/bookmark_app_helper.cc View 1 chunk +10 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 9 (4 generated)
dominickn
PTAL, thanks. Will be requesting merge to M46 and M47.
5 years, 1 month ago (2015-10-27 02:36:16 UTC) #3
benwells
lgtm
5 years, 1 month ago (2015-10-27 03:09:17 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1424663005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1424663005/1
5 years, 1 month ago (2015-10-27 03:12:03 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 1 month ago (2015-10-27 03:21:10 UTC) #8
commit-bot: I haz the power
5 years, 1 month ago (2015-10-27 03:22:06 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/a5a950ab63b1e7abb7dbdb03a50fb090144cc262
Cr-Commit-Position: refs/heads/master@{#356231}

Powered by Google App Engine
This is Rietveld 408576698