Bug 239453

Summary: Use convertToASCIILowercase() less and more SortedArrayMap / SortedArraySet
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebCore Misc.Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, eric.carlson, ews-watchlist, ggaren, glenn, jer.noble, philipj, sam, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
ews-feeder: commit-queue-
Patch none

Chris Dumez
Reported 2022-04-18 09:58:50 PDT
Use convertToASCIILowercase() less and more SortedArrayMap / SortedArraySet.
Attachments
Patch (9.00 KB, patch)
2022-04-18 10:00 PDT, Chris Dumez
ews-feeder: commit-queue-
Patch (9.21 KB, patch)
2022-04-18 10:25 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2022-04-18 10:00:25 PDT
Chris Dumez
Comment 2 2022-04-18 10:25:24 PDT
Darin Adler
Comment 3 2022-04-18 15:13:56 PDT
Comment on attachment 457809 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=457809&action=review > Source/WebCore/Modules/applicationmanifest/ApplicationManifestParser.cpp:157 > + if (auto* displayValue = displayValues.tryGet(StringView(stringValue).stripWhiteSpace())) Not changing in this patch: Seems like this should be stripping leading and trailing *HTML* whitespace, probably a subtle and unimportant that it strips all *ASCII* whitespace, which includes one character that HTML does not. I also think it’s a little strange that the StringView function is named stripWhiteSpace, because we normally say ASCIISpace or HTMLSpace or HTTPSpace and just "space" typically means some kind of Unicode space. > Source/WebDriver/WebDriverService.cpp:232 > + if (auto* methodValue = httpMethods.tryGet(method)) > + return *methodValue; > return std::nullopt; Makes me wish we had a "convert pointer to optional" function you could have used here.
EWS
Comment 4 2022-04-18 15:25:34 PDT
Committed r292976 (249739@main): <https://commits.webkit.org/249739@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 457809 [details].
Radar WebKit Bug Importer
Comment 5 2022-04-18 15:26:14 PDT
Sam Weinig
Comment 6 2022-04-19 12:34:59 PDT
Comment on attachment 457809 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=457809&action=review > Source/WebCore/platform/graphics/MediaPlayer.cpp:1116 > + if (!containerType.startsWithIgnoringASCIICase("video/") && !containerType.startsWithIgnoringASCIICase("audio/") && !containerType.startsWithIgnoringASCIICase("application/")) Hm, if this is common (I am not sure it is), it makes me wonder if there is a variant of SortedArrayMap to be made that does startsWith() rather than ==.
Note You need to log in before you can comment on or make changes to this bug.