From 06f713cd53c45d260f911270fa3b88c9dc7cc92c Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Sat, 11 Jan 2020 12:44:20 +0300 Subject: webkit2gtk: add to testing --- testing/webkit2gtk/patches/u16-fix.patch | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 testing/webkit2gtk/patches/u16-fix.patch (limited to 'testing/webkit2gtk/patches/u16-fix.patch') diff --git a/testing/webkit2gtk/patches/u16-fix.patch b/testing/webkit2gtk/patches/u16-fix.patch new file mode 100644 index 00000000..5ce7d9ae --- /dev/null +++ b/testing/webkit2gtk/patches/u16-fix.patch @@ -0,0 +1,37 @@ +--- webkitgtk-2.26.2/Source/WTF/wtf/URLHelpers.cpp ++++ webkitgtk-2.26.2-patched/Source/WTF/wtf/URLHelpers.cpp +@@ -301,7 +301,7 @@ + Optional previousCodePoint; + while (i < length) { + UChar32 c; +- U16_NEXT(buffer, i, length, c) ++ U16_NEXT(buffer, i, length, c); + UErrorCode error = U_ZERO_ERROR; + UScriptCode script = uscript_getScript(c, &error); + if (error != U_ZERO_ERROR) { +--- webkitgtk-2.26.2/Source/WebCore/dom/Document.cpp ++++ webkitgtk-2.26.2-patched/Source/WebCore/dom/Document.cpp +@@ -4944,12 +4944,12 @@ + unsigned i = 0; + + UChar32 c; +- U16_NEXT(characters, i, length, c) ++ U16_NEXT(characters, i, length, c); + if (!isValidNameStart(c)) + return false; + + while (i < length) { +- U16_NEXT(characters, i, length, c) ++ U16_NEXT(characters, i, length, c); + if (!isValidNamePart(c)) + return false; + } +@@ -5009,7 +5009,7 @@ + + for (unsigned i = 0; i < length; ) { + UChar32 c; +- U16_NEXT(qualifiedName, i, length, c) ++ U16_NEXT(qualifiedName, i, length, c); + if (c == ':') { + if (sawColon) + return Exception { InvalidCharacterError }; -- cgit v1.2.3