Title: [289289] branches/safari-613-branch/Source/WebCore
- Revision
- 289289
- Author
- [email protected]
- Date
- 2022-02-07 18:54:18 -0800 (Mon, 07 Feb 2022)
Log Message
Cherry-pick r288327. rdar://problem/87423185
[macOS] Various tests hit debug assertions under `SearchBuffer::search` after system ICU changes
https://bugs.webkit.org/show_bug.cgi?id=235413
rdar://87423185
Reviewed by Darin Adler.
After upgrading the system ICU version to ICU 70, many layout tests that attempt to use TextIterator on macOS
(e.g. tests in `accessibility/mac`) hit debug assertions underneath `WebCore::SearchBuffer::search`; this is
because ICU now emits `U_USING_DEFAULT_WARNING` as the error code when calling `usearch_next()`, instead of
`U_ZERO_ERROR`, like it did in previous versions.
This warning is propagated due to ICU falling back to the root locale (`kRootLocaleName`) when creating an
`icu::BreakIterator`, and appears to be benign. We can address this by relaxing the debug assertion in this
method to just check that the error code indicates success (i.e. "warning, or no error"), rather than strictly
being equal to `U_ZERO_ERROR`.
* editing/TextIterator.cpp:
(WebCore::SearchBuffer::search):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288327 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-613-branch/Source/WebCore/ChangeLog (289288 => 289289)
--- branches/safari-613-branch/Source/WebCore/ChangeLog 2022-02-08 02:54:15 UTC (rev 289288)
+++ branches/safari-613-branch/Source/WebCore/ChangeLog 2022-02-08 02:54:18 UTC (rev 289289)
@@ -1,5 +1,52 @@
2022-02-07 Russell Epstein <[email protected]>
+ Cherry-pick r288327. rdar://problem/87423185
+
+ [macOS] Various tests hit debug assertions under `SearchBuffer::search` after system ICU changes
+ https://bugs.webkit.org/show_bug.cgi?id=235413
+ rdar://87423185
+
+ Reviewed by Darin Adler.
+
+ After upgrading the system ICU version to ICU 70, many layout tests that attempt to use TextIterator on macOS
+ (e.g. tests in `accessibility/mac`) hit debug assertions underneath `WebCore::SearchBuffer::search`; this is
+ because ICU now emits `U_USING_DEFAULT_WARNING` as the error code when calling `usearch_next()`, instead of
+ `U_ZERO_ERROR`, like it did in previous versions.
+
+ This warning is propagated due to ICU falling back to the root locale (`kRootLocaleName`) when creating an
+ `icu::BreakIterator`, and appears to be benign. We can address this by relaxing the debug assertion in this
+ method to just check that the error code indicates success (i.e. "warning, or no error"), rather than strictly
+ being equal to `U_ZERO_ERROR`.
+
+ * editing/TextIterator.cpp:
+ (WebCore::SearchBuffer::search):
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288327 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2022-01-20 Wenson Hsieh <[email protected]>
+
+ [macOS] Various tests hit debug assertions under `SearchBuffer::search` after system ICU changes
+ https://bugs.webkit.org/show_bug.cgi?id=235413
+ rdar://87423185
+
+ Reviewed by Darin Adler.
+
+ After upgrading the system ICU version to ICU 70, many layout tests that attempt to use TextIterator on macOS
+ (e.g. tests in `accessibility/mac`) hit debug assertions underneath `WebCore::SearchBuffer::search`; this is
+ because ICU now emits `U_USING_DEFAULT_WARNING` as the error code when calling `usearch_next()`, instead of
+ `U_ZERO_ERROR`, like it did in previous versions.
+
+ This warning is propagated due to ICU falling back to the root locale (`kRootLocaleName`) when creating an
+ `icu::BreakIterator`, and appears to be benign. We can address this by relaxing the debug assertion in this
+ method to just check that the error code indicates success (i.e. "warning, or no error"), rather than strictly
+ being equal to `U_ZERO_ERROR`.
+
+ * editing/TextIterator.cpp:
+ (WebCore::SearchBuffer::search):
+
+2022-02-07 Russell Epstein <[email protected]>
+
Cherry-pick r288233. rdar://problem/87781796
Add visibility: visible to modal dialogs in UA sheet
Modified: branches/safari-613-branch/Source/WebCore/editing/TextIterator.cpp (289288 => 289289)
--- branches/safari-613-branch/Source/WebCore/editing/TextIterator.cpp 2022-02-08 02:54:15 UTC (rev 289288)
+++ branches/safari-613-branch/Source/WebCore/editing/TextIterator.cpp 2022-02-08 02:54:18 UTC (rev 289289)
@@ -2193,7 +2193,7 @@
ASSERT(status == U_ZERO_ERROR);
int matchStart = usearch_next(searcher, &status);
- ASSERT(status == U_ZERO_ERROR);
+ ASSERT(U_SUCCESS(status));
nextMatch:
if (!(matchStart >= 0 && static_cast<size_t>(matchStart) < size)) {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes