[iOSMac] Opt into modern compatibility mode by default
authorwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Apr 2019 18:45:04 +0000 (18:45 +0000)
committerwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Apr 2019 18:45:04 +0000 (18:45 +0000)
https://bugs.webkit.org/show_bug.cgi?id=196763
<rdar://problem/49038732>

Reviewed by Tim Horton.

Achieve this by limiting legacy compatibility mode by default to non-iOSMac iOS only.

* Shared/WebPreferences.yaml:
* Shared/WebPreferencesDefaultValues.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244140 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/Shared/WebPreferences.yaml
Source/WebKit/Shared/WebPreferencesDefaultValues.h

index f47b87d..1a1208c 100644 (file)
@@ -1,3 +1,16 @@
+2019-04-10  Wenson Hsieh  <wenson_hsieh@apple.com>
+
+        [iOSMac] Opt into modern compatibility mode by default
+        https://bugs.webkit.org/show_bug.cgi?id=196763
+        <rdar://problem/49038732>
+
+        Reviewed by Tim Horton.
+
+        Achieve this by limiting legacy compatibility mode by default to non-iOSMac iOS only.
+
+        * Shared/WebPreferences.yaml:
+        * Shared/WebPreferencesDefaultValues.h:
+
 2019-04-10  Alex Christensen  <achristensen@webkit.org>
 
         RemoteObjectRegistry message receiver should be removed when WebPage::close is called instead of waiting until dealloc
index 35d71cd..2c9e0f2 100644 (file)
@@ -1062,7 +1062,7 @@ DisableScreenSizeOverride:
 
 UseModernCompatibilityModeByDefault:
   type: bool
-  defaultValue: false
+  defaultValue: USE_MODERN_COMPATIBILITY_MODE_BY_DEFAULT
   humanReadableName: "Use Modern Compatibility Mode"
   humanReadableDescription: "Use modern compatibility mode by default"
   webcoreBinding: none
index 4d2a1c3..a6d145d 100644 (file)
@@ -267,3 +267,9 @@ bool defaultCustomPasteboardDataEnabled();
 #else
 #define DEFAULT_APPLE_PAY_ENABLED false
 #endif
+
+#if PLATFORM(IOS_FAMILY) && !PLATFORM(IOSMAC)
+#define USE_MODERN_COMPATIBILITY_MODE_BY_DEFAULT false
+#else
+#define USE_MODERN_COMPATIBILITY_MODE_BY_DEFAULT true
+#endif