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

Issue 890083002: [Extensions] Propagate activeTab hosts to extension background pages (Closed)

Created:
5 years, 10 months ago by Devlin
Modified:
5 years, 10 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions] Propagate activeTab hosts to extension background pages Let extensions with active tab use XHR in background pages to any hosts that they have active tab on. Also move tab_finder to //extensions. BUG=452688 Committed: https://crrev.com/c491dbfaad049247a5d2f92ab5ad823725414e70 Cr-Commit-Position: refs/heads/master@{#315147}

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Total comments: 17

Patch Set 3 : #

Total comments: 7

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+326 lines, -190 lines) Patch
M chrome/browser/extensions/active_tab_permission_granter.cc View 1 2 4 chunks +78 lines, -20 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M chrome/chrome_renderer.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/extensions/permissions/permissions_data_unittest.cc View 1 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.cc View 1 chunk +0 lines, -1 line 0 comments Download
D chrome/renderer/extensions/tab_finder.h View 1 chunk +0 lines, -39 lines 0 comments Download
D chrome/renderer/extensions/tab_finder.cc View 1 chunk +0 lines, -40 lines 0 comments Download
M chrome/test/data/extensions/api_test/active_tab/background.js View 1 2 3 2 chunks +40 lines, -3 lines 0 comments Download
A chrome/test/data/extensions/api_test/active_tab/iframe.html View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/active_tab/iframe.js View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/active_tab/manifest.json View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M extensions/browser/extension_web_contents_observer.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M extensions/browser/process_manager.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/browser/process_manager.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M extensions/browser/renderer_startup_helper.cc View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M extensions/common/extension_messages.h View 1 3 chunks +13 lines, -7 lines 0 comments Download
M extensions/common/extension_messages.cc View 1 3 chunks +18 lines, -4 lines 0 comments Download
M extensions/common/permissions/permissions_data.h View 1 4 chunks +18 lines, -9 lines 0 comments Download
M extensions/common/permissions/permissions_data.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M extensions/extensions.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/renderer/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/renderer/dispatcher.h View 1 2 chunks +11 lines, -2 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 1 7 chunks +68 lines, -8 lines 0 comments Download
M extensions/renderer/extension_helper.h View 1 chunk +0 lines, -6 lines 0 comments Download
M extensions/renderer/extension_helper.cc View 2 chunks +0 lines, -35 lines 0 comments Download
A + extensions/renderer/tab_finder.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + extensions/renderer/tab_finder.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (6 generated)
Devlin
Ben, take a look when you can.
5 years, 10 months ago (2015-02-02 19:37:45 UTC) #2
not at google - send to devlin
After much staring... https://codereview.chromium.org/890083002/diff/1/chrome/browser/extensions/active_tab_permission_granter.cc File chrome/browser/extensions/active_tab_permission_granter.cc (right): https://codereview.chromium.org/890083002/diff/1/chrome/browser/extensions/active_tab_permission_granter.cc#newcode78 chrome/browser/extensions/active_tab_permission_granter.cc:78: GetBackgroundHostForExtension(extension->id()); What about if the event ...
5 years, 10 months ago (2015-02-03 19:29:12 UTC) #3
Devlin
https://codereview.chromium.org/890083002/diff/1/chrome/browser/extensions/active_tab_permission_granter.cc File chrome/browser/extensions/active_tab_permission_granter.cc (right): https://codereview.chromium.org/890083002/diff/1/chrome/browser/extensions/active_tab_permission_granter.cc#newcode78 chrome/browser/extensions/active_tab_permission_granter.cc:78: GetBackgroundHostForExtension(extension->id()); On 2015/02/03 19:29:12, kalman wrote: > What about ...
5 years, 10 months ago (2015-02-04 22:26:02 UTC) #5
not at google - send to devlin
lgtm. I'd feel more comfortable with a little more test coverage. https://codereview.chromium.org/890083002/diff/40001/chrome/browser/extensions/active_tab_permission_granter.cc File chrome/browser/extensions/active_tab_permission_granter.cc (right): ...
5 years, 10 months ago (2015-02-05 00:16:13 UTC) #6
Devlin
https://codereview.chromium.org/890083002/diff/40001/chrome/browser/extensions/active_tab_permission_granter.cc File chrome/browser/extensions/active_tab_permission_granter.cc (right): https://codereview.chromium.org/890083002/diff/40001/chrome/browser/extensions/active_tab_permission_granter.cc#newcode49 chrome/browser/extensions/active_tab_permission_granter.cc:49: // also sends a message to the tab process. ...
5 years, 10 months ago (2015-02-05 19:54:50 UTC) #8
not at google - send to devlin
lgtm https://codereview.chromium.org/890083002/diff/40001/extensions/common/extension_messages.cc File extensions/common/extension_messages.cc (right): https://codereview.chromium.org/890083002/diff/40001/extensions/common/extension_messages.cc#newcode81 extensions/common/extension_messages.cc:81: for (const auto& pair : tab_specific_permissions) { On ...
5 years, 10 months ago (2015-02-05 22:40:23 UTC) #9
Devlin
https://codereview.chromium.org/890083002/diff/60001/chrome/test/data/extensions/api_test/active_tab/background.js File chrome/test/data/extensions/api_test/active_tab/background.js (right): https://codereview.chromium.org/890083002/diff/60001/chrome/test/data/extensions/api_test/active_tab/background.js#newcode21 chrome/test/data/extensions/api_test/active_tab/background.js:21: success = false; On 2015/02/05 22:40:22, kalman wrote: > ...
5 years, 10 months ago (2015-02-06 18:59:53 UTC) #11
Devlin
+Justin for extension messages.
5 years, 10 months ago (2015-02-06 19:00:51 UTC) #13
jschuh
ipc security lgtm (notes: browser -> extension metadata)
5 years, 10 months ago (2015-02-06 23:40:36 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/890083002/80001
5 years, 10 months ago (2015-02-07 00:27:44 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 10 months ago (2015-02-07 00:32:11 UTC) #17
commit-bot: I haz the power
5 years, 10 months ago (2015-02-07 00:33:14 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c491dbfaad049247a5d2f92ab5ad823725414e70
Cr-Commit-Position: refs/heads/master@{#315147}

Powered by Google App Engine
This is Rietveld 408576698