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

Issue 401007: Make executeScript and insertCSS inject code into all frames. (Closed)

Created:
11 years, 1 month ago by tangjie1
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, ben+cc_chromium.org, Erik does not do reviews, jam, Aaron Boodman, pam+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Make executeScript and insertCSS inject code into all frames.

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 10

Patch Set 3 : '' #

Total comments: 18

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -39 lines) Patch
M chrome/browser/extensions/execute_code_in_tab_function.h View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/extensions/execute_code_in_tab_function.cc View 1 2 3 4 4 chunks +17 lines, -4 lines 0 comments Download
M chrome/browser/extensions/execute_script_apitest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 4 2 chunks +8 lines, -6 lines 1 comment Download
M chrome/common/render_messages_internal.h View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/renderer/render_view.h View 1 2 3 4 chunks +14 lines, -4 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 chunks +39 lines, -15 lines 0 comments Download
M chrome/test/data/extensions/api_test/executescript/test.html View 1 2 3 4 3 chunks +19 lines, -4 lines 0 comments Download
A chrome/test/data/extensions/api_test/executescript_in_frame/frame0.html View 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/executescript_in_frame/frame1.html View 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/executescript_in_frame/frame2.html View 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/executescript_in_frame/frame3.html View 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/executescript_in_frame/manifest.json View 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/executescript_in_frame/script.js View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/executescript_in_frame/test.html View 1 2 3 1 chunk +68 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/executescript_in_frame/test_executescript.html View 1 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
tangjie1
Hi aa, Please help review this patch. Thanks! Jerry
11 years, 1 month ago (2009-11-17 02:18:12 UTC) #1
darin (slow to review)
some minor drive-by style nits: http://codereview.chromium.org/401007/diff/3001/47 File chrome/renderer/render_view.cc (right): http://codereview.chromium.org/401007/diff/3001/47#newcode2994 Line 2994: bool RenderView::GetChildrenFrames(WebFrame* parent_frame, ...
11 years, 1 month ago (2009-11-17 07:31:27 UTC) #2
tangjie1
http://codereview.chromium.org/401007/diff/3001/47 File chrome/renderer/render_view.cc (right): http://codereview.chromium.org/401007/diff/3001/47#newcode2994 Line 2994: bool RenderView::GetChildrenFrames(WebFrame* parent_frame, On 2009/11/17 07:31:28, darin wrote: ...
11 years, 1 month ago (2009-11-17 19:49:54 UTC) #3
Aaron Boodman
http://codereview.chromium.org/401007/diff/1010/2009 File chrome/browser/extensions/execute_code_in_tab_function.h (right): http://codereview.chromium.org/401007/diff/1010/2009#newcode51 Line 51: bool inject_to_all_frames_; Suggest naming this member just "all_frames_". ...
11 years, 1 month ago (2009-11-18 00:31:56 UTC) #4
tangjie1
http://codereview.chromium.org/401007/diff/1010/2009 File chrome/browser/extensions/execute_code_in_tab_function.h (right): http://codereview.chromium.org/401007/diff/1010/2009#newcode51 Line 51: bool inject_to_all_frames_; On 2009/11/18 00:31:56, Aaron Boodman wrote: ...
11 years, 1 month ago (2009-11-19 18:39:14 UTC) #5
Aaron Boodman
11 years, 1 month ago (2009-11-19 21:16:19 UTC) #6
lgtm

http://codereview.chromium.org/401007/diff/11001/11008
File chrome/common/extensions/api/extension_api.json (right):

http://codereview.chromium.org/401007/diff/11001/11008#newcode721
Line 721: "description": "Note: code or file can't be specified at the same
time.",
Make the description:

Details of the script to run. Either the "code" or "file" property must be set,
but both may not be set at the same time.

Powered by Google App Engine
This is Rietveld 408576698