WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 80789
Web Inspector: TypeBuilder: Introduce OptOutput class for optional output parameters
https://bugs.webkit.org/show_bug.cgi?id=80789
Summary
Web Inspector: TypeBuilder: Introduce OptOutput class for optional output par...
Peter Rybin
Reported
2012-03-11 09:21:50 PDT
Currently there is not proper support for optional output parameters. It only works with RefPtr-based types (they can contain null values) and with boolean type (false is incorrectly treated as "not set" value). A dedicated OptOutput class should be provided to support all types values plus "not set" state.
Attachments
Patch
(47.77 KB, patch)
2012-03-11 14:24 PDT
,
Peter Rybin
no flags
Details
Formatted Diff
Diff
Patch
(50.99 KB, patch)
2012-03-12 11:10 PDT
,
Peter Rybin
no flags
Details
Formatted Diff
Diff
Patch
(52.42 KB, patch)
2012-03-13 16:11 PDT
,
Peter Rybin
no flags
Details
Formatted Diff
Diff
Only merge. Do not commit before 81132
(52.70 KB, patch)
2012-03-14 17:42 PDT
,
Peter Rybin
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Peter Rybin
Comment 1
2012-03-11 14:24:52 PDT
Created
attachment 131257
[details]
Patch
WebKit Review Bot
Comment 2
2012-03-11 14:27:52 PDT
Attachment 131257
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/inspector/InjectedScript.cpp:65: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.cpp:75: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.cpp:85: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.cpp:261: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.h:108: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Total errors found: 5 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
Yury Semikhatsky
Comment 3
2012-03-12 03:00:53 PDT
Comment on
attachment 131257
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=131257&action=review
> Source/WebCore/inspector/CodeGeneratorInspector.py:2244 > +class OptOutput {
Please make this class non-copyable to avoid passing it by value.
> Source/WebCore/inspector/InspectorDOMDebuggerAgent.cpp:67 > +static const InspectorFrontend::Debugger::Reason::Enum domNativeBreakpointType = InspectorFrontend::Debugger::Reason::DOM;
Is there a reason for not inlining the new constant values?
> Source/WebCore/inspector/InspectorPageAgent.cpp:508 > + *cookiesString = "";
The protocol description says it should contain result of document.cookies even if the cookies array is present. Please file a bug on this and put FIXME here.
> Source/WebCore/inspector/InspectorPageAgent.cpp:839 > + frameObject->setSecurityOrigin(frame->document()->securityOrigin()->toString());
Should this parameter be required if it is always present anyway? The type is still hidden anyway so I think we may want to fix this.
Peter Rybin
Comment 4
2012-03-12 11:08:13 PDT
> > Source/WebCore/inspector/CodeGeneratorInspector.py:2244 > > +class OptOutput {
> Please make this class non-copyable to avoid passing it by value.
Done
> > Source/WebCore/inspector/InspectorDOMDebuggerAgent.cpp:67 > > +static const InspectorFrontend::Debugger::Reason::Enum domNativeBreakpointType = InspectorFrontend::Debugger::Reason::DOM;
> Is there a reason for not inlining the new constant values?
Done
> > Source/WebCore/inspector/InspectorPageAgent.cpp:508 > > + *cookiesString = ""; > > The protocol description says it should contain result of document.cookies even if the cookies array is present. Please file a bug on this and put FIXME here.
Done
> > Source/WebCore/inspector/InspectorPageAgent.cpp:839 > > + frameObject->setSecurityOrigin(frame->document()->securityOrigin()->toString()); > > Should this parameter be required if it is always present anyway? The type is still hidden anyway so I think we may want to fix this.
Done
Peter Rybin
Comment 5
2012-03-12 11:10:37 PDT
Created
attachment 131354
[details]
Patch
WebKit Review Bot
Comment 6
2012-03-12 11:12:35 PDT
Attachment 131354
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/inspector/InjectedScript.cpp:65: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.cpp:75: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.cpp:85: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.cpp:261: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.h:108: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Total errors found: 5 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 7
2012-03-12 22:19:33 PDT
Comment on
attachment 131354
[details]
Patch
Attachment 131354
[details]
did not pass win-ews (win): Output:
http://queues.webkit.org/results/11945302
Yury Semikhatsky
Comment 8
2012-03-13 00:38:50 PDT
Comment on
attachment 131354
[details]
Patch The change appears to break Windows build, r- for this. Please fix.
Yury Semikhatsky
Comment 9
2012-03-13 00:39:13 PDT
(In reply to
comment #8
)
> (From update of
attachment 131354
[details]
) > The change appears to break Windows build, r- for this. Please fix.
4>Generating Code... 4>c:\cygwin\home\buildbot\webkit\webkitbuild\debug\obj\webcore\derivedsources\inspectorbackenddispatcher.cpp(827) : error C2220: warning treated as error - no 'object' file generated 4>c:\cygwin\home\buildbot\webkit\webkitbuild\debug\obj\webcore\derivedsources\inspectorbackenddispatcher.cpp(827) : warning C4701: potentially uninitialized local variable 'out_base64Encoded' used 4>c:\cygwin\home\buildbot\webkit\webkitbuild\debug\obj\webcore\derivedsources\inspectorbackenddispatcher.cpp(3039) : warning C4701: potentially uninitialized local variable 'out_result' used 4>c:\cygwin\home\buildbot\webkit\webkitbuild\debug\obj\webcore\derivedsources\inspectorbackenddispatcher.cpp(3060) : warning C4701: potentially uninitialized local variable 'out_result' used 4>c:\cygwin\home\buildbot\webkit\webkitbuild\debug\obj\webcore\derivedsources\inspectorbackenddispatcher.cpp(3354) : warning C4701: potentially uninitialized local variable 'out_result' used
Peter Rybin
Comment 10
2012-03-13 16:11:43 PDT
Created
attachment 131740
[details]
Patch
WebKit Review Bot
Comment 11
2012-03-13 16:16:20 PDT
Attachment 131740
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/inspector/InjectedScript.cpp:65: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.cpp:75: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.cpp:85: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.cpp:261: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.h:108: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Total errors found: 5 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Review Bot
Comment 12
2012-03-14 01:04:37 PDT
Comment on
attachment 131740
[details]
Patch Clearing flags on attachment: 131740 Committed
r110673
: <
http://trac.webkit.org/changeset/110673
>
WebKit Review Bot
Comment 13
2012-03-14 01:04:42 PDT
All reviewed patches have been landed. Closing bug.
Csaba Osztrogonác
Comment 14
2012-03-14 01:45:16 PDT
Reopen, because it broke the Qt minimal bot, I think all !ENABLE(INSPECTOR) build.
Yury Semikhatsky
Comment 15
2012-03-14 02:03:40 PDT
From the IRC channel: <Ossy>: yurys, benjaminp said:" for the Inspector build, it looks like ContentSearchUtils.h needs #if ENABLE(INSPECTOR)"
Peter Rybin
Comment 16
2012-03-14 17:42:45 PDT
Created
attachment 131963
[details]
Only merge. Do not commit before 81132
WebKit Review Bot
Comment 17
2012-03-14 17:45:48 PDT
Attachment 131963
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/inspector/InjectedScript.cpp:65: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.cpp:75: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.cpp:85: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.cpp:261: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.h:108: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Total errors found: 5 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
Yury Semikhatsky
Comment 18
2012-03-16 07:43:44 PDT
Comment on
attachment 131963
[details]
Only merge. Do not commit before 81132 Clearing flags on attachment: 131963 Committed
r111005
: <
http://trac.webkit.org/changeset/111005
>
Yury Semikhatsky
Comment 19
2012-03-16 07:44:08 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug