Title: [219255] trunk
Revision
219255
Author
[email protected]
Date
2017-07-07 05:45:18 -0700 (Fri, 07 Jul 2017)

Log Message

[GTK][WPE] Enable X-Content-Type-Options: nosniff
https://bugs.webkit.org/show_bug.cgi?id=174250

Reviewed by Carlos Alberto Lopez Perez.

.:

Make nosniff enabled by default in all the ports.

* Source/cmake/OptionsMac.cmake:
* Source/cmake/OptionsWin.cmake:
* Source/cmake/WebKitFeatures.cmake:

Tools:

* Scripts/webkitperl/FeatureList.pm:

LayoutTests:

* platform/gtk/TestExpectations:
* platform/gtk/imported/w3c/web-platform-tests/fetch/nosniff/stylesheet-expected.txt: Removed.

Modified Paths

Removed Paths

  • trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/fetch/nosniff/

Diff

Modified: trunk/ChangeLog (219254 => 219255)


--- trunk/ChangeLog	2017-07-07 11:48:25 UTC (rev 219254)
+++ trunk/ChangeLog	2017-07-07 12:45:18 UTC (rev 219255)
@@ -1,3 +1,16 @@
+2017-07-07  Yusuke Suzuki  <[email protected]>
+
+        [GTK][WPE] Enable X-Content-Type-Options: nosniff
+        https://bugs.webkit.org/show_bug.cgi?id=174250
+
+        Reviewed by Carlos Alberto Lopez Perez.
+
+        Make nosniff enabled by default in all the ports.
+
+        * Source/cmake/OptionsMac.cmake:
+        * Source/cmake/OptionsWin.cmake:
+        * Source/cmake/WebKitFeatures.cmake:
+
 2017-07-06  Stephan Szabo  <[email protected]>
 
         [Win] Build precompiled header successfully with clang-cl

Modified: trunk/LayoutTests/ChangeLog (219254 => 219255)


--- trunk/LayoutTests/ChangeLog	2017-07-07 11:48:25 UTC (rev 219254)
+++ trunk/LayoutTests/ChangeLog	2017-07-07 12:45:18 UTC (rev 219255)
@@ -1,3 +1,13 @@
+2017-07-07  Yusuke Suzuki  <[email protected]>
+
+        [GTK][WPE] Enable X-Content-Type-Options: nosniff
+        https://bugs.webkit.org/show_bug.cgi?id=174250
+
+        Reviewed by Carlos Alberto Lopez Perez.
+
+        * platform/gtk/TestExpectations:
+        * platform/gtk/imported/w3c/web-platform-tests/fetch/nosniff/stylesheet-expected.txt: Removed.
+
 2017-07-07  Claudio Saavedra  <[email protected]>
 
         [WPE] New baseline after r218740

Modified: trunk/LayoutTests/platform/gtk/TestExpectations (219254 => 219255)


--- trunk/LayoutTests/platform/gtk/TestExpectations	2017-07-07 11:48:25 UTC (rev 219254)
+++ trunk/LayoutTests/platform/gtk/TestExpectations	2017-07-07 12:45:18 UTC (rev 219255)
@@ -85,11 +85,6 @@
 # ENABLE(DRAGGABLE_REGION) is disabled
 Bug(GTK) fast/css/draggable-region-parser.html [ Failure ]
 
-# X-Content-Type-Options (ENABLE_NOSNIFF) is not enabled.
-webkit.org/b/71851 http/tests/security/contentTypeOptions [ Skip ]
-imported/w3c/web-platform-tests/fetch/nosniff [ Skip ]
-
-
 # Accelerated overflow scrolling (ENABLE_ACCELERATED_OVERFLOW_SCROLLING) is not enabled.
 Bug(GTK) fast/repaint/overflow-scroll-touch-repaint.html [ Skip ]
 

Modified: trunk/Source/cmake/OptionsMac.cmake (219254 => 219255)


--- trunk/Source/cmake/OptionsMac.cmake	2017-07-07 11:48:25 UTC (rev 219254)
+++ trunk/Source/cmake/OptionsMac.cmake	2017-07-07 12:45:18 UTC (rev 219255)
@@ -64,7 +64,6 @@
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MOUSE_CURSOR_SCALE PRIVATE ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_NAVIGATOR_CONTENT_UTILS PRIVATE OFF)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_NAVIGATOR_HWCONCURRENCY PRIVATE ON)
-WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_NOSNIFF PRIVATE ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_NOTIFICATIONS PRIVATE ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_PDFKIT_PLUGIN PRIVATE ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_POINTER_LOCK PRIVATE OFF)

Modified: trunk/Source/cmake/OptionsWin.cmake (219254 => 219255)


--- trunk/Source/cmake/OptionsWin.cmake	2017-07-07 11:48:25 UTC (rev 219254)
+++ trunk/Source/cmake/OptionsWin.cmake	2017-07-07 12:45:18 UTC (rev 219255)
@@ -52,7 +52,6 @@
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MEDIA_STATISTICS PUBLIC ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_METER_ELEMENT PUBLIC ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MOUSE_CURSOR_SCALE PUBLIC ON)
-WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_NOSNIFF PRIVATE ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_NOTIFICATIONS PUBLIC OFF)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_PROXIMITY_EVENTS PUBLIC OFF)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_QUOTA PUBLIC OFF)

Modified: trunk/Source/cmake/WebKitFeatures.cmake (219254 => 219255)


--- trunk/Source/cmake/WebKitFeatures.cmake	2017-07-07 11:48:25 UTC (rev 219254)
+++ trunk/Source/cmake/WebKitFeatures.cmake	2017-07-07 12:45:18 UTC (rev 219255)
@@ -152,7 +152,7 @@
     WEBKIT_OPTION_DEFINE(ENABLE_MOUSE_CURSOR_SCALE "Toggle Scaled mouse cursor support" PRIVATE OFF)
     WEBKIT_OPTION_DEFINE(ENABLE_NAVIGATOR_CONTENT_UTILS "Toggle Navigator Content Utils support" PRIVATE OFF)
     WEBKIT_OPTION_DEFINE(ENABLE_NAVIGATOR_HWCONCURRENCY "Toggle Navigator hardware concurrency support" PRIVATE ON)
-    WEBKIT_OPTION_DEFINE(ENABLE_NOSNIFF "Toggle support for 'X-Content-Type-Options: nosniff'" PRIVATE OFF)
+    WEBKIT_OPTION_DEFINE(ENABLE_NOSNIFF "Toggle support for 'X-Content-Type-Options: nosniff'" PRIVATE ON)
     WEBKIT_OPTION_DEFINE(ENABLE_NETSCAPE_PLUGIN_API "Toggle Netscape Plugin support" PRIVATE ON)
     WEBKIT_OPTION_DEFINE(ENABLE_NOTIFICATIONS "Toggle Desktop Notifications Support" PRIVATE OFF)
     WEBKIT_OPTION_DEFINE(ENABLE_ORIENTATION_EVENTS "Toggle Orientation Events support" PRIVATE OFF)

Modified: trunk/Tools/ChangeLog (219254 => 219255)


--- trunk/Tools/ChangeLog	2017-07-07 11:48:25 UTC (rev 219254)
+++ trunk/Tools/ChangeLog	2017-07-07 12:45:18 UTC (rev 219255)
@@ -1,3 +1,12 @@
+2017-07-07  Yusuke Suzuki  <[email protected]>
+
+        [GTK][WPE] Enable X-Content-Type-Options: nosniff
+        https://bugs.webkit.org/show_bug.cgi?id=174250
+
+        Reviewed by Carlos Alberto Lopez Perez.
+
+        * Scripts/webkitperl/FeatureList.pm:
+
 2017-07-07  Charlie Turner  <[email protected]>
         [GStreamer] vid.me videos do not play
         https://bugs.webkit.org/show_bug.cgi?id=172240

Modified: trunk/Tools/Scripts/webkitperl/FeatureList.pm (219254 => 219255)


--- trunk/Tools/Scripts/webkitperl/FeatureList.pm	2017-07-07 11:48:25 UTC (rev 219254)
+++ trunk/Tools/Scripts/webkitperl/FeatureList.pm	2017-07-07 12:45:18 UTC (rev 219255)
@@ -327,7 +327,7 @@
       define => "ENABLE_NETSCAPE_PLUGIN_API", default => (!isIOSWebKit() && !isWPE()), value => \$netscapePluginAPISupport },
 
     { option => "nosniff", desc => "Toggle support for 'X-Content-Type-Options: nosniff'",
-      define => "ENABLE_NOSNIFF", default => (isAppleCocoaWebKit() || isAppleWinWebKit()), value => \$nosniffSupport },
+      define => "ENABLE_NOSNIFF", default => 1, value => \$nosniffSupport },
 
     { option => "notifications", desc => "Toggle Notifications support",
       define => "ENABLE_NOTIFICATIONS", default => isGtk(), value => \$notificationsSupport },
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to