WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
224961
Modernize ShareableResource::Handle
https://bugs.webkit.org/show_bug.cgi?id=224961
Summary
Modernize ShareableResource::Handle
Alex Christensen
Reported
2021-04-22 17:11:58 PDT
Modernize ShareableResource::Handle
Attachments
Patch
(8.54 KB, patch)
2021-04-22 17:13 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Patch
(9.67 KB, patch)
2021-04-27 10:48 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Alex Christensen
Comment 1
2021-04-22 17:13:19 PDT
Created
attachment 426869
[details]
Patch
Chris Dumez
Comment 2
2021-04-27 09:50:50 PDT
iOS bots are red.
Alex Christensen
Comment 3
2021-04-27 10:48:20 PDT
Created
attachment 427165
[details]
Patch
Chris Dumez
Comment 4
2021-04-27 10:51:01 PDT
Comment on
attachment 427165
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=427165&action=review
> Source/WebKit/Shared/ShareableResource.cpp:148 > +auto ShareableResource::createHandle() -> Optional<Handle>
It seems weird to use Optional<Handle> considering that Handle has a "null" state and a isNull() function. For example, we purposely avoid using Optional<String> in the code base, for this exact reason. I think we could simply return a null Handle in case of failure.
Radar WebKit Bug Importer
Comment 5
2021-04-29 17:12:16 PDT
<
rdar://problem/77351694
>
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