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

Issue 2766263003: Extensions: Only load incognito-enabled extensions in an incognito renderer. (Closed)

Created:
3 years, 9 months ago by karandeepb
Modified:
3 years, 8 months ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Extensions: Only load incognito-enabled extensions in an incognito renderer. Currently, extensions which are disabled in incognito mode are also loaded in an incognito renderer. This is redundant and can cause non-required bindings to be generated in the renderer. Also, it has potential security implications. Prevent this by only loading incognito-enabled extensions in an incognito renderer. However extensions which can't be enabled in the incognito mode (e.g. platform apps etc.) still need to be loaded in incognito renderers, so that incognito tabs can connect with them (issue 305394). Also, add tests for the same. BUG=527548 Review-Url: https://codereview.chromium.org/2766263003 Cr-Commit-Position: refs/heads/master@{#462707} Committed: https://chromium.googlesource.com/chromium/src/+/18ab4ab8c381424b30163a763515ecc0fdfc8db2

Patch Set 1 : -- #

Patch Set 2 : -- #

Total comments: 18

Patch Set 3 : Rebase. #

Patch Set 4 : Address review. #

Patch Set 5 : -- #

Patch Set 6 : -- #

Patch Set 7 : Rebase. #

Total comments: 1

Patch Set 8 : Add another test. Nits. #

Patch Set 9 : Split test cleanups to another CL. #

Patch Set 10 : Nits. #

Total comments: 2

Patch Set 11 : Rebase. #

Patch Set 12 : Address review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -75 lines) Patch
M chrome/browser/extensions/api/messaging/incognito_connectability.h View 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/messaging/message_service.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_messages_apitest.cc View 1 2 3 4 5 6 7 8 9 9 chunks +76 lines, -43 lines 0 comments Download
M extensions/browser/renderer_startup_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +42 lines, -16 lines 0 comments Download
M extensions/browser/renderer_startup_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +130 lines, -10 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 43 (34 generated)
karandeepb
PTAL Devlin. This is dependent on two CLs, however this can probably be given an ...
3 years, 9 months ago (2017-03-23 02:54:04 UTC) #9
Devlin
Overall, this seems like the right idea. A few subtle cases here, but overall looks ...
3 years, 9 months ago (2017-03-23 22:08:37 UTC) #10
karandeepb
PTAL Devlin. https://codereview.chromium.org/2766263003/diff/60001/chrome/browser/extensions/api/messaging/message_service.cc File chrome/browser/extensions/api/messaging/message_service.cc (right): https://codereview.chromium.org/2766263003/diff/60001/chrome/browser/extensions/api/messaging/message_service.cc#newcode335 chrome/browser/extensions/api/messaging/message_service.cc:335: DCHECK(!util::CanBeIncognitoEnabled(target_extension)); On 2017/03/23 22:08:36, Devlin wrote: > ...
3 years, 8 months ago (2017-04-04 03:44:16 UTC) #29
Devlin
LGTM. The diff is a bit odd, since https://codereview.chromium.org/2766063003/ isn't listed as a dependency, but ...
3 years, 8 months ago (2017-04-04 15:15:06 UTC) #32
karandeepb
>>The diff is a bit odd, since https://codereview.chromium.org/2766063003/ isn't >>listed as a dependency, but as ...
3 years, 8 months ago (2017-04-04 19:46:16 UTC) #35
karandeepb
Another thing, in the linked bug you also mentioned some IPC messages in permission_updater. I ...
3 years, 8 months ago (2017-04-04 21:16:09 UTC) #36
Devlin
On 2017/04/04 21:16:09, karandeepb wrote: > Another thing, in the linked bug you also mentioned ...
3 years, 8 months ago (2017-04-05 16:48:24 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2766263003/320001
3 years, 8 months ago (2017-04-06 22:47:10 UTC) #40
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 00:29:24 UTC) #43
Message was sent while issue was closed.
Committed patchset #12 (id:320001) as
https://chromium.googlesource.com/chromium/src/+/18ab4ab8c381424b30163a763515...

Powered by Google App Engine
This is Rietveld 408576698