Changeset 267641 in webkit
- Timestamp:
- Sep 26, 2020, 5:21:02 PM (6 years ago)
- Location:
- trunk/Source/WebKitLegacy
- Files:
-
- 13 edited
- 1 copied
-
ChangeLog (modified) (1 diff)
-
WebKitLegacy.xcodeproj/project.pbxproj (modified) (7 diffs)
-
mac/ChangeLog (modified) (1 diff)
-
mac/Scripts/GeneratePreferences.rb (modified) (4 diffs)
-
mac/Scripts/PreferencesTemplates/WebPreferencesDefinitions.h.erb (modified) (2 diffs)
-
mac/Scripts/PreferencesTemplates/WebPreferencesInternalFeatures.mm.erb (copied) (copied from trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesDefaultValues.h ) (2 diffs)
-
mac/WebView/WebPreferenceKeysPrivate.h (modified) (2 diffs)
-
mac/WebView/WebPreferences.mm (modified) (8 diffs)
-
mac/WebView/WebPreferencesDebug.yaml (modified) (1 diff)
-
mac/WebView/WebPreferencesDefaultValues.h (modified) (1 diff)
-
mac/WebView/WebPreferencesExperimental.yaml (modified) (12 diffs)
-
mac/WebView/WebPreferencesInternal.yaml (modified) (1 diff)
-
mac/WebView/WebPreferencesPrivate.h (modified) (1 diff)
-
mac/WebView/WebView.mm (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKitLegacy/ChangeLog
r267623 r267641 1 2020-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 1 11 2020-09-26 Sam Weinig <weinig@apple.com> 2 12 -
trunk/Source/WebKitLegacy/WebKitLegacy.xcodeproj/project.pbxproj
r267623 r267641 230 230 7C023A2F251C05FC00BA7BB6 /* WebPreferencesDefinitions.h in Headers */ = {isa = PBXBuildFile; fileRef = 7C023A2E251C05D500BA7BB6 /* WebPreferencesDefinitions.h */; }; 231 231 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 */; }; 232 233 7E6FEF0808985A7200C44C3F /* WebScriptDebugDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E6FEF0508985A7200C44C3F /* WebScriptDebugDelegate.h */; settings = {ATTRIBUTES = (Private, ); }; }; 233 234 931633EB0AEDFF930062B92D /* WebFrameLoaderClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 931633EA0AEDFF930062B92D /* WebFrameLoaderClient.h */; }; … … 1006 1007 7C671118251C2459004F4536 /* postprocess-header-rule */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; name = "postprocess-header-rule"; path = "scripts/postprocess-header-rule"; sourceTree = "<group>"; }; 1007 1008 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>"; }; 1008 1011 7E6FEF0508985A7200C44C3F /* WebScriptDebugDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = WebScriptDebugDelegate.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 1009 1012 7E6FEF0608985A7200C44C3F /* WebScriptDebugDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebScriptDebugDelegate.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; … … 1946 1949 7C023A2C251C05AC00BA7BB6 /* WebPreferencesDefinitions.h.erb */, 1947 1950 7C023216251B96E400BA7BB6 /* WebPreferencesExperimentalFeatures.mm.erb */, 1951 7C671123251FB237004F4536 /* WebPreferencesInternalFeatures.mm.erb */, 1948 1952 7C023A25251BADD100BA7BB6 /* WebViewPreferencesChangedGenerated.mm.erb */, 1949 1953 ); … … 1957 1961 7C023A2E251C05D500BA7BB6 /* WebPreferencesDefinitions.h */, 1958 1962 7C023A05251BA18C00BA7BB6 /* WebPreferencesExperimentalFeatures.mm */, 1963 7C671125251FE406004F4536 /* WebPreferencesInternalFeatures.mm */, 1959 1964 7C023A26251BAF2200BA7BB6 /* WebViewPreferencesChangedGenerated.mm */, 1960 1965 ); … … 3457 3462 "$(SRCROOT)/mac/Scripts/PreferencesTemplates/WebPreferencesDefinitions.h.erb", 3458 3463 "$(SRCROOT)/mac/Scripts/PreferencesTemplates/WebPreferencesExperimentalFeatures.mm.erb", 3464 "$(SRCROOT)/mac/Scripts/PreferencesTemplates/WebPreferencesInternalFeatures.mm.erb", 3459 3465 "$(SRCROOT)/mac/Scripts/PreferencesTemplates/WebViewPreferencesChangedGenerated.mm.erb", 3460 3466 ); … … 3465 3471 "${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy/WebPreferencesDefinitions.h", 3466 3472 "${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy/WebPreferencesExperimentalFeatures.mm", 3473 "${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy/WebPreferencesInternalFeatures.mm", 3467 3474 "${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitLegacy/WebViewPreferencesChangedGenerated.mm", 3468 3475 ); 3469 3476 runOnlyForDeploymentPostprocessing = 0; 3470 3477 shellPath = /bin/sh; 3471 shellScript = "set -e\n\n${SRCROOT}/mac/Scripts/GeneratePreferences.rb --frontend WebKitLegacy --template WebPreferencesDefinitions.h --template WebPreferencesExperimentalFeatures.mm --template Web ViewPreferencesChangedGenerated.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"; 3472 3479 }; 3473 3480 A13EE61D185AE82700556064 /* Postprocess Headers */ = { … … 3652 3659 7C023A24251BA43E00BA7BB6 /* WebPreferencesDefaultValues.mm in Sources */, 3653 3660 7C023A06251BA18C00BA7BB6 /* WebPreferencesExperimentalFeatures.mm in Sources */, 3661 7C671126251FE40F004F4536 /* WebPreferencesInternalFeatures.mm in Sources */, 3654 3662 1A6A208D1886154600E50F5F /* WebProgressTrackerClient.mm in Sources */, 3655 3663 9398111A0824BF01008DF038 /* WebResource.mm in Sources */, -
trunk/Source/WebKitLegacy/mac/ChangeLog
r267623 r267641 1 2020-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 1 29 2020-09-26 Sam Weinig <weinig@apple.com> 2 30 -
trunk/Source/WebKitLegacy/mac/Scripts/GeneratePreferences.rb
r267623 r267641 65 65 FileUtils.mkdir_p(options[:outputDirectory]) 66 66 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 67 def 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 85 end 86 87 parsedBasePreferences = load(options[:basePreferences]) 88 parsedDebugPreferences = load(options[:debugPreferences]) 89 parsedExperimentalPreferences = load(options[:experimentalPreferences]) 90 parsedInternalPreferences = load(options[:internalPreferences]) 94 91 95 92 … … 169 166 @preferencesDebug = [] 170 167 @experimentalFeatures = [] 171 @internal DebugFeatures = []168 @internalFeatures = [] 172 169 173 170 if parsedBasePreferences … … 196 193 preference = Preference.new(name, options, @frontend) 197 194 @preferences << preference 198 @internal DebugFeatures << preference195 @internalFeatures << preference 199 196 end 200 197 end … … 204 201 @preferencesDebug.sort! { |x, y| x.name <=> y.name } 205 202 @experimentalFeatures.sort! { |x, y| x.name <=> y.name }.sort! { |x, y| x.humanReadableName <=> y.humanReadableName } 206 @internal DebugFeatures.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 } 207 204 208 205 @preferencesBoundToSetting = @preferences.select { |p| !p.webcoreBinding } -
trunk/Source/WebKitLegacy/mac/Scripts/PreferencesTemplates/WebPreferencesDefinitions.h.erb
r267623 r267641 32 32 // Default initialization of WebPreferences' internal dictionary. 33 33 34 <%- for @pref in @ experimentalFeatures do -%>34 <%- for @pref in @preferences do -%> 35 35 <%- if @pref.condition -%> 36 36 #if <%= @pref.condition %> … … 59 59 60 60 #define INITIALIZE_DEFAULT_PREFERENCES_DICTIONARY_FROM_GENERATED_PREFERENCES \ 61 <%- for @pref in @ experimentalFeatures do -%>61 <%- for @pref in @preferences do -%> 62 62 @(DEFAULT_VALUE_FOR_<%= @pref.name %>), @"WebKit<%= @pref.name %>", \ 63 63 <%- end -%> -
trunk/Source/WebKitLegacy/mac/Scripts/PreferencesTemplates/WebPreferencesInternalFeatures.mm.erb
r267640 r267641 1 1 /* 2 * <%= @warning %> 3 * 2 4 * Copyright (C) 2020 Apple Inc. All rights reserved. 3 5 * … … 24 26 */ 25 27 26 # pragma once28 #import "WebPreferencesPrivate.h" 27 29 28 #include <wtf/Forward.h> 30 #import "WebFeatureInternal.h" 31 #import "WebPreferencesDefinitions.h" 29 32 30 #if PLATFORM(MAC) 31 #define DEFAULT_SUBPIXEL_ANTIALIASED_LAYER_TEXT_ENABLED true 32 #else 33 #define DEFAULT_SUBPIXEL_ANTIALIASED_LAYER_TEXT_ENABLED false 33 using 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 -%> 34 46 #endif 47 <%- end -%> 48 <%- end -%> 49 ]; 35 50 36 namespace WebKit { 51 return features; 52 } 37 53 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 89 89 #define WebKitFTPDirectoryTemplatePath @"WebKitFTPDirectoryTemplatePath" 90 90 #define WebKitForceFTPDirectoryListings @"WebKitForceFTPDirectoryListings" 91 #define WebKitDeveloperExtrasEnabledPreferenceKey @"WebKitDeveloperExtrasEnabled PreferenceKey"91 #define WebKitDeveloperExtrasEnabledPreferenceKey @"WebKitDeveloperExtrasEnabled" 92 92 #define WebKitJavaScriptRuntimeFlagsPreferenceKey @"WebKitJavaScriptRuntimeFlagsPreferenceKey" 93 93 #define WebKitAuthorAndUserStylesEnabledPreferenceKey @"WebKitAuthorAndUserStylesEnabledPreferenceKey" … … 170 170 #define WebKitDataTransferItemsEnabledPreferenceKey @"WebKitDataTransferItemsEnabled" 171 171 #define WebKitCustomPasteboardDataEnabledPreferenceKey @"WebKitCustomPasteboardDataEnabled" 172 #define WebKitKeygenElementEnabledPreferenceKey @"WebKitKeygenElementEnabled PreferenceKey"172 #define WebKitKeygenElementEnabledPreferenceKey @"WebKitKeygenElementEnabled" 173 173 #define WebKitCacheAPIEnabledPreferenceKey @"WebKitCacheAPIEnabled" 174 174 #define WebKitDownloadAttributeEnabledPreferenceKey @"WebKitDownloadAttributeEnabled" -
trunk/Source/WebKitLegacy/mac/WebView/WebPreferences.mm
r267592 r267641 468 468 @(cacheModelForMainBundle()), WebKitCacheModelPreferenceKey, 469 469 @YES, WebKitPageCacheSupportsPluginsPreferenceKey, 470 @NO, WebKitDeveloperExtrasEnabledPreferenceKey,471 470 @(0), WebKitJavaScriptRuntimeFlagsPreferenceKey, 472 471 @YES, WebKitAuthorAndUserStylesEnabledPreferenceKey, … … 479 478 @YES, WebKitXSSAuditorEnabledPreferenceKey, 480 479 @YES, WebKitAcceleratedCompositingEnabledPreferenceKey, 481 [NSNumber numberWithBool:DEFAULT_SUBPIXEL_ANTIALIASED_LAYER_TEXT_ENABLED], WebKitSubpixelAntialiasedLayerTextEnabledPreferenceKey,482 @NO, WebKitDisplayListDrawingEnabledPreferenceKey,483 480 #if PLATFORM(IOS_FAMILY) && !PLATFORM(IOS_FAMILY_SIMULATOR) 484 @YES, WebKitAcceleratedDrawingEnabledPreferenceKey,485 481 @YES, WebKitCanvasUsesAcceleratedDrawingPreferenceKey, 486 482 #else 487 @NO, WebKitAcceleratedDrawingEnabledPreferenceKey,488 483 @NO, WebKitCanvasUsesAcceleratedDrawingPreferenceKey, 489 484 #endif 490 @NO, WebKitShowDebugBordersPreferenceKey,491 @YES, WebKitSimpleLineLayoutEnabledPreferenceKey,492 @NO, WebKitSimpleLineLayoutDebugBordersEnabledPreferenceKey,493 @NO, WebKitShowRepaintCounterPreferenceKey,494 485 @YES, WebKitWebGLEnabledPreferenceKey, 495 486 @YES, WebKitForceWebGLUsesLowPowerPreferenceKey, … … 504 495 @(static_cast<uint32_t>(FrameFlattening::Disabled)), WebKitFrameFlatteningPreferenceKey, 505 496 #endif 506 @NO, WebKitAsyncFrameScrollingEnabledPreferenceKey,507 497 @NO, WebKitSpatialNavigationEnabledPreferenceKey, 508 498 @NO, WebKitDNSPrefetchingEnabledPreferenceKey, 509 @NO, WebKitFullScreenEnabledPreferenceKey,510 499 @NO, WebKitAsynchronousSpellCheckingEnabledPreferenceKey, 511 500 @YES, WebKitHyperlinkAuditingEnabledPreferenceKey, … … 603 592 604 593 #if ENABLE(MEDIA_STREAM) 605 @NO, WebKitMockCaptureDevicesEnabledPreferenceKey,606 594 @YES, WebKitMockCaptureDevicesPromptEnabledPreferenceKey, 607 @YES, WebKitMediaCaptureRequiresSecureConnectionPreferenceKey,608 595 #endif 609 596 @YES, WebKitDataTransferItemsEnabledPreferenceKey, 610 597 @NO, WebKitCustomPasteboardDataEnabledPreferenceKey, 611 598 @YES, WebKitModernMediaControlsEnabledPreferenceKey, 612 @YES, WebKitLayoutFormattingContextIntegrationEnabledPreferenceKey,613 599 614 600 @NO, WebKitCacheAPIEnabledPreferenceKey, … … 619 605 @NO, WebKitDirectoryUploadEnabledPreferenceKey, 620 606 621 @YES, WebKitCSSOMViewScrollingAPIEnabledPreferenceKey,622 607 @YES, WebKitNeedsStorageAccessFromFileURLsQuirkKey, 623 608 @NO, WebKitAllowCrossOriginSubresourcesToAskForCredentialsKey, … … 629 614 @YES, WebKitPeerConnectionEnabledPreferenceKey, 630 615 #endif 631 @YES, WebKitSelectionAcrossShadowBoundariesEnabledPreferenceKey,632 @NO, WebKitCSSLogicalEnabledPreferenceKey,633 @NO, WebKitLineHeightUnitsEnabledPreferenceKey,634 616 @NO, WebKitMediaUserGestureInheritsFromDocument, 635 617 @YES, WebKitLegacyEncryptedMediaAPIEnabledKey, … … 642 624 @NO, WebKitInspectorAdditionsEnabledPreferenceKey, 643 625 (NSString *)Settings::defaultMediaContentTypesRequiringHardwareSupport(), WebKitMediaContentTypesRequiringHardwareSupportPreferenceKey, 644 @YES, WebKitAriaReflectionEnabledPreferenceKey,645 626 @NO, WebKitMediaCapabilitiesEnabledPreferenceKey, 646 627 @NO, WebKitDebugInAppBrowserPrivacyEnabledPreferenceKey, … … 3236 3217 @end 3237 3218 3238 @implementation WebPreferences (WebPrivateInternalDebugFeatures)3239 3240 + (NSArray<WebFeature *> *)_internalDebugFeatures3241 {3242 return @[];3243 }3244 3245 @end3246 3247 3219 @implementation WebPreferences (WebPrivateFeatures) 3248 3220 -
trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesDebug.yaml
r267575 r267641 22 22 # THE POSSIBILITY OF SUCH DAMAGE. 23 23 24 # Debug Preferences go here. 24 AcceleratedDrawingEnabled: 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 33 DeveloperExtrasEnabled: 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. 42 DisableScreenSizeOverride: 43 type: bool 44 webcoreBinding: DeprecatedGlobalSettings 45 condition: PLATFORM(IOS_FAMILY) 46 defaultValue: 47 WebKitLegacy: 48 default: false 49 WebKit: 50 default: false 51 52 DisplayListDrawingEnabled: 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. 61 ForceAlwaysUserScalable: 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. 73 IsInAppBrowserPrivacyEnabled: 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 83 LogsPageMessagesToSystemConsoleEnabled: 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. 92 NeedsInAppBrowserPrivacyQuirks: 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 102 ResourceUsageOverlayVisible: 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. 112 ShowDebugBorders: 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. 121 ShowRepaintCounter: 122 type: bool 123 defaultValue: 124 WebKitLegacy: 125 default: false 126 WebKit: 127 default: false 128 129 SimpleLineLayoutDebugBordersEnabled: 130 type: bool 131 defaultValue: 132 WebKitLegacy: 133 default: false 134 WebKit: 135 default: false 136 137 SubpixelAntialiasedLayerTextEnabled: 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. 148 TiledScrollingIndicatorVisible: 149 type: bool 150 webcoreName: showTiledScrollingIndicator 151 defaultValue: 152 WebKitLegacy: 153 default: false 154 WebKit: 155 default: false 156 157 VisibleDebugOverlayRegions: 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 34 34 #endif 35 35 36 #if PLATFORM(IOS_FAMILY) 37 #define EXPERIMENTAL_FULLSCREEN_API_HIDDEN false 38 #else 39 #define EXPERIMENTAL_FULLSCREEN_API_HIDDEN true 40 #endif 41 36 42 namespace WebKit { 37 43 -
trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesExperimental.yaml
r267623 r267641 38 38 default: false 39 39 40 AdClickAttributionDebugModeEnabled: 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 40 51 AdClickAttributionEnabled: 41 52 type: bool … … 48 59 default: false 49 60 50 AdClickAttributionDebugModeEnabled:51 type: bool52 humanReadableName: "Ad Click Attribution Debug Mode"53 humanReadableDescription: "Enable Ad Click Attribution Debug Mode"54 webcoreBinding: RuntimeEnabledFeatures55 defaultValue:56 WebKitLegacy:57 default: false58 WebKit:59 default: false60 61 61 # FIXME: This is on by default in WebKit2. Perhaps we should consider turning it on for WebKitLegacy as well. 62 62 AspectRatioOfImgFromWidthAndHeightEnabled: … … 91 91 WebKit: 92 92 default: true 93 94 CSSCustomPropertiesAndValuesEnabled: 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. 105 CSSIndividualTransformPropertiesEnabled: 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 116 CSSOMViewSmoothScrollingEnabled: 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 126 CSSPaintingAPIEnabled: 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 139 CSSTypedOMEnabled: 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 93 151 94 152 CoreImageAcceleratedFilterRenderEnabled: … … 112 170 WebKit: 113 171 "PLATFORM(GTK) || PLATFORM(WPE)": true 114 default: false115 116 CSSCustomPropertiesAndValuesEnabled:117 type: bool118 humanReadableName: "CSS Custom Properties and Values API"119 humanReadableDescription: "Enable CSS Custom Properties and Values API"120 defaultValue:121 WebKitLegacy:122 default: false123 WebKit:124 default: false125 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: bool129 humanReadableName: "CSS Individual Transform Properties"130 humanReadableDescription: "Support for the translate, scale and rotate CSS properties"131 defaultValue:132 WebKitLegacy:133 default: false134 WebKit:135 "ENABLE(EXPERIMENTAL_FEATURES)" : true136 default: false137 138 CSSOMViewSmoothScrollingEnabled:139 type: bool140 humanReadableName: "CSSOM View Smooth Scrolling"141 humanReadableDescription: "Enable DOM API and CSS property for 'smooth' scroll behavior"142 defaultValue:143 WebKitLegacy:144 default: false145 WebKit:146 default: false147 148 CSSPaintingAPIEnabled:149 type: bool150 humanReadableName: "CSS Painting API"151 humanReadableDescription: "Enable the CSS Painting API"152 webcoreBinding: RuntimeEnabledFeatures153 condition: ENABLE(CSS_PAINTING_API)154 defaultValue:155 WebKitLegacy:156 default: false157 WebKit:158 "ENABLE(EXPERIMENTAL_FEATURES) && (PLATFORM(GTK) || PLATFORM(WPE))": true159 default: false160 161 CSSTypedOMEnabled:162 type: bool163 humanReadableName: "CSS Typed OM"164 humanReadableDescription: "Enable the CSS Typed OM"165 webcoreBinding: RuntimeEnabledFeatures166 condition: ENABLE(CSS_TYPED_OM)167 defaultValue:168 WebKitLegacy:169 default: false170 WebKit:171 "ENABLE(EXPERIMENTAL_FEATURES) && (PLATFORM(GTK) || PLATFORM(WPE))": true172 172 default: false 173 173 … … 254 254 default: true 255 255 256 HighlightAPIEnabled:257 type: bool258 humanReadableName: "Highlight API"259 humanReadableDescription: "Highlight API support"260 webcoreBinding: RuntimeEnabledFeatures261 defaultValue:262 WebKitLegacy:263 default: false264 WebKit:265 default: false266 267 256 # FIXME: This is on by default in WebKit2. Perhaps we should consider turning it on for WebKitLegacy as well. 268 257 HDRMediaCapabilitiesEnabled: … … 300 289 default: false 301 290 291 HighlightAPIEnabled: 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 302 302 # FIXME: This is enabled when ENABLE(EXPERIMENTAL_FEATURES) is true in WebKit2. Perhaps we should consider using that for WebKitLegacy as well. 303 303 ImageBitmapEnabled: … … 312 312 "ENABLE(EXPERIMENTAL_FEATURES)" : true 313 313 default: false 314 315 # FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely. 316 InProcessCookieCacheEnabled: 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 314 325 315 326 IncrementalPDFLoadingEnabled: … … 337 348 default: true 338 349 339 # FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.340 InProcessCookieCacheEnabled:341 type: bool342 humanReadableName: "In-Process Cookie Cache"343 humanReadableDescription: "In-Process DOM Cookie Cache"344 defaultValue:345 WebKitLegacy:346 default: true347 WebKit:348 default: true349 350 350 # FIXME: The 'Is' prefix is inconsistent with most other preferences and should be removed. 351 351 IsFirstPartyWebsiteDataRemovalDisabled: … … 681 681 defaultValue: 682 682 WebKitLegacy: 683 default: true684 WebKit:685 default: true686 687 VisualViewportAPIEnabled:688 type: bool689 humanReadableName: "Visual Viewport API"690 humanReadableDescription: "Enable Visual Viewport API"691 defaultValue:692 WebKitLegacy:693 "PLATFORM(IOS_FAMILY)" : false694 683 default: true 695 684 WebKit: … … 722 711 default: WebKit::defaultVP9SWDecoderEnabledOnBattery() 723 712 713 VisualViewportAPIEnabled: 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 724 723 725 724 # FIXME: This is enabled when ENABLE(EXPERIMENTAL_FEATURES) is true in WebKit2. Perhaps we should consider using that for WebKitLegacy as well. … … 836 835 default: false 837 836 837 # FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely. 838 WebRTCPlatformCodecsInGPUProcessEnabled: 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 838 850 # FIXME: Is this implemented for WebKitLegacy? If not, this should be excluded from WebKitLegacy entirely. 839 851 WebRTCVP9CodecEnabled: … … 848 860 WebKit: 849 861 default: false 850 851 # FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.852 WebRTCPlatformCodecsInGPUProcessEnabled:853 type: bool854 humanReadableName: "WebRTC Platform Codecs in GPU Process"855 humanReadableDescription: "Enable WebRTC Platform Codecs in GPU Process"856 webcoreBinding: RuntimeEnabledFeatures857 condition: ENABLE(WEB_RTC)858 defaultValue:859 WebKitLegacy:860 default: false861 WebKit:862 default: WebKit::defaultWebRTCCodecsInGPUProcess()863 862 864 863 WebShareFileAPIEnabled: -
trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesInternal.yaml
r267575 r267641 27 27 # the text exposed to the user from the WebKit client. 28 28 29 # Internal preferences go here. 29 # FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely. 30 AllowViewportShrinkToFitContent: 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. 42 AlwaysZoomOnDoubleTap: 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. 55 ApplePayRemoteUIEnabled: 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 66 AriaReflectionEnabled: 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 77 AsyncFrameScrollingEnabled: 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 87 AsyncOverflowScrollingEnabled: 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. 98 BlockingOfSmallPluginsEnabled: 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 108 CSSLogicalEnabled: 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 119 CSSOMViewScrollingAPIEnabled: 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. 131 CaptureAudioInGPUProcessEnabled: 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. 145 CaptureAudioInUIProcessEnabled: 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. 158 CaptureVideoInGPUProcessEnabled: 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. 171 CaptureVideoInUIProcessEnabled: 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 183 DOMPasteAccessRequestsEnabled: 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. 195 DataListElementEnabled: 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. 209 DateTimeInputsEditableComponentsEnabled: 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 221 EnterKeyHintEnabled: 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. 234 ExperimentalPlugInSandboxProfilesEnabled: 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. 246 FasterClicksEnabled: 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. 259 FrameFlatteningEnabled: 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 271 FullScreenEnabled: 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 283 ICECandidateFilteringEnabled: 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 293 InputTypeColorEnabled: 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 305 InputTypeDateEnabled: 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 317 InputTypeDateTimeLocalEnabled: 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 329 InputTypeMonthEnabled: 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 341 InputTypeTimeEnabled: 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 353 InputTypeWeekEnabled: 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. 366 IsFirstPartyWebsiteDataRemovalLiveOnTestingEnabled: 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. 377 IsFirstPartyWebsiteDataRemovalReproTestingEnabled: 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. 388 IsITPDatabaseEnabled: 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 399 KeygenElementEnabled: 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 410 LayoutFormattingContextEnabled: 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 422 LayoutFormattingContextIntegrationEnabled: 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 434 LegacyOverflowScrollingTouchEnabled: 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 445 LineHeightUnitsEnabled: 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 456 LiveRangeSelectionEnabled: 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 467 MediaCaptureRequiresSecureConnection: 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 478 MockCaptureDevicesEnabled: 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 491 MouseEventsSimulationEnabled: 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 503 OffscreenCanvasEnabled: 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. 517 PreferFasterClickOverDoubleTap: 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 530 PrefixedWebAudioEnabled: 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. 542 RestrictedHTTPResponseAccess: 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 553 SecureContextChecksEnabled: 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 564 SelectionAcrossShadowBoundariesEnabled: 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. 575 ServiceWorkersEnabled: 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 589 SimpleLineLayoutEnabled: 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. 600 SpeakerSelectionRequiresUserGesture: 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. 612 TextAutosizingUsesIdempotentMode: 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. 625 UndoManagerAPIEnabled: 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. 637 UseGPUProcessForCanvasRenderingEnabled: 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. 650 UseGPUProcessForDOMRenderingEnabled: 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. 663 UseGPUProcessForMediaEnabled: 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. 675 UseGPUProcessForWebGLEnabled: 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 687 WebAPIStatisticsEnabled: 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. 699 WebRTCDTMFEnabled: 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. 712 WebRTCH264HardwareEncoderEnabled: 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. 725 WebRTCH264SimulcastEnabled: 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. 738 WebRTCMDNSICECandidatesEnabled: 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. 751 ZoomOnDoubleTapWhenRoot: 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 599 599 @end 600 600 601 @interface WebPreferences (WebPrivateInternal DebugFeatures)602 + (NSArray<WebFeature *> *)_internal DebugFeatures;601 @interface WebPreferences (WebPrivateInternalFeatures) 602 + (NSArray<WebFeature *> *)_internalFeatures; 603 603 @end 604 604 -
trunk/Source/WebKitLegacy/mac/WebView/WebView.mm
r267575 r267641 3107 3107 settings.setBackForwardCacheExpirationInterval(Seconds { [preferences _backForwardCacheExpirationInterval] }); 3108 3108 3109 settings.setDeveloperExtrasEnabled([preferences developerExtrasEnabled]);3110 3109 settings.setJavaScriptRuntimeFlags(JSC::RuntimeFlags([preferences javaScriptRuntimeFlags])); 3111 3110 settings.setAuthorAndUserStylesEnabled([preferences authorAndUserStylesEnabled]); … … 3121 3120 3122 3121 settings.setAcceleratedCompositingEnabled([preferences acceleratedCompositingEnabled]); 3123 settings.setAcceleratedDrawingEnabled([preferences acceleratedDrawingEnabled]);3124 settings.setDisplayListDrawingEnabled([preferences displayListDrawingEnabled]);3125 3122 settings.setCanvasUsesAcceleratedDrawing([preferences canvasUsesAcceleratedDrawing]); 3126 settings.setShowDebugBorders([preferences showDebugBorders]);3127 settings.setSimpleLineLayoutEnabled([preferences simpleLineLayoutEnabled]);3128 settings.setSimpleLineLayoutDebugBordersEnabled([preferences simpleLineLayoutDebugBordersEnabled]);3129 settings.setShowRepaintCounter([preferences showRepaintCounter]);3130 3123 settings.setWebGLEnabled([preferences webGLEnabled]); 3131 3124 settings.setSubpixelCSSOMElementMetricsEnabled([preferences subpixelCSSOMElementMetricsEnabled]); 3132 settings.setSubpixelAntialiasedLayerTextEnabled([preferences subpixelAntialiasedLayerTextEnabled]);3133 3125 3134 3126 settings.setForceWebGLUsesLowPower([preferences forceLowPowerGPUForWebGL]); … … 3137 3129 settings.setWindowFocusRestricted(shouldRestrictWindowFocus()); 3138 3130 settings.setFrameFlattening((const WebCore::FrameFlattening)[preferences frameFlattening]); 3139 settings.setAsyncFrameScrollingEnabled([preferences asyncFrameScrollingEnabled]);3140 3131 settings.setSpatialNavigationEnabled([preferences isSpatialNavigationEnabled]); 3141 3132 settings.setPaginateDuringLayoutEnabled([preferences paginateDuringLayoutEnabled]); … … 3179 3170 settings.setJavaScriptCanOpenWindowsAutomatically([preferences javaScriptCanOpenWindowsAutomatically] || shouldAllowWindowOpenWithoutUserGesture()); 3180 3171 3181 settings.setCSSOMViewScrollingAPIEnabled([preferences CSSOMViewScrollingAPIEnabled]);3182 3172 settings.setMediaContentTypesRequiringHardwareSupport([preferences mediaContentTypesRequiringHardwareSupport]); 3183 3173 … … 3282 3272 3283 3273 #if ENABLE(MEDIA_STREAM) 3284 settings.setMockCaptureDevicesEnabled(false);3285 settings.setMediaCaptureRequiresSecureConnection(true);3286 3274 settings.setMediaStreamEnabled(false); 3287 3275 settings.setMediaDevicesEnabled(false); … … 3294 3282 #if ENABLE(WEB_AUDIO) 3295 3283 settings.setWebAudioEnabled([preferences webAudioEnabled]); 3296 settings.setPrefixedWebAudioEnabled(false);3297 3284 #endif 3298 3285 … … 3300 3287 settings.setFullScreenEnabled([preferences fullScreenEnabled]); 3301 3288 #endif 3302 3303 RuntimeEnabledFeatures::sharedFeatures().setCSSLogicalEnabled([preferences cssLogicalEnabled]);3304 RuntimeEnabledFeatures::sharedFeatures().setLineHeightUnitsEnabled([preferences lineHeightUnitsEnabled]);3305 3289 3306 3290 settings.setHiddenPageDOMTimerThrottlingEnabled([preferences hiddenPageDOMTimerThrottlingEnabled]); … … 3336 3320 RuntimeEnabledFeatures::sharedFeatures().setDirectoryUploadEnabled([preferences directoryUploadEnabled]); 3337 3321 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]);3342 3322 RuntimeEnabledFeatures::sharedFeatures().setWebSQLDisabled(![preferences webSQLEnabled]); 3343 3323 … … 3386 3366 settings.setAnimatedImageAsyncDecodingEnabled([preferences animatedImageAsyncDecodingEnabled]); 3387 3367 settings.setMediaCapabilitiesEnabled([preferences mediaCapabilitiesEnabled]); 3388 settings.setSelectionAcrossShadowBoundariesEnabled(preferences.selectionAcrossShadowBoundariesEnabled);3389 3368 } 3390 3369
Note:
See TracChangeset
for help on using the changeset viewer.