WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
82958
Web Inspector: CodeGeneratorInspector.py: switch Inspector, Memory and Database domains to typed API
https://bugs.webkit.org/show_bug.cgi?id=82958
Summary
Web Inspector: CodeGeneratorInspector.py: switch Inspector, Memory and Databa...
Peter Rybin
Reported
2012-04-02 15:38:15 PDT
Do not allow InspectorObject and other raw interfaces in Inspector, Memory and Database domains anymore.
Attachments
Patch
(13.52 KB, patch)
2012-04-02 15:44 PDT
,
Peter Rybin
no flags
Details
Formatted Diff
Diff
Patch
(13.36 KB, patch)
2012-04-03 08:36 PDT
,
Peter Rybin
no flags
Details
Formatted Diff
Diff
Patch
(13.35 KB, patch)
2012-04-03 09:03 PDT
,
Peter Rybin
yurys
: review+
Details
Formatted Diff
Diff
Patch for landing (with style errors fixed)
(12.73 KB, patch)
2012-04-04 02:34 PDT
,
Yury Semikhatsky
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Peter Rybin
Comment 1
2012-04-02 15:44:38 PDT
Created
attachment 135208
[details]
Patch
Peter Rybin
Comment 2
2012-04-02 15:46:41 PDT
Please, take a look at new FIXME. This probably should be resovled before commit.
WebKit Review Bot
Comment 3
2012-04-02 15:48:27 PDT
Attachment 135208
[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/InspectorDatabaseAgent.cpp:116: A case label should not be indented, but line up with its switch statement. [whitespace/indent] [4] Total errors found: 1 in 10 files If any of these errors are false positives, please file a bug against check-webkit-style.
Yury Semikhatsky
Comment 4
2012-04-02 22:00:59 PDT
Comment on
attachment 135208
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=135208&action=review
> Source/WebCore/inspector/InspectorDatabaseResource.cpp:62 > + // FIXME: here we use string type according to Inspector.json.
Please file a bug on this and put its number next to FIXME.
> Source/WebCore/inspector/InspectorMemoryAgent.cpp:205 > + PassRefPtr<TypeBuilder::Array<TypeBuilder::Memory::DOMGroup> > domGroups() { return m_domGroups; }
Why did it become PassRefPtr?
Yury Semikhatsky
Comment 5
2012-04-02 23:40:18 PDT
(In reply to
comment #4
)
> (From update of
attachment 135208
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=135208&action=review
> > > Source/WebCore/inspector/InspectorDatabaseResource.cpp:62 > > + // FIXME: here we use string type according to Inspector.json. > > Please file a bug on this and put its number next to FIXME. >
Nevermind, I've sent a fix for this
https://bugs.webkit.org/show_bug.cgi?id=83003
Peter Rybin
Comment 6
2012-04-03 08:36:48 PDT
Created
attachment 135334
[details]
Patch
Peter Rybin
Comment 7
2012-04-03 08:37:10 PDT
Comment on
attachment 135208
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=135208&action=review
>> Source/WebCore/inspector/InspectorMemoryAgent.cpp:205 >> + PassRefPtr<TypeBuilder::Array<TypeBuilder::Memory::DOMGroup> > domGroups() { return m_domGroups; } > > Why did it become PassRefPtr?
Because we work in terms of RefPtr's everywhere here and there is no reason for transient switch to raw pointer. A drive-by fix.
WebKit Review Bot
Comment 8
2012-04-03 08:40:09 PDT
Attachment 135334
[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/InspectorDatabaseAgent.cpp:116: A case label should not be indented, but line up with its switch statement. [whitespace/indent] [4] Total errors found: 1 in 10 files If any of these errors are false positives, please file a bug against check-webkit-style.
Peter Rybin
Comment 9
2012-04-03 09:03:00 PDT
Created
attachment 135339
[details]
Patch
WebKit Review Bot
Comment 10
2012-04-03 09:06:39 PDT
Attachment 135339
[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/InspectorDatabaseAgent.cpp:116: A case label should not be indented, but line up with its switch statement. [whitespace/indent] [4] Total errors found: 1 in 10 files If any of these errors are false positives, please file a bug against check-webkit-style.
Yury Semikhatsky
Comment 11
2012-04-04 02:34:13 PDT
Created
attachment 135535
[details]
Patch for landing (with style errors fixed)
Yury Semikhatsky
Comment 12
2012-04-04 02:35:30 PDT
(In reply to
comment #10
)
>
Attachment 135339
[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/InspectorDatabaseAgent.cpp:116: A case label should not be indented, but line up with its switch statement. [whitespace/indent] [4] > Total errors found: 1 in 10 files > > > If any of these errors are false positives, please file a bug against check-webkit-style.
Peter, next time please make sure style errors like this are resolved before landing.
Yury Semikhatsky
Comment 13
2012-04-04 02:36:48 PDT
Committed
r113157
: <
http://trac.webkit.org/changeset/113157
>
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