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

Issue 2971133002: Add input element values to DOMSnapshot command (Closed)

Created:
3 years, 5 months ago by dvallet
Modified:
3 years, 5 months ago
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add input element values to DOMSnapshot command DomSnapshot is modified to populate NodeValue for textarea, input and option elements. radio/checkbox and option elements are populated with a checked/selected string BUG=546953 Review-Url: https://codereview.chromium.org/2971133002 Cr-Commit-Position: refs/heads/master@{#486541} Committed: https://chromium.googlesource.com/chromium/src/+/537562c27b50ad655819d3648300027d1354d25b

Patch Set 1 #

Total comments: 8

Patch Set 2 : Modify tests to reflect new DomSnapshot input value functionality #

Patch Set 3 : added additional fields to DomSnapshot::DOMNode #

Total comments: 6

Patch Set 4 : Always add input values #

Patch Set 5 : Add input in separated div #

Patch Set 6 : add width to input div #

Patch Set 7 : Include Rebaseline #

Patch Set 8 : add separate tests for input value #

Messages

Total messages: 56 (34 generated)
dvallet
PTAL This is a first tentative version to populate NodeValue for textarea, input and option ...
3 years, 5 months ago (2017-07-06 07:21:08 UTC) #3
Eric Seckler
On 2017/07/06 07:21:08, dvallet wrote: > PTAL > > This is a first tentative version ...
3 years, 5 months ago (2017-07-06 07:41:20 UTC) #4
Eric Seckler
https://codereview.chromium.org/2971133002/diff/1/third_party/WebKit/Source/core/inspector/InspectorDOMSnapshotAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorDOMSnapshotAgent.cpp (right): https://codereview.chromium.org/2971133002/diff/1/third_party/WebKit/Source/core/inspector/InspectorDOMSnapshotAgent.cpp#newcode237 third_party/WebKit/Source/core/inspector/InspectorDOMSnapshotAgent.cpp:237: value->setNodeValue("selected"); Nit: no need for {}.
3 years, 5 months ago (2017-07-06 07:41:39 UTC) #5
alex clarke (OOO till 29th)
https://codereview.chromium.org/2971133002/diff/1/third_party/WebKit/Source/core/inspector/InspectorDOMSnapshotAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorDOMSnapshotAgent.cpp (right): https://codereview.chromium.org/2971133002/diff/1/third_party/WebKit/Source/core/inspector/InspectorDOMSnapshotAgent.cpp#newcode215 third_party/WebKit/Source/core/inspector/InspectorDOMSnapshotAgent.cpp:215: HTMLTextAreaElement& text_area_element = toHTMLTextAreaElement(*element); Lets make all these references ...
3 years, 5 months ago (2017-07-06 07:48:19 UTC) #6
dvallet
PTAL, tests added https://codereview.chromium.org/2971133002/diff/1/third_party/WebKit/Source/core/inspector/InspectorDOMSnapshotAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorDOMSnapshotAgent.cpp (right): https://codereview.chromium.org/2971133002/diff/1/third_party/WebKit/Source/core/inspector/InspectorDOMSnapshotAgent.cpp#newcode215 third_party/WebKit/Source/core/inspector/InspectorDOMSnapshotAgent.cpp:215: HTMLTextAreaElement& text_area_element = toHTMLTextAreaElement(*element); On 2017/07/06 ...
3 years, 5 months ago (2017-07-07 04:51:39 UTC) #10
Eric Seckler
lgtm
3 years, 5 months ago (2017-07-07 04:57:53 UTC) #11
pfeldman
nodeValue stands for https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeValue which is null by the DOM spec. We should have introduced ...
3 years, 5 months ago (2017-07-07 05:14:47 UTC) #12
dvallet
Done. Thanks for the pointers!
3 years, 5 months ago (2017-07-10 06:36:44 UTC) #16
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/2971133002/40001
3 years, 5 months ago (2017-07-10 06:36:58 UTC) #18
pfeldman
lgtm % nits https://codereview.chromium.org/2971133002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorDOMSnapshotAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorDOMSnapshotAgent.cpp (right): https://codereview.chromium.org/2971133002/diff/40001/third_party/WebKit/Source/core/inspector/InspectorDOMSnapshotAgent.cpp#newcode217 third_party/WebKit/Source/core/inspector/InspectorDOMSnapshotAgent.cpp:217: if (!text_area_element.value().IsEmpty()) I think you should ...
3 years, 5 months ago (2017-07-10 19:00:45 UTC) #24
dvallet
PTAL Layout tests seem to fail in Windows and Mac, e.g.: https://isolateserver.appspot.com/browse?namespace=default-gzip&digest=db6a4df32a0b107f066f9caf4cd1640798890f1f&as=dom-snapshot-getSnapshot-diff.txt Anyone has any ...
3 years, 5 months ago (2017-07-11 00:26:07 UTC) #27
pfeldman
On 2017/07/11 00:26:07, dvallet wrote: > PTAL > > Layout tests seem to fail in ...
3 years, 5 months ago (2017-07-11 01:43:43 UTC) #28
dvallet
On 2017/07/11 at 01:43:43, pfeldman wrote: > On 2017/07/11 00:26:07, dvallet wrote: > > PTAL ...
3 years, 5 months ago (2017-07-11 06:03:13 UTC) #35
Eric Seckler
On 2017/07/11 06:03:13, dvallet wrote: > On 2017/07/11 at 01:43:43, pfeldman wrote: > > On ...
3 years, 5 months ago (2017-07-11 08:39:45 UTC) #36
dvallet
PTAL (rebaseline) I opted to do the rebaseline since I couldn't make it work cross ...
3 years, 5 months ago (2017-07-12 06:17:16 UTC) #39
Eric Seckler
lgtm
3 years, 5 months ago (2017-07-12 07:58:57 UTC) #42
pfeldman
Please don't create different expectations for platforms. That's not what you are testing. Replace coordinates ...
3 years, 5 months ago (2017-07-12 21:02:29 UTC) #43
dvallet
On 2017/07/12 at 21:02:29, pfeldman wrote: > Please don't create different expectations for platforms. That's ...
3 years, 5 months ago (2017-07-13 04:19:01 UTC) #46
dvallet
If nobody has anything against it, I'll submit the patch
3 years, 5 months ago (2017-07-13 22:56:11 UTC) #49
pfeldman
lgtm
3 years, 5 months ago (2017-07-13 22:58:50 UTC) #50
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/2971133002/140001
3 years, 5 months ago (2017-07-13 23:35:33 UTC) #53
commit-bot: I haz the power
3 years, 5 months ago (2017-07-13 23:41:27 UTC) #56
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/537562c27b50ad655819d3648300...

Powered by Google App Engine
This is Rietveld 408576698