Title: [270818] trunk/Source/WTF
Revision
270818
Author
[email protected]
Date
2020-12-14 18:58:56 -0800 (Mon, 14 Dec 2020)

Log Message

Get more informatiton from assertion when uidna_openUTS46 fails
https://bugs.webkit.org/show_bug.cgi?id=219881

Patch by Alex Christensen <[email protected]> on 2020-12-14
Reviewed by Alexey Proskuryakov.

<rdar://problem/66988046> shows that this fails sometimes.
Updating the assertion should let me know more information.

* wtf/URLParser.cpp:
(WTF::URLParser::internationalDomainNameTranscoder):

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (270817 => 270818)


--- trunk/Source/WTF/ChangeLog	2020-12-15 01:29:06 UTC (rev 270817)
+++ trunk/Source/WTF/ChangeLog	2020-12-15 02:58:56 UTC (rev 270818)
@@ -1,3 +1,16 @@
+2020-12-14  Alex Christensen  <[email protected]>
+
+        Get more informatiton from assertion when uidna_openUTS46 fails
+        https://bugs.webkit.org/show_bug.cgi?id=219881
+
+        Reviewed by Alexey Proskuryakov.
+
+        <rdar://problem/66988046> shows that this fails sometimes.
+        Updating the assertion should let me know more information.
+
+        * wtf/URLParser.cpp:
+        (WTF::URLParser::internationalDomainNameTranscoder):
+
 2020-12-14  Chris Dumez  <[email protected]>
 
         [GPUProcess] Bump QoS to UserInteractive for real-time audio rendering thread

Modified: trunk/Source/WTF/wtf/URLParser.cpp (270817 => 270818)


--- trunk/Source/WTF/wtf/URLParser.cpp	2020-12-15 01:29:06 UTC (rev 270817)
+++ trunk/Source/WTF/wtf/URLParser.cpp	2020-12-15 02:58:56 UTC (rev 270818)
@@ -2860,7 +2860,8 @@
     std::call_once(onceFlag, [] {
         UErrorCode error = U_ZERO_ERROR;
         encoder = uidna_openUTS46(UIDNA_CHECK_BIDI | UIDNA_CHECK_CONTEXTJ | UIDNA_NONTRANSITIONAL_TO_UNICODE | UIDNA_NONTRANSITIONAL_TO_ASCII, &error);
-        RELEASE_ASSERT(U_SUCCESS(error));
+        if (UNLIKELY(U_FAILURE(error)))
+            CRASH_WITH_INFO(error);
         RELEASE_ASSERT(encoder);
     });
     return *encoder;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to