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