Bug 197243

Summary: [RemoteInspector] Fix connection and target identifier types.
Product: WebKit Reporter: Basuke Suzuki <Basuke.Suzuki>
Component: PlatformAssignee: Basuke Suzuki <Basuke.Suzuki>
Status: RESOLVED FIXED    
Severity: Normal CC: Basuke.Suzuki, commit-queue, don.olmstead, ews-watchlist, hi, joepeck, keith_miller, mark.lam, mcatanzaro, msaboff, ross.kirsling, saam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
PATCH
none
PATCH
none
Test for GTK/WPE and Mac/iOS build
none
Patch for landing none

Description Basuke Suzuki 2019-04-24 13:50:49 PDT
The type ClientID and connection id delivered in the event body is interchangeable so that they have to be same type.
Comment 1 Basuke Suzuki 2019-04-24 14:01:12 PDT
Created attachment 368174 [details]
PATCH
Comment 2 Don Olmstead 2019-04-24 14:20:40 PDT
Comment on attachment 368174 [details]
PATCH

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

> Source/JavaScriptCore/inspector/remote/socket/RemoteInspectorConnectionClient.cpp:65
> +    unsigned targetID;

Do you want to do the same to TargetID while you're here?
Comment 3 Basuke Suzuki 2019-04-24 14:32:14 PDT
Sure.
Comment 4 Basuke Suzuki 2019-04-24 15:21:34 PDT
Created attachment 368189 [details]
PATCH
Comment 5 Ross Kirsling 2019-04-24 15:33:00 PDT
Comment on attachment 368189 [details]
PATCH

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

> Source/JavaScriptCore/inspector/remote/RemoteControllableTarget.h:41
> +using TargetID = unsigned;

Should this be changed to uint32_t as well?
Comment 6 Basuke Suzuki 2019-04-24 15:41:46 PDT
(In reply to Ross Kirsling from comment #5)
> Comment on attachment 368189 [details]
> PATCH
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=368189&action=review
> 
> > Source/JavaScriptCore/inspector/remote/RemoteControllableTarget.h:41
> > +using TargetID = unsigned;
> 
> Should this be changed to uint32_t as well?

I intentionally leave that as is because there's no assumption that `unsigned` is  uint32_t (of course it is correct for known compilers).
Comment 7 Basuke Suzuki 2019-04-24 15:46:10 PDT
Created attachment 368193 [details]
Test for GTK/WPE and Mac/iOS build
Comment 8 Basuke Suzuki 2019-04-25 11:03:56 PDT
Created attachment 368249 [details]
Patch for landing
Comment 9 WebKit Commit Bot 2019-04-25 11:54:23 PDT
Comment on attachment 368249 [details]
Patch for landing

Clearing flags on attachment: 368249

Committed r244657: <https://trac.webkit.org/changeset/244657>
Comment 10 WebKit Commit Bot 2019-04-25 11:54:24 PDT
All reviewed patches have been landed.  Closing bug.
Comment 11 Radar WebKit Bug Importer 2019-04-25 11:55:35 PDT
<rdar://problem/50213703>