| Summary: | [Cocoa] GPU Process should recognize that pathForProcessContainer() might fail and handle it gracefully | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Brent Fulgham <bfulgham> | ||||||
| Component: | WebKit2 | Assignee: | Brent Fulgham <bfulgham> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | aestes, bfulgham, darin, kkinnunen, pvollan, thorton, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Brent Fulgham
2021-05-21 09:22:34 PDT
Created attachment 429298 [details]
Patch
Created attachment 429303 [details]
Patch
This patch is compiled out of Mac builds, so landing now that iOS tests are done. Committed r277879 (238017@main): <https://commits.webkit.org/238017@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 429303 [details]. Comment on attachment 429303 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=429303&action=review > Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm:200 > String path = pathForProcessContainer(); > if (path.isEmpty()) > path = NSHomeDirectory(); > > - path = path + "/Library/Cookies"; > + path = path + subpath; > path = stringByResolvingSymlinksInPath(path); > return path; Could improve performance by correctly using makeString. > Source/WebKit/UIProcess/WebProcessPool.h:514 > + static String cacheDirectoryInContainerOrHomeDirectory(const String& subpath); This argument should be ASCIILiteral. |