Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8d57bce3aacce4281565e492d1b4e6bf377ed314
https://github.com/WebKit/WebKit/commit/8d57bce3aacce4281565e492d1b4e6bf377ed314
Author: Ahmad Saleem <[email protected]>
Date: 2026-09-04 (Fri, 04 Sep 2026)
Changed paths:
M Source/WebCore/Modules/entriesapi/DOMFileSystem.cpp
Log Message:
-----------
Modernize isValidPathSegment() to use a range-based for loop over code units
https://bugs.webkit.org/show_bug.cgi?id=323398
rdar://186630818
Reviewed by Chris Dumez.
Replace the index-based loop in isValidPathSegment() with a range-based
for loop over StringView::codeUnits(). This avoids re-evaluating
segment.length() on every iteration and the per-index operator[] access,
and reads more clearly. No change in behavior.
* Source/WebCore/Modules/entriesapi/DOMFileSystem.cpp:
(WebCore::isValidPathSegment):
Canonical link: https://commits.webkit.org/320489@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications