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

Issue 1600553006: chrome.tabs.query: Allow extensions with host permission to see tabs of that host. (Closed)

Created:
4 years, 11 months ago by lazyboy
Modified:
4 years, 11 months ago
Reviewers:
Devlin
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

chrome.tabs.query: Allow extensions with host permission to see tabs of that host. r368222 made chrome.tabs.query restrict extensions without effective tabs permission from looking at a tab's URL. This CL relaxes the restriction letting tabs with specific host(s) permission to look at tabs at that host(s). BUG=572545 Test=See bug for details: https://code.google.com/p/chromium/issues/detail?id=572545#c9 Committed: https://crrev.com/f49ce9359208243bf74d08ae9bc9e41dd24b572d Cr-Commit-Position: refs/heads/master@{#370760}

Patch Set 1 #

Patch Set 2 : fix comment + git cl format #

Total comments: 8

Patch Set 3 : address comments from Devlin #

Patch Set 4 : fix nit #

Patch Set 5 : fix mistake while addressing comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -12 lines) Patch
M chrome/browser/extensions/api/tabs/tabs_api.cc View 1 2 3 4 1 chunk +17 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_api_unittest.cc View 1 2 3 2 chunks +81 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
lazyboy
4 years, 11 months ago (2016-01-20 00:38:23 UTC) #3
Devlin
lgtm https://chromiumcodereview.appspot.com/1600553006/diff/20001/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://chromiumcodereview.appspot.com/1600553006/diff/20001/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode996 chrome/browser/extensions/api/tabs/tabs_api.cc:996: if (extension_->permissions_data()->HasAPIPermissionForTab( nitty nit: I find this slightly ...
4 years, 11 months ago (2016-01-20 18:15:40 UTC) #4
lazyboy
https://chromiumcodereview.appspot.com/1600553006/diff/20001/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://chromiumcodereview.appspot.com/1600553006/diff/20001/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode996 chrome/browser/extensions/api/tabs/tabs_api.cc:996: if (extension_->permissions_data()->HasAPIPermissionForTab( On 2016/01/20 18:15:40, Devlin wrote: > nitty ...
4 years, 11 months ago (2016-01-20 19:12:29 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1600553006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1600553006/80001
4 years, 11 months ago (2016-01-21 19:30:10 UTC) #8
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 11 months ago (2016-01-21 19:54:19 UTC) #10
commit-bot: I haz the power
4 years, 11 months ago (2016-01-21 19:55:24 UTC) #12
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f49ce9359208243bf74d08ae9bc9e41dd24b572d
Cr-Commit-Position: refs/heads/master@{#370760}

Powered by Google App Engine
This is Rietveld 408576698