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

Issue 978233002: bindings,devtools: Shows DOM attributes' values in DevTools. (Closed)

Created:
5 years, 9 months ago by Yuki
Modified:
5 years, 9 months ago
CC:
blink-reviews, eustas+blink_chromium.org, caseq+blink_chromium.org, arv+blink, vivekg_samsung, malch+blink_chromium.org, vivekg, yurys+blink_chromium.org, lushnikov+blink_chromium.org, loislo+blink_chromium.org, pfeldman+blink_chromium.org, blink-reviews-bindings_chromium.org, Inactive, devtools-reviews_chromium.org, apavlov+blink_chromium.org, sergeyv+blink_chromium.org, aandrey+blink_chromium.org, kozyatinskiy+blink_chromium.org
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

bindings,devtools: Shows DOM attributes' values in DevTools. A new utility function V8DOMWrapper::isWrapper provides a better way to tell whether it's a DOM wrapper or not. Using this function, improves the inspector to show DOM attributes' values and not to show DOM attributes which have observable side effect on getter. BUG=450623, 43394 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191617

Patch Set 1 #

Total comments: 3

Patch Set 2 : Addressed review comments. #

Total comments: 2

Patch Set 3 : Addressed review comments. #

Total comments: 6

Patch Set 4 : Synced. #

Patch Set 5 : Addressed review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -34 lines) Patch
M Source/bindings/core/v8/V8DOMWrapper.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp View 1 2 3 4 2 chunks +4 lines, -32 lines 0 comments Download
M Source/core/inspector/InjectedScriptHost.idl View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InjectedScriptSource.js View 1 2 3 4 3 chunks +36 lines, -1 line 0 comments Download

Messages

Total messages: 24 (5 generated)
Yuki
Could you review this CL? V8DOMWrapper::isWrapper has been introduced and it safely tells whether it's ...
5 years, 9 months ago (2015-03-05 12:19:54 UTC) #2
haraken
https://codereview.chromium.org/978233002/diff/1/Source/core/inspector/InjectedScriptSource.js File Source/core/inspector/InjectedScriptSource.js (right): https://codereview.chromium.org/978233002/diff/1/Source/core/inspector/InjectedScriptSource.js#newcode558 Source/core/inspector/InjectedScriptSource.js:558: if ("get" in descriptor && "set" in descriptor && ...
5 years, 9 months ago (2015-03-05 15:14:26 UTC) #3
pfeldman
https://codereview.chromium.org/978233002/diff/1/Source/core/inspector/InjectedScriptSource.js File Source/core/inspector/InjectedScriptSource.js (right): https://codereview.chromium.org/978233002/diff/1/Source/core/inspector/InjectedScriptSource.js#newcode558 Source/core/inspector/InjectedScriptSource.js:558: if ("get" in descriptor && "set" in descriptor && ...
5 years, 9 months ago (2015-03-05 17:42:55 UTC) #4
haraken
https://codereview.chromium.org/978233002/diff/1/Source/core/inspector/InjectedScriptSource.js File Source/core/inspector/InjectedScriptSource.js (right): https://codereview.chromium.org/978233002/diff/1/Source/core/inspector/InjectedScriptSource.js#newcode558 Source/core/inspector/InjectedScriptSource.js:558: if ("get" in descriptor && "set" in descriptor && ...
5 years, 9 months ago (2015-03-06 02:29:19 UTC) #6
pfeldman
> If we want to implement the instanceof Request/Response in bindings/, we need to > ...
5 years, 9 months ago (2015-03-06 05:03:15 UTC) #7
haraken
On 2015/03/06 05:03:15, pfeldman wrote: > > If we want to implement the instanceof Request/Response ...
5 years, 9 months ago (2015-03-06 05:34:42 UTC) #9
pfeldman
> If you add an [ImplementedInPrivateScript] IDL attribute on > InjectedScriptHost.idl, then the DOM attribute/method ...
5 years, 9 months ago (2015-03-06 05:36:28 UTC) #10
haraken
On 2015/03/06 05:36:28, pfeldman wrote: > > If you add an [ImplementedInPrivateScript] IDL attribute on ...
5 years, 9 months ago (2015-03-06 05:40:30 UTC) #11
yurys
https://codereview.chromium.org/978233002/diff/20001/Source/core/inspector/InjectedScriptSource.js File Source/core/inspector/InjectedScriptSource.js (right): https://codereview.chromium.org/978233002/diff/20001/Source/core/inspector/InjectedScriptSource.js#newcode242 Source/core/inspector/InjectedScriptSource.js:242: if (window[interfaceName] && object instanceof window[interfaceName]) { Note that ...
5 years, 9 months ago (2015-03-06 09:55:40 UTC) #12
Yuki
Could you guys take another look? https://codereview.chromium.org/978233002/diff/20001/Source/core/inspector/InjectedScriptSource.js File Source/core/inspector/InjectedScriptSource.js (right): https://codereview.chromium.org/978233002/diff/20001/Source/core/inspector/InjectedScriptSource.js#newcode242 Source/core/inspector/InjectedScriptSource.js:242: if (window[interfaceName] && ...
5 years, 9 months ago (2015-03-06 14:15:57 UTC) #13
haraken
bindings/ LGTM.
5 years, 9 months ago (2015-03-06 14:21:55 UTC) #14
Yuki
pfeldman@, could you take another look?
5 years, 9 months ago (2015-03-09 10:19:05 UTC) #15
pfeldman
https://codereview.chromium.org/978233002/diff/40001/Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp File Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp (right): https://codereview.chromium.org/978233002/diff/40001/Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp#newcode566 Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp:566: typedef Vector<std::pair<String, bool>> AttributeSet; I don't see why this ...
5 years, 9 months ago (2015-03-09 11:41:41 UTC) #16
Yuki
https://codereview.chromium.org/978233002/diff/40001/Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp File Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp (right): https://codereview.chromium.org/978233002/diff/40001/Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp#newcode566 Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp:566: typedef Vector<std::pair<String, bool>> AttributeSet; On 2015/03/09 11:41:41, pfeldman wrote: ...
5 years, 9 months ago (2015-03-09 12:48:13 UTC) #17
pfeldman
lgtm
5 years, 9 months ago (2015-03-10 10:18:05 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/978233002/80001
5 years, 9 months ago (2015-03-10 10:25:51 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://src.chromium.org/viewvc/blink?view=rev&revision=191617
5 years, 9 months ago (2015-03-10 11:59:04 UTC) #22
yurys
This CL introduced new JS compiler errors: $ Source/devtools/scripts/compile_frontend.py Java executable: /usr/local/buildtools/java/jdk7/bin/java Checking duplicate files ...
5 years, 9 months ago (2015-03-10 13:43:28 UTC) #23
Yuki
5 years, 9 months ago (2015-03-10 13:44:28 UTC) #24
Message was sent while issue was closed.
On 2015/03/10 13:43:28, yurys wrote:
> This CL introduced new JS compiler errors:
> 
> $ Source/devtools/scripts/compile_frontend.py 
> Java executable: /usr/local/buildtools/java/jdk7/bin/java
> Checking duplicate files across modules...
> Compiling frontend...
> Compiling InjectedScriptSource.js and InjectedScriptCanvasModuleSource.js...
> Verifying JSDoc comments...
>
/sources/chromium/src/third_party/WebKit/Source/core/inspector/InjectedScriptSourceTmp.js:240:
> ERROR - Non-object type explicitly marked with "!" (non-nullable), which is
the
> default and should be omitted
>  * @param {!string} attribute
>            ^

Thanks for letting me know.
Will fix very soon.

Powered by Google App Engine
This is Rietveld 408576698