Title: [269948] trunk/Source/WebCore
Revision
269948
Author
[email protected]
Date
2020-11-18 01:31:39 -0800 (Wed, 18 Nov 2020)

Log Message

Unreviewed. Fix the build with GCC 10

Add a temporary workaround for a GCC 10 bug.

* platform/network/ResourceResponseBase.cpp:
(WebCore::ResourceResponseBase::sanitizeHTTPHeaderFieldsAccordingToTainting):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (269947 => 269948)


--- trunk/Source/WebCore/ChangeLog	2020-11-18 08:39:40 UTC (rev 269947)
+++ trunk/Source/WebCore/ChangeLog	2020-11-18 09:31:39 UTC (rev 269948)
@@ -1,3 +1,12 @@
+2020-11-18  Carlos Garcia Campos  <[email protected]>
+
+        Unreviewed. Fix the build with GCC 10
+
+        Add a temporary workaround for a GCC 10 bug.
+
+        * platform/network/ResourceResponseBase.cpp:
+        (WebCore::ResourceResponseBase::sanitizeHTTPHeaderFieldsAccordingToTainting):
+
 2020-11-18  Michael Catanzaro  <[email protected]>
 
         [WPE][GTK] Update Safari version in user agent header for Safari 14

Modified: trunk/Source/WebCore/platform/network/ResourceResponseBase.cpp (269947 => 269948)


--- trunk/Source/WebCore/platform/network/ResourceResponseBase.cpp	2020-11-18 08:39:40 UTC (rev 269947)
+++ trunk/Source/WebCore/platform/network/ResourceResponseBase.cpp	2020-11-18 09:31:39 UTC (rev 269948)
@@ -439,7 +439,10 @@
 
 void ResourceResponseBase::sanitizeHTTPHeaderFieldsAccordingToTainting()
 {
-    switch (m_tainting) {
+    // FIXME: we don't really need to construct a Tainting here, this is just a workaround
+    // for a GCC 10 bug (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97634), that will
+    // be removed once the bug is fixed.
+    switch (Tainting(m_tainting)) {
     case ResourceResponse::Tainting::Basic:
         return;
     case ResourceResponse::Tainting::Cors: {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to