WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
174659
[WebIDL] Remove custom bindings for InspectorFrontendHost
https://bugs.webkit.org/show_bug.cgi?id=174659
Summary
[WebIDL] Remove custom bindings for InspectorFrontendHost
Sam Weinig
Reported
2017-07-19 12:33:54 PDT
[WebIDL] Remove custom bindings for InspectorFrontendHost
Attachments
Patch
(15.41 KB, patch)
2017-07-19 12:45 PDT
,
Sam Weinig
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews125 for ios-simulator-wk2
(968.34 KB, application/zip)
2017-07-19 14:11 PDT
,
Build Bot
no flags
Details
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2017-07-19 12:45:18 PDT
Created
attachment 315949
[details]
Patch
Build Bot
Comment 2
2017-07-19 14:11:26 PDT
Comment on
attachment 315949
[details]
Patch
Attachment 315949
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/4149600
New failing tests: imported/w3c/IndexedDB-private-browsing/idbfactory_open.html
Build Bot
Comment 3
2017-07-19 14:11:27 PDT
Created
attachment 315956
[details]
Archive of layout-test-results from ews125 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews125 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.5
Sam Weinig
Comment 4
2017-07-19 21:56:36 PDT
I do not believe the test failure is related.
Chris Dumez
Comment 5
2017-07-20 08:50:08 PDT
Comment on
attachment 315949
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=315949&action=review
r=me
> Source/WebCore/inspector/InspectorFrontendHost.idl:82 > + JSGenerateToJSObject
Is this really needed?
Sam Weinig
Comment 6
2017-07-20 09:29:41 PDT
(In reply to Chris Dumez from
comment #5
)
> Comment on
attachment 315949
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=315949&action=review
> > r=me > > > Source/WebCore/inspector/InspectorFrontendHost.idl:82 > > + JSGenerateToJSObject > > Is this really needed?
Yep.
WebKit Commit Bot
Comment 7
2017-07-20 09:58:09 PDT
Comment on
attachment 315949
[details]
Patch Clearing flags on attachment: 315949 Committed
r219691
: <
http://trac.webkit.org/changeset/219691
>
WebKit Commit Bot
Comment 8
2017-07-20 09:58:11 PDT
All reviewed patches have been landed. Closing bug.
Chris Dumez
Comment 9
2017-07-20 10:14:07 PDT
Comment on
attachment 315949
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=315949&action=review
>>> Source/WebCore/inspector/InspectorFrontendHost.idl:82 >>> + JSGenerateToJSObject >> >> Is this really needed? > > Yep.
Ok but why is that? :) We never return this type to JS, do we? It only seems to be used for an input parameter. So if we don't return this type to JS, why do we need a toJS function for it?
Joseph Pecoraro
Comment 10
2017-07-20 14:29:32 PDT
Comment on
attachment 315949
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=315949&action=review
> Source/WebCore/inspector/InspectorFrontendHost.idl:71 > + void showContextMenu(Event? event, sequence<ContextMenuItem> items);
`event` here can be made non-optional. All uses in Web Inspector pass a non-null value and would expect to be providing a valid Event.
Chris Dumez
Comment 11
2017-07-20 14:32:19 PDT
Comment on
attachment 315949
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=315949&action=review
>> Source/WebCore/inspector/InspectorFrontendHost.idl:71 >> + void showContextMenu(Event? event, sequence<ContextMenuItem> items); > > `event` here can be made non-optional. All uses in Web Inspector pass a non-null value and would expect to be providing a valid Event.
it is not currently optional, it is nullable :P
Sam Weinig
Comment 12
2017-07-21 08:52:51 PDT
(In reply to Chris Dumez from
comment #9
)
> Comment on
attachment 315949
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=315949&action=review
> > >>> Source/WebCore/inspector/InspectorFrontendHost.idl:82 > >>> + JSGenerateToJSObject > >> > >> Is this really needed? > > > > Yep. > > Ok but why is that? :) We never return this type to JS, do we? It only seems > to be used for an input parameter. So if we don't return this type to JS, > why do we need a toJS function for it?
I don't know what I was thinking. You are right, it is not needed. I could have sworn I added it for a reason, but guess not. Fixed in
r219726
.
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