Turn variation fonts 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 videoPlaybackRequiresUserGesture initial=defaultVideoPlaybackRequiresUserGesture
131 audioPlaybackRequiresUserGesture initial=defaultAudioPlaybackRequiresUserGesture
132 mainContentUserGestureOverrideEnabled initial=false
133 allowsInlineMediaPlayback initial=defaultAllowsInlineMediaPlayback
134 allowsInlineMediaPlaybackAfterFullscreen initial=true
135 inlineMediaPlaybackRequiresPlaysInlineAttribute initial=defaultInlineMediaPlaybackRequiresPlaysInlineAttribute
136 allowsPictureInPictureMediaPlayback initial=defaultAllowsPictureInPictureMediaPlayback
137 mediaControlsScaleWithPageZoom initial=defaultMediaControlsScaleWithPageZoom
138 invisibleAutoplayNotPermitted initial=false
139 passwordEchoEnabled initial=false
140 suppressesIncrementalRendering initial=false
141 incrementalRenderingSuppressionTimeoutInSeconds type=double, initial=defaultIncrementalRenderingSuppressionTimeoutInSeconds
142 backspaceKeyNavigationEnabled initial=true
143 shouldDisplaySubtitles initial=false, conditional=VIDEO_TRACK
144 shouldDisplayCaptions initial=false, conditional=VIDEO_TRACK
145 shouldDisplayTextDescriptions initial=false, conditional=VIDEO_TRACK
146 scrollingCoordinatorEnabled initial=false
147 scrollingTreeIncludesFrames initial=defaultScrollingTreeIncludesFrames
148 scrollAnimatorEnabled initial=true, conditional=SMOOTH_SCROLLING
149 forceUpdateScrollbarsOnMainThreadForPerformanceTesting initial=false
150 notificationsEnabled initial=true
151
152 # Some apps needs isLoadingInAPISense to account for active subresource loaders.
153 needsIsLoadingInAPISenseQuirk initial=false
154
155 shouldRespectImageOrientation initial=defaultShouldRespectImageOrientation
156 imageSubsamplingEnabled initial=defaultImageSubsamplingEnabled
157 wantsBalancedSetDefersLoadingBehavior initial=false
158 requestAnimationFrameEnabled initial=true
159
160 fixedPositionCreatesStackingContext initial=defaultFixedPositionCreatesStackingContext
161 syncXHRInDocumentsEnabled initial=true
162 cookieEnabled initial=true
163 mediaEnabled initial=true
164 DOMPasteAllowed initial=false
165
166 # When enabled, window.blur() does not change focus, and
167 # window.focus() only changes focus when invoked from the context that
168 # created the window.
169 windowFocusRestricted initial=true
170
171 diagnosticLoggingEnabled initial=false
172 delegatesPageScaling initial=false
173 plugInSnapshottingEnabled initial=false
174 snapshotAllPlugIns initial=false
175 autostartOriginPlugInSnapshottingEnabled initial=true
176 primaryPlugInSnapshotDetectionEnabled initial=true
177 maximumPlugInSnapshotAttempts type=unsigned, initial=20
178 frameFlatteningEnabled initial=false
179
180 allowCustomScrollbarInMainFrame initial=true
181 webSecurityEnabled initial=true
182 spatialNavigationEnabled initial=false
183
184 autoscrollForDragAndDropEnabled initial=false
185
186 unifiedTextCheckerEnabled initial=defaultUnifiedTextCheckerEnabled
187
188 logsPageMessagesToSystemConsoleEnabled initial=false
189
190 backForwardCacheExpirationInterval type=double, initial=1800
191
192 # Some apps could have a default video poster if it is not set.
193 defaultVideoPosterURL type=String
194
195 smartInsertDeleteEnabled initial=defaultSmartInsertDeleteEnabled
196 selectTrailingWhitespaceEnabled initial=defaultSelectTrailingWhitespaceEnabled
197
198 selectionIncludesAltImageText initial=true
199 useLegacyBackgroundSizeShorthandBehavior initial=false
200 fixedBackgroundsPaintRelativeToDocument initial=defaultFixedBackgroundsPaintRelativeToDocument
201
202 textAutosizingEnabled initial=defaultTextAutosizingEnabled(), setNeedsStyleRecalcInAllFrames=1, conditional=TEXT_AUTOSIZING
203 textAutosizingWindowSizeOverride type=IntSize, setNeedsStyleRecalcInAllFrames=1, conditional=TEXT_AUTOSIZING
204 minimumZoomFontSize type=float, initial=defaultMinimumZoomFontSize(), conditional=TEXT_AUTOSIZING
205
206 simpleLineLayoutEnabled initial=true, setNeedsStyleRecalcInAllFrames=1
207 simpleLineLayoutDebugBordersEnabled initial=false, setNeedsStyleRecalcInAllFrames=1
208
209 subpixelCSSOMElementMetricsEnabled initial=false
210
211 useGiantTiles initial=false
212
213 mediaSourceEnabled initial=true, conditional=MEDIA_SOURCE
214
215 # FIXME: Rename to allowMultiElementImplicitFormSubmission once we upstream the iOS changes to WebView.mm.
216 allowMultiElementImplicitSubmission initial=false
217
218 allowsAirPlayForMediaPlayback initial=true, conditional=WIRELESS_PLAYBACK_TARGET
219
220 shouldConvertPositionStyleOnCopy initial=false
221
222 maxParseDuration type=double, initial=-1
223 standalone initial=false
224 telephoneNumberParsingEnabled initial=false
225 mediaDataLoadsAutomatically initial=defaultMediaDataLoadsAutomatically
226 shouldTransformsAffectOverflow initial=true
227 shouldDispatchJavaScriptWindowOnErrorEvents initial=false
228 alwaysUseAcceleratedOverflowScroll initial=false
229 imageControlsEnabled initial=false, conditional=SERVICE_CONTROLS
230
231 enableInheritURIQueryComponent initial=false
232
233 aggressiveTileRetentionEnabled initial=false
234 temporaryTileCohortRetentionEnabled initial=true
235
236 useImageDocumentForSubframePDF initial=false
237 dataDetectorTypes type=DataDetectorTypes, initial=DataDetectorTypeNone, conditional=DATA_DETECTION
238
239 # Allow SourceBuffers to store up to 304MB each, enough for approximately five minutes
240 # of 1080p video and stereo audio.
241 maximumSourceBufferSize type=int, initial=318767104, conditional=MEDIA_SOURCE
242
243 serviceControlsEnabled initial=false, conditional=SERVICE_CONTROLS
244
245 appleMailPaginationQuirkEnabled initial=false
246
247 attachmentElementEnabled initial=true, conditional=ATTACHMENT_ELEMENT
248
249 newBlockInsideInlineModelEnabled initial=false, setNeedsStyleRecalcInAllFrames=1
250
251 newCSSParserEnabled initial=false
252
253 httpEquivEnabled initial=true
254
255 # Some ports (e.g. iOS) might choose to display attachments inline, regardless of whether the response includes the
256 # HTTP header "Content-Disposition: attachment". This setting enables a sandbox around these attachments. The sandbox
257 # enforces all frame sandbox flags (see enum SandboxFlag in SecurityContext.h), and also disables <meta http-equiv>
258 # processing and subframe loading.
259 contentDispositionAttachmentSandboxEnabled initial=false
260
261 userInterfaceDirectionPolicy type=UserInterfaceDirectionPolicy, initial=UserInterfaceDirectionPolicy::Content
262 systemLayoutDirection type=TextDirection, initial=LTR
263
264 allowContentSecurityPolicySourceStarToMatchAnyProtocol initial=false
265
266 allowWindowOpenWithoutUserGesture initial=false
267
268 selectionPaintingWithoutSelectionGapsEnabled initial=false
269
270 shouldConvertInvalidURLsToBlank initial=true
271
272 springTimingFunctionEnabled initial=false
273
274 treatIPAddressAsDomain initial=false
275
276 variationFontsEnabled initial=true, setNeedsStyleRecalcInAllFrames=1
277
278 # Runtime-enabled features
279 visualViewportEnabled initial=false
280
281 quickTimePluginReplacementEnabled initial=defaultQuickTimePluginReplacementEnabled
282 youTubeFlashPluginReplacementEnabled initial=defaultYouTubeFlashPluginReplacementEnabled