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

Issue 1058113002: Implement <webview>.addContentScript/removeContentScript API [3] (Closed)

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

Description

Implement <webview>.addContentScript/removeContentScript API [3] This patch enables the code injection for <webview>.addContentScript/removeContentScript API. This is the third patch in a series of patches: 1) Implement <webview>.addContentScript/removeContentScript API [1] (https://codereview.chromium.org/959413003) 2) Implement <webview>.addContentScript/removeContentScript API [2] (https://codereview.chromium.org/1056533002) 3) Implement <webview>.addContentScript/removeContentScript API [3] (https://codereview.chromium.org/1058113002) BUG=461052 Committed: https://crrev.com/0f31f97fc9577a559a527a3421981b75427791b8 Cr-Commit-Position: refs/heads/master@{#327037}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Rebase. #

Patch Set 3 : nits #

Total comments: 1

Patch Set 4 : Rebase and nits. #

Patch Set 5 : Rebase and replace \" by \'. #

Total comments: 2

Patch Set 6 : Update comments #

Patch Set 7 : nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -484 lines) Patch
M chrome/browser/apps/guest_view/web_view_browsertest.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/webui_webview_browsertest.cc View 1 2 3 4 2 chunks +9 lines, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/shim/main.js View 1 2 3 4 5 12 chunks +63 lines, -37 lines 0 comments Download
A + chrome/test/data/webui/webview_content_script_test.js View 1 2 3 4 5 6 1 chunk +21 lines, -0 lines 0 comments Download
D chrome/test/data/webui/webview_execute_script_test.js View 1 2 3 4 5 6 1 chunk +0 lines, -446 lines 0 comments Download
M extensions/browser/api/guest_view/web_view/web_view_internal_api.cc View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M extensions/common/api/web_view_internal.json View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (7 generated)
Xi Han
5 years, 8 months ago (2015-04-02 20:30:11 UTC) #2
Fady Samuel
lgtm assuming devlin@ or kalman@ are happy with this approach. https://codereview.chromium.org/1058113002/diff/1/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc File extensions/browser/api/guest_view/web_view/web_view_internal_api.cc (right): https://codereview.chromium.org/1058113002/diff/1/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc#newcode173 ...
5 years, 8 months ago (2015-04-07 20:20:37 UTC) #3
Xi Han
+ Devlin: please review all changes. + Xiyuan: please review: -chrome/browser/ui/webui/webui_webview_browsertest.cc -chrome/test/data/webui/webview_execute_script_test.js Thanks.
5 years, 8 months ago (2015-04-07 20:25:04 UTC) #5
Xi Han
+ Xiyuan: please review: -chrome/browser/ui/webui/webui_webview_browsertest.cc -chrome/test/data/webui/webview_execute_script_test.js Thanks.
5 years, 8 months ago (2015-04-07 20:25:52 UTC) #7
xiyuan
webui/* LGTM But I have a question on the API: why do we need an ...
5 years, 8 months ago (2015-04-07 20:35:02 UTC) #8
Xi Han
https://codereview.chromium.org/1058113002/diff/1/extensions/common/api/web_view_internal.json File extensions/common/api/web_view_internal.json (right): https://codereview.chromium.org/1058113002/diff/1/extensions/common/api/web_view_internal.json#newcode124 extensions/common/api/web_view_internal.json:124: "type": "array", On 2015/04/07 20:35:02, xiyuan wrote: > Shouldn't ...
5 years, 8 months ago (2015-04-07 20:43:10 UTC) #9
xiyuan
https://codereview.chromium.org/1058113002/diff/1/extensions/common/api/web_view_internal.json File extensions/common/api/web_view_internal.json (right): https://codereview.chromium.org/1058113002/diff/1/extensions/common/api/web_view_internal.json#newcode124 extensions/common/api/web_view_internal.json:124: "type": "array", On 2015/04/07 20:43:10, Xi Han wrote: > ...
5 years, 8 months ago (2015-04-07 21:13:14 UTC) #11
xiyuan
One more nit to rename webview_execute_script_test.js -> webview_content_script_test.js since it is more than executeScript now.
5 years, 8 months ago (2015-04-08 02:15:35 UTC) #12
Xi Han
Renames to webview_content_script_test.js and updates the code property. https://codereview.chromium.org/1058113002/diff/1/extensions/common/api/web_view_internal.json File extensions/common/api/web_view_internal.json (right): https://codereview.chromium.org/1058113002/diff/1/extensions/common/api/web_view_internal.json#newcode124 extensions/common/api/web_view_internal.json:124: "type": ...
5 years, 8 months ago (2015-04-08 14:47:40 UTC) #13
xiyuan
LGTM++ https://codereview.chromium.org/1058113002/diff/60001/chrome/test/data/webui/webview_content_script_test.js File chrome/test/data/webui/webview_content_script_test.js (right): https://codereview.chromium.org/1058113002/diff/60001/chrome/test/data/webui/webview_content_script_test.js#newcode389 chrome/test/data/webui/webview_content_script_test.js:389: "matches": ["http://*/empty*"], nit: double quote -> single quote ...
5 years, 8 months ago (2015-04-08 15:54:02 UTC) #14
Fady Samuel
https://codereview.chromium.org/1058113002/diff/120001/extensions/common/api/web_view_internal.json File extensions/common/api/web_view_internal.json (right): https://codereview.chromium.org/1058113002/diff/120001/extensions/common/api/web_view_internal.json#newcode142 extensions/common/api/web_view_internal.json:142: "description": "The list of JavaScript code to be injected ...
5 years, 8 months ago (2015-04-18 15:40:25 UTC) #16
Xi Han
https://codereview.chromium.org/1058113002/diff/120001/extensions/common/api/web_view_internal.json File extensions/common/api/web_view_internal.json (right): https://codereview.chromium.org/1058113002/diff/120001/extensions/common/api/web_view_internal.json#newcode142 extensions/common/api/web_view_internal.json:142: "description": "The list of JavaScript code to be injected ...
5 years, 8 months ago (2015-04-20 13:37:15 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1058113002/160001
5 years, 8 months ago (2015-04-27 12:49:46 UTC) #20
commit-bot: I haz the power
Committed patchset #7 (id:160001)
5 years, 8 months ago (2015-04-27 14:10:10 UTC) #21
commit-bot: I haz the power
5 years, 8 months ago (2015-04-27 14:11:05 UTC) #22
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/0f31f97fc9577a559a527a3421981b75427791b8
Cr-Commit-Position: refs/heads/master@{#327037}

Powered by Google App Engine
This is Rietveld 408576698