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

Issue 183863007: Telemetry support for iframes. (Closed)

Created:
6 years, 9 months ago by achuithb
Modified:
6 years, 9 months ago
Reviewers:
tonyg
CC:
chromium-reviews, chrome-speed-team+watch_google.com, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Telemetry support for iframes. * Add methods EvaluateJavaScriptInContext, ExecuteJavaScriptInContext. * Backend classes take an additional context_id argument, which refers to the iframe. * WebContents has an EnableAllContexts method, to enable access to iframes. * Add tests testIFrame, and unit test data files host.html, iframe*.html. BUG=237032, 350568 TEST=unittest Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255621 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256611

Patch Set 1 #

Patch Set 2 : minor #

Total comments: 2

Patch Set 3 : EnableAllContexts #

Total comments: 2

Patch Set 4 : Make _EnableAllContexts automatic #

Patch Set 5 : fix unittest #

Patch Set 6 : more fix for unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -28 lines) Patch
M tools/telemetry/telemetry/core/backends/chrome/inspector_backend.py View 1 2 3 4 4 chunks +9 lines, -8 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/inspector_runtime.py View 1 2 3 4 chunks +14 lines, -18 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/inspector_runtime_unittest.py View 1 2 3 4 5 2 chunks +37 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/web_contents.py View 1 2 3 4 2 chunks +20 lines, -2 lines 0 comments Download
A tools/telemetry/unittest_data/host.html View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
A tools/telemetry/unittest_data/iframe1.html View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
A tools/telemetry/unittest_data/iframe2.html View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
A tools/telemetry/unittest_data/iframe3.html View 1 2 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
achuithb
Tony, here's a first cut. I didn't want to change the signature of EvaluateJavaScript, ExecuteJavaScript, ...
6 years, 9 months ago (2014-02-28 03:45:09 UTC) #1
tonyg
Everything else lg https://codereview.chromium.org/183863007/diff/20001/tools/telemetry/telemetry/core/backends/chrome/inspector_page.py File tools/telemetry/telemetry/core/backends/chrome/inspector_page.py (right): https://codereview.chromium.org/183863007/diff/20001/tools/telemetry/telemetry/core/backends/chrome/inspector_page.py#newcode38 tools/telemetry/telemetry/core/backends/chrome/inspector_page.py:38: 'method': 'Runtime.enable'}) Is there any way ...
6 years, 9 months ago (2014-03-05 03:10:00 UTC) #2
achuithb
I've added a method EnableAllContexts to WebContents, so access to iframes must be explicitly requested. ...
6 years, 9 months ago (2014-03-06 05:45:41 UTC) #3
tonyg
Please address the last comment before landing. lgtm https://codereview.chromium.org/183863007/diff/100001/tools/telemetry/telemetry/core/web_contents.py File tools/telemetry/telemetry/core/web_contents.py (right): https://codereview.chromium.org/183863007/diff/100001/tools/telemetry/telemetry/core/web_contents.py#newcode109 tools/telemetry/telemetry/core/web_contents.py:109: def ...
6 years, 9 months ago (2014-03-06 14:53:08 UTC) #4
achuithb
Please excuse the rebase. Please take another look, I've moved EnableAllContexts to InspectorRuntime and made ...
6 years, 9 months ago (2014-03-06 19:43:51 UTC) #5
achuithb
The CQ bit was checked by achuith@chromium.org
6 years, 9 months ago (2014-03-07 11:57:20 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/achuith@chromium.org/183863007/120001
6 years, 9 months ago (2014-03-07 11:57:45 UTC) #7
commit-bot: I haz the power
Change committed as 255621
6 years, 9 months ago (2014-03-07 15:33:50 UTC) #8
achuithb
The CQ bit was checked by achuith@chromium.org
6 years, 9 months ago (2014-03-12 00:17:40 UTC) #9
achuithb
The CQ bit was unchecked by achuith@chromium.org
6 years, 9 months ago (2014-03-12 00:17:48 UTC) #10
achuithb
The CQ bit was checked by achuith@chromium.org
6 years, 9 months ago (2014-03-12 00:18:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/achuith@chromium.org/183863007/140001
6 years, 9 months ago (2014-03-12 00:20:59 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-12 05:11:41 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 9 months ago (2014-03-12 05:11:42 UTC) #14
achuithb
The CQ bit was checked by achuith@chromium.org
6 years, 9 months ago (2014-03-12 08:20:06 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/achuith@chromium.org/183863007/170001
6 years, 9 months ago (2014-03-12 08:27:48 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-12 10:24:53 UTC) #17
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=280426
6 years, 9 months ago (2014-03-12 10:24:54 UTC) #18
achuithb
The CQ bit was checked by achuith@chromium.org
6 years, 9 months ago (2014-03-12 10:40:58 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/achuith@chromium.org/183863007/170001
6 years, 9 months ago (2014-03-12 10:41:32 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/achuith@chromium.org/183863007/170001
6 years, 9 months ago (2014-03-12 16:53:42 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/achuith@chromium.org/183863007/170001
6 years, 9 months ago (2014-03-12 19:13:08 UTC) #22
commit-bot: I haz the power
6 years, 9 months ago (2014-03-12 19:53:08 UTC) #23
Message was sent while issue was closed.
Change committed as 256611

Powered by Google App Engine
This is Rietveld 408576698