WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
239453
Use convertToASCIILowercase() less and more SortedArrayMap / SortedArraySet
https://bugs.webkit.org/show_bug.cgi?id=239453
Summary
Use convertToASCIILowercase() less and more SortedArrayMap / SortedArraySet
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-
Details
Formatted Diff
Diff
Patch
(9.21 KB, patch)
2022-04-18 10:25 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2022-04-18 10:00:25 PDT
Created
attachment 457807
[details]
Patch
Chris Dumez
Comment 2
2022-04-18 10:25:24 PDT
Created
attachment 457809
[details]
Patch
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
<
rdar://problem/91921586
>
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.
Top of Page
Format For Printing
XML
Clone This Bug