Turn the Input Events runtime flag on by default
[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 javaScriptCanOpenWindowsAutomatically initial=false
54 javaScriptCanAccessClipboard initial=false
55 shouldPrintBackgrounds initial=false
56 usesDashboardBackwardCompatibilityMode initial=false, conditional=DASHBOARD_SUPPORT
57 clipboardAccessPolicy type=ClipboardAccessPolicy, initial=ClipboardAccessPolicy::RequiresUserGesture
58
59 textAreasAreResizable initial=false, setNeedsStyleRecalcInAllFrames=1
60 authorAndUserStylesEnabled initial=true, setNeedsStyleRecalcInAllFrames=1
61 acceleratedCompositingEnabled initial=true, setNeedsStyleRecalcInAllFrames=1
62 acceleratedCompositedAnimationsEnabled initial=true, setNeedsStyleRecalcInAllFrames=1
63 showDebugBorders initial=false, setNeedsStyleRecalcInAllFrames=1
64 showRepaintCounter initial=false, setNeedsStyleRecalcInAllFrames=1
65 visibleDebugOverlayRegions type=DebugOverlayRegions, initial=0
66
67 # This is a quirk we are pro-actively applying to old applications. It changes keyboard event dispatching,
68 # making keyIdentifier available on keypress events, making charCode available on keydown/keyup events,
69 # and getting keypress dispatched in more cases.
70 needsKeyboardEventDisambiguationQuirks initial=false
71
72 treatsAnyTextCSSLinkAsStylesheet initial=false
73 shrinksStandaloneImagesToFit initial=true
74 pageCacheSupportsPlugins initial=false
75 showsURLsInToolTips initial=false
76 showsToolTipOverTruncatedText initial=false
77 forceFTPDirectoryListings initial=false
78 developerExtrasEnabled initial=false
79 scriptMarkupEnabled initial=true
80 needsSiteSpecificQuirks initial=false
81 domTimersThrottlingEnabled initial=true
82 webArchiveDebugModeEnabled initial=false, conditional=WEB_ARCHIVE
83 localFileContentSniffingEnabled initial=false
84 offlineWebApplicationCacheEnabled initial=false
85 enforceCSSMIMETypeInNoQuirksMode initial=true
86 usesEncodingDetector initial=false
87 allowScriptsToCloseWindows initial=false
88 canvasUsesAcceleratedDrawing initial=false
89 acceleratedDrawingEnabled initial=false
90 displayListDrawingEnabled initial=false
91 acceleratedFiltersEnabled initial=false
92 useLegacyTextAlignPositionedElementBehavior initial=false
93 javaScriptRuntimeFlags type=JSC::RuntimeFlags
94
95 # FIXME: This should really be disabled by default as it makes platforms that don't support the feature download files
96 # they can't use by. Leaving enabled for now to not change existing behavior.
97 downloadableBinaryFontsEnabled initial=true
98
99 xssAuditorEnabled initial=false
100 unsafePluginPastingEnabled initial=true
101 acceleratedCompositingForFixedPositionEnabled initial=defaultAcceleratedCompositingForFixedPositionEnabled
102 acceleratedCompositingForOverflowScrollEnabled initial=false
103 rubberBandingForSubScrollableRegionsEnabled initial=true, conditional=RUBBER_BANDING
104
105 experimentalNotificationsEnabled initial=false
106 webGLEnabled initial=false
107 webGLErrorsToConsoleEnabled initial=true
108 openGLMultisamplingEnabled initial=true
109 forceSoftwareWebGLRendering initial=false
110 accelerated2dCanvasEnabled initial=false
111 antialiased2dCanvasEnabled initial=true
112 loadDeferringEnabled initial=true
113 webAudioEnabled initial=false
114 paginateDuringLayoutEnabled initial=false
115 fullScreenEnabled initial=false, conditional=FULLSCREEN_API
116 asynchronousSpellCheckingEnabled initial=false
117 mediaStreamEnabled 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 fixedPositionCreatesStackingContext initial=defaultFixedPositionCreatesStackingContext
162 syncXHRInDocumentsEnabled initial=true
163 cookieEnabled initial=true
164 mediaEnabled initial=true
165 DOMPasteAllowed initial=false
166
167 # When enabled, window.blur() does not change focus, and
168 # window.focus() only changes focus when invoked from the context that
169 # created the window.
170 windowFocusRestricted initial=true
171
172 diagnosticLoggingEnabled initial=false
173 delegatesPageScaling initial=false
174 plugInSnapshottingEnabled initial=false
175 snapshotAllPlugIns initial=false
176 autostartOriginPlugInSnapshottingEnabled initial=true
177 primaryPlugInSnapshotDetectionEnabled initial=true
178 maximumPlugInSnapshotAttempts type=unsigned, initial=20
179 frameFlatteningEnabled initial=false
180
181 allowCustomScrollbarInMainFrame initial=true
182 webSecurityEnabled initial=true
183 spatialNavigationEnabled initial=false
184
185 autoscrollForDragAndDropEnabled initial=false
186
187 unifiedTextCheckerEnabled initial=defaultUnifiedTextCheckerEnabled
188
189 logsPageMessagesToSystemConsoleEnabled initial=false
190
191 backForwardCacheExpirationInterval type=double, initial=1800
192
193 # Some apps could have a default video poster if it is not set.
194 defaultVideoPosterURL type=String
195
196 smartInsertDeleteEnabled initial=defaultSmartInsertDeleteEnabled
197 selectTrailingWhitespaceEnabled initial=defaultSelectTrailingWhitespaceEnabled
198
199 selectionIncludesAltImageText initial=true
200 useLegacyBackgroundSizeShorthandBehavior initial=false
201 fixedBackgroundsPaintRelativeToDocument initial=defaultFixedBackgroundsPaintRelativeToDocument
202
203 textAutosizingEnabled initial=defaultTextAutosizingEnabled(), setNeedsStyleRecalcInAllFrames=1, conditional=TEXT_AUTOSIZING
204 textAutosizingWindowSizeOverride type=IntSize, setNeedsStyleRecalcInAllFrames=1, conditional=TEXT_AUTOSIZING
205 minimumZoomFontSize type=float, initial=defaultMinimumZoomFontSize(), conditional=TEXT_AUTOSIZING
206
207 simpleLineLayoutEnabled initial=true, setNeedsStyleRecalcInAllFrames=1
208 simpleLineLayoutDebugBordersEnabled initial=false, setNeedsStyleRecalcInAllFrames=1
209
210 subpixelCSSOMElementMetricsEnabled initial=false
211
212 useGiantTiles initial=false
213
214 mediaSourceEnabled initial=true, conditional=MEDIA_SOURCE
215
216 # FIXME: Rename to allowMultiElementImplicitFormSubmission once we upstream the iOS changes to WebView.mm.
217 allowMultiElementImplicitSubmission initial=false
218
219 allowsAirPlayForMediaPlayback initial=true, conditional=WIRELESS_PLAYBACK_TARGET
220
221 shouldConvertPositionStyleOnCopy initial=false
222
223 maxParseDuration type=double, initial=-1
224 standalone initial=false
225 telephoneNumberParsingEnabled initial=false
226 mediaDataLoadsAutomatically initial=defaultMediaDataLoadsAutomatically
227 shouldTransformsAffectOverflow initial=true
228 shouldDispatchJavaScriptWindowOnErrorEvents initial=false
229 alwaysUseAcceleratedOverflowScroll initial=false
230 imageControlsEnabled initial=false, conditional=SERVICE_CONTROLS
231
232 enableInheritURIQueryComponent initial=false
233
234 aggressiveTileRetentionEnabled initial=false
235 temporaryTileCohortRetentionEnabled initial=true
236
237 useImageDocumentForSubframePDF initial=false
238 dataDetectorTypes type=DataDetectorTypes, initial=DataDetectorTypeNone, conditional=DATA_DETECTION
239
240 # Allow SourceBuffers to store up to 304MB each, enough for approximately five minutes
241 # of 1080p video and stereo audio.
242 maximumSourceBufferSize type=int, initial=318767104, conditional=MEDIA_SOURCE
243
244 serviceControlsEnabled initial=false, conditional=SERVICE_CONTROLS
245
246 appleMailPaginationQuirkEnabled initial=false
247
248 attachmentElementEnabled initial=true, conditional=ATTACHMENT_ELEMENT
249
250 newBlockInsideInlineModelEnabled initial=false, setNeedsStyleRecalcInAllFrames=1
251
252 newCSSParserEnabled initial=false
253
254 httpEquivEnabled initial=true
255
256 # Some ports (e.g. iOS) might choose to display attachments inline, regardless of whether the response includes the
257 # HTTP header "Content-Disposition: attachment". This setting enables a sandbox around these attachments. The sandbox
258 # enforces all frame sandbox flags (see enum SandboxFlag in SecurityContext.h), and also disables <meta http-equiv>
259 # processing and subframe loading.
260 contentDispositionAttachmentSandboxEnabled initial=false
261
262 userInterfaceDirectionPolicy type=UserInterfaceDirectionPolicy, initial=UserInterfaceDirectionPolicy::Content
263 systemLayoutDirection type=TextDirection, initial=LTR
264
265 allowContentSecurityPolicySourceStarToMatchAnyProtocol initial=false
266
267 allowWindowOpenWithoutUserGesture initial=false
268
269 selectionPaintingWithoutSelectionGapsEnabled initial=false
270
271 shouldConvertInvalidURLsToBlank initial=true
272
273 springTimingFunctionEnabled initial=false
274
275 treatIPAddressAsDomain initial=false
276
277 variationFontsEnabled initial=true, setNeedsStyleRecalcInAllFrames=1, conditional=VARIATION_FONTS
278
279 # Runtime-enabled features
280 visualViewportEnabled initial=false, setNeedsStyleRecalcInAllFrames=1
281 intersectionObserverEnabled initial=false
282
283 inputEventsEnabled initial=true
284
285 quickTimePluginReplacementEnabled initial=defaultQuickTimePluginReplacementEnabled
286 youTubeFlashPluginReplacementEnabled initial=defaultYouTubeFlashPluginReplacementEnabled
287
288 forcedPrefersReducedMotionValue type=ForcedPrefersReducedMotionValue, initial=defaultForcedPrefersReducedMotionValue