| 1 | /* |
| 2 | * THIS FILE WAS AUTOMATICALLY GENERATED, DO NOT EDIT. |
| 3 | * |
| 4 | * Copyright (C) 2017 Apple Inc. All rights reserved. |
| 5 | * |
| 6 | * Redistribution and use in source and binary forms, with or without |
| 7 | * modification, are permitted provided that the following conditions |
| 8 | * are met: |
| 9 | * 1. Redistributions of source code must retain the above copyright |
| 10 | * notice, this list of conditions and the following disclaimer. |
| 11 | * 2. Redistributions in binary form must reproduce the above copyright |
| 12 | * notice, this list of conditions and the following disclaimer in the |
| 13 | * documentation and/or other materials provided with the distribution. |
| 14 | * |
| 15 | * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' |
| 16 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| 17 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 18 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS |
| 19 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 20 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 21 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 24 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
| 25 | * THE POSSIBILITY OF SUCH DAMAGE. |
| 26 | */ |
| 27 | |
| 28 | #include "config.h" |
| 29 | #include "WebPage.h" |
| 30 | |
| 31 | #include "WebPreferencesKeys.h" |
| 32 | #include "WebPreferencesStore.h" |
| 33 | #include <WebCore/DeprecatedGlobalSettings.h> |
| 34 | #include <WebCore/Page.h> |
| 35 | #include <WebCore/RuntimeEnabledFeatures.h> |
| 36 | #include <WebCore/Settings.h> |
| 37 | |
| 38 | namespace WebKit { |
| 39 | |
| 40 | void WebPage::updatePreferencesGenerated(const WebPreferencesStore& store) |
| 41 | { |
| 42 | WebCore::Settings& settings = m_page->settings(); |
| 43 | |
| 44 | settings.setAccelerated2dCanvasEnabled(store.getBoolValueForKey(WebPreferencesKey::accelerated2dCanvasEnabledKey())); |
| 45 | settings.setAcceleratedCompositingEnabled(store.getBoolValueForKey(WebPreferencesKey::acceleratedCompositingEnabledKey())); |
| 46 | settings.setAcceleratedDrawingEnabled(store.getBoolValueForKey(WebPreferencesKey::acceleratedDrawingEnabledKey())); |
| 47 | settings.setAggressiveTileRetentionEnabled(store.getBoolValueForKey(WebPreferencesKey::aggressiveTileRetentionEnabledKey())); |
| 48 | settings.setAllowCrossOriginSubresourcesToAskForCredentials(store.getBoolValueForKey(WebPreferencesKey::allowCrossOriginSubresourcesToAskForCredentialsKey())); |
| 49 | settings.setAllowFileAccessFromFileURLs(store.getBoolValueForKey(WebPreferencesKey::allowFileAccessFromFileURLsKey())); |
| 50 | settings.setAllowMediaContentTypesRequiringHardwareSupportAsFallback(store.getBoolValueForKey(WebPreferencesKey::allowMediaContentTypesRequiringHardwareSupportAsFallbackKey())); |
| 51 | settings.setAllowMultiElementImplicitSubmission(store.getBoolValueForKey(WebPreferencesKey::allowMultiElementImplicitSubmissionKey())); |
| 52 | settings.setAllowSettingAnyXHRHeaderFromFileURLs(store.getBoolValueForKey(WebPreferencesKey::allowSettingAnyXHRHeaderFromFileURLsKey())); |
| 53 | settings.setAllowUniversalAccessFromFileURLs(store.getBoolValueForKey(WebPreferencesKey::allowUniversalAccessFromFileURLsKey())); |
| 54 | #if ENABLE(WIRELESS_PLAYBACK_TARGET) |
| 55 | settings.setAllowsAirPlayForMediaPlayback(store.getBoolValueForKey(WebPreferencesKey::allowsAirPlayForMediaPlaybackKey())); |
| 56 | #endif |
| 57 | settings.setAllowsInlineMediaPlayback(store.getBoolValueForKey(WebPreferencesKey::allowsInlineMediaPlaybackKey())); |
| 58 | settings.setAllowsInlineMediaPlaybackAfterFullscreen(store.getBoolValueForKey(WebPreferencesKey::allowsInlineMediaPlaybackAfterFullscreenKey())); |
| 59 | settings.setAllowsPictureInPictureMediaPlayback(store.getBoolValueForKey(WebPreferencesKey::allowsPictureInPictureMediaPlaybackKey())); |
| 60 | settings.setAlwaysUseAcceleratedOverflowScroll(store.getBoolValueForKey(WebPreferencesKey::alwaysUseAcceleratedOverflowScrollKey())); |
| 61 | settings.setAnimatedImageAsyncDecodingEnabled(store.getBoolValueForKey(WebPreferencesKey::animatedImageAsyncDecodingEnabledKey())); |
| 62 | #if ENABLE(APPLE_PAY) |
| 63 | settings.setApplePayCapabilityDisclosureAllowed(store.getBoolValueForKey(WebPreferencesKey::applePayCapabilityDisclosureAllowedKey())); |
| 64 | #endif |
| 65 | #if ENABLE(APPLE_PAY) |
| 66 | settings.setApplePayEnabled(store.getBoolValueForKey(WebPreferencesKey::applePayEnabledKey())); |
| 67 | #endif |
| 68 | #if ENABLE(APPLE_PAY_REMOTE_UI) |
| 69 | settings.setApplePayRemoteUIEnabled(store.getBoolValueForKey(WebPreferencesKey::applePayRemoteUIEnabledKey())); |
| 70 | #endif |
| 71 | settings.setAsyncFrameScrollingEnabled(store.getBoolValueForKey(WebPreferencesKey::asyncFrameScrollingEnabledKey())); |
| 72 | settings.setAsyncOverflowScrollingEnabled(store.getBoolValueForKey(WebPreferencesKey::asyncOverflowScrollingEnabledKey())); |
| 73 | settings.setAsynchronousSpellCheckingEnabled(store.getBoolValueForKey(WebPreferencesKey::asynchronousSpellCheckingEnabledKey())); |
| 74 | settings.setAuthorAndUserStylesEnabled(store.getBoolValueForKey(WebPreferencesKey::authorAndUserStylesEnabledKey())); |
| 75 | settings.setAutostartOriginPlugInSnapshottingEnabled(store.getBoolValueForKey(WebPreferencesKey::autostartOriginPlugInSnapshottingEnabledKey())); |
| 76 | settings.setBackspaceKeyNavigationEnabled(store.getBoolValueForKey(WebPreferencesKey::backspaceKeyNavigationEnabledKey())); |
| 77 | settings.setBeaconAPIEnabled(store.getBoolValueForKey(WebPreferencesKey::beaconAPIEnabledKey())); |
| 78 | settings.setBlockingOfSmallPluginsEnabled(store.getBoolValueForKey(WebPreferencesKey::blockingOfSmallPluginsEnabledKey())); |
| 79 | settings.setCSSOMViewScrollingAPIEnabled(store.getBoolValueForKey(WebPreferencesKey::cssOMViewScrollingAPIEnabledKey())); |
| 80 | settings.setCanvasUsesAcceleratedDrawing(store.getBoolValueForKey(WebPreferencesKey::canvasUsesAcceleratedDrawingKey())); |
| 81 | settings.setCaretBrowsingEnabled(store.getBoolValueForKey(WebPreferencesKey::caretBrowsingEnabledKey())); |
| 82 | settings.setColorFilterEnabled(store.getBoolValueForKey(WebPreferencesKey::colorFilterEnabledKey())); |
| 83 | settings.setShowDebugBorders(store.getBoolValueForKey(WebPreferencesKey::compositingBordersVisibleKey())); |
| 84 | settings.setShowRepaintCounter(store.getBoolValueForKey(WebPreferencesKey::compositingRepaintCountersVisibleKey())); |
| 85 | settings.setConstantPropertiesEnabled(store.getBoolValueForKey(WebPreferencesKey::constantPropertiesEnabledKey())); |
| 86 | #if PLATFORM(IOS_FAMILY) |
| 87 | settings.setContentChangeObserverEnabled(store.getBoolValueForKey(WebPreferencesKey::contentChangeObserverEnabledKey())); |
| 88 | #endif |
| 89 | settings.setCookieEnabled(store.getBoolValueForKey(WebPreferencesKey::cookieEnabledKey())); |
| 90 | settings.setCoreMathMLEnabled(store.getBoolValueForKey(WebPreferencesKey::coreMathMLEnabledKey())); |
| 91 | settings.setCursiveFontFamily(store.getStringValueForKey(WebPreferencesKey::cursiveFontFamilyKey())); |
| 92 | settings.setDNSPrefetchingEnabled(store.getBoolValueForKey(WebPreferencesKey::dnsPrefetchingEnabledKey())); |
| 93 | settings.setDOMPasteAccessRequestsEnabled(store.getBoolValueForKey(WebPreferencesKey::domPasteAccessRequestsEnabledKey())); |
| 94 | settings.setDOMPasteAllowed(store.getBoolValueForKey(WebPreferencesKey::domPasteAllowedKey())); |
| 95 | settings.setDOMTimersThrottlingEnabled(store.getBoolValueForKey(WebPreferencesKey::domTimersThrottlingEnabledKey())); |
| 96 | settings.setDefaultFixedFontSize(store.getDoubleValueForKey(WebPreferencesKey::defaultFixedFontSizeKey())); |
| 97 | settings.setDefaultFontSize(store.getDoubleValueForKey(WebPreferencesKey::defaultFontSizeKey())); |
| 98 | settings.setDefaultTextEncodingName(store.getStringValueForKey(WebPreferencesKey::defaultTextEncodingNameKey())); |
| 99 | settings.setDeferredCSSParserEnabled(store.getBoolValueForKey(WebPreferencesKey::deferredCSSParserEnabledKey())); |
| 100 | settings.setDeveloperExtrasEnabled(store.getBoolValueForKey(WebPreferencesKey::developerExtrasEnabledKey())); |
| 101 | settings.setDeviceHeight(store.getUInt32ValueForKey(WebPreferencesKey::deviceHeightKey())); |
| 102 | #if ENABLE(DEVICE_ORIENTATION) |
| 103 | settings.setDeviceOrientationEventEnabled(store.getBoolValueForKey(WebPreferencesKey::deviceOrientationEventEnabledKey())); |
| 104 | #endif |
| 105 | #if ENABLE(DEVICE_ORIENTATION) |
| 106 | settings.setDeviceOrientationPermissionAPIEnabled(store.getBoolValueForKey(WebPreferencesKey::deviceOrientationPermissionAPIEnabledKey())); |
| 107 | #endif |
| 108 | settings.setDeviceWidth(store.getUInt32ValueForKey(WebPreferencesKey::deviceWidthKey())); |
| 109 | settings.setDiagnosticLoggingEnabled(store.getBoolValueForKey(WebPreferencesKey::diagnosticLoggingEnabledKey())); |
| 110 | #if PLATFORM(IOS_FAMILY) |
| 111 | settings.setDisableScreenSizeOverride(store.getBoolValueForKey(WebPreferencesKey::disableScreenSizeOverrideKey())); |
| 112 | #endif |
| 113 | settings.setDisplayListDrawingEnabled(store.getBoolValueForKey(WebPreferencesKey::displayListDrawingEnabledKey())); |
| 114 | settings.setEditableImagesEnabled(store.getBoolValueForKey(WebPreferencesKey::editableImagesEnabledKey())); |
| 115 | settings.setEnableInheritURIQueryComponent(store.getBoolValueForKey(WebPreferencesKey::enableInheritURIQueryComponentKey())); |
| 116 | settings.setFTPDirectoryTemplatePath(store.getStringValueForKey(WebPreferencesKey::ftpDirectoryTemplatePathKey())); |
| 117 | settings.setFantasyFontFamily(store.getStringValueForKey(WebPreferencesKey::fantasyFontFamilyKey())); |
| 118 | settings.setFixedFontFamily(store.getStringValueForKey(WebPreferencesKey::fixedFontFamilyKey())); |
| 119 | settings.setForceFTPDirectoryListings(store.getBoolValueForKey(WebPreferencesKey::forceFTPDirectoryListingsKey())); |
| 120 | settings.setForceSoftwareWebGLRendering(store.getBoolValueForKey(WebPreferencesKey::forceSoftwareWebGLRenderingKey())); |
| 121 | settings.setForceUpdateScrollbarsOnMainThreadForPerformanceTesting(store.getBoolValueForKey(WebPreferencesKey::forceUpdateScrollbarsOnMainThreadForPerformanceTestingKey())); |
| 122 | #if ENABLE(FULLSCREEN_API) |
| 123 | settings.setFullScreenEnabled(store.getBoolValueForKey(WebPreferencesKey::fullScreenEnabledKey())); |
| 124 | #endif |
| 125 | settings.setHttpEquivEnabled(store.getBoolValueForKey(WebPreferencesKey::httpEquivEnabledKey())); |
| 126 | settings.setHTTPSUpgradeEnabled(store.getBoolValueForKey(WebPreferencesKey::httpSUpgradeEnabledKey())); |
| 127 | settings.setHiddenPageCSSAnimationSuspensionEnabled(store.getBoolValueForKey(WebPreferencesKey::hiddenPageCSSAnimationSuspensionEnabledKey())); |
| 128 | settings.setHiddenPageDOMTimerThrottlingAutoIncreases(store.getBoolValueForKey(WebPreferencesKey::hiddenPageDOMTimerThrottlingAutoIncreasesKey())); |
| 129 | settings.setHiddenPageDOMTimerThrottlingEnabled(store.getBoolValueForKey(WebPreferencesKey::hiddenPageDOMTimerThrottlingEnabledKey())); |
| 130 | settings.setHyperlinkAuditingEnabled(store.getBoolValueForKey(WebPreferencesKey::hyperlinkAuditingEnabledKey())); |
| 131 | settings.setICECandidateFilteringEnabled(store.getBoolValueForKey(WebPreferencesKey::iceCandidateFilteringEnabledKey())); |
| 132 | #if ENABLE(SERVICE_CONTROLS) |
| 133 | settings.setImageControlsEnabled(store.getBoolValueForKey(WebPreferencesKey::imageControlsEnabledKey())); |
| 134 | #endif |
| 135 | settings.setIncompleteImageBorderEnabled(store.getBoolValueForKey(WebPreferencesKey::incompleteImageBorderEnabledKey())); |
| 136 | settings.setIncrementalRenderingSuppressionTimeoutInSeconds(store.getDoubleValueForKey(WebPreferencesKey::incrementalRenderingSuppressionTimeoutKey())); |
| 137 | settings.setInlineMediaPlaybackRequiresPlaysInlineAttribute(store.getBoolValueForKey(WebPreferencesKey::inlineMediaPlaybackRequiresPlaysInlineAttributeKey())); |
| 138 | settings.setInvisibleAutoplayNotPermitted(store.getBoolValueForKey(WebPreferencesKey::invisibleAutoplayNotPermittedKey())); |
| 139 | settings.setJavaEnabled(store.getBoolValueForKey(WebPreferencesKey::javaEnabledKey())); |
| 140 | settings.setJavaEnabledForLocalFiles(store.getBoolValueForKey(WebPreferencesKey::javaEnabledForLocalFilesKey())); |
| 141 | settings.setJavaScriptCanAccessClipboard(store.getBoolValueForKey(WebPreferencesKey::javaScriptCanAccessClipboardKey())); |
| 142 | settings.setJavaScriptCanOpenWindowsAutomatically(store.getBoolValueForKey(WebPreferencesKey::javaScriptCanOpenWindowsAutomaticallyKey())); |
| 143 | settings.setScriptEnabled(store.getBoolValueForKey(WebPreferencesKey::javaScriptEnabledKey())); |
| 144 | settings.setScriptMarkupEnabled(store.getBoolValueForKey(WebPreferencesKey::javaScriptMarkupEnabledKey())); |
| 145 | settings.setLargeImageAsyncDecodingEnabled(store.getBoolValueForKey(WebPreferencesKey::largeImageAsyncDecodingEnabledKey())); |
| 146 | settings.setLayoutFallbackWidth(store.getUInt32ValueForKey(WebPreferencesKey::layoutFallbackWidthKey())); |
| 147 | settings.setLayoutViewportHeightExpansionFactor(store.getDoubleValueForKey(WebPreferencesKey::layoutViewportHeightExpansionFactorKey())); |
| 148 | #if ENABLE(OVERFLOW_SCROLLING_TOUCH) |
| 149 | settings.setLegacyOverflowScrollingTouchEnabled(store.getBoolValueForKey(WebPreferencesKey::legacyOverflowScrollingTouchEnabledKey())); |
| 150 | #endif |
| 151 | settings.setLinkPreconnectEnabled(store.getBoolValueForKey(WebPreferencesKey::linkPreconnectKey())); |
| 152 | settings.setLoadsImagesAutomatically(store.getBoolValueForKey(WebPreferencesKey::loadsImagesAutomaticallyKey())); |
| 153 | settings.setLoadsSiteIconsIgnoringImageLoadingSetting(store.getBoolValueForKey(WebPreferencesKey::loadsSiteIconsIgnoringImageLoadingPreferenceKey())); |
| 154 | settings.setLocalFileContentSniffingEnabled(store.getBoolValueForKey(WebPreferencesKey::localFileContentSniffingEnabledKey())); |
| 155 | settings.setLocalStorageEnabled(store.getBoolValueForKey(WebPreferencesKey::localStorageEnabledKey())); |
| 156 | settings.setLogsPageMessagesToSystemConsoleEnabled(store.getBoolValueForKey(WebPreferencesKey::logsPageMessagesToSystemConsoleEnabledKey())); |
| 157 | settings.setMainContentUserGestureOverrideEnabled(store.getBoolValueForKey(WebPreferencesKey::mainContentUserGestureOverrideEnabledKey())); |
| 158 | settings.setMaxParseDuration(store.getDoubleValueForKey(WebPreferencesKey::maxParseDurationKey())); |
| 159 | settings.setMediaCapabilitiesEnabled(store.getBoolValueForKey(WebPreferencesKey::mediaCapabilitiesEnabledKey())); |
| 160 | settings.setMediaCapabilitiesExtensionsEnabled(store.getBoolValueForKey(WebPreferencesKey::mediaCapabilitiesExtensionsEnabledKey())); |
| 161 | #if ENABLE(MEDIA_STREAM) |
| 162 | settings.setMediaCaptureRequiresSecureConnection(store.getBoolValueForKey(WebPreferencesKey::mediaCaptureRequiresSecureConnectionKey())); |
| 163 | #endif |
| 164 | settings.setMediaContentTypesRequiringHardwareSupport(store.getStringValueForKey(WebPreferencesKey::mediaContentTypesRequiringHardwareSupportKey())); |
| 165 | settings.setMediaControlsScaleWithPageZoom(store.getBoolValueForKey(WebPreferencesKey::mediaControlsScaleWithPageZoomKey())); |
| 166 | settings.setMediaDataLoadsAutomatically(store.getBoolValueForKey(WebPreferencesKey::mediaDataLoadsAutomaticallyKey())); |
| 167 | #if ENABLE(VIDEO) |
| 168 | settings.setMediaEnabled(store.getBoolValueForKey(WebPreferencesKey::mediaEnabledKey())); |
| 169 | #endif |
| 170 | settings.setMediaUserGestureInheritsFromDocument(store.getBoolValueForKey(WebPreferencesKey::mediaUserGestureInheritsFromDocumentKey())); |
| 171 | settings.setMinimumFontSize(store.getDoubleValueForKey(WebPreferencesKey::minimumFontSizeKey())); |
| 172 | settings.setMinimumLogicalFontSize(store.getDoubleValueForKey(WebPreferencesKey::minimumLogicalFontSizeKey())); |
| 173 | #if ENABLE(TEXT_AUTOSIZING) |
| 174 | settings.setMinimumZoomFontSize(store.getDoubleValueForKey(WebPreferencesKey::minimumZoomFontSizeKey())); |
| 175 | #endif |
| 176 | #if ENABLE(MEDIA_STREAM) |
| 177 | settings.setMockCaptureDevicesEnabled(store.getBoolValueForKey(WebPreferencesKey::mockCaptureDevicesEnabledKey())); |
| 178 | #endif |
| 179 | settings.setNeedsSiteSpecificQuirks(store.getBoolValueForKey(WebPreferencesKey::needsSiteSpecificQuirksKey())); |
| 180 | settings.setNeedsStorageAccessFromFileURLsQuirk(store.getBoolValueForKey(WebPreferencesKey::needsStorageAccessFromFileURLsQuirkKey())); |
| 181 | #if ENABLE(NOTIFICATIONS) |
| 182 | settings.setNotificationsEnabled(store.getBoolValueForKey(WebPreferencesKey::notificationsEnabledKey())); |
| 183 | #endif |
| 184 | settings.setOfflineWebApplicationCacheEnabled(store.getBoolValueForKey(WebPreferencesKey::offlineWebApplicationCacheEnabledKey())); |
| 185 | settings.setPageCacheSupportsPlugins(store.getBoolValueForKey(WebPreferencesKey::pageCacheSupportsPluginsKey())); |
| 186 | settings.setPaginateDuringLayoutEnabled(store.getBoolValueForKey(WebPreferencesKey::paginateDuringLayoutEnabledKey())); |
| 187 | settings.setPassiveTouchListenersAsDefaultOnDocument(store.getBoolValueForKey(WebPreferencesKey::passiveTouchListenersAsDefaultOnDocumentKey())); |
| 188 | settings.setPasswordEchoDurationInSeconds(store.getDoubleValueForKey(WebPreferencesKey::passwordEchoDurationKey())); |
| 189 | settings.setPasswordEchoEnabled(store.getBoolValueForKey(WebPreferencesKey::passwordEchoEnabledKey())); |
| 190 | settings.setPictographFontFamily(store.getStringValueForKey(WebPreferencesKey::pictographFontFamilyKey())); |
| 191 | settings.setPlugInSnapshottingEnabled(store.getBoolValueForKey(WebPreferencesKey::plugInSnapshottingEnabledKey())); |
| 192 | settings.setPluginsEnabled(store.getBoolValueForKey(WebPreferencesKey::pluginsEnabledKey())); |
| 193 | settings.setPrimaryPlugInSnapshotDetectionEnabled(store.getBoolValueForKey(WebPreferencesKey::primaryPlugInSnapshotDetectionEnabledKey())); |
| 194 | settings.setPunchOutWhiteBackgroundsInDarkMode(store.getBoolValueForKey(WebPreferencesKey::punchOutWhiteBackgroundsInDarkModeKey())); |
| 195 | settings.setRequestAnimationFrameEnabled(store.getBoolValueForKey(WebPreferencesKey::requestAnimationFrameEnabledKey())); |
| 196 | settings.setRequiresUserGestureToLoadVideo(store.getBoolValueForKey(WebPreferencesKey::requiresUserGestureToLoadVideoKey())); |
| 197 | #if ENABLE(RESIZE_OBSERVER) |
| 198 | settings.setResizeObserverEnabled(store.getBoolValueForKey(WebPreferencesKey::resizeObserverEnabledKey())); |
| 199 | #endif |
| 200 | #if ENABLE(RESOURCE_USAGE) |
| 201 | settings.setResourceUsageOverlayVisible(store.getBoolValueForKey(WebPreferencesKey::resourceUsageOverlayVisibleKey())); |
| 202 | #endif |
| 203 | settings.setSansSerifFontFamily(store.getStringValueForKey(WebPreferencesKey::sansSerifFontFamilyKey())); |
| 204 | #if ENABLE(SMOOTH_SCROLLING) |
| 205 | settings.setScrollAnimatorEnabled(store.getBoolValueForKey(WebPreferencesKey::scrollAnimatorEnabledKey())); |
| 206 | #endif |
| 207 | settings.setSelectTrailingWhitespaceEnabled(store.getBoolValueForKey(WebPreferencesKey::selectTrailingWhitespaceEnabledKey())); |
| 208 | settings.setSelectionAcrossShadowBoundariesEnabled(store.getBoolValueForKey(WebPreferencesKey::selectionAcrossShadowBoundariesEnabledKey())); |
| 209 | settings.setSelectionPaintingWithoutSelectionGapsEnabled(store.getBoolValueForKey(WebPreferencesKey::selectionPaintingWithoutSelectionGapsEnabledKey())); |
| 210 | settings.setSerifFontFamily(store.getStringValueForKey(WebPreferencesKey::serifFontFamilyKey())); |
| 211 | #if ENABLE(SERVICE_CONTROLS) |
| 212 | settings.setServiceControlsEnabled(store.getBoolValueForKey(WebPreferencesKey::serviceControlsEnabledKey())); |
| 213 | #endif |
| 214 | settings.setShouldAllowUserInstalledFonts(store.getBoolValueForKey(WebPreferencesKey::shouldAllowUserInstalledFontsKey())); |
| 215 | settings.setShouldConvertPositionStyleOnCopy(store.getBoolValueForKey(WebPreferencesKey::shouldConvertPositionStyleOnCopyKey())); |
| 216 | settings.setShouldDecidePolicyBeforeLoadingQuickLookPreview(store.getBoolValueForKey(WebPreferencesKey::shouldDecidePolicyBeforeLoadingQuickLookPreviewKey())); |
| 217 | settings.setShouldDeferAsynchronousScriptsUntilAfterDocumentLoad(store.getBoolValueForKey(WebPreferencesKey::shouldDeferAsynchronousScriptsUntilAfterDocumentLoadKey())); |
| 218 | #if ENABLE(VIDEO_TRACK) |
| 219 | settings.setShouldDisplayCaptions(store.getBoolValueForKey(WebPreferencesKey::shouldDisplayCaptionsKey())); |
| 220 | #endif |
| 221 | #if ENABLE(VIDEO_TRACK) |
| 222 | settings.setShouldDisplaySubtitles(store.getBoolValueForKey(WebPreferencesKey::shouldDisplaySubtitlesKey())); |
| 223 | #endif |
| 224 | #if ENABLE(VIDEO_TRACK) |
| 225 | settings.setShouldDisplayTextDescriptions(store.getBoolValueForKey(WebPreferencesKey::shouldDisplayTextDescriptionsKey())); |
| 226 | #endif |
| 227 | #if ENABLE(TEXT_AUTOSIZING) |
| 228 | settings.setShouldEnableTextAutosizingBoost(store.getBoolValueForKey(WebPreferencesKey::shouldEnableTextAutosizingBoostKey())); |
| 229 | #endif |
| 230 | settings.setShouldIgnoreMetaViewport(store.getBoolValueForKey(WebPreferencesKey::shouldIgnoreMetaViewportKey())); |
| 231 | settings.setShouldPrintBackgrounds(store.getBoolValueForKey(WebPreferencesKey::shouldPrintBackgroundsKey())); |
| 232 | settings.setShouldRespectImageOrientation(store.getBoolValueForKey(WebPreferencesKey::shouldRespectImageOrientationKey())); |
| 233 | settings.setShouldSuppressTextInputFromEditingDuringProvisionalNavigation(store.getBoolValueForKey(WebPreferencesKey::shouldSuppressTextInputFromEditingDuringProvisionalNavigationKey())); |
| 234 | settings.setShowsToolTipOverTruncatedText(store.getBoolValueForKey(WebPreferencesKey::showsToolTipOverTruncatedTextKey())); |
| 235 | settings.setShowsURLsInToolTips(store.getBoolValueForKey(WebPreferencesKey::showsURLsInToolTipsEnabledKey())); |
| 236 | settings.setSimpleLineLayoutDebugBordersEnabled(store.getBoolValueForKey(WebPreferencesKey::simpleLineLayoutDebugBordersEnabledKey())); |
| 237 | settings.setSimpleLineLayoutEnabled(store.getBoolValueForKey(WebPreferencesKey::simpleLineLayoutEnabledKey())); |
| 238 | settings.setSmartInsertDeleteEnabled(store.getBoolValueForKey(WebPreferencesKey::smartInsertDeleteEnabledKey())); |
| 239 | settings.setSnapshotAllPlugIns(store.getBoolValueForKey(WebPreferencesKey::snapshotAllPlugInsKey())); |
| 240 | #if ENABLE(MEDIA_SOURCE) |
| 241 | settings.setSourceBufferChangeTypeEnabled(store.getBoolValueForKey(WebPreferencesKey::sourceBufferChangeTypeEnabledKey())); |
| 242 | #endif |
| 243 | settings.setSpatialNavigationEnabled(store.getBoolValueForKey(WebPreferencesKey::spatialNavigationEnabledKey())); |
| 244 | settings.setSpringTimingFunctionEnabled(store.getBoolValueForKey(WebPreferencesKey::springTimingFunctionEnabledKey())); |
| 245 | settings.setStandalone(store.getBoolValueForKey(WebPreferencesKey::standaloneKey())); |
| 246 | settings.setStandardFontFamily(store.getStringValueForKey(WebPreferencesKey::standardFontFamilyKey())); |
| 247 | settings.setStorageAccessAPIEnabled(store.getBoolValueForKey(WebPreferencesKey::storageAccessAPIEnabledKey())); |
| 248 | settings.setSubpixelAntialiasedLayerTextEnabled(store.getBoolValueForKey(WebPreferencesKey::subpixelAntialiasedLayerTextEnabledKey())); |
| 249 | settings.setSubpixelCSSOMElementMetricsEnabled(store.getBoolValueForKey(WebPreferencesKey::subpixelCSSOMElementMetricsEnabledKey())); |
| 250 | settings.setSubresourceIntegrityEnabled(store.getBoolValueForKey(WebPreferencesKey::subresourceIntegrityEnabledKey())); |
| 251 | settings.setSuppressesIncrementalRendering(store.getBoolValueForKey(WebPreferencesKey::suppressesIncrementalRenderingKey())); |
| 252 | settings.setTelephoneNumberParsingEnabled(store.getBoolValueForKey(WebPreferencesKey::telephoneNumberParsingEnabledKey())); |
| 253 | settings.setTemporaryTileCohortRetentionEnabled(store.getBoolValueForKey(WebPreferencesKey::temporaryTileCohortRetentionEnabledKey())); |
| 254 | settings.setTextAreasAreResizable(store.getBoolValueForKey(WebPreferencesKey::textAreasAreResizableKey())); |
| 255 | #if ENABLE(TEXT_AUTOSIZING) |
| 256 | settings.setTextAutosizingEnabled(store.getBoolValueForKey(WebPreferencesKey::textAutosizingEnabledKey())); |
| 257 | #endif |
| 258 | settings.setThirdPartyIframeRedirectBlockingEnabled(store.getBoolValueForKey(WebPreferencesKey::thirdPartyIframeRedirectBlockingEnabledKey())); |
| 259 | settings.setShowTiledScrollingIndicator(store.getBoolValueForKey(WebPreferencesKey::tiledScrollingIndicatorVisibleKey())); |
| 260 | settings.setUseGiantTiles(store.getBoolValueForKey(WebPreferencesKey::useGiantTilesKey())); |
| 261 | settings.setUseLegacyTextAlignPositionedElementBehavior(store.getBoolValueForKey(WebPreferencesKey::useLegacyTextAlignPositionedElementBehaviorKey())); |
| 262 | settings.setUsesEncodingDetector(store.getBoolValueForKey(WebPreferencesKey::usesEncodingDetectorKey())); |
| 263 | settings.setUsesPageCache(store.getBoolValueForKey(WebPreferencesKey::usesPageCacheKey())); |
| 264 | #if ENABLE(VIDEO) |
| 265 | settings.setVideoQualityIncludesDisplayCompositingEnabled(store.getBoolValueForKey(WebPreferencesKey::videoQualityIncludesDisplayCompositingEnabledKey())); |
| 266 | #endif |
| 267 | settings.setViewportFitEnabled(store.getBoolValueForKey(WebPreferencesKey::viewportFitEnabledKey())); |
| 268 | settings.setVisibleDebugOverlayRegions(store.getUInt32ValueForKey(WebPreferencesKey::visibleDebugOverlayRegionsKey())); |
| 269 | settings.setVisualViewportAPIEnabled(store.getBoolValueForKey(WebPreferencesKey::visualViewportAPIEnabledKey())); |
| 270 | settings.setWantsBalancedSetDefersLoadingBehavior(store.getBoolValueForKey(WebPreferencesKey::wantsBalancedSetDefersLoadingBehaviorKey())); |
| 271 | #if ENABLE(WEB_ARCHIVE) |
| 272 | settings.setWebArchiveDebugModeEnabled(store.getBoolValueForKey(WebPreferencesKey::webArchiveDebugModeEnabledKey())); |
| 273 | #endif |
| 274 | #if ENABLE(WEB_AUDIO) |
| 275 | settings.setWebAudioEnabled(store.getBoolValueForKey(WebPreferencesKey::webAudioEnabledKey())); |
| 276 | #endif |
| 277 | settings.setWebGLEnabled(store.getBoolValueForKey(WebPreferencesKey::webGLEnabledKey())); |
| 278 | settings.setWebSecurityEnabled(store.getBoolValueForKey(WebPreferencesKey::webSecurityEnabledKey())); |
| 279 | settings.setXSSAuditorEnabled(store.getBoolValueForKey(WebPreferencesKey::xssAuditorEnabledKey())); |
| 280 | |
| 281 | #if USE(AVFOUNDATION) |
| 282 | WebCore::DeprecatedGlobalSettings::setAVFoundationEnabled(store.getBoolValueForKey(WebPreferencesKey::isAVFoundationEnabledKey())); |
| 283 | #endif |
| 284 | #if USE(AVFOUNDATION) |
| 285 | WebCore::DeprecatedGlobalSettings::setAVFoundationNSURLSessionEnabled(store.getBoolValueForKey(WebPreferencesKey::isAVFoundationNSURLSessionEnabledKey())); |
| 286 | #endif |
| 287 | #if USE(GSTREAMER) |
| 288 | WebCore::DeprecatedGlobalSettings::setGStreamerEnabled(store.getBoolValueForKey(WebPreferencesKey::isGStreamerEnabledKey())); |
| 289 | #endif |
| 290 | WebCore::DeprecatedGlobalSettings::setLowPowerVideoAudioBufferSizeEnabled(store.getBoolValueForKey(WebPreferencesKey::lowPowerVideoAudioBufferSizeEnabledKey())); |
| 291 | WebCore::DeprecatedGlobalSettings::setMockScrollbarsEnabled(store.getBoolValueForKey(WebPreferencesKey::mockScrollbarsEnabledKey())); |
| 292 | |
| 293 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setAccessibilityObjectModelEnabled(store.getBoolValueForKey(WebPreferencesKey::accessibilityObjectModelEnabledKey())); |
| 294 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setAdClickAttributionDebugModeEnabled(store.getBoolValueForKey(WebPreferencesKey::adClickAttributionDebugModeEnabledKey())); |
| 295 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setAdClickAttributionEnabled(store.getBoolValueForKey(WebPreferencesKey::adClickAttributionEnabledKey())); |
| 296 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setAriaReflectionEnabled(store.getBoolValueForKey(WebPreferencesKey::ariaReflectionEnabledKey())); |
| 297 | #if ENABLE(ATTACHMENT_ELEMENT) |
| 298 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setAttachmentElementEnabled(store.getBoolValueForKey(WebPreferencesKey::attachmentElementEnabledKey())); |
| 299 | #endif |
| 300 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setBlankAnchorTargetImpliesNoOpenerEnabled(store.getBoolValueForKey(WebPreferencesKey::blankAnchorTargetImpliesNoOpenerEnabledKey())); |
| 301 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setCSSCustomPropertiesAndValuesEnabled(store.getBoolValueForKey(WebPreferencesKey::cssCustomPropertiesAndValuesEnabledKey())); |
| 302 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setCSSLogicalEnabled(store.getBoolValueForKey(WebPreferencesKey::cssLogicalEnabledKey())); |
| 303 | #if ENABLE(CSS_PAINTING_API) |
| 304 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setCSSPaintingAPIEnabled(store.getBoolValueForKey(WebPreferencesKey::cssPaintingAPIEnabledKey())); |
| 305 | #endif |
| 306 | #if ENABLE(CSS_TYPED_OM) |
| 307 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setCSSTypedOMEnabled(store.getBoolValueForKey(WebPreferencesKey::cssTypedOMEnabledKey())); |
| 308 | #endif |
| 309 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setCacheAPIEnabled(store.getBoolValueForKey(WebPreferencesKey::cacheAPIEnabledKey())); |
| 310 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setCrossOriginResourcePolicyEnabled(store.getBoolValueForKey(WebPreferencesKey::crossOriginResourcePolicyEnabledKey())); |
| 311 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setCustomElementsEnabled(store.getBoolValueForKey(WebPreferencesKey::customElementsEnabledKey())); |
| 312 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setCustomPasteboardDataEnabled(store.getBoolValueForKey(WebPreferencesKey::customPasteboardDataEnabledKey())); |
| 313 | #if ENABLE(DARK_MODE_CSS) |
| 314 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setDarkModeCSSEnabled(store.getBoolValueForKey(WebPreferencesKey::darkModeCSSEnabledKey())); |
| 315 | #endif |
| 316 | #if ENABLE(DATALIST_ELEMENT) |
| 317 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setDataListElementEnabled(store.getBoolValueForKey(WebPreferencesKey::dataListElementEnabledKey())); |
| 318 | #endif |
| 319 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setDataTransferItemsEnabled(store.getBoolValueForKey(WebPreferencesKey::dataTransferItemsEnabledKey())); |
| 320 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setDirectoryUploadEnabled(store.getBoolValueForKey(WebPreferencesKey::directoryUploadEnabledKey())); |
| 321 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setDisabledAdaptationsMetaTagEnabled(store.getBoolValueForKey(WebPreferencesKey::disabledAdaptationsMetaTagEnabledKey())); |
| 322 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setDisplayContentsEnabled(store.getBoolValueForKey(WebPreferencesKey::displayContentsEnabledKey())); |
| 323 | #if ENABLE(DOWNLOAD_ATTRIBUTE) |
| 324 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setDownloadAttributeEnabled(store.getBoolValueForKey(WebPreferencesKey::downloadAttributeEnabledKey())); |
| 325 | #endif |
| 326 | #if ENABLE(ENCRYPTED_MEDIA) |
| 327 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setEncryptedMediaAPIEnabled(store.getBoolValueForKey(WebPreferencesKey::encryptedMediaAPIEnabledKey())); |
| 328 | #endif |
| 329 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setExperimentalPlugInSandboxProfilesEnabled(store.getBoolValueForKey(WebPreferencesKey::experimentalPlugInSandboxProfilesEnabledKey())); |
| 330 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setFetchAPIEnabled(store.getBoolValueForKey(WebPreferencesKey::fetchAPIEnabledKey())); |
| 331 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setFetchAPIKeepAliveEnabled(store.getBoolValueForKey(WebPreferencesKey::fetchAPIKeepAliveEnabledKey())); |
| 332 | #if ENABLE(GAMEPAD) |
| 333 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setGamepadsEnabled(store.getBoolValueForKey(WebPreferencesKey::gamepadsEnabledKey())); |
| 334 | #endif |
| 335 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setImageBitmapOffscreenCanvasEnabled(store.getBoolValueForKey(WebPreferencesKey::imageBitmapOffscreenCanvasEnabledKey())); |
| 336 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setInputEventsEnabled(store.getBoolValueForKey(WebPreferencesKey::inputEventsEnabledKey())); |
| 337 | #if ENABLE(INPUT_TYPE_COLOR) |
| 338 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setInputTypeColorEnabled(store.getBoolValueForKey(WebPreferencesKey::inputTypeColorEnabledKey())); |
| 339 | #endif |
| 340 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setInspectorAdditionsEnabled(store.getBoolValueForKey(WebPreferencesKey::inspectorAdditionsEnabledKey())); |
| 341 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setInteractiveFormValidationEnabled(store.getBoolValueForKey(WebPreferencesKey::interactiveFormValidationEnabledKey())); |
| 342 | #if ENABLE(INTERSECTION_OBSERVER) |
| 343 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setIntersectionObserverEnabled(store.getBoolValueForKey(WebPreferencesKey::intersectionObserverEnabledKey())); |
| 344 | #endif |
| 345 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setIsITPDatabaseEnabled(store.getBoolValueForKey(WebPreferencesKey::isITPDatabaseEnabledKey())); |
| 346 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setIsITPFirstPartyWebsiteDataRemovalEnabled(store.getBoolValueForKey(WebPreferencesKey::isITPFirstPartyWebsiteDataRemovalEnabledKey())); |
| 347 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setIsSecureContextAttributeEnabled(store.getBoolValueForKey(WebPreferencesKey::isSecureContextAttributeEnabledKey())); |
| 348 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setItpDebugModeEnabled(store.getBoolValueForKey(WebPreferencesKey::itpDebugModeEnabledKey())); |
| 349 | #if ENABLE(LAYOUT_FORMATTING_CONTEXT) |
| 350 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setLayoutFormattingContextEnabled(store.getBoolValueForKey(WebPreferencesKey::layoutFormattingContextEnabledKey())); |
| 351 | #endif |
| 352 | #if ENABLE(LEGACY_ENCRYPTED_MEDIA) |
| 353 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setLegacyEncryptedMediaAPIEnabled(store.getBoolValueForKey(WebPreferencesKey::legacyEncryptedMediaAPIEnabledKey())); |
| 354 | #endif |
| 355 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setLinkPrefetchEnabled(store.getBoolValueForKey(WebPreferencesKey::linkPrefetchEnabledKey())); |
| 356 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setLinkPreloadEnabled(store.getBoolValueForKey(WebPreferencesKey::linkPreloadEnabledKey())); |
| 357 | #if ENABLE(MEDIA_STREAM) |
| 358 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setMediaDevicesEnabled(store.getBoolValueForKey(WebPreferencesKey::mediaDevicesEnabledKey())); |
| 359 | #endif |
| 360 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setMediaPreloadingEnabled(store.getBoolValueForKey(WebPreferencesKey::mediaPreloadingEnabledKey())); |
| 361 | #if ENABLE(MEDIA_STREAM) |
| 362 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setMediaRecorderEnabled(store.getBoolValueForKey(WebPreferencesKey::mediaRecorderEnabledKey())); |
| 363 | #endif |
| 364 | #if ENABLE(MEDIA_STREAM) |
| 365 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setMediaStreamEnabled(store.getBoolValueForKey(WebPreferencesKey::mediaStreamEnabledKey())); |
| 366 | #endif |
| 367 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setMenuItemElementEnabled(store.getBoolValueForKey(WebPreferencesKey::menuItemElementEnabledKey())); |
| 368 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setModernMediaControlsEnabled(store.getBoolValueForKey(WebPreferencesKey::modernMediaControlsEnabledKey())); |
| 369 | #if ENABLE(TOUCH_EVENTS) |
| 370 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setMouseEventsSimulationEnabled(store.getBoolValueForKey(WebPreferencesKey::mouseEventsSimulationEnabledKey())); |
| 371 | #endif |
| 372 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setPageAtRuleSupportEnabled(store.getBoolValueForKey(WebPreferencesKey::pageAtRuleSupportEnabledKey())); |
| 373 | #if ENABLE(WEB_RTC) |
| 374 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setPeerConnectionEnabled(store.getBoolValueForKey(WebPreferencesKey::peerConnectionEnabledKey())); |
| 375 | #endif |
| 376 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setPointerEventsEnabled(store.getBoolValueForKey(WebPreferencesKey::pointerEventsEnabledKey())); |
| 377 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setReferrerPolicyAttributeEnabled(store.getBoolValueForKey(WebPreferencesKey::referrerPolicyAttributeEnabledKey())); |
| 378 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setResourceTimingEnabled(store.getBoolValueForKey(WebPreferencesKey::resourceTimingEnabledKey())); |
| 379 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setRestrictedHTTPResponseAccess(store.getBoolValueForKey(WebPreferencesKey::restrictedHTTPResponseAccessKey())); |
| 380 | #if ENABLE(MEDIA_STREAM) && PLATFORM(MAC) |
| 381 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setScreenCaptureEnabled(store.getBoolValueForKey(WebPreferencesKey::screenCaptureEnabledKey())); |
| 382 | #endif |
| 383 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setServerTimingEnabled(store.getBoolValueForKey(WebPreferencesKey::serverTimingEnabledKey())); |
| 384 | #if ENABLE(SERVICE_WORKER) |
| 385 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setServiceWorkerEnabled(store.getBoolValueForKey(WebPreferencesKey::serviceWorkersEnabledKey())); |
| 386 | #endif |
| 387 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setShadowDOMEnabled(store.getBoolValueForKey(WebPreferencesKey::shadowDOMEnabledKey())); |
| 388 | #if USE(SYSTEM_PREVIEW) |
| 389 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setSystemPreviewEnabled(store.getBoolValueForKey(WebPreferencesKey::systemPreviewEnabledKey())); |
| 390 | #endif |
| 391 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setUndoManagerAPIEnabled(store.getBoolValueForKey(WebPreferencesKey::undoManagerAPIEnabledKey())); |
| 392 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setUserTimingEnabled(store.getBoolValueForKey(WebPreferencesKey::userTimingEnabledKey())); |
| 393 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setWebAPIStatisticsEnabled(store.getBoolValueForKey(WebPreferencesKey::webAPIStatisticsEnabledKey())); |
| 394 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setWebAnimationsCSSIntegrationEnabled(store.getBoolValueForKey(WebPreferencesKey::webAnimationsCSSIntegrationEnabledKey())); |
| 395 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setWebAnimationsEnabled(store.getBoolValueForKey(WebPreferencesKey::webAnimationsEnabledKey())); |
| 396 | #if ENABLE(WEB_AUTHN) |
| 397 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setWebAuthenticationEnabled(store.getBoolValueForKey(WebPreferencesKey::webAuthenticationEnabledKey())); |
| 398 | #endif |
| 399 | #if ENABLE(WEB_AUTHN) |
| 400 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setWebAuthenticationLocalAuthenticatorEnabled(store.getBoolValueForKey(WebPreferencesKey::webAuthenticationLocalAuthenticatorEnabledKey())); |
| 401 | #endif |
| 402 | #if ENABLE(WEBGL2) |
| 403 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setWebGL2Enabled(store.getBoolValueForKey(WebPreferencesKey::webGL2EnabledKey())); |
| 404 | #endif |
| 405 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setWebGLCompressedTextureASTCSupportEnabled(store.getBoolValueForKey(WebPreferencesKey::webGLCompressedTextureASTCSupportEnabledKey())); |
| 406 | #if ENABLE(WEBGPU) |
| 407 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setWebGPUEnabled(store.getBoolValueForKey(WebPreferencesKey::webGPUEnabledKey())); |
| 408 | #endif |
| 409 | #if ENABLE(WEB_RTC) |
| 410 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setWebRTCH264SimulcastEnabled(store.getBoolValueForKey(WebPreferencesKey::webRTCH264SimulcastEnabledKey())); |
| 411 | #endif |
| 412 | #if ENABLE(WEB_RTC) |
| 413 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setWebRTCMDNSICECandidatesEnabled(store.getBoolValueForKey(WebPreferencesKey::webRTCMDNSICECandidatesEnabledKey())); |
| 414 | #endif |
| 415 | #if ENABLE(WEB_RTC) |
| 416 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setWebRTCUnifiedPlanEnabled(store.getBoolValueForKey(WebPreferencesKey::webRTCUnifiedPlanEnabledKey())); |
| 417 | #endif |
| 418 | #if ENABLE(WEB_RTC) |
| 419 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setWebRTCVP8CodecEnabled(store.getBoolValueForKey(WebPreferencesKey::webRTCVP8CodecEnabledKey())); |
| 420 | #endif |
| 421 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setWebSQLDisabled(store.getBoolValueForKey(WebPreferencesKey::webSQLDisabledKey())); |
| 422 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setWebShareEnabled(store.getBoolValueForKey(WebPreferencesKey::webShareEnabledKey())); |
| 423 | #if PLATFORM(GTK) || PLATFORM(WPE) |
| 424 | WebCore::RuntimeEnabledFeatures::sharedFeatures().setWebVREnabled(store.getBoolValueForKey(WebPreferencesKey::webVREnabledKey())); |
| 425 | #endif |
| 426 | } |
| 427 | |
| 428 | } |
| 429 | |