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

Issue 11139005: Expose Browser Plugin API in <browser> Tag Shim. (Closed)

Created:
8 years, 2 months ago by lazyboy
Modified:
8 years, 2 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Expose Browser Plugin API in <browser> Tag Shim. I'm a bit concerned about add{/remove}EventListener method overriding here though, because this overrides the default add{/remove}EventListener for the tag. I'm not sure if this is desired or not. BUG=154304 TEST=Tested with calling <browser>.getProcessId(). Also tested with 'loadStart' event callback. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161734

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address comments + add test. #

Total comments: 2

Patch Set 3 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -0 lines) Patch
M chrome/renderer/resources/extensions/browser_tag.js View 1 2 2 chunks +21 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/browser_tag/main.js View 1 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
lazyboy
8 years, 2 months ago (2012-10-12 21:43:20 UTC) #1
sadrul
drive-by http://codereview.chromium.org/11139005/diff/1/chrome/renderer/resources/extensions/browser_tag.js File chrome/renderer/resources/extensions/browser_tag.js (right): http://codereview.chromium.org/11139005/diff/1/chrome/renderer/resources/extensions/browser_tag.js#newcode59 chrome/renderer/resources/extensions/browser_tag.js:59: return objectNode[apiMethod].apply(objectNode, arguments); node[apiMethod] = objectNode[apiMethod].bind(objectNode);?
8 years, 2 months ago (2012-10-12 22:03:49 UTC) #2
Mihai Parparita -not on Chrome
(another drive-by) https://chromiumcodereview.appspot.com/11139005/diff/1/chrome/renderer/resources/extensions/browser_tag.js File chrome/renderer/resources/extensions/browser_tag.js (right): https://chromiumcodereview.appspot.com/11139005/diff/1/chrome/renderer/resources/extensions/browser_tag.js#newcode59 chrome/renderer/resources/extensions/browser_tag.js:59: return objectNode[apiMethod].apply(objectNode, arguments); On 2012/10/12 22:03:49, sadrul ...
8 years, 2 months ago (2012-10-12 22:19:41 UTC) #3
Mihai Parparita -not on Chrome
Also, it seems like it should be possible to add at least basic tests (for ...
8 years, 2 months ago (2012-10-12 22:21:13 UTC) #4
lazyboy
Thanks for the review! Added test for checking if the api functions exist in the ...
8 years, 2 months ago (2012-10-12 23:21:16 UTC) #5
Mihai Parparita -not on Chrome
LGTM https://chromiumcodereview.appspot.com/11139005/diff/5002/chrome/renderer/resources/extensions/browser_tag.js File chrome/renderer/resources/extensions/browser_tag.js (right): https://chromiumcodereview.appspot.com/11139005/diff/5002/chrome/renderer/resources/extensions/browser_tag.js#newcode55 chrome/renderer/resources/extensions/browser_tag.js:55: var objectNode = this.objectNode_; This is no longer ...
8 years, 2 months ago (2012-10-13 00:13:53 UTC) #6
lazyboy
Thanks for the review! https://chromiumcodereview.appspot.com/11139005/diff/5002/chrome/renderer/resources/extensions/browser_tag.js File chrome/renderer/resources/extensions/browser_tag.js (right): https://chromiumcodereview.appspot.com/11139005/diff/5002/chrome/renderer/resources/extensions/browser_tag.js#newcode55 chrome/renderer/resources/extensions/browser_tag.js:55: var objectNode = this.objectNode_; On ...
8 years, 2 months ago (2012-10-13 02:44:07 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lazyboy@chromium.org/11139005/9001
8 years, 2 months ago (2012-10-13 02:45:45 UTC) #8
commit-bot: I haz the power
8 years, 2 months ago (2012-10-13 06:07:02 UTC) #9
Change committed as 161734

Powered by Google App Engine
This is Rietveld 408576698