RESOLVED FIXED 65112
Web Inspector: Implement setPropertyValue using evaluate and callFunctionOn
https://bugs.webkit.org/show_bug.cgi?id=65112
Summary Web Inspector: Implement setPropertyValue using evaluate and callFunctionOn
Pavel Feldman
Reported 2011-07-25 08:38:33 PDT
Patch to follow.
Attachments
Patch (19.35 KB, patch)
2011-07-25 08:51 PDT, Pavel Feldman
no flags
Patch (19.83 KB, patch)
2011-07-25 09:28 PDT, Pavel Feldman
no flags
Patch (20.05 KB, patch)
2011-07-25 09:31 PDT, Pavel Feldman
yurys: review+
Pavel Feldman
Comment 1 2011-07-25 08:51:53 PDT
Yury Semikhatsky
Comment 2 2011-07-25 09:03:02 PDT
Comment on attachment 101874 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=101874&action=review > LayoutTests/inspector/runtime/runtime-setPropertyValue.html:70 > + InspectorTest.evaluateInPage("dumpObjects('Set undefined')", next); You also need to test the case when setPropertyValue fails with an exception. > Source/WebCore/inspector/front-end/ObjectPropertiesSection.js:206 > + this.valueElement.addStyleClass("console-formatted-" + this.property.value.subtype); Consider using <type>-<subtype> instead. > Source/WebCore/inspector/front-end/RemoteObject.js:149 > callback("Can't get a property of non-object."); get -> set. > Source/WebCore/inspector/front-end/RemoteObject.js:158 > + callback(error || result); What is the expected type of the callback parameter?
Pavel Feldman
Comment 3 2011-07-25 09:27:20 PDT
(In reply to comment #2) > (From update of attachment 101874 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=101874&action=review > > > LayoutTests/inspector/runtime/runtime-setPropertyValue.html:70 > > + InspectorTest.evaluateInPage("dumpObjects('Set undefined')", next); > > You also need to test the case when setPropertyValue fails with an exception. > Done. > > Source/WebCore/inspector/front-end/ObjectPropertiesSection.js:206 > > + this.valueElement.addStyleClass("console-formatted-" + this.property.value.subtype); > > Consider using <type>-<subtype> instead. > I'd need to change it in too many places :( > > Source/WebCore/inspector/front-end/RemoteObject.js:149 > > callback("Can't get a property of non-object."); > > get -> set. > Done. > > Source/WebCore/inspector/front-end/RemoteObject.js:158 > > + callback(error || result); > > What is the expected type of the callback parameter? This is error message / error object.
Pavel Feldman
Comment 4 2011-07-25 09:28:03 PDT
Pavel Feldman
Comment 5 2011-07-25 09:31:29 PDT
Yury Semikhatsky
Comment 6 2011-07-25 23:29:31 PDT
(In reply to comment #3) > > > Source/WebCore/inspector/front-end/RemoteObject.js:158 > > > + callback(error || result); > > > > What is the expected type of the callback parameter? > > This is error message / error object. Can we come up with something more definite here and say that the error is always an error object?
Pavel Feldman
Comment 7 2011-07-26 03:21:08 PDT
Note You need to log in before you can comment on or make changes to this bug.