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
Patch (9.67 KB, patch)
2021-04-27 10:48 PDT, Alex Christensen
no flags
Alex Christensen
Comment 1 2021-04-22 17:13:19 PDT
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
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
Note You need to log in before you can comment on or make changes to this bug.