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

Issue 1985323002: [Extensions] Expand capabilities to about:blank iframes within a page (Closed)

Created:
4 years, 7 months ago by Devlin
Modified:
4 years, 7 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] Expand capabilities to about:blank iframes within a page Expand the content capabilies to grant the capabilities to about:blank iframes within a page that matches the content capabilities entry for an extension. This is consistent with most web permissions, where about:blank frames take the permissions from the "parent". In theory, we could also create a match_about_blank entry in the manifest for this, but I'm not sure how many use cases there are for *not* granting permissions to child frames like this. BUG=599900 Committed: https://crrev.com/d0f2bad624766048836545ab34e13cd7a46c92e8 Cr-Commit-Position: refs/heads/master@{#395744}

Patch Set 1 : #

Patch Set 2 : Don't inject on sandboxed iframes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -1 line) Patch
M chrome/browser/extensions/content_capabilities_browsertest.cc View 3 chunks +27 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/content_capabilities/bar.example.com.html View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/content_capabilities/capability_tests.js View 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/content_capabilities/foo.example.com.html View 1 chunk +6 lines, -0 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 1 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 14 (8 generated)
Devlin
4 years, 7 months ago (2016-05-18 20:43:24 UTC) #5
asargent_no_longer_on_chrome
lgtm with one random thought: Should we omit the permission if the iframe has the ...
4 years, 7 months ago (2016-05-18 23:04:49 UTC) #6
Devlin
On 2016/05/18 23:04:49, Antony Sargent wrote: > Should we omit the permission if the iframe ...
4 years, 7 months ago (2016-05-21 00:03:47 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1985323002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1985323002/40001
4 years, 7 months ago (2016-05-24 19:57:46 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 7 months ago (2016-05-25 00:00:10 UTC) #12
commit-bot: I haz the power
4 years, 7 months ago (2016-05-25 00:03:21 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d0f2bad624766048836545ab34e13cd7a46c92e8
Cr-Commit-Position: refs/heads/master@{#395744}

Powered by Google App Engine
This is Rietveld 408576698