⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 267641 in webkit


Ignore:
Timestamp:
Sep 26, 2020, 5:21:02 PM (6 years ago)
Author:
weinig@apple.com
Message:

[Preferences] Generate Debug and Internal preferences for WebKitLegacy
https://bugs.webkit.org/show_bug.cgi?id=217015

Reviewed by Darin Adler.

Source/WebKitLegacy:

  • WebKitLegacy.xcodeproj/project.pbxproj:

Adds generation of WebPreferencesInternalFeatures.mm from WebPreferencesInternalFeatures.mm.erb.

Source/WebKitLegacy/mac:

Imports WebPreferencesDebug.yaml and WebPreferencesInternal.yaml from WebKit and starts
generating them.

In addition, preference yaml files must now be sorted alphabetically by preference name, and
this is now enforced by GeneratePreferences.rb, generating an error if they are out of order.

  • Scripts/GeneratePreferences.rb:
  • Scripts/PreferencesTemplates/WebPreferencesDefinitions.h.erb:
  • Scripts/PreferencesTemplates/WebPreferencesInternalFeatures.mm.erb: Added.
  • WebView/WebPreferenceKeysPrivate.h:
  • WebView/WebPreferences.mm:

(+[WebPreferences initialize]):
(+[WebPreferences _internalDebugFeatures]): Deleted.

  • WebView/WebPreferencesDebug.yaml:
  • WebView/WebPreferencesDefaultValues.h:
  • WebView/WebPreferencesExperimental.yaml:
  • WebView/WebPreferencesInternal.yaml:
  • WebView/WebPreferencesPrivate.h:
  • WebView/WebView.mm:

(-[WebView _preferencesChanged:]):

Location:
trunk/Source/WebKitLegacy
Files:
13 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKitLegacy/ChangeLog

    r267623 r267641  
     12020-09-26  Sam Weinig  <weinig@apple.com>
     2
     3        [Preferences] Generate Debug and Internal preferences for WebKitLegacy
     4        https://bugs.webkit.org/show_bug.cgi?id=217015
     5
     6        Reviewed by Darin Adler.
     7
     8        * WebKitLegacy.xcodeproj/project.pbxproj:
     9        Adds generation of WebPreferencesInternalFeatures.mm from WebPreferencesInternalFeatures.mm.erb.
     10
    1112020-09-26  Sam Weinig  <weinig@apple.com>
    212
  • trunk/Source/WebKitLegacy/WebKitLegacy.xcodeproj/project.pbxproj

    r267623 r267641  
    230230                7C023A2F251C05FC00BA7BB6 /* WebPreferencesDefinitions.h in Headers */ = {isa = PBXBuildFile; fileRef = 7C023A2E251C05D500BA7BB6 /* WebPreferencesDefinitions.h */; };
    231231                7C1FB3C21846E8E1001A03D8 /* WebAllowDenyPolicyListener.h in Headers */ = {isa = PBXBuildFile; fileRef = 7C1FB3C11846E8E1001A03D8 /* WebAllowDenyPolicyListener.h */; settings = {ATTRIBUTES = (Private, ); }; };
     232                7C671126251FE40F004F4536 /* WebPreferencesInternalFeatures.mm in Sources */ = {isa = PBXBuildFile; fileRef = 7C671125251FE406004F4536 /* WebPreferencesInternalFeatures.mm */; };
    232233                7E6FEF0808985A7200C44C3F /* WebScriptDebugDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E6FEF0508985A7200C44C3F /* WebScriptDebugDelegate.h */; settings = {ATTRIBUTES = (Private, ); }; };
    233234                931633EB0AEDFF930062B92D /* WebFrameLoaderClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 931633EA0AEDFF930062B92D /* WebFrameLoaderClient.h */; };
     
    10061007                7C671118251C2459004F4536 /* postprocess-header-rule */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; name = "postprocess-header-rule"; path = "scripts/postprocess-header-rule"; sourceTree = "<group>"; };
    10071008                7C671119251C2483004F4536 /* check-xcfilelists.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; name = "check-xcfilelists.sh"; path = "scripts/check-xcfilelists.sh"; sourceTree = "<group>"; };
     1009                7C671123251FB237004F4536 /* WebPreferencesInternalFeatures.mm.erb */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebPreferencesInternalFeatures.mm.erb; sourceTree = "<group>"; };
     1010                7C671125251FE406004F4536 /* WebPreferencesInternalFeatures.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; name = WebPreferencesInternalFeatures.mm; path = WebPreferencesInternalFeatures.mm; sourceTree = "<group>"; };
    10081011                7E6FEF0508985A7200C44C3F /* WebScriptDebugDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = WebScriptDebugDelegate.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
    10091012                7E6FEF0608985A7200C44C3F /* WebScriptDebugDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebScriptDebugDelegate.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
     
    19461949                                7C023A2C251C05AC00BA7BB6 /* WebPreferencesDefinitions.h.erb */,
    19471950                                7C023216251B96E400BA7BB6 /* WebPreferencesExperimentalFeatures.mm.erb */,
     1951                                7C671123251FB237004F4536 /* WebPreferencesInternalFeatures.mm.erb */,
    19481952                                7C023A25251BADD100BA7BB6 /* WebViewPreferencesChangedGenerated.mm.erb */,
    19491953                        );
     
    19571961                                7C023A2E251C05D500BA7BB6 /* WebPreferencesDefinitions.h */,
    19581962                                7C023A05251BA18C00BA7BB6 /* WebPreferencesExperimentalFeatures.mm */,
     1963                                7C671125251FE406004F4536 /* WebPreferencesInternalFeatures.mm */,
    19591964                                7C023A26251BAF2200BA7BB6 /* WebViewPreferencesChangedGenerated.mm */,
    19601965                        );
     
    34573462                                "$(SRCROOT)/mac/Scripts/PreferencesTemplates/WebPreferencesDefinitions.h.erb",
    34583463                                "$(SRCROOT)/mac/Scripts/PreferencesTemplates/WebPreferencesExperimentalFeatures.mm.erb",
     3464                                "$(SRCROOT)/mac/Scripts/PreferencesTemplates/WebPreferencesInternalFeatures.mm.erb",
    34593465                                "$(SRCROOT)/mac/Scripts/PreferencesTemplates/WebViewPreferencesChangedGenerated.mm.erb",
    34603466                        );
     
    34653471                                "${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy/WebPreferencesDefinitions.h",
    34663472                                "${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy/WebPreferencesExperimentalFeatures.mm",
     3473                                "${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy/WebPreferencesInternalFeatures.mm",
    34673474                                "${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy/WebViewPreferencesChangedGenerated.mm",
    34683475                        );
    34693476                        runOnlyForDeploymentPostprocessing = 0;
    34703477                        shellPath = /bin/sh;
    3471                         shellScript = "set -e\n\n${SRCROOT}/mac/Scripts/GeneratePreferences.rb --frontend WebKitLegacy --template WebPreferencesDefinitions.h --template WebPreferencesExperimentalFeatures.mm --template WebViewPreferencesChangedGenerated.mm --outputDir ${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy/ --base ${SRCROOT}/mac/WebView/WebPreferences.yaml --debug ${SRCROOT}/mac/WebView/WebPreferencesDebug.yaml --experimental ${SRCROOT}/mac/WebView/WebPreferencesExperimental.yaml --internal ${SRCROOT}/mac/WebView/WebPreferencesInternal.yaml\n";
     3478                        shellScript = "set -e\n\n${SRCROOT}/mac/Scripts/GeneratePreferences.rb --frontend WebKitLegacy --template WebPreferencesDefinitions.h --template WebPreferencesExperimentalFeatures.mm --template WebPreferencesInternalFeatures.mm --template WebViewPreferencesChangedGenerated.mm --outputDir ${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy/ --base ${SRCROOT}/mac/WebView/WebPreferences.yaml --debug ${SRCROOT}/mac/WebView/WebPreferencesDebug.yaml --experimental ${SRCROOT}/mac/WebView/WebPreferencesExperimental.yaml --internal ${SRCROOT}/mac/WebView/WebPreferencesInternal.yaml\n";
    34723479                };
    34733480                A13EE61D185AE82700556064 /* Postprocess Headers */ = {
     
    36523659                                7C023A24251BA43E00BA7BB6 /* WebPreferencesDefaultValues.mm in Sources */,
    36533660                                7C023A06251BA18C00BA7BB6 /* WebPreferencesExperimentalFeatures.mm in Sources */,
     3661                                7C671126251FE40F004F4536 /* WebPreferencesInternalFeatures.mm in Sources */,
    36543662                                1A6A208D1886154600E50F5F /* WebProgressTrackerClient.mm in Sources */,
    36553663                                9398111A0824BF01008DF038 /* WebResource.mm in Sources */,
  • trunk/Source/WebKitLegacy/mac/ChangeLog

    r267623 r267641  
     12020-09-26  Sam Weinig  <weinig@apple.com>
     2
     3        [Preferences] Generate Debug and Internal preferences for WebKitLegacy
     4        https://bugs.webkit.org/show_bug.cgi?id=217015
     5
     6        Reviewed by Darin Adler.
     7
     8        Imports WebPreferencesDebug.yaml and WebPreferencesInternal.yaml from WebKit and starts
     9        generating them.
     10       
     11        In addition, preference yaml files must now be sorted alphabetically by preference name, and
     12        this is now enforced by GeneratePreferences.rb, generating an error if they are out of order.
     13
     14        * Scripts/GeneratePreferences.rb:
     15        * Scripts/PreferencesTemplates/WebPreferencesDefinitions.h.erb:
     16        * Scripts/PreferencesTemplates/WebPreferencesInternalFeatures.mm.erb: Added.
     17        * WebView/WebPreferenceKeysPrivate.h:
     18        * WebView/WebPreferences.mm:
     19        (+[WebPreferences initialize]):
     20        (+[WebPreferences _internalDebugFeatures]): Deleted.
     21        * WebView/WebPreferencesDebug.yaml:
     22        * WebView/WebPreferencesDefaultValues.h:
     23        * WebView/WebPreferencesExperimental.yaml:
     24        * WebView/WebPreferencesInternal.yaml:
     25        * WebView/WebPreferencesPrivate.h:
     26        * WebView/WebView.mm:
     27        (-[WebView _preferencesChanged:]):
     28
    1292020-09-26  Sam Weinig  <weinig@apple.com>
    230
  • trunk/Source/WebKitLegacy/mac/Scripts/GeneratePreferences.rb

    r267623 r267641  
    6565FileUtils.mkdir_p(options[:outputDirectory])
    6666
    67 parsedBasePreferences = begin
    68   YAML.load_file(options[:basePreferences])
    69 rescue ArgumentError => e
    70   puts "Could not parse input file: #{e.message}"
    71   exit(-1)
    72 end
    73 
    74 parsedDebugPreferences = begin
    75   YAML.load_file(options[:debugPreferences])
    76 rescue ArgumentError => e
    77   puts "Could not parse input file: #{e.message}"
    78   exit(-1)
    79 end
    80 
    81 parsedExperimentalPreferences = begin
    82   YAML.load_file(options[:experimentalPreferences])
    83 rescue ArgumentError => e
    84   puts "Could not parse input file: #{e.message}"
    85   exit(-1)
    86 end
    87 
    88 parsedInternalPreferences = begin
    89   YAML.load_file(options[:internalPreferences])
    90 rescue ArgumentError => e
    91   puts "Could not parse input file: #{e.message}"
    92   exit(-1)
    93 end
     67def load(path)
     68  parsed = begin
     69    YAML.load_file(path)
     70  rescue ArgumentError => e
     71    puts "ERROR: Could not parse input file: #{e.message}"
     72    exit(-1)
     73  end
     74  if parsed
     75    previousName = nil
     76    parsed.keys.each do |name|
     77      if previousName != nil and previousName > name
     78        puts "ERROR: Input file #{path} is not sorted. First out of order name found is '#{name}'."
     79        exit(-1)
     80      end
     81      previousName = name
     82    end
     83  end
     84  parsed
     85end
     86
     87parsedBasePreferences = load(options[:basePreferences])
     88parsedDebugPreferences = load(options[:debugPreferences])
     89parsedExperimentalPreferences = load(options[:experimentalPreferences])
     90parsedInternalPreferences = load(options[:internalPreferences])
    9491
    9592
     
    169166    @preferencesDebug = []
    170167    @experimentalFeatures = []
    171     @internalDebugFeatures = []
     168    @internalFeatures = []
    172169
    173170    if parsedBasePreferences
     
    196193        preference = Preference.new(name, options, @frontend)
    197194        @preferences << preference
    198         @internalDebugFeatures << preference
     195        @internalFeatures << preference
    199196      end
    200197    end
     
    204201    @preferencesDebug.sort! { |x, y| x.name <=> y.name }
    205202    @experimentalFeatures.sort! { |x, y| x.name <=> y.name }.sort! { |x, y| x.humanReadableName <=> y.humanReadableName }
    206     @internalDebugFeatures.sort! { |x, y| x.name <=> y.name }.sort! { |x, y| x.humanReadableName <=> y.humanReadableName }
     203    @internalFeatures.sort! { |x, y| x.name <=> y.name }.sort! { |x, y| x.humanReadableName <=> y.humanReadableName }
    207204
    208205    @preferencesBoundToSetting = @preferences.select { |p| !p.webcoreBinding }
  • trunk/Source/WebKitLegacy/mac/Scripts/PreferencesTemplates/WebPreferencesDefinitions.h.erb

    r267623 r267641  
    3232// Default initialization of WebPreferences' internal dictionary.
    3333
    34 <%- for @pref in @experimentalFeatures do -%>
     34<%- for @pref in @preferences do -%>
    3535<%-   if @pref.condition -%>
    3636#if <%= @pref.condition %>
     
    5959
    6060#define INITIALIZE_DEFAULT_PREFERENCES_DICTIONARY_FROM_GENERATED_PREFERENCES \
    61 <%- for @pref in @experimentalFeatures do -%>
     61<%- for @pref in @preferences do -%>
    6262    @(DEFAULT_VALUE_FOR_<%= @pref.name %>), @"WebKit<%= @pref.name %>", \
    6363<%- end -%>
  • trunk/Source/WebKitLegacy/mac/Scripts/PreferencesTemplates/WebPreferencesInternalFeatures.mm.erb

    r267640 r267641  
    11/*
     2 * <%= @warning %>
     3 *
    24 * Copyright (C) 2020 Apple Inc. All rights reserved.
    35 *
     
    2426 */
    2527
    26 #pragma once
     28#import "WebPreferencesPrivate.h"
    2729
    28 #include <wtf/Forward.h>
     30#import "WebFeatureInternal.h"
     31#import "WebPreferencesDefinitions.h"
    2932
    30 #if PLATFORM(MAC)
    31 #define DEFAULT_SUBPIXEL_ANTIALIASED_LAYER_TEXT_ENABLED true
    32 #else
    33 #define DEFAULT_SUBPIXEL_ANTIALIASED_LAYER_TEXT_ENABLED false
     33using namespace WebKit;
     34
     35@implementation WebPreferences (WebPrivateInternalFeatures)
     36
     37+ (NSArray<WebFeature *> *)_internalFeatures
     38{
     39    static NSArray<WebFeature *> *features = @[
     40<%- for @pref in @internalFeatures do -%>
     41<%- if @pref.condition -%>
     42#if <%= @pref.condition %>
     43<%- end -%>
     44        [[WebFeature alloc] initWithKey:@"<%= @pref.name %>" name:@<%= @pref.humanReadableName %> details:@<%= @pref.humanReadableDescription %> defaultValue:DEFAULT_VALUE_FOR_<%= @pref.name %> hidden:<%= @pref.hidden %>],
     45<%- if @pref.condition -%>
    3446#endif
     47<%- end -%>
     48<%- end -%>
     49    ];
    3550
    36 namespace WebKit {
     51    return features;
     52}
    3753
    38 #if PLATFORM(COCOA) && HAVE(SYSTEM_FEATURE_FLAGS)
    39 bool isFeatureFlagEnabled(const String&);
    40 #endif
    41 
    42 #if ENABLE(WEBGPU)
    43 bool defaultWebGPUEnabled();
    44 #endif
    45 
    46 #if HAVE(INCREMENTAL_PDF_APIS)
    47 bool defaultIncrementalPDFEnabled();
    48 #endif
    49 
    50 #if ENABLE(WEBXR)
    51 bool defaultWebXREnabled();
    52 #endif
    53 
    54 } // namespace WebKit
     54@end
  • trunk/Source/WebKitLegacy/mac/WebView/WebPreferenceKeysPrivate.h

    r267592 r267641  
    8989#define WebKitFTPDirectoryTemplatePath @"WebKitFTPDirectoryTemplatePath"
    9090#define WebKitForceFTPDirectoryListings @"WebKitForceFTPDirectoryListings"
    91 #define WebKitDeveloperExtrasEnabledPreferenceKey @"WebKitDeveloperExtrasEnabledPreferenceKey"
     91#define WebKitDeveloperExtrasEnabledPreferenceKey @"WebKitDeveloperExtrasEnabled"
    9292#define WebKitJavaScriptRuntimeFlagsPreferenceKey @"WebKitJavaScriptRuntimeFlagsPreferenceKey"
    9393#define WebKitAuthorAndUserStylesEnabledPreferenceKey @"WebKitAuthorAndUserStylesEnabledPreferenceKey"
     
    170170#define WebKitDataTransferItemsEnabledPreferenceKey @"WebKitDataTransferItemsEnabled"
    171171#define WebKitCustomPasteboardDataEnabledPreferenceKey @"WebKitCustomPasteboardDataEnabled"
    172 #define WebKitKeygenElementEnabledPreferenceKey @"WebKitKeygenElementEnabledPreferenceKey"
     172#define WebKitKeygenElementEnabledPreferenceKey @"WebKitKeygenElementEnabled"
    173173#define WebKitCacheAPIEnabledPreferenceKey @"WebKitCacheAPIEnabled"
    174174#define WebKitDownloadAttributeEnabledPreferenceKey @"WebKitDownloadAttributeEnabled"
  • trunk/Source/WebKitLegacy/mac/WebView/WebPreferences.mm

    r267592 r267641  
    468468        @(cacheModelForMainBundle()), WebKitCacheModelPreferenceKey,
    469469        @YES, WebKitPageCacheSupportsPluginsPreferenceKey,
    470         @NO, WebKitDeveloperExtrasEnabledPreferenceKey,
    471470        @(0), WebKitJavaScriptRuntimeFlagsPreferenceKey,
    472471        @YES, WebKitAuthorAndUserStylesEnabledPreferenceKey,
     
    479478        @YES, WebKitXSSAuditorEnabledPreferenceKey,
    480479        @YES, WebKitAcceleratedCompositingEnabledPreferenceKey,
    481         [NSNumber numberWithBool:DEFAULT_SUBPIXEL_ANTIALIASED_LAYER_TEXT_ENABLED], WebKitSubpixelAntialiasedLayerTextEnabledPreferenceKey,
    482         @NO, WebKitDisplayListDrawingEnabledPreferenceKey,
    483480#if PLATFORM(IOS_FAMILY) && !PLATFORM(IOS_FAMILY_SIMULATOR)
    484         @YES, WebKitAcceleratedDrawingEnabledPreferenceKey,
    485481        @YES, WebKitCanvasUsesAcceleratedDrawingPreferenceKey,
    486482#else
    487         @NO, WebKitAcceleratedDrawingEnabledPreferenceKey,
    488483        @NO, WebKitCanvasUsesAcceleratedDrawingPreferenceKey,
    489484#endif
    490         @NO, WebKitShowDebugBordersPreferenceKey,
    491         @YES, WebKitSimpleLineLayoutEnabledPreferenceKey,
    492         @NO, WebKitSimpleLineLayoutDebugBordersEnabledPreferenceKey,
    493         @NO, WebKitShowRepaintCounterPreferenceKey,
    494485        @YES, WebKitWebGLEnabledPreferenceKey,
    495486        @YES, WebKitForceWebGLUsesLowPowerPreferenceKey,
     
    504495        @(static_cast<uint32_t>(FrameFlattening::Disabled)), WebKitFrameFlatteningPreferenceKey,
    505496#endif
    506         @NO, WebKitAsyncFrameScrollingEnabledPreferenceKey,
    507497        @NO, WebKitSpatialNavigationEnabledPreferenceKey,
    508498        @NO, WebKitDNSPrefetchingEnabledPreferenceKey,
    509         @NO, WebKitFullScreenEnabledPreferenceKey,
    510499        @NO, WebKitAsynchronousSpellCheckingEnabledPreferenceKey,
    511500        @YES, WebKitHyperlinkAuditingEnabledPreferenceKey,
     
    603592
    604593#if ENABLE(MEDIA_STREAM)
    605         @NO, WebKitMockCaptureDevicesEnabledPreferenceKey,
    606594        @YES, WebKitMockCaptureDevicesPromptEnabledPreferenceKey,
    607         @YES, WebKitMediaCaptureRequiresSecureConnectionPreferenceKey,
    608595#endif
    609596        @YES, WebKitDataTransferItemsEnabledPreferenceKey,
    610597        @NO, WebKitCustomPasteboardDataEnabledPreferenceKey,
    611598        @YES, WebKitModernMediaControlsEnabledPreferenceKey,
    612         @YES, WebKitLayoutFormattingContextIntegrationEnabledPreferenceKey,
    613599
    614600        @NO, WebKitCacheAPIEnabledPreferenceKey,
     
    619605        @NO, WebKitDirectoryUploadEnabledPreferenceKey,
    620606
    621         @YES, WebKitCSSOMViewScrollingAPIEnabledPreferenceKey,
    622607        @YES, WebKitNeedsStorageAccessFromFileURLsQuirkKey,
    623608        @NO, WebKitAllowCrossOriginSubresourcesToAskForCredentialsKey,
     
    629614        @YES, WebKitPeerConnectionEnabledPreferenceKey,
    630615#endif
    631         @YES, WebKitSelectionAcrossShadowBoundariesEnabledPreferenceKey,
    632         @NO, WebKitCSSLogicalEnabledPreferenceKey,
    633         @NO, WebKitLineHeightUnitsEnabledPreferenceKey,
    634616        @NO, WebKitMediaUserGestureInheritsFromDocument,
    635617        @YES, WebKitLegacyEncryptedMediaAPIEnabledKey,
     
    642624        @NO, WebKitInspectorAdditionsEnabledPreferenceKey,
    643625        (NSString *)Settings::defaultMediaContentTypesRequiringHardwareSupport(), WebKitMediaContentTypesRequiringHardwareSupportPreferenceKey,
    644         @YES, WebKitAriaReflectionEnabledPreferenceKey,
    645626        @NO, WebKitMediaCapabilitiesEnabledPreferenceKey,
    646627        @NO, WebKitDebugInAppBrowserPrivacyEnabledPreferenceKey,
     
    32363217@end
    32373218
    3238 @implementation WebPreferences (WebPrivateInternalDebugFeatures)
    3239 
    3240 + (NSArray<WebFeature *> *)_internalDebugFeatures
    3241 {
    3242     return @[];
    3243 }
    3244 
    3245 @end
    3246 
    32473219@implementation WebPreferences (WebPrivateFeatures)
    32483220
  • trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesDebug.yaml

    r267575 r267641  
    2222# THE POSSIBILITY OF SUCH DAMAGE.
    2323
    24 # Debug Preferences go here.
     24AcceleratedDrawingEnabled:
     25  type: bool
     26  defaultValue:
     27    WebKitLegacy:
     28      "PLATFORM(IOS_FAMILY) && !PLATFORM(IOS_FAMILY_SIMULATOR)": true
     29      default: false
     30    WebKit:
     31      default: true
     32
     33DeveloperExtrasEnabled:
     34  type: bool
     35  defaultValue:
     36    WebKitLegacy:
     37      default: false
     38    WebKit:
     39      default: false
     40
     41# FIXME: Starting the preference name with "Disable" is inconsistent with most other preferences and should be changed.
     42DisableScreenSizeOverride:
     43  type: bool
     44  webcoreBinding: DeprecatedGlobalSettings
     45  condition: PLATFORM(IOS_FAMILY)
     46  defaultValue:
     47    WebKitLegacy:
     48      default: false
     49    WebKit:
     50      default: false
     51
     52DisplayListDrawingEnabled:
     53  type: bool
     54  defaultValue:
     55    WebKitLegacy:
     56      default: false
     57    WebKit:
     58      default: false
     59
     60# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     61ForceAlwaysUserScalable:
     62  type: bool
     63  webcoreBinding: none
     64  condition: PLATFORM(IOS_FAMILY)
     65  defaultValue:
     66    WebKitLegacy:
     67      default: false
     68    WebKit:
     69      default: false
     70
     71# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     72# FIXME: The 'Is' prefix is inconsistent with most other preferences and should be removed.
     73IsInAppBrowserPrivacyEnabled:
     74  type: bool
     75  humanReadableName: "In-App Browser Privacy"
     76  humanReadableDescription: "Enable In-App Browser Privacy"
     77  defaultValue:
     78    WebKitLegacy:
     79      default: false
     80    WebKit:
     81      default: WebKit::defaultInAppBrowserPrivacy()
     82
     83LogsPageMessagesToSystemConsoleEnabled:
     84  type: bool
     85  defaultValue:
     86    WebKitLegacy:
     87      default: false
     88    WebKit:
     89      default: false
     90
     91# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     92NeedsInAppBrowserPrivacyQuirks:
     93  type: bool
     94  humanReadableName: "Needs In-App Browser Privacy Quirks"
     95  humanReadableDescription: "Enable quirks needed to support In-App Browser privacy"
     96  defaultValue:
     97    WebKitLegacy:
     98      default: false
     99    WebKit:
     100      default: false
     101
     102ResourceUsageOverlayVisible:
     103  type: bool
     104  condition: ENABLE(RESOURCE_USAGE)
     105  defaultValue:
     106    WebKitLegacy:
     107      default: false
     108    WebKit:
     109      default: false
     110
     111# FIXME: WebKit has an alternate name for this called 'CompositingBordersVisible'. We should standardize on one name.
     112ShowDebugBorders:
     113  type: bool
     114  defaultValue:
     115    WebKitLegacy:
     116      default: false
     117    WebKit:
     118      default: false
     119
     120# FIXME: WebKit has an alternate name for this called 'CompositingRepaintCountersVisible'. We should standardize on one name.
     121ShowRepaintCounter:
     122  type: bool
     123  defaultValue:
     124    WebKitLegacy:
     125      default: false
     126    WebKit:
     127      default: false
     128
     129SimpleLineLayoutDebugBordersEnabled:
     130  type: bool
     131  defaultValue:
     132    WebKitLegacy:
     133      default: false
     134    WebKit:
     135      default: false
     136
     137SubpixelAntialiasedLayerTextEnabled:
     138  type: bool
     139  defaultValue:
     140    WebKitLegacy:
     141      "PLATFORM(MAC)": true
     142      default: false
     143    WebKit:
     144      "PLATFORM(MAC)": true
     145      default: false
     146
     147# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     148TiledScrollingIndicatorVisible:
     149  type: bool
     150  webcoreName: showTiledScrollingIndicator
     151  defaultValue:
     152    WebKitLegacy:
     153      default: false
     154    WebKit:
     155      default: false
     156
     157VisibleDebugOverlayRegions:
     158  type: uint32_t
     159  defaultValue:
     160    WebKitLegacy:
     161      default: 0
     162    WebKit:
     163      default: 0
     164
  • trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesDefaultValues.h

    r267623 r267641  
    3434#endif
    3535
     36#if PLATFORM(IOS_FAMILY)
     37#define EXPERIMENTAL_FULLSCREEN_API_HIDDEN false
     38#else
     39#define EXPERIMENTAL_FULLSCREEN_API_HIDDEN true
     40#endif
     41
    3642namespace WebKit {
    3743
  • trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesExperimental.yaml

    r267623 r267641  
    3838      default: false
    3939
     40AdClickAttributionDebugModeEnabled:
     41  type: bool
     42  humanReadableName: "Ad Click Attribution Debug Mode"
     43  humanReadableDescription: "Enable Ad Click Attribution Debug Mode"
     44  webcoreBinding: RuntimeEnabledFeatures
     45  defaultValue:
     46    WebKitLegacy:
     47      default: false
     48    WebKit:
     49      default: false
     50
    4051AdClickAttributionEnabled:
    4152  type: bool
     
    4859      default: false
    4960
    50 AdClickAttributionDebugModeEnabled:
    51   type: bool
    52   humanReadableName: "Ad Click Attribution Debug Mode"
    53   humanReadableDescription: "Enable Ad Click Attribution Debug Mode"
    54   webcoreBinding: RuntimeEnabledFeatures
    55   defaultValue:
    56     WebKitLegacy:
    57       default: false
    58     WebKit:
    59       default: false
    60 
    6161# FIXME: This is on by default in WebKit2. Perhaps we should consider turning it on for WebKitLegacy as well.
    6262AspectRatioOfImgFromWidthAndHeightEnabled:
     
    9191    WebKit:
    9292      default: true
     93
     94CSSCustomPropertiesAndValuesEnabled:
     95  type: bool
     96  humanReadableName: "CSS Custom Properties and Values API"
     97  humanReadableDescription: "Enable CSS Custom Properties and Values API"
     98  defaultValue:
     99    WebKitLegacy:
     100      default: false
     101    WebKit:
     102      default: false
     103
     104# FIXME: This is enabled when ENABLE(EXPERIMENTAL_FEATURES) is true in WebKit2. Perhaps we should consider using that for WebKitLegacy as well.
     105CSSIndividualTransformPropertiesEnabled:
     106  type: bool
     107  humanReadableName: "CSS Individual Transform Properties"
     108  humanReadableDescription: "Support for the translate, scale and rotate CSS properties"
     109  defaultValue:
     110    WebKitLegacy:
     111      default: false
     112    WebKit:
     113      "ENABLE(EXPERIMENTAL_FEATURES)" : true
     114      default: false
     115
     116CSSOMViewSmoothScrollingEnabled:
     117  type: bool
     118  humanReadableName: "CSSOM View Smooth Scrolling"
     119  humanReadableDescription: "Enable DOM API and CSS property for 'smooth' scroll behavior"
     120  defaultValue:
     121    WebKitLegacy:
     122      default: false
     123    WebKit:
     124      default: false
     125
     126CSSPaintingAPIEnabled:
     127  type: bool
     128  humanReadableName: "CSS Painting API"
     129  humanReadableDescription: "Enable the CSS Painting API"
     130  webcoreBinding: RuntimeEnabledFeatures
     131  condition: ENABLE(CSS_PAINTING_API)
     132  defaultValue:
     133    WebKitLegacy:
     134      default: false
     135    WebKit:
     136      "ENABLE(EXPERIMENTAL_FEATURES) && (PLATFORM(GTK) || PLATFORM(WPE))": true
     137      default: false
     138
     139CSSTypedOMEnabled:
     140  type: bool
     141  humanReadableName: "CSS Typed OM"
     142  humanReadableDescription: "Enable the CSS Typed OM"
     143  webcoreBinding: RuntimeEnabledFeatures
     144  condition: ENABLE(CSS_TYPED_OM)
     145  defaultValue:
     146    WebKitLegacy:
     147      default: false
     148    WebKit:
     149      "ENABLE(EXPERIMENTAL_FEATURES) && (PLATFORM(GTK) || PLATFORM(WPE))": true
     150      default: false
    93151
    94152CoreImageAcceleratedFilterRenderEnabled:
     
    112170    WebKit:
    113171      "PLATFORM(GTK) || PLATFORM(WPE)": true
    114       default: false
    115 
    116 CSSCustomPropertiesAndValuesEnabled:
    117   type: bool
    118   humanReadableName: "CSS Custom Properties and Values API"
    119   humanReadableDescription: "Enable CSS Custom Properties and Values API"
    120   defaultValue:
    121     WebKitLegacy:
    122       default: false
    123     WebKit:
    124       default: false
    125 
    126 # FIXME: This is enabled when ENABLE(EXPERIMENTAL_FEATURES) is true in WebKit2. Perhaps we should consider using that for WebKitLegacy as well.
    127 CSSIndividualTransformPropertiesEnabled:
    128   type: bool
    129   humanReadableName: "CSS Individual Transform Properties"
    130   humanReadableDescription: "Support for the translate, scale and rotate CSS properties"
    131   defaultValue:
    132     WebKitLegacy:
    133       default: false
    134     WebKit:
    135       "ENABLE(EXPERIMENTAL_FEATURES)" : true
    136       default: false
    137 
    138 CSSOMViewSmoothScrollingEnabled:
    139   type: bool
    140   humanReadableName: "CSSOM View Smooth Scrolling"
    141   humanReadableDescription: "Enable DOM API and CSS property for 'smooth' scroll behavior"
    142   defaultValue:
    143     WebKitLegacy:
    144       default: false
    145     WebKit:
    146       default: false
    147 
    148 CSSPaintingAPIEnabled:
    149   type: bool
    150   humanReadableName: "CSS Painting API"
    151   humanReadableDescription: "Enable the CSS Painting API"
    152   webcoreBinding: RuntimeEnabledFeatures
    153   condition: ENABLE(CSS_PAINTING_API)
    154   defaultValue:
    155     WebKitLegacy:
    156       default: false
    157     WebKit:
    158       "ENABLE(EXPERIMENTAL_FEATURES) && (PLATFORM(GTK) || PLATFORM(WPE))": true
    159       default: false
    160 
    161 CSSTypedOMEnabled:
    162   type: bool
    163   humanReadableName: "CSS Typed OM"
    164   humanReadableDescription: "Enable the CSS Typed OM"
    165   webcoreBinding: RuntimeEnabledFeatures
    166   condition: ENABLE(CSS_TYPED_OM)
    167   defaultValue:
    168     WebKitLegacy:
    169       default: false
    170     WebKit:
    171       "ENABLE(EXPERIMENTAL_FEATURES) && (PLATFORM(GTK) || PLATFORM(WPE))": true
    172172      default: false
    173173
     
    254254      default: true
    255255
    256 HighlightAPIEnabled:
    257   type: bool
    258   humanReadableName: "Highlight API"
    259   humanReadableDescription: "Highlight API support"
    260   webcoreBinding: RuntimeEnabledFeatures
    261   defaultValue:
    262     WebKitLegacy:
    263       default: false
    264     WebKit:
    265       default: false
    266 
    267256# FIXME: This is on by default in WebKit2. Perhaps we should consider turning it on for WebKitLegacy as well.
    268257HDRMediaCapabilitiesEnabled:
     
    300289      default: false
    301290
     291HighlightAPIEnabled:
     292  type: bool
     293  humanReadableName: "Highlight API"
     294  humanReadableDescription: "Highlight API support"
     295  webcoreBinding: RuntimeEnabledFeatures
     296  defaultValue:
     297    WebKitLegacy:
     298      default: false
     299    WebKit:
     300      default: false
     301
    302302# FIXME: This is enabled when ENABLE(EXPERIMENTAL_FEATURES) is true in WebKit2. Perhaps we should consider using that for WebKitLegacy as well.
    303303ImageBitmapEnabled:
     
    312312      "ENABLE(EXPERIMENTAL_FEATURES)" : true
    313313      default: false
     314
     315# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     316InProcessCookieCacheEnabled:
     317  type: bool
     318  humanReadableName: "In-Process Cookie Cache"
     319  humanReadableDescription: "In-Process DOM Cookie Cache"
     320  defaultValue:
     321    WebKitLegacy:
     322      default: true
     323    WebKit:
     324      default: true
    314325
    315326IncrementalPDFLoadingEnabled:
     
    337348      default: true
    338349
    339 # FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
    340 InProcessCookieCacheEnabled:
    341   type: bool
    342   humanReadableName: "In-Process Cookie Cache"
    343   humanReadableDescription: "In-Process DOM Cookie Cache"
    344   defaultValue:
    345     WebKitLegacy:
    346       default: true
    347     WebKit:
    348       default: true
    349 
    350350# FIXME: The 'Is' prefix is inconsistent with most other preferences and should be removed.
    351351IsFirstPartyWebsiteDataRemovalDisabled:
     
    681681  defaultValue:
    682682    WebKitLegacy:
    683       default: true
    684     WebKit:
    685       default: true
    686 
    687 VisualViewportAPIEnabled:
    688   type: bool
    689   humanReadableName: "Visual Viewport API"
    690   humanReadableDescription: "Enable Visual Viewport API"
    691   defaultValue:
    692     WebKitLegacy:
    693       "PLATFORM(IOS_FAMILY)" : false
    694683      default: true
    695684    WebKit:
     
    722711      default: WebKit::defaultVP9SWDecoderEnabledOnBattery()
    723712
     713VisualViewportAPIEnabled:
     714  type: bool
     715  humanReadableName: "Visual Viewport API"
     716  humanReadableDescription: "Enable Visual Viewport API"
     717  defaultValue:
     718    WebKitLegacy:
     719      "PLATFORM(IOS_FAMILY)" : false
     720      default: true
     721    WebKit:
     722      default: true
    724723
    725724# FIXME: This is enabled when ENABLE(EXPERIMENTAL_FEATURES) is true in WebKit2. Perhaps we should consider using that for WebKitLegacy as well.
     
    836835      default: false
    837836
     837# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     838WebRTCPlatformCodecsInGPUProcessEnabled:
     839  type: bool
     840  humanReadableName: "WebRTC Platform Codecs in GPU Process"
     841  humanReadableDescription: "Enable WebRTC Platform Codecs in GPU Process"
     842  webcoreBinding: RuntimeEnabledFeatures
     843  condition: ENABLE(WEB_RTC)
     844  defaultValue:
     845    WebKitLegacy:
     846      default: false
     847    WebKit:
     848      default: WebKit::defaultWebRTCCodecsInGPUProcess()
     849
    838850# FIXME: Is this implemented for WebKitLegacy? If not, this should be excluded from WebKitLegacy entirely.
    839851WebRTCVP9CodecEnabled:
     
    848860    WebKit:
    849861      default: false
    850 
    851 # FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
    852 WebRTCPlatformCodecsInGPUProcessEnabled:
    853   type: bool
    854   humanReadableName: "WebRTC Platform Codecs in GPU Process"
    855   humanReadableDescription: "Enable WebRTC Platform Codecs in GPU Process"
    856   webcoreBinding: RuntimeEnabledFeatures
    857   condition: ENABLE(WEB_RTC)
    858   defaultValue:
    859     WebKitLegacy:
    860       default: false
    861     WebKit:
    862       default: WebKit::defaultWebRTCCodecsInGPUProcess()
    863862
    864863WebShareFileAPIEnabled:
  • trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesInternal.yaml

    r267575 r267641  
    2727#   the text exposed to the user from the WebKit client.
    2828
    29 # Internal preferences go here.
     29# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     30AllowViewportShrinkToFitContent:
     31  type: bool
     32  humanReadableName: "Allow Viewport Shrink to Fit Content"
     33  humanReadableDescription: "Allow the viewport shrink to fit content heuristic when appropriate"
     34  condition: PLATFORM(IOS_FAMILY)
     35  defaultValue:
     36    WebKitLegacy:
     37      default: false
     38    WebKit:
     39      default: true
     40
     41# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     42AlwaysZoomOnDoubleTap:
     43  type: bool
     44  humanReadableName: "DTTZ always"
     45  humanReadableDescription: "Double taps zoom, even if we dispatched a click anywhere"
     46  webcoreBinding: none
     47  condition: PLATFORM(IOS_FAMILY)
     48  defaultValue:
     49    WebKitLegacy:
     50      default: false
     51    WebKit:
     52      default: false
     53
     54# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     55ApplePayRemoteUIEnabled:
     56  type: bool
     57  humanReadableDescription: "Enable Apple Pay Remote UI"
     58  humanReadableName: "Apple Pay Remote UI"
     59  condition: ENABLE(APPLE_PAY_REMOTE_UI)
     60  defaultValue:
     61    WebKitLegacy:
     62      default: false
     63    WebKit:
     64      default: true
     65
     66AriaReflectionEnabled:
     67  type: bool
     68  humanReadableName: "ARIA Reflection"
     69  humanReadableDescription: "ARIA Reflection support"
     70  webcoreBinding: RuntimeEnabledFeatures
     71  defaultValue:
     72    WebKitLegacy:
     73      default: true
     74    WebKit:
     75      default: true
     76
     77AsyncFrameScrollingEnabled:
     78  type: bool
     79  humanReadableName: "Async Frame Scrolling"
     80  humanReadableDescription: "Perform frame scrolling off the main thread"
     81  defaultValue:
     82    WebKitLegacy:
     83      default: false
     84    WebKit:
     85      default: WebKit::defaultAsyncFrameScrollingEnabled()
     86
     87AsyncOverflowScrollingEnabled:
     88  type: bool
     89  humanReadableName: "Async Overflow Scrolling"
     90  humanReadableDescription: "Perform overflow scrolling off the main thread"
     91  defaultValue:
     92    WebKitLegacy:
     93      default: false
     94    WebKit:
     95      default: WebKit::defaultAsyncFrameScrollingEnabled()
     96
     97# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     98BlockingOfSmallPluginsEnabled:
     99  type: bool
     100  humanReadableName: "Block small plugins"
     101  humanReadableDescription: "Stop plugins smaller than a certain threshold from loading."
     102  defaultValue:
     103    WebKitLegacy:
     104      default: false
     105    WebKit:
     106      default: true
     107
     108CSSLogicalEnabled:
     109  type: bool
     110  humanReadableName: "CSS Logical Properties and Values"
     111  humanReadableDescription: "Enable CSS Logical Properties and Values"
     112  webcoreBinding: RuntimeEnabledFeatures
     113  defaultValue:
     114    WebKitLegacy:
     115      default: false
     116    WebKit:
     117      default: false
     118
     119CSSOMViewScrollingAPIEnabled:
     120  type: bool
     121  humanReadableName: "CSSOM View Scrolling API"
     122  humanReadableDescription: "Implement standard behavior for scrollLeft, scrollTop, scrollWidth, scrollHeight, scrollTo, scrollBy and scrollingElement."
     123  defaultValue:
     124    WebKitLegacy:
     125      default: true
     126    WebKit:
     127      "PLATFORM(IOS_FAMILY)": WebKit::defaultCSSOMViewScrollingAPIEnabled()
     128      default: true
     129
     130# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     131CaptureAudioInGPUProcessEnabled:
     132  type: bool
     133  humanReadableName: "GPU Process: Audio Capture"
     134  humanReadableDescription: "Enable audio capture in GPU Process"
     135  webcoreBinding: none
     136  condition: ENABLE(MEDIA_STREAM)
     137  defaultValue:
     138    WebKitLegacy:
     139      default: false
     140    WebKit:
     141      default: WebKit::defaultCaptureAudioInGPUProcessEnabled()
     142
     143
     144# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     145CaptureAudioInUIProcessEnabled:
     146  type: bool
     147  humanReadableName: "Capture audio in UI Process"
     148  humanReadableDescription: "Enable audio capture in UI Process"
     149  webcoreBinding: none
     150  condition: ENABLE(MEDIA_STREAM)
     151  defaultValue:
     152    WebKitLegacy:
     153      default: false
     154    WebKit:
     155      default: WebKit::defaultCaptureAudioInUIProcessEnabled()
     156
     157# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     158CaptureVideoInGPUProcessEnabled:
     159  type: bool
     160  humanReadableName: "GPU Process: Video Capture"
     161  humanReadableDescription: "Enable video capture in GPU Process"
     162  webcoreBinding: none
     163  condition: ENABLE(MEDIA_STREAM)
     164  defaultValue:
     165    WebKitLegacy:
     166      default: false
     167    WebKit:
     168      default: WebKit::defaultCaptureVideoInGPUProcessEnabled()
     169
     170# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     171CaptureVideoInUIProcessEnabled:
     172  type: bool
     173  humanReadableName: "Capture video in UI Process"
     174  humanReadableDescription: "Enable video capture in UI Process"
     175  webcoreBinding: none
     176  condition: ENABLE(MEDIA_STREAM)
     177  defaultValue:
     178    WebKitLegacy:
     179      default: false
     180    WebKit:
     181      default: WebKit::defaultCaptureVideoInUIProcessEnabled()
     182
     183DOMPasteAccessRequestsEnabled:
     184  type: bool
     185  humanReadableName: "DOM Paste Access Requests"
     186  humanReadableDescription: "Enable DOM Paste Access Requests"
     187  defaultValue:
     188    WebKitLegacy:
     189      default: false
     190    WebKit:
     191      "PLATFORM(IOS) || PLATFORM(MAC)": true
     192      default: false
     193
     194# FIXME: This is on by default in WebKit2 (for everything but WatchOS). Perhaps we should consider turning it on for WebKitLegacy as well.
     195DataListElementEnabled:
     196  type: bool
     197  humanReadableName: "DataList Element"
     198  humanReadableDescription: "Enable datalist elements"
     199  webcoreBinding: RuntimeEnabledFeatures
     200  condition: ENABLE(DATALIST_ELEMENT)
     201  defaultValue:
     202    WebKitLegacy:
     203      default: false
     204    WebKit:
     205      "PLATFORM(WATCHOS)": false
     206      default: true
     207
     208# FIXME: This is on by default in WebKit2 (for macOS at least). Perhaps we should consider turning it on for WebKitLegacy as well.
     209DateTimeInputsEditableComponentsEnabled:
     210  type: bool
     211  humanReadableName: "Date/Time inputs have editable components"
     212  humanReadableDescription: "Enable multiple editable components in date/time inputs"
     213  condition: ENABLE(DATE_AND_TIME_INPUT_TYPES)
     214  defaultValue:
     215    WebKitLegacy:
     216      default: false
     217    WebKit:
     218      "PLATFORM(MAC)": true
     219      default: false
     220
     221EnterKeyHintEnabled:
     222  type: bool
     223  defaultValue: DEFAULT_ENTER_KEY_HINT_ENABLED
     224  humanReadableName: "Enter Key Hint"
     225  humanReadableDescription: "Enable the enterKeyHint HTML attribute"
     226  defaultValue:
     227    WebKitLegacy:
     228      default: false
     229    WebKit:
     230      "PLATFORM(COCOA)": true
     231      default: false
     232
     233# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     234ExperimentalPlugInSandboxProfilesEnabled:
     235  type: bool
     236  humanReadableName: "Sandbox Plug-Ins"
     237  humanReadableDescription: "Enable Plug-In sandboxing"
     238  webcoreBinding: RuntimeEnabledFeatures
     239  defaultValue:
     240    WebKitLegacy:
     241      default: false
     242    WebKit:
     243      default: false
     244
     245# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     246FasterClicksEnabled:
     247  type: bool
     248  humanReadableName: "Fast clicks"
     249  humanReadableDescription: "Support faster clicks on zoomable pages"
     250  webcoreBinding: none
     251  condition: PLATFORM(IOS_FAMILY)
     252  defaultValue:
     253    WebKitLegacy:
     254      default: false
     255    WebKit:
     256      default: true
     257
     258# FIXME: This is works differently in WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     259FrameFlatteningEnabled:
     260  type: bool
     261  humanReadableName: "Frame flattening"
     262  humanReadableDescription: "Enable frame flattening, which adjusts the height of an iframe to fit its contents"
     263  webcoreBinding: custom
     264  defaultValue:
     265    WebKitLegacy:
     266      default: false
     267    WebKit:
     268      "PLATFORM(IOS_FAMILY)": true
     269      default: false
     270
     271FullScreenEnabled:
     272  type: bool
     273  humanReadableName: "Fullscreen API"
     274  humanReadableDescription: "Fullscreen API"
     275  condition: ENABLE(FULLSCREEN_API)
     276  hidden: EXPERIMENTAL_FULLSCREEN_API_HIDDEN
     277  defaultValue:
     278    WebKitLegacy:
     279      default: false
     280    WebKit:
     281      default: false
     282
     283ICECandidateFilteringEnabled:
     284  type: bool
     285  humanReadableName: "Enable ICE Candidate Filtering"
     286  humanReadableDescription: "Enable ICE Candidate Filtering"
     287  defaultValue:
     288    WebKitLegacy:
     289      default: true
     290    WebKit:
     291      default: true
     292
     293InputTypeColorEnabled:
     294  type: bool
     295  humanReadableName: "Color Inputs"
     296  humanReadableDescription: "Enable input elements of type color"
     297  condition: ENABLE(INPUT_TYPE_COLOR)
     298  defaultValue:
     299    WebKitLegacy:
     300      default: false
     301    WebKit:
     302      "PLATFORM(WATCHOS)": false
     303      default: true
     304
     305InputTypeDateEnabled:
     306  type: bool
     307  humanReadableName: "Date Input"
     308  humanReadableDescription: "Enable input elements of type date"
     309  condition: ENABLE(INPUT_TYPE_DATE)
     310  defaultValue:
     311    WebKitLegacy:
     312      default: false
     313    WebKit:
     314      "!PLATFORM(MAC) && !PLATFORM(MACCATALYST) && !PLATFORM(APPLETV)": true
     315      default: false
     316 
     317InputTypeDateTimeLocalEnabled:
     318  type: bool
     319  humanReadableName: "datetime-local Inputs"
     320  humanReadableDescription: "Enable input elements of type datetime-local"
     321  condition: ENABLE(INPUT_TYPE_DATETIMELOCAL)
     322  defaultValue:
     323    WebKitLegacy:
     324      default: false
     325    WebKit:
     326      "!PLATFORM(MAC) && !PLATFORM(MACCATALYST) && !PLATFORM(APPLETV)": true
     327      default: false
     328
     329InputTypeMonthEnabled:
     330  type: bool
     331  humanReadableName: "Month Input"
     332  humanReadableDescription: "Enable input elements of type month"
     333  condition: ENABLE(INPUT_TYPE_MONTH)
     334  defaultValue:
     335    WebKitLegacy:
     336      default: false
     337    WebKit:
     338      "!PLATFORM(MAC) && !PLATFORM(MACCATALYST) && !PLATFORM(APPLETV)": true
     339      default: false
     340
     341InputTypeTimeEnabled:
     342  type: bool
     343  humanReadableName: "Time Input"
     344  humanReadableDescription: "Enable input elements of type time"
     345  condition: ENABLE(INPUT_TYPE_TIME)
     346  defaultValue:
     347    WebKitLegacy:
     348      default: false
     349    WebKit:
     350      "!PLATFORM(MAC) && !PLATFORM(MACCATALYST) && !PLATFORM(APPLETV)": true
     351      default: false
     352
     353InputTypeWeekEnabled:
     354  type: bool
     355  humanReadableName: "Week Input"
     356  humanReadableDescription: "Enable input elements of type week"
     357  condition: ENABLE(INPUT_TYPE_WEEK)
     358  defaultValue:
     359    WebKitLegacy:
     360      default: false
     361    WebKit:
     362      "!PLATFORM(MAC) && !PLATFORM(MACCATALYST) && !PLATFORM(APPLETV)": true
     363      default: false
     364
     365# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     366IsFirstPartyWebsiteDataRemovalLiveOnTestingEnabled:
     367  type: bool
     368  humanReadableName: "[ITP Live-On] 1 Hour Timeout For Non-Cookie Data Removal"
     369  humanReadableDescription: "Remove all non-cookie website data after just one hour of no user interaction when Intelligent Tracking Prevention is enabled"
     370  defaultValue:
     371    WebKitLegacy:
     372      default: false
     373    WebKit:
     374      default: false
     375
     376# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     377IsFirstPartyWebsiteDataRemovalReproTestingEnabled:
     378  type: bool
     379  humanReadableName: "[ITP Repro] 30 Second Timeout For Non-Cookie Data Removal"
     380  humanReadableDescription: "Remove all non-cookie website data after just 30 seconds of no user interaction when Intelligent Tracking Prevention is enabled"
     381  defaultValue:
     382    WebKitLegacy:
     383      default: false
     384    WebKit:
     385      default: false
     386
     387# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     388IsITPDatabaseEnabled:
     389  type: bool
     390  humanReadableName: "ITP Database Backend"
     391  humanReadableDescription: "Enable Intelligent Tracking Prevention Database Backend"
     392  webcoreBinding: RuntimeEnabledFeatures
     393  defaultValue:
     394    WebKitLegacy:
     395      default: false
     396    WebKit:
     397      default: true
     398
     399KeygenElementEnabled:
     400  type: bool
     401  webcoreBinding: RuntimeEnabledFeatures
     402  humanReadableName: "HTMLKeygenElement"
     403  humanReadableDescription: "Enables the deprecated and disabled-by-default HTML keygen element."
     404  defaultValue:
     405    WebKitLegacy:
     406      default: false
     407    WebKit:
     408      default: false
     409
     410LayoutFormattingContextEnabled:
     411  type: bool
     412  humanReadableName: "Full next-generation layout (LFC)"
     413  humanReadableDescription: "Enable full next-generation layout (LFC)"
     414  webcoreBinding: RuntimeEnabledFeatures
     415  condition: ENABLE(LAYOUT_FORMATTING_CONTEXT)
     416  defaultValue:
     417    WebKitLegacy:
     418      default: false
     419    WebKit:
     420      default: false
     421
     422LayoutFormattingContextIntegrationEnabled:
     423  type: bool
     424  humanReadableName: "Next-generation line layout integration (LFC)"
     425  humanReadableDescription: "Enable next-generation line layout integration (LFC)"
     426  webcoreBinding: RuntimeEnabledFeatures
     427  condition: ENABLE(LAYOUT_FORMATTING_CONTEXT)
     428  defaultValue:
     429    WebKitLegacy:
     430      default: true
     431    WebKit:
     432      default: true
     433
     434LegacyOverflowScrollingTouchEnabled:
     435  type: bool
     436  humanReadableName: "Legacy -webkit-overflow-scrolling property"
     437  humanReadableDescription: "Support the legacy -webkit-overflow-scrolling CSS property"
     438  condition: ENABLE(OVERFLOW_SCROLLING_TOUCH)
     439  defaultValue:
     440    WebKitLegacy:
     441      default: true
     442    WebKit:
     443      default: true
     444
     445LineHeightUnitsEnabled:
     446  type: bool
     447  humanReadableName: "lh / rlh units"
     448  humanReadableDescription: "Enable the lh and lhr units"
     449  webcoreBinding: RuntimeEnabledFeatures
     450  defaultValue:
     451    WebKitLegacy:
     452      default: false
     453    WebKit:
     454      default: false
     455
     456LiveRangeSelectionEnabled:
     457  type: bool
     458  defaultValue: false
     459  humanReadableName: "Live Ranges in Selection"
     460  humanReadableDescription: "Live range behavior for ranges in the Selection object"
     461  defaultValue:
     462    WebKitLegacy:
     463      default: false
     464    WebKit:
     465      default: false
     466
     467MediaCaptureRequiresSecureConnection:
     468  type: bool
     469  humanReadableName: "Limit Media Capture to Secure Sites"
     470  humanReadableDescription: "Limit Media Capture to Secure Sites"
     471  condition: ENABLE(MEDIA_STREAM)
     472  defaultValue:
     473    WebKitLegacy:
     474      default: true
     475    WebKit:
     476      default: true
     477
     478MockCaptureDevicesEnabled:
     479  type: bool
     480  defaultValue: DEFAULT_MOCK_CAPTURE_DEVICES_ENABLED
     481  condition: ENABLE(MEDIA_STREAM)
     482  humanReadableName: "Enable Mock Capture Devices"
     483  humanReadableDescription: "Enable Mock Capture Devices"
     484  defaultValue:
     485    WebKitLegacy:
     486      default: false
     487    WebKit:
     488      "PLATFORM(IOS_FAMILY_SIMULATOR)": true
     489      default: false
     490
     491MouseEventsSimulationEnabled:
     492  type: bool
     493  humanReadableName: "Mouse events simulation"
     494  humanReadableDescription: "Enable mouse events dispatch along with touch events on iOS"
     495  webcoreBinding: RuntimeEnabledFeatures
     496  condition: ENABLE(TOUCH_EVENTS)
     497  defaultValue:
     498    WebKitLegacy:
     499      default: false
     500    WebKit:
     501      default: false
     502
     503OffscreenCanvasEnabled:
     504  type: bool
     505  humanReadableName: "OffscreenCanvas"
     506  humanReadableDescription: "Support for the OffscreenCanvas APIs"
     507  webcoreBinding: RuntimeEnabledFeatures
     508  condition: ENABLE(OFFSCREEN_CANVAS)
     509  defaultValue:
     510    WebKitLegacy:
     511      default: false
     512    WebKit:
     513      "ENABLE(EXPERIMENTAL_FEATURES) && (PLATFORM(GTK) || PLATFORM(WPE))": true
     514      default: false
     515
     516# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     517PreferFasterClickOverDoubleTap:
     518  type: bool
     519  humanReadableName: "Fast clicks beat DTTZ"
     520  humanReadableDescription: "Prefer a faster click over a double tap"
     521  webcoreBinding: none
     522  condition: PLATFORM(IOS_FAMILY)
     523  defaultValue:
     524    WebKitLegacy:
     525      default: false
     526    WebKit:
     527      "PLATFORM(IOS_FAMILY) && !PLATFORM(WATCHOS)": true
     528      default: false
     529
     530PrefixedWebAudioEnabled:
     531  type: bool
     532  humanReadableName: "Prefixed WebAudio API"
     533  humanReadableDescription: "Prefixed WebAudio API"
     534  condition: ENABLE(WEB_AUDIO)
     535  defaultValue:
     536    WebKitLegacy:
     537      default: false
     538    WebKit:
     539      default: false
     540
     541# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     542RestrictedHTTPResponseAccess:
     543  type: bool
     544  humanReadableName: "Filter HTTP Response for Web Processes"
     545  humanReadableDescription: "Enable HTTP Response filtering for Web Processes"
     546  webcoreBinding: RuntimeEnabledFeatures
     547  defaultValue:
     548    WebKitLegacy:
     549      default: true
     550    WebKit:
     551      default: false
     552
     553SecureContextChecksEnabled:
     554  type: bool
     555  humanReadableName: "Secure Context Checks"
     556  humanReadableDescription: "Allow access to HTTPS-only Web APIs over HTTP"
     557  webcoreBinding: RuntimeEnabledFeatures
     558  defaultValue:
     559    WebKitLegacy:
     560      default: true
     561    WebKit:
     562      default: true
     563
     564SelectionAcrossShadowBoundariesEnabled:
     565  type: bool
     566  humanReadableName: "Selection across shadow DOM"
     567  humanReadableDescription: "Allow user-initiated selection across shadow DOM boundaries"
     568  defaultValue:
     569    WebKitLegacy:
     570      default: true
     571    WebKit:
     572      default: true
     573
     574# FIXME: This is not implemented for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     575ServiceWorkersEnabled:
     576  type: bool
     577  humanReadableName: "Service Workers"
     578  humanReadableDescription: "Enable Service Workers"
     579  webcoreBinding: RuntimeEnabledFeatures
     580  webcoreName: serviceWorkerEnabled
     581  condition: ENABLE(SERVICE_WORKER)
     582  defaultValue:
     583    WebKitLegacy:
     584      default: false
     585    WebKit:
     586      "ENABLE(EXPERIMENTAL_FEATURES) || PLATFORM(COCOA) || PLATFORM(GTK) || PLATFORM(WPE)": true
     587      default: false
     588
     589SimpleLineLayoutEnabled:
     590  type: bool
     591  humanReadableName: "Simple line layout"
     592  humanReadableDescription: "Enable simple line layout path (SLL)"
     593  defaultValue:
     594    WebKitLegacy:
     595      default: true
     596    WebKit:
     597      default: true
     598
     599# FIXME: Is this implemented for WebKitLegacy? If not, this should be excluded from WebKitLegacy entirely.
     600SpeakerSelectionRequiresUserGesture:
     601  type: bool
     602  humanReadableName: "Require a user gesture for speaker selection"
     603  humanReadableDescription: "Require a user gesture for speaker selection"
     604  condition: ENABLE(MEDIA_STREAM)
     605  defaultValue:
     606    WebKitLegacy:
     607      default: true
     608    WebKit:
     609      default: true
     610
     611# FIXME: Is this implemented for WebKitLegacy? If not, this should be excluded from WebKitLegacy entirely.
     612TextAutosizingUsesIdempotentMode:
     613  type: bool
     614  humanReadableName: "Idempotent Text Autosizing"
     615  humanReadableDescription: "Use idempotent text autosizing mode"
     616  condition: ENABLE(TEXT_AUTOSIZING)
     617  defaultValue:
     618    WebKitLegacy:
     619      default: false
     620    WebKit:
     621      "PLATFORM(IOS_FAMILY)": defaultTextAutosizingUsesIdempotentMode()
     622      default: false
     623
     624# FIXME: Is this implemented for WebKitLegacy? If not, this should be excluded from WebKitLegacy entirely.
     625UndoManagerAPIEnabled:
     626  type: bool
     627  defaultValue: false
     628  humanReadableName: "UndoManager DOM API"
     629  humanReadableDescription: "Enable the UndoManager DOM API"
     630  defaultValue:
     631    WebKitLegacy:
     632      default: false
     633    WebKit:
     634      default: false
     635
     636# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     637UseGPUProcessForCanvasRenderingEnabled:
     638  type: bool
     639  humanReadableName: "GPU Process: Canvas Rendering"
     640  humanReadableDescription: "Enable canvas rendering in GPU Process"
     641  webcoreBinding: none
     642  condition: ENABLE(GPU_PROCESS)
     643  defaultValue:
     644    WebKitLegacy:
     645      default: false
     646    WebKit:
     647      default: defaultUseGPUProcessForCanvasRenderingEnabled()
     648
     649# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     650UseGPUProcessForDOMRenderingEnabled:
     651  type: bool
     652  humanReadableName: "GPU Process: DOM Rendering"
     653  humanReadableDescription: "Enable DOM rendering in GPU Process"
     654  webcoreBinding: none
     655  condition: ENABLE(GPU_PROCESS)
     656  defaultValue:
     657    WebKitLegacy:
     658      default: false
     659    WebKit:
     660      default: defaultUseGPUProcessForDOMRenderingEnabled()
     661
     662# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     663UseGPUProcessForMediaEnabled:
     664  type: bool
     665  humanReadableName: "GPU Process: Media"
     666  humanReadableDescription: "Do all media loading and playback in the GPU Process"
     667  condition: ENABLE(GPU_PROCESS)
     668  defaultValue:
     669    WebKitLegacy:
     670      default: false
     671    WebKit:
     672      default: defaultUseGPUProcessForMediaEnabled()
     673
     674# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     675UseGPUProcessForWebGLEnabled:
     676  type: bool
     677  humanReadableName: "GPU Process: WebGL"
     678  humanReadableDescription: "Enable WebGL in GPU Process"
     679  webcoreBinding: none
     680  condition: ENABLE(GPU_PROCESS)
     681  defaultValue:
     682    WebKitLegacy:
     683      default: false
     684    WebKit:
     685      default: defaultUseGPUProcessForWebGLEnabled()
     686
     687WebAPIStatisticsEnabled:
     688  type: bool
     689  humanReadableName: "Web API Statistics"
     690  humanReadableDescription: "Enable Web API Statistics"
     691  webcoreBinding: RuntimeEnabledFeatures
     692  defaultValue:
     693    WebKitLegacy:
     694      default: false
     695    WebKit:
     696      default: false
     697
     698# FIXME: Is this implemented for WebKitLegacy? If not, this should be excluded from WebKitLegacy entirely.
     699WebRTCDTMFEnabled:
     700  type: bool
     701  humanReadableName: "WebRTC DTMF"
     702  humanReadableDescription: "Enable WebRTC DTMF"
     703  webcoreBinding: RuntimeEnabledFeatures
     704  condition: ENABLE(WEB_RTC)
     705  defaultValue:
     706    WebKitLegacy:
     707      default: true
     708    WebKit:
     709      default: true
     710
     711# FIXME: Is this implemented for WebKitLegacy? If not, this should be excluded from WebKitLegacy entirely.
     712WebRTCH264HardwareEncoderEnabled:
     713  type: bool
     714  humanReadableName: "WebRTC H264 Hardware encoder"
     715  humanReadableDescription: "Enable H264 Hardware encoder"
     716  webcoreBinding: none
     717  condition: ENABLE(WEB_RTC)
     718  defaultValue:
     719    WebKitLegacy:
     720      default: true
     721    WebKit:
     722      default: true
     723
     724# FIXME: Is this implemented for WebKitLegacy? If not, this should be excluded from WebKitLegacy entirely.
     725WebRTCH264SimulcastEnabled:
     726  type: bool
     727  humanReadableName: "WebRTC H264 Simulcast"
     728  humanReadableDescription: "Enable WebRTC H264 Simulcast"
     729  webcoreBinding: RuntimeEnabledFeatures
     730  condition: ENABLE(WEB_RTC)
     731  defaultValue:
     732    WebKitLegacy:
     733      default: true
     734    WebKit:
     735      default: true
     736
     737# FIXME: Is this implemented for WebKitLegacy? If not, this should be excluded from WebKitLegacy entirely.
     738WebRTCMDNSICECandidatesEnabled:
     739  type: bool
     740  humanReadableName: "WebRTC mDNS ICE candidates"
     741  humanReadableDescription: "Enable WebRTC mDNS ICE candidates"
     742  webcoreBinding: RuntimeEnabledFeatures
     743  condition: ENABLE(WEB_RTC)
     744  defaultValue:
     745    WebKitLegacy:
     746      default: false
     747    WebKit:
     748      default: true
     749
     750# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
     751ZoomOnDoubleTapWhenRoot:
     752  type: bool
     753  condition: PLATFORM(IOS_FAMILY)
     754  humanReadableName: "DTTZ also when root"
     755  humanReadableDescription: "Double taps zoom, even if we dispatched a click on the root nodes"
     756  webcoreBinding: none
     757  defaultValue:
     758    WebKitLegacy:
     759      default: false
     760    WebKit:
     761      default: false
  • trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h

    r267592 r267641  
    599599@end
    600600
    601 @interface WebPreferences (WebPrivateInternalDebugFeatures)
    602 + (NSArray<WebFeature *> *)_internalDebugFeatures;
     601@interface WebPreferences (WebPrivateInternalFeatures)
     602+ (NSArray<WebFeature *> *)_internalFeatures;
    603603@end
    604604
  • trunk/Source/WebKitLegacy/mac/WebView/WebView.mm

    r267575 r267641  
    31073107    settings.setBackForwardCacheExpirationInterval(Seconds { [preferences _backForwardCacheExpirationInterval] });
    31083108
    3109     settings.setDeveloperExtrasEnabled([preferences developerExtrasEnabled]);
    31103109    settings.setJavaScriptRuntimeFlags(JSC::RuntimeFlags([preferences javaScriptRuntimeFlags]));
    31113110    settings.setAuthorAndUserStylesEnabled([preferences authorAndUserStylesEnabled]);
     
    31213120
    31223121    settings.setAcceleratedCompositingEnabled([preferences acceleratedCompositingEnabled]);
    3123     settings.setAcceleratedDrawingEnabled([preferences acceleratedDrawingEnabled]);
    3124     settings.setDisplayListDrawingEnabled([preferences displayListDrawingEnabled]);
    31253122    settings.setCanvasUsesAcceleratedDrawing([preferences canvasUsesAcceleratedDrawing]);
    3126     settings.setShowDebugBorders([preferences showDebugBorders]);
    3127     settings.setSimpleLineLayoutEnabled([preferences simpleLineLayoutEnabled]);
    3128     settings.setSimpleLineLayoutDebugBordersEnabled([preferences simpleLineLayoutDebugBordersEnabled]);
    3129     settings.setShowRepaintCounter([preferences showRepaintCounter]);
    31303123    settings.setWebGLEnabled([preferences webGLEnabled]);
    31313124    settings.setSubpixelCSSOMElementMetricsEnabled([preferences subpixelCSSOMElementMetricsEnabled]);
    3132     settings.setSubpixelAntialiasedLayerTextEnabled([preferences subpixelAntialiasedLayerTextEnabled]);
    31333125
    31343126    settings.setForceWebGLUsesLowPower([preferences forceLowPowerGPUForWebGL]);
     
    31373129    settings.setWindowFocusRestricted(shouldRestrictWindowFocus());
    31383130    settings.setFrameFlattening((const WebCore::FrameFlattening)[preferences frameFlattening]);
    3139     settings.setAsyncFrameScrollingEnabled([preferences asyncFrameScrollingEnabled]);
    31403131    settings.setSpatialNavigationEnabled([preferences isSpatialNavigationEnabled]);
    31413132    settings.setPaginateDuringLayoutEnabled([preferences paginateDuringLayoutEnabled]);
     
    31793170    settings.setJavaScriptCanOpenWindowsAutomatically([preferences javaScriptCanOpenWindowsAutomatically] || shouldAllowWindowOpenWithoutUserGesture());
    31803171
    3181     settings.setCSSOMViewScrollingAPIEnabled([preferences CSSOMViewScrollingAPIEnabled]);
    31823172    settings.setMediaContentTypesRequiringHardwareSupport([preferences mediaContentTypesRequiringHardwareSupport]);
    31833173
     
    32823272
    32833273#if ENABLE(MEDIA_STREAM)
    3284     settings.setMockCaptureDevicesEnabled(false);
    3285     settings.setMediaCaptureRequiresSecureConnection(true);
    32863274    settings.setMediaStreamEnabled(false);
    32873275    settings.setMediaDevicesEnabled(false);
     
    32943282#if ENABLE(WEB_AUDIO)
    32953283    settings.setWebAudioEnabled([preferences webAudioEnabled]);
    3296     settings.setPrefixedWebAudioEnabled(false);
    32973284#endif
    32983285
     
    33003287    settings.setFullScreenEnabled([preferences fullScreenEnabled]);
    33013288#endif
    3302 
    3303     RuntimeEnabledFeatures::sharedFeatures().setCSSLogicalEnabled([preferences cssLogicalEnabled]);
    3304     RuntimeEnabledFeatures::sharedFeatures().setLineHeightUnitsEnabled([preferences lineHeightUnitsEnabled]);
    33053289
    33063290    settings.setHiddenPageDOMTimerThrottlingEnabled([preferences hiddenPageDOMTimerThrottlingEnabled]);
     
    33363320    RuntimeEnabledFeatures::sharedFeatures().setDirectoryUploadEnabled([preferences directoryUploadEnabled]);
    33373321    RuntimeEnabledFeatures::sharedFeatures().setMenuItemElementEnabled([preferences menuItemElementEnabled]);
    3338     RuntimeEnabledFeatures::sharedFeatures().setAriaReflectionEnabled([preferences ariaReflectionEnabled]);
    3339     RuntimeEnabledFeatures::sharedFeatures().setKeygenElementEnabled([preferences keygenElementEnabled]);
    3340     RuntimeEnabledFeatures::sharedFeatures().setLayoutFormattingContextIntegrationEnabled([preferences layoutFormattingContextIntegrationEnabled]);
    3341     settings.setIsInAppBrowserPrivacyEnabled([preferences isInAppBrowserPrivacyEnabled]);
    33423322    RuntimeEnabledFeatures::sharedFeatures().setWebSQLDisabled(![preferences webSQLEnabled]);
    33433323   
     
    33863366    settings.setAnimatedImageAsyncDecodingEnabled([preferences animatedImageAsyncDecodingEnabled]);
    33873367    settings.setMediaCapabilitiesEnabled([preferences mediaCapabilitiesEnabled]);
    3388     settings.setSelectionAcrossShadowBoundariesEnabled(preferences.selectionAcrossShadowBoundariesEnabled);
    33893368}
    33903369
Note: See TracChangeset for help on using the changeset viewer.