Bug 57698 - Web Inspector: introduce support of 'optional' flag for command arguments
Summary: Web Inspector: introduce support of 'optional' flag for command arguments
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Ilya Tikhonovsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-01 22:27 PDT by Ilya Tikhonovsky
Modified: 2011-04-04 03:09 PDT (History)
13 users (show)

See Also:


Attachments
[patch] initial version (11.87 KB, patch)
2011-04-01 22:35 PDT, Ilya Tikhonovsky
pfeldman: review-
Details | Formatted Diff | Diff
[patch] second version (28.53 KB, patch)
2011-04-02 03:10 PDT, Ilya Tikhonovsky
pfeldman: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Tikhonovsky 2011-04-01 22:27:11 PDT
%subj%
Comment 1 Ilya Tikhonovsky 2011-04-01 22:35:18 PDT
Created attachment 87968 [details]
[patch] initial version
Comment 2 Pavel Feldman 2011-04-02 00:12:19 PDT
Comment on attachment 87968 [details]
[patch] initial version

View in context: https://bugs.webkit.org/attachment.cgi?id=87968&action=review

> LayoutTests/ChangeLog:5
> +        Web Inspector: introduce support of 'optional' flag for command arguments.

It is not clear from the ChangeLog / perl script what the behavior would be, but here are the requirements as I see then:
1) it should be possible to make any number of parameters optional
2) optional parameters are the ones not transmitted as a part of the message
3) first parameter described could be made optional, not necessarily the last one
4) there should be a way to distinguish between "columnNumber = 0" and "not given optional columnNumber"

It sounds like (3) and (4) are not supported. Please explain what you intend to do in the bug like this prior to working on the change to aoid further confusion.
Comment 3 Ilya Tikhonovsky 2011-04-02 03:10:03 PDT
Created attachment 87973 [details]
[patch] second version

test coverage was extended. See changes in report-API-errors.html, report-protocol-errors.html and runtime-agent.html

optional arguments are transferred by const pointers.

simplest implementation for optional arguments was added to the setBreackpoint* methods. I think we will fix that in another patch.
Comment 4 Ilya Tikhonovsky 2011-04-04 01:34:05 PDT
Committed r82804: <http://trac.webkit.org/changeset/82804>
Comment 5 WebKit Review Bot 2011-04-04 03:09:51 PDT
http://trac.webkit.org/changeset/82804 might have broken Windows XP Debug (Tests)
The following tests are not passing:
inspector/extensions/extensions-api.html
inspector/extensions/extensions.html