| Summary: | Use Vector<SandboxExtension::Handle> instead of SandboxExtension::HandleArray | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Alex Christensen <achristensen> | ||||||||
| Component: | New Bugs | Assignee: | Alex Christensen <achristensen> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | cdumez, eric.carlson, ews-watchlist, glenn, hta, jer.noble, mmaxfield, philipj, sergio, tommyw, webkit-bug-importer, wenson_hsieh, youennf | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Alex Christensen
2021-08-13 15:14:09 PDT
Created attachment 435520 [details]
Patch
Comment on attachment 435520 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=435520&action=review r=me > Source/WebKit/Shared/Cocoa/SandboxExtensionCocoa.mm:428 > +bool SandboxExtension::consumePermanently(const Vector<SandboxExtension::Handle>& handleArray) Wouldn't `const Vector<Handle>&` work? > Source/WebKit/Shared/SandboxExtension.h:127 > +inline auto SandboxExtension::createReadOnlyHandlesForFiles(ASCIILiteral, const Vector<String>&) -> Vector<Handle> { return { }; } Do we need the auto return value here? Wouldn't `Vector<Handle>` as return value work here since we're in the class scope? (In reply to Chris Dumez from comment #2) > Comment on attachment 435520 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=435520&action=review > > r=me > > > Source/WebKit/Shared/Cocoa/SandboxExtensionCocoa.mm:428 > > +bool SandboxExtension::consumePermanently(const Vector<SandboxExtension::Handle>& handleArray) > > Wouldn't `const Vector<Handle>&` work? Yes. > > Source/WebKit/Shared/SandboxExtension.h:127 > > +inline auto SandboxExtension::createReadOnlyHandlesForFiles(ASCIILiteral, const Vector<String>&) -> Vector<Handle> { return { }; } > > Do we need the auto return value here? Wouldn't `Vector<Handle>` as return > value work here since we're in the class scope? No, only trailing return values are in the class scope. Created attachment 435896 [details]
Patch
Committed r281277 (240702@main): <https://commits.webkit.org/240702@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 435896 [details]. Reopening to attach new patch. Created attachment 435933 [details]
Fix internal build?
Committed r281289 (240713@main): <https://commits.webkit.org/240713@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 435933 [details]. |