diff --git a/qt5-qtwebkit.spec b/qt5-qtwebkit.spec index 9dc09fa..c53e4d4 100644 --- a/qt5-qtwebkit.spec +++ b/qt5-qtwebkit.spec @@ -25,6 +25,7 @@ Source0: https://github.com/qtwebkit/qtwebkit/releases/download/%{qt_modu # Patch for new CMake policy CMP0071 to explicitly use old behaviour. Patch2: qtwebkit-5.212.0_cmake_cmp0071.patch +Patch3: qtwebkit-missing-semicolons.patch BuildRequires: bison BuildRequires: cmake diff --git a/qtwebkit-missing-semicolons.patch b/qtwebkit-missing-semicolons.patch new file mode 100644 index 0000000..735ff53 --- /dev/null +++ b/qtwebkit-missing-semicolons.patch @@ -0,0 +1,28 @@ +diff --git a/Source/WebCore/dom/Document.cpp b/Source/WebCore/dom/Document.cpp +index 1bca2d0..19355f1 100644 +--- a/Source/WebCore/dom/Document.cpp ++++ b/Source/WebCore/dom/Document.cpp +@@ -4407,12 +4407,12 @@ static bool isValidNameNonASCII(const UChar* characters, unsigned length) + 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; + } +@@ -4474,7 +4474,7 @@ bool Document::parseQualifiedName(const String& qualifiedName, String& prefix, S + + for (unsigned i = 0; i < length;) { + UChar32 c; +- U16_NEXT(qualifiedName, i, length, c) ++ U16_NEXT(qualifiedName, i, length, c); + if (c == ':') { + if (sawColon) { + ec = NAMESPACE_ERR;