13ed3e002da573fe5179f6ac296b21f1d5247875
[WebKit-https.git] / Source / WebCore / page / Settings.in
1 # FIXME: Add support for global settings.
2 # FIXME: Add support for custom getters/setters.
3
4 defaultTextEncodingName type=String
5 ftpDirectoryTemplatePath type=String
6 localStorageDatabasePath type=String
7 editableLinkBehavior type=EditableLinkBehavior, initial=EditableLinkDefaultBehavior
8 textDirectionSubmenuInclusionBehavior type=TextDirectionSubmenuInclusionBehavior, initial=TextDirectionSubmenuAutomaticallyIncluded
9 pdfImageCachingPolicy type=PDFImageCachingPolicy, initial = PDFImageCachingDefault
10 passwordEchoDurationInSeconds type=double, initial=1
11
12 # Sets the magnification value for validation message timer.  If the
13 # magnification value is N, a validation message disappears automatically after
14 # <message length> * N / 1000 seconds.  If N is equal to or less than 0, a
15 # validation message doesn't disappears automaticaly.
16 validationMessageTimerMagnification type=int, initial=50
17
18 # Number of pixels below which 2D canvas is rendered in software
19 # even if hardware acceleration is enabled.
20 # Hardware acceleration is useful for large canvases where it can avoid the
21 # pixel bandwidth between the CPU and GPU. But GPU acceleration comes at
22 # a price - extra back-buffer and texture copy. Small canvases are also
23 # widely used for stylized fonts. Anti-aliasing text in hardware at that
24 # scale is generally slower. So below a certain size it is better to
25 # draw canvas in software.
26 minimumAccelerated2dCanvasSize type=int, initial=257*256
27
28 maximumAccelerated2dCanvasSize type=unsigned, initial=5120*2880
29
30 layoutFallbackWidth type=int, initial=980
31 deviceWidth type=int, initial=0
32 deviceHeight type=int, initial=0
33
34 # Allow clients concerned with memory consumption to set a quota on session storage
35 # since the memory used won't be released until the Page is destroyed.
36 sessionStorageQuota type=unsigned, initial=StorageMap::noQuota
37
38 minimumFontSize type=int, initial=0, setNeedsStyleRecalcInAllFrames=1
39 minimumLogicalFontSize type=int, initial=0, setNeedsStyleRecalcInAllFrames=1
40 defaultFontSize type=int, initial=16, setNeedsStyleRecalcInAllFrames=1
41 defaultFixedFontSize type=int, initial=0, setNeedsStyleRecalcInAllFrames=1
42
43 editingBehaviorType type=EditingBehaviorType, initial=editingBehaviorTypeForPlatform()
44 maximumHTMLParserDOMTreeDepth type=unsigned, initial=defaultMaximumHTMLParserDOMTreeDepth
45
46 # This setting only affects site icon image loading if loadsImagesAutomatically setting is false and this setting is true.
47 # All other permutations still heed loadsImagesAutomatically setting.
48 loadsSiteIconsIgnoringImageLoadingSetting initial=false
49
50 caretBrowsingEnabled initial=false
51 preventKeyboardDOMEventDispatch initial=false
52 localStorageEnabled initial=false
53 allowUniversalAccessFromFileURLs initial=true
54 allowFileAccessFromFileURLs initial=true
55 needsStorageAccessFromFileURLsQuirk initial=true
56 javaScriptCanOpenWindowsAutomatically initial=false
57 javaScriptCanAccessClipboard initial=false
58 shouldPrintBackgrounds initial=false
59 usesDashboardBackwardCompatibilityMode initial=false, conditional=DASHBOARD_SUPPORT
60 clipboardAccessPolicy type=ClipboardAccessPolicy, initial=ClipboardAccessPolicy::RequiresUserGesture
61
62 textAreasAreResizable initial=false, setNeedsStyleRecalcInAllFrames=1
63 authorAndUserStylesEnabled initial=true, setNeedsStyleRecalcInAllFrames=1
64 acceleratedCompositingEnabled initial=true, setNeedsStyleRecalcInAllFrames=1
65 acceleratedCompositedAnimationsEnabled initial=true, setNeedsStyleRecalcInAllFrames=1
66 showDebugBorders initial=false, setNeedsStyleRecalcInAllFrames=1
67 showRepaintCounter initial=false, setNeedsStyleRecalcInAllFrames=1
68 visibleDebugOverlayRegions type=DebugOverlayRegions, initial=0
69
70 # This is a quirk we are pro-actively applying to old applications. It changes keyboard event dispatching,
71 # making keyIdentifier available on keypress events, making charCode available on keydown/keyup events,
72 # and getting keypress dispatched in more cases.
73 needsKeyboardEventDisambiguationQuirks initial=false
74
75 treatsAnyTextCSSLinkAsStylesheet initial=false
76 shrinksStandaloneImagesToFit initial=true
77 pageCacheSupportsPlugins initial=false
78 showsURLsInToolTips initial=false
79 showsToolTipOverTruncatedText initial=false
80 forceFTPDirectoryListings initial=false
81 developerExtrasEnabled initial=false
82 scriptMarkupEnabled initial=true
83 needsSiteSpecificQuirks initial=false
84 domTimersThrottlingEnabled initial=true
85 webArchiveDebugModeEnabled initial=false, conditional=WEB_ARCHIVE
86 localFileContentSniffingEnabled initial=false
87 offlineWebApplicationCacheEnabled initial=false
88 enforceCSSMIMETypeInNoQuirksMode initial=true
89 usesEncodingDetector initial=false
90 allowScriptsToCloseWindows initial=false
91 canvasUsesAcceleratedDrawing initial=false
92 acceleratedDrawingEnabled initial=false
93 displayListDrawingEnabled initial=false
94 acceleratedFiltersEnabled initial=false
95 useLegacyTextAlignPositionedElementBehavior initial=false
96 javaScriptRuntimeFlags type=JSC::RuntimeFlags
97
98 # FIXME: This should really be disabled by default as it makes platforms that don't support the feature download files
99 # they can't use by. Leaving enabled for now to not change existing behavior.
100 downloadableBinaryFontsEnabled initial=true
101
102 xssAuditorEnabled initial=false
103 acceleratedCompositingForFixedPositionEnabled initial=defaultAcceleratedCompositingForFixedPositionEnabled
104 acceleratedCompositingForOverflowScrollEnabled initial=false
105 rubberBandingForSubScrollableRegionsEnabled initial=true, conditional=RUBBER_BANDING
106
107 experimentalNotificationsEnabled initial=false
108 webGLEnabled initial=false
109 webGLErrorsToConsoleEnabled initial=true
110 forceSoftwareWebGLRendering initial=false
111 forceWebGLUsesLowPower initial=false
112 accelerated2dCanvasEnabled initial=false
113 loadDeferringEnabled initial=true
114 webAudioEnabled initial=false
115 paginateDuringLayoutEnabled initial=false
116 fullScreenEnabled initial=false, conditional=FULLSCREEN_API
117 asynchronousSpellCheckingEnabled initial=false
118
119 # This feature requires an implementation of ValidationMessageClient.
120 interactiveFormValidationEnabled initial=false
121
122 usePreHTML5ParserQuirks initial=false
123 hyperlinkAuditingEnabled initial=false
124 crossOriginCheckInGetMatchedCSSRulesDisabled initial=false
125 forceCompositingMode initial=false
126 shouldInjectUserScriptsInInitialEmptyDocument initial=false
127 fixedElementsLayoutRelativeToFrame initial=false
128 allowDisplayOfInsecureContent initial=false
129 allowRunningOfInsecureContent initial=false
130 requiresUserGestureToLoadVideo initial=defaultRequiresUserGestureToLoadVideo
131 videoPlaybackRequiresUserGesture initial=defaultVideoPlaybackRequiresUserGesture
132 audioPlaybackRequiresUserGesture initial=defaultAudioPlaybackRequiresUserGesture
133 mainContentUserGestureOverrideEnabled initial=false
134 allowsInlineMediaPlayback initial=defaultAllowsInlineMediaPlayback
135 allowsInlineMediaPlaybackAfterFullscreen initial=true
136 inlineMediaPlaybackRequiresPlaysInlineAttribute initial=defaultInlineMediaPlaybackRequiresPlaysInlineAttribute
137 allowsPictureInPictureMediaPlayback initial=defaultAllowsPictureInPictureMediaPlayback
138 mediaControlsScaleWithPageZoom initial=defaultMediaControlsScaleWithPageZoom
139 invisibleAutoplayNotPermitted initial=false
140 passwordEchoEnabled initial=false
141 suppressesIncrementalRendering initial=false
142 incrementalRenderingSuppressionTimeoutInSeconds type=double, initial=defaultIncrementalRenderingSuppressionTimeoutInSeconds
143 backspaceKeyNavigationEnabled initial=true
144 shouldDisplaySubtitles initial=false, conditional=VIDEO_TRACK
145 shouldDisplayCaptions initial=false, conditional=VIDEO_TRACK
146 shouldDisplayTextDescriptions initial=false, conditional=VIDEO_TRACK
147 scrollingCoordinatorEnabled initial=false
148 scrollingTreeIncludesFrames initial=defaultScrollingTreeIncludesFrames
149 scrollAnimatorEnabled initial=true, conditional=SMOOTH_SCROLLING
150 forceUpdateScrollbarsOnMainThreadForPerformanceTesting initial=false
151 notificationsEnabled initial=true
152
153 # Some apps needs isLoadingInAPISense to account for active subresource loaders.
154 needsIsLoadingInAPISenseQuirk initial=false
155
156 shouldRespectImageOrientation initial=defaultShouldRespectImageOrientation
157 imageSubsamplingEnabled initial=defaultImageSubsamplingEnabled
158 wantsBalancedSetDefersLoadingBehavior initial=false
159 requestAnimationFrameEnabled initial=true
160
161 cookieEnabled initial=true
162 mediaEnabled initial=true
163 DOMPasteAllowed initial=false
164
165 # When enabled, window.blur() does not change focus, and
166 # window.focus() only changes focus when invoked from the context that
167 # created the window.
168 windowFocusRestricted initial=true
169
170 diagnosticLoggingEnabled initial=false
171 delegatesPageScaling initial=false
172 plugInSnapshottingEnabled initial=false
173 snapshotAllPlugIns initial=false
174 autostartOriginPlugInSnapshottingEnabled initial=true
175 primaryPlugInSnapshotDetectionEnabled initial=true
176 maximumPlugInSnapshotAttempts type=unsigned, initial=20
177 frameFlatteningEnabled initial=false
178
179 webSecurityEnabled initial=true
180 spatialNavigationEnabled initial=false
181
182 autoscrollForDragAndDropEnabled initial=false
183
184 unifiedTextCheckerEnabled initial=defaultUnifiedTextCheckerEnabled
185
186 logsPageMessagesToSystemConsoleEnabled initial=false
187
188 backForwardCacheExpirationInterval type=double, initial=1800
189
190 # Some apps could have a default video poster if it is not set.
191 defaultVideoPosterURL type=String
192
193 smartInsertDeleteEnabled initial=defaultSmartInsertDeleteEnabled
194 selectTrailingWhitespaceEnabled initial=defaultSelectTrailingWhitespaceEnabled
195
196 useLegacyBackgroundSizeShorthandBehavior initial=false
197 fixedBackgroundsPaintRelativeToDocument initial=defaultFixedBackgroundsPaintRelativeToDocument
198
199 textAutosizingEnabled initial=defaultTextAutosizingEnabled(), setNeedsStyleRecalcInAllFrames=1, conditional=TEXT_AUTOSIZING
200 textAutosizingWindowSizeOverride type=IntSize, setNeedsStyleRecalcInAllFrames=1, conditional=TEXT_AUTOSIZING
201 minimumZoomFontSize type=float, initial=defaultMinimumZoomFontSize(), conditional=TEXT_AUTOSIZING
202
203 subpixelAntialiasedLayerTextEnabled initial=false, setNeedsStyleRecalcInAllFrames=1
204 simpleLineLayoutEnabled initial=true, setNeedsStyleRecalcInAllFrames=1
205 simpleLineLayoutDebugBordersEnabled initial=false, setNeedsStyleRecalcInAllFrames=1
206
207 subpixelCSSOMElementMetricsEnabled initial=false
208
209 useGiantTiles initial=false
210
211 mediaSourceEnabled initial=true, conditional=MEDIA_SOURCE
212
213 # FIXME: Rename to allowMultiElementImplicitFormSubmission once we upstream the iOS changes to WebView.mm.
214 allowMultiElementImplicitSubmission initial=false
215
216 allowsAirPlayForMediaPlayback initial=true, conditional=WIRELESS_PLAYBACK_TARGET
217
218 shouldConvertPositionStyleOnCopy initial=false
219
220 maxParseDuration type=double, initial=-1
221 standalone initial=false
222 telephoneNumberParsingEnabled initial=false
223 mediaDataLoadsAutomatically initial=defaultMediaDataLoadsAutomatically
224 shouldTransformsAffectOverflow initial=true
225 shouldDispatchJavaScriptWindowOnErrorEvents initial=false
226 alwaysUseAcceleratedOverflowScroll initial=false
227 imageControlsEnabled initial=false, conditional=SERVICE_CONTROLS
228
229 enableInheritURIQueryComponent initial=false
230
231 aggressiveTileRetentionEnabled initial=false
232 temporaryTileCohortRetentionEnabled initial=true
233
234 useImageDocumentForSubframePDF initial=false
235 dataDetectorTypes type=DataDetectorTypes, initial=DataDetectorTypeNone, conditional=DATA_DETECTION
236
237 # Allow SourceBuffers to store up to 304MB each, enough for approximately five minutes
238 # of 1080p video and stereo audio.
239 maximumSourceBufferSize type=int, initial=318767104, conditional=MEDIA_SOURCE
240
241 serviceControlsEnabled initial=false, conditional=SERVICE_CONTROLS
242
243 appleMailPaginationQuirkEnabled initial=false
244
245 attachmentElementEnabled initial=true, conditional=ATTACHMENT_ELEMENT
246
247 newBlockInsideInlineModelEnabled initial=false, setNeedsStyleRecalcInAllFrames=1
248
249 deferredCSSParserEnabled initial=false
250
251 httpEquivEnabled initial=true
252
253 # Some ports (e.g. iOS) might choose to display attachments inline, regardless of whether the response includes the
254 # HTTP header "Content-Disposition: attachment". This setting enables a sandbox around these attachments. The sandbox
255 # enforces all frame sandbox flags (see enum SandboxFlag in SecurityContext.h), and also disables <meta http-equiv>
256 # processing and subframe loading.
257 contentDispositionAttachmentSandboxEnabled initial=false
258
259 userInterfaceDirectionPolicy type=UserInterfaceDirectionPolicy, initial=UserInterfaceDirectionPolicy::Content
260 systemLayoutDirection type=TextDirection, initial=LTR
261
262 allowContentSecurityPolicySourceStarToMatchAnyProtocol initial=false
263
264 selectionPaintingWithoutSelectionGapsEnabled initial=false
265
266 shouldConvertInvalidURLsToBlank initial=true
267
268 springTimingFunctionEnabled initial=false
269
270 treatIPAddressAsDomain initial=false
271
272 # Runtime-enabled features
273 visualViewportEnabled initial=false, setNeedsStyleRecalcInAllFrames=1
274
275 inputEventsEnabled initial=true
276
277 quickTimePluginReplacementEnabled initial=defaultQuickTimePluginReplacementEnabled
278 youTubeFlashPluginReplacementEnabled initial=defaultYouTubeFlashPluginReplacementEnabled
279
280 forcedColorsAreInvertedAccessibilityValue type=ForcedAccessibilityValue, initial=defaultForcedColorsAreInvertedAccessibilityValue
281 forcedDisplayIsMonochromeAccessibilityValue type=ForcedAccessibilityValue, initial=defaultForcedDisplayIsMonochromeAccessibilityValue
282 forcedPrefersReducedMotionAccessibilityValue type=ForcedAccessibilityValue, initial=defaultForcedPrefersReducedMotionAccessibilityValue
283
284 largeImageAsyncDecodingEnabled initial=true
285 animatedImageAsyncDecodingEnabled initial=true
286
287 shouldSuppressKeyboardInputDuringProvisionalNavigation initial=false
288
289 langAttributeAwareFormControlUIEnabled initial=false