WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
262140
Fix SVG systemLanguage conditional processing
https://bugs.webkit.org/show_bug.cgi?id=262140
Summary
Fix SVG systemLanguage conditional processing
Ahmad Saleem
Reported
2023-09-26 14:21:13 PDT
Hi Team, While going through Blink's commit, I came across another failing test case in Safari 17 (macOS Sonoma). Test Case:
https://jsfiddle.net/35yL6qnw/5/
^ above shows 'en FAIL' in Red (Safari) while show 'EN' in Black (Chrome Canary 119 and Firefox Nightly 120). Blink Commit:
https://chromium.googlesource.com/chromium/src.git/+/1f24b02c1e563e405a59d5d44eeb03a6f2c00d59
Web-Spec:
https://www.w3.org/TR/SVG11/struct.html#ConditionalProcessingSystemLanguageAttribute
___ Just wanted to raise so we can fix it. Thanks!
Attachments
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2023-09-26 14:57:34 PDT
Merge this as well:
https://source.chromium.org/chromium/chromium/src/+/592442acb95d29bd54f068f70009a6ec47fa863b
Ahmad Saleem
Comment 2
2023-09-26 14:59:15 PDT
static bool isLangTagPrefix(const String& langTag, const String& language) { if (!langTag.startsWithIgnoringASCIICase(language)) return false; return langTag.length() == language.length() || langTag[language.length()] == '-'; } static bool matchLanguageList(const String& langTag, const Vector<String>& languages) { for (const auto& value : languages) { if (isLangTagPrefix(langTag, value)) return true; } return false; } and following changes here: "SVGTests::isValid()" for (auto& langTag : attributes->systemLanguage().items()) { if (matchLanguageList(langTag, genericDefaultLanguage)) return false; } ___ It leads to following compile errors: candidate function not viable: no known conversion from 'StringView' to 'const Vector<String>' for 2nd argument and no matching function for call to 'matchLanguageList' ___ Still looking into it but if someone want to take it. Go ahead and run with it. Might not come back soon but good to share what tried to make it easier for others.
Karl Dubost
Comment 3
2023-09-27 01:13:27 PDT
Probably fixing
Bug 262146
first would help with this one.
Radar WebKit Bug Importer
Comment 4
2023-10-03 14:22:21 PDT
<
rdar://problem/116424326
>
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