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

Issue 10598006: Browser tag shim (Closed)

Created:
8 years, 6 months ago by Mihai Parparita -not on Chrome
Modified:
8 years, 5 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, Fady Samuel, dglazkov
Visibility:
Public.

Description

Shim that simulates a <browser> tag via Mutation Observers. The actual tag is implemented via the browser plugin. The internals of this are hidden via Shadow DOM. Also fixes a bug with Shadow DOM not being enabled for all extensions views. BUG=133379 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=145229

Patch Set 1 #

Patch Set 2 : Ready for review #

Total comments: 5

Patch Set 3 : Review feedback #

Total comments: 15

Patch Set 4 : Review feedback #

Patch Set 5 : Fix tests #

Total comments: 25

Patch Set 6 : Review feedback #

Patch Set 7 : HasExtensionPermission #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -22 lines) Patch
M chrome/browser/extensions/platform_app_browsertest.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/browser/extensions/shadow_dom_apitest.cc View 1 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/chrome_render_view_observer.h View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/renderer/chrome_render_view_observer.cc View 1 2 3 4 5 6 2 chunks +26 lines, -16 lines 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.cc View 1 2 3 4 5 5 chunks +11 lines, -2 lines 0 comments Download
M chrome/renderer/renderer_resources.grd View 1 2 3 4 5 3 chunks +6 lines, -3 lines 0 comments Download
A chrome/renderer/resources/extensions/browser_tag.js View 1 2 3 4 5 1 chunk +90 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/platform_app.css View 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/shadow_dom/background.js View 1 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/shadow_dom/empty.html View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/shadow_dom/manifest.json View 1 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/browser_tag/main.html View 1 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/browser_tag/main.js View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/browser_tag/manifest.json View 1 1 chunk +15 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/browser_tag/test.js View 1 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Mihai Parparita -not on Chrome
Arv: please look at custom tag swizzling in browser_tag.js and see if I did this ...
8 years, 6 months ago (2012-06-21 01:30:11 UTC) #1
dglazkov
This looks awesome! https://chromiumcodereview.appspot.com/10598006/diff/2001/chrome/renderer/resources/extensions/browser_tag.js File chrome/renderer/resources/extensions/browser_tag.js (right): https://chromiumcodereview.appspot.com/10598006/diff/2001/chrome/renderer/resources/extensions/browser_tag.js#newcode59 chrome/renderer/resources/extensions/browser_tag.js:59: this.shadowRoot_ = new WebKitShadowRoot(this); Is it ...
8 years, 6 months ago (2012-06-21 16:22:06 UTC) #2
Fady Samuel
https://chromiumcodereview.appspot.com/10598006/diff/2001/chrome/renderer/resources/extensions/browser_tag.js File chrome/renderer/resources/extensions/browser_tag.js (right): https://chromiumcodereview.appspot.com/10598006/diff/2001/chrome/renderer/resources/extensions/browser_tag.js#newcode63 chrome/renderer/resources/extensions/browser_tag.js:63: this.objectNode_.style.webkitTransform = 'translateZ(0)'; This should be unnecessary. We just ...
8 years, 6 months ago (2012-06-21 23:14:46 UTC) #3
Mihai Parparita -not on Chrome
https://chromiumcodereview.appspot.com/10598006/diff/2001/chrome/renderer/resources/extensions/browser_tag.js File chrome/renderer/resources/extensions/browser_tag.js (right): https://chromiumcodereview.appspot.com/10598006/diff/2001/chrome/renderer/resources/extensions/browser_tag.js#newcode59 chrome/renderer/resources/extensions/browser_tag.js:59: this.shadowRoot_ = new WebKitShadowRoot(this); On 2012/06/21 16:22:07, Dimitri Glazkov ...
8 years, 5 months ago (2012-06-25 20:29:43 UTC) #4
Mihai Parparita -not on Chrome
Also, ping to Aaron/Adam/Erik about reviewing this. Mihai On Mon, Jun 25, 2012 at 1:29 ...
8 years, 5 months ago (2012-06-25 20:39:29 UTC) #5
arv (Not doing code reviews)
hawt https://chromiumcodereview.appspot.com/10598006/diff/8001/chrome/renderer/resources/extensions/browser_tag.js File chrome/renderer/resources/extensions/browser_tag.js (right): https://chromiumcodereview.appspot.com/10598006/diff/8001/chrome/renderer/resources/extensions/browser_tag.js#newcode12 chrome/renderer/resources/extensions/browser_tag.js:12: var BROWSER_TAG_ATTRIBUTES = ['src', 'width', 'height']; You might ...
8 years, 5 months ago (2012-06-25 21:02:24 UTC) #6
Mihai Parparita -not on Chrome
https://chromiumcodereview.appspot.com/10598006/diff/8001/chrome/renderer/resources/extensions/browser_tag.js File chrome/renderer/resources/extensions/browser_tag.js (right): https://chromiumcodereview.appspot.com/10598006/diff/8001/chrome/renderer/resources/extensions/browser_tag.js#newcode12 chrome/renderer/resources/extensions/browser_tag.js:12: var BROWSER_TAG_ATTRIBUTES = ['src', 'width', 'height']; On 2012/06/25 21:02:24, ...
8 years, 5 months ago (2012-06-26 00:58:24 UTC) #7
Mihai Parparita -not on Chrome
Ping to arv@ and abart@ (aa@ is off the hook for now)
8 years, 5 months ago (2012-06-28 06:03:15 UTC) #8
Aaron Boodman
http://codereview.chromium.org/10598006/diff/24001/chrome/common/extensions/api/_permission_features.json File chrome/common/extensions/api/_permission_features.json (right): http://codereview.chromium.org/10598006/diff/24001/chrome/common/extensions/api/_permission_features.json#newcode40 chrome/common/extensions/api/_permission_features.json:40: "extension_types": ["platform_app"] Before we launch all this stuff, we ...
8 years, 5 months ago (2012-07-02 20:52:35 UTC) #9
arv (Not doing code reviews)
LGTM with nits http://codereview.chromium.org/10598006/diff/24001/chrome/renderer/resources/extensions/browser_tag.js File chrome/renderer/resources/extensions/browser_tag.js (right): http://codereview.chromium.org/10598006/diff/24001/chrome/renderer/resources/extensions/browser_tag.js#newcode37 chrome/renderer/resources/extensions/browser_tag.js:37: this.shadowRoot_ = new WebKitShadowRoot(node); No need ...
8 years, 5 months ago (2012-07-02 21:04:28 UTC) #10
Mihai Parparita -not on Chrome
http://codereview.chromium.org/10598006/diff/24001/chrome/common/extensions/api/_permission_features.json File chrome/common/extensions/api/_permission_features.json (right): http://codereview.chromium.org/10598006/diff/24001/chrome/common/extensions/api/_permission_features.json#newcode40 chrome/common/extensions/api/_permission_features.json:40: "extension_types": ["platform_app"] On 2012/07/02 20:52:35, Aaron Boodman wrote: > ...
8 years, 5 months ago (2012-07-02 22:05:13 UTC) #11
Aaron Boodman
http://codereview.chromium.org/10598006/diff/24001/chrome/common/extensions/api/_permission_features.json File chrome/common/extensions/api/_permission_features.json (right): http://codereview.chromium.org/10598006/diff/24001/chrome/common/extensions/api/_permission_features.json#newcode40 chrome/common/extensions/api/_permission_features.json:40: "extension_types": ["platform_app"] On 2012/07/02 22:05:14, Mihai Parparita wrote: > ...
8 years, 5 months ago (2012-07-02 23:04:37 UTC) #12
Mihai Parparita -not on Chrome
http://codereview.chromium.org/10598006/diff/24001/chrome/renderer/chrome_render_view_observer.cc File chrome/renderer/chrome_render_view_observer.cc (right): http://codereview.chromium.org/10598006/diff/24001/chrome/renderer/chrome_render_view_observer.cc#newcode505 chrome/renderer/chrome_render_view_observer.cc:505: extension->HasAPIPermission(APIPermission::kBrowserTag); On 2012/07/02 23:04:37, Aaron Boodman wrote: > How ...
8 years, 5 months ago (2012-07-02 23:23:45 UTC) #13
Aaron Boodman
LGTM
8 years, 5 months ago (2012-07-02 23:27:03 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mihaip@chromium.org/10598006/21003
8 years, 5 months ago (2012-07-02 23:27:25 UTC) #15
commit-bot: I haz the power
8 years, 5 months ago (2012-07-03 00:43:35 UTC) #16
Change committed as 145229

Powered by Google App Engine
This is Rietveld 408576698