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

Issue 3010063002: [Telemetry] Add script to snapshot page's HTML (Closed)

Created:
3 years, 3 months ago by nednguyen
Modified:
3 years, 3 months ago
Reviewers:
pdr., wkorman, chrishtr
CC:
catapult-reviews_chromium.org, telemetry-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

[Telemetry] Add script to snapshot page's HTML To try this out: ./telemetry/bin/snap_page --browser=system --url=http://cnn.com BUG=chromium:717218 Review-Url: https://chromiumcodereview.appspot.com/3010063002 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/c9667ecd29cbb003b7fbdcd6f2da0f02bf0e7257

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address review comments #

Total comments: 1

Patch Set 3 : fix --interactive flag spec #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+2355 lines, -0 lines) Patch
M PRESUBMIT.py View 1 1 chunk +1 line, -0 lines 0 comments Download
A telemetry/bin/snap_page View 1 2 1 chunk +73 lines, -0 lines 2 comments Download
A telemetry/third_party/snap-it/HTMLSerializer.js View 1 chunk +755 lines, -0 lines 0 comments Download
A telemetry/third_party/snap-it/LICENSE View 1 1 chunk +201 lines, -0 lines 0 comments Download
A telemetry/third_party/snap-it/README.chromium View 1 1 chunk +13 lines, -0 lines 0 comments Download
A telemetry/third_party/snap-it/README.md View 1 chunk +2 lines, -0 lines 0 comments Download
A telemetry/third_party/snap-it/assets/camera.svg View 1 chunk +5 lines, -0 lines 0 comments Download
A telemetry/third_party/snap-it/assets/camera128.png View Binary file 0 comments Download
A telemetry/third_party/snap-it/assets/camera16.png View Binary file 0 comments Download
A telemetry/third_party/snap-it/assets/camera48.png View Binary file 0 comments Download
A telemetry/third_party/snap-it/content_script.js View 1 chunk +31 lines, -0 lines 0 comments Download
A telemetry/third_party/snap-it/manifest.json View 1 chunk +22 lines, -0 lines 0 comments Download
A telemetry/third_party/snap-it/popup.html View 1 chunk +12 lines, -0 lines 0 comments Download
A telemetry/third_party/snap-it/popup.js View 1 chunk +340 lines, -0 lines 0 comments Download
A telemetry/third_party/snap-it/style.css View 1 chunk +41 lines, -0 lines 0 comments Download
A telemetry/third_party/snap-it/tests/tests.html View 1 chunk +17 lines, -0 lines 0 comments Download
A telemetry/third_party/snap-it/tests/tests.js View 1 chunk +842 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (11 generated)
nednguyen
3 years, 3 months ago (2017-09-02 13:31:09 UTC) #3
wkorman
lgtm Sweet! https://codereview.chromium.org/3010063002/diff/1/telemetry/bin/snap_page File telemetry/bin/snap_page (right): https://codereview.chromium.org/3010063002/diff/1/telemetry/bin/snap_page#newcode21 telemetry/bin/snap_page:21: """ Save the HTML snapshot of the ...
3 years, 3 months ago (2017-09-02 13:50:06 UTC) #4
nednguyen
I filed a bug about LICENSE of snipit here: https://github.com/stevenbfine/snap-it/issues/72 Hopefully the author will respond ...
3 years, 3 months ago (2017-09-05 13:38:23 UTC) #5
pdr.
On 2017/09/05 at 13:38:23, nednguyen wrote: > I filed a bug about LICENSE of snipit ...
3 years, 3 months ago (2017-09-05 16:32:10 UTC) #6
nednguyen
On 2017/09/05 16:32:10, pdr. wrote: > On 2017/09/05 at 13:38:23, nednguyen wrote: > > I ...
3 years, 3 months ago (2017-09-05 16:32:50 UTC) #7
pdr.
On 2017/09/05 at 16:32:10, pdr. wrote: > On 2017/09/05 at 13:38:23, nednguyen wrote: > > ...
3 years, 3 months ago (2017-09-05 16:34:16 UTC) #8
pdr.
On 2017/09/05 at 16:34:16, pdr. wrote: > On 2017/09/05 at 16:32:10, pdr. wrote: > > ...
3 years, 3 months ago (2017-09-05 17:22:38 UTC) #9
nednguyen
On 2017/09/05 17:22:38, pdr. wrote: > On 2017/09/05 at 16:34:16, pdr. wrote: > > On ...
3 years, 3 months ago (2017-09-05 17:25:37 UTC) #10
pdr.
On 2017/09/05 at 17:25:37, nednguyen wrote: > On 2017/09/05 17:22:38, pdr. wrote: > > On ...
3 years, 3 months ago (2017-09-05 17:31:24 UTC) #11
nednguyen
https://codereview.chromium.org/3010063002/diff/1/telemetry/bin/snap_page File telemetry/bin/snap_page (right): https://codereview.chromium.org/3010063002/diff/1/telemetry/bin/snap_page#newcode21 telemetry/bin/snap_page:21: """ Save the HTML snapshot of the page whose ...
3 years, 3 months ago (2017-09-05 17:49:08 UTC) #12
nednguyen
https://codereview.chromium.org/3010063002/diff/20001/telemetry/bin/snap_page File telemetry/bin/snap_page (right): https://codereview.chromium.org/3010063002/diff/20001/telemetry/bin/snap_page#newcode65 telemetry/bin/snap_page:65: parser.add_option('--interactive', I added this flag since the original review.
3 years, 3 months ago (2017-09-05 17:49:50 UTC) #13
nednguyen
On 2017/09/05 17:49:50, nednguyen wrote: > https://codereview.chromium.org/3010063002/diff/20001/telemetry/bin/snap_page > File telemetry/bin/snap_page (right): > > https://codereview.chromium.org/3010063002/diff/20001/telemetry/bin/snap_page#newcode65 > ...
3 years, 3 months ago (2017-09-05 20:11:38 UTC) #19
pdr.
LGTM https://codereview.chromium.org/3010063002/diff/40001/telemetry/bin/snap_page File telemetry/bin/snap_page (right): https://codereview.chromium.org/3010063002/diff/40001/telemetry/bin/snap_page#newcode20 telemetry/bin/snap_page:20: def SnapPage(finder_options, url, interactive, snapshot_path): WDYT of adding ...
3 years, 3 months ago (2017-09-05 21:30:41 UTC) #20
wkorman
lgtm
3 years, 3 months ago (2017-09-05 21:34:19 UTC) #21
nednguyen
On 2017/09/05 21:30:41, pdr. wrote: > LGTM > > https://codereview.chromium.org/3010063002/diff/40001/telemetry/bin/snap_page > File telemetry/bin/snap_page (right): > ...
3 years, 3 months ago (2017-09-05 21:41:46 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/3010063002/40001
3 years, 3 months ago (2017-09-05 21:41:57 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/c9667ecd29cbb003b7fbdcd6f2da0f02bf0e7257
3 years, 3 months ago (2017-09-05 22:49:23 UTC) #27
chrishtr
Does this work for cross-domain iframes? I think you'll need to inject the script into ...
3 years, 3 months ago (2017-09-07 20:39:17 UTC) #29
nednguyen
On 2017/09/07 20:39:17, chrishtr wrote: > Does this work for cross-domain iframes? I think you'll ...
3 years, 3 months ago (2017-09-07 20:41:04 UTC) #30
nednguyen
On 2017/09/07 20:41:04, nednguyen wrote: > On 2017/09/07 20:39:17, chrishtr wrote: > > Does this ...
3 years, 3 months ago (2017-09-07 20:42:41 UTC) #31
nednguyen
On 2017/09/07 20:39:17, chrishtr wrote: > Does this work for cross-domain iframes? I think you'll ...
3 years, 3 months ago (2017-09-07 20:51:23 UTC) #32
nednguyen
3 years, 3 months ago (2017-09-07 20:52:04 UTC) #33
Message was sent while issue was closed.
On 2017/09/07 20:51:23, nednguyen wrote:
> On 2017/09/07 20:39:17, chrishtr wrote:
> > Does this work for cross-domain iframes? I think you'll need to inject the
> > script into
> > all of them. Is there a method similar to ExecuteJavaScript that does this
for
> > all such
> > iframes? snap-it's Chrome extension did this.
> 
> chrishtr@ how does snap-it's Chrome extension package all the serialized form
of
> the top level document & the iframes together? 
> 
> Telemetry does support injecting script in iframe, but I am not sure how to
> package the iframes' snapshot together with the host snapshot.

nvm, Move the discussion to crbug/763119

Powered by Google App Engine
This is Rietveld 408576698