e7991eadcc140307fc09767beff214a53bf7ebad
[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 passwordEchoDurationInSeconds type=double, initial=1
10
11 # Sets the magnification value for validation message timer.  If the
12 # magnification value is N, a validation message disappears automatically after
13 # <message length> * N / 1000 seconds.  If N is equal to or less than 0, a
14 # validation message doesn't disappears automaticaly.
15 validationMessageTimerMagnification type=int, initial=50
16
17 # Number of pixels below which 2D canvas is rendered in software
18 # even if hardware acceleration is enabled.
19 # Hardware acceleration is useful for large canvases where it can avoid the
20 # pixel bandwidth between the CPU and GPU. But GPU acceleration comes at
21 # a price - extra back-buffer and texture copy. Small canvases are also
22 # widely used for stylized fonts. Anti-aliasing text in hardware at that
23 # scale is generally slower. So below a certain size it is better to
24 # draw canvas in software.
25 minimumAccelerated2dCanvasSize type=int, initial=257*256
26
27 layoutFallbackWidth type=int, initial=980
28 maximumDecodedImageSize type=size_t, initial=numeric_limits<size_t>::max()
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=0, 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 localStorageEnabled initial=false
50 allowUniversalAccessFromFileURLs initial=true
51 allowFileAccessFromFileURLs initial=true
52 javaScriptCanOpenWindowsAutomatically initial=false
53 supportsMultipleWindows initial=true
54 javaScriptCanAccessClipboard initial=false
55 shouldPrintBackgrounds initial=false
56 usesDashboardBackwardCompatibilityMode initial=false, conditional=DASHBOARD_SUPPORT
57
58 screenFontSubstitutionEnabled initial=true, setNeedsStyleRecalcInAllFrames=1
59 textAreasAreResizable initial=false, setNeedsStyleRecalcInAllFrames=1
60 authorAndUserStylesEnabled initial=true, setNeedsStyleRecalcInAllFrames=1
61 acceleratedCompositingEnabled initial=true, setNeedsStyleRecalcInAllFrames=1
62 showDebugBorders initial=false, setNeedsStyleRecalcInAllFrames=1
63 showRepaintCounter initial=false, setNeedsStyleRecalcInAllFrames=1
64
65 # This is a quirk we are pro-actively applying to old applications. It changes keyboard event dispatching,
66 # making keyIdentifier available on keypress events, making charCode available on keydown/keyup events,
67 # and getting keypress dispatched in more cases.
68 needsKeyboardEventDisambiguationQuirks initial=false
69
70 treatsAnyTextCSSLinkAsStylesheet initial=false
71 needsLeopardMailQuirks initial=false
72 shrinksStandaloneImagesToFit initial=true
73 pageCacheSupportsPlugins initial=false
74 showsURLsInToolTips initial=false
75 showsToolTipOverTruncatedText initial=false
76 forceFTPDirectoryListings initial=false
77 developerExtrasEnabled initial=false
78 javaScriptExperimentsEnabled initial=false
79 needsSiteSpecificQuirks initial=false
80 webArchiveDebugModeEnabled initial=false, conditional=WEB_ARCHIVE
81 localFileContentSniffingEnabled initial=false
82 offlineWebApplicationCacheEnabled initial=false
83 enforceCSSMIMETypeInNoQuirksMode initial=true
84 usesEncodingDetector initial=false
85 allowScriptsToCloseWindows initial=false
86 canvasUsesAcceleratedDrawing initial=false
87 acceleratedDrawingEnabled initial=false
88 acceleratedFiltersEnabled initial=false
89 regionBasedColumnsEnabled initial=false
90 cssGridLayoutEnabled initial=false
91
92 # FIXME: This should really be disabled by default as it makes platforms that don't support the feature download files
93 # they can't use by. Leaving enabled for now to not change existing behavior.
94 downloadableBinaryFontsEnabled initial=true
95
96 xssAuditorEnabled initial=false
97 unsafePluginPastingEnabled initial=true
98 acceleratedCompositingFor3DTransformsEnabled initial=true
99 acceleratedCompositingForVideoEnabled initial=true
100 acceleratedCompositingForPluginsEnabled initial=true
101 acceleratedCompositingForCanvasEnabled initial=true
102 acceleratedCompositingForAnimationEnabled initial=true
103 acceleratedCompositingForFixedPositionEnabled initial=false
104 acceleratedCompositingForOverflowScrollEnabled initial=false
105
106 # Works only in conjunction with forceCompositingMode.
107 acceleratedCompositingForScrollableFramesEnabled initial=false
108 compositedScrollingForFramesEnabled initial=false
109
110 experimentalNotificationsEnabled initial=false
111 webGLEnabled initial=false
112 webGLErrorsToConsoleEnabled initial=true
113 openGLMultisamplingEnabled initial=true
114 privilegedWebGLExtensionsEnabled initial=false
115 accelerated2dCanvasEnabled initial=false
116 deferred2dCanvasEnabled initial=false
117 antialiased2dCanvasEnabled initial=true
118 loadDeferringEnabled initial=true
119 webAudioEnabled initial=false
120 paginateDuringLayoutEnabled initial=false
121 fullScreenEnabled initial=false, conditional=FULLSCREEN_API
122 asynchronousSpellCheckingEnabled initial=false
123 memoryInfoEnabled initial=false
124 quantizedMemoryInfoEnabled initial=false
125
126 # This feature requires an implementation of ValidationMessageClient.
127 interactiveFormValidationEnabled initial=false
128
129 usePreHTML5ParserQuirks initial=false
130 hyperlinkAuditingEnabled initial=false
131 crossOriginCheckInGetMatchedCSSRulesDisabled initial=false
132 forceCompositingMode initial=false
133 shouldInjectUserScriptsInInitialEmptyDocument initial=false
134 fixedElementsLayoutRelativeToFrame initial=false
135 allowDisplayOfInsecureContent initial=true
136 allowRunningOfInsecureContent initial=true
137 mediaPlaybackRequiresUserGesture initial=false
138 mediaPlaybackAllowsInline initial=true
139 passwordEchoEnabled initial=false
140 suppressesIncrementalRendering initial=false
141 incrementalRenderingSuppressionTimeoutInSeconds type=double, initial=defaultIncrementalRenderingSuppressionTimeoutInSeconds
142 backspaceKeyNavigationEnabled initial=true
143 visualWordMovementEnabled initial=false
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 notificationsEnabled initial=true
149
150 # Some apps needs isLoadingInAPISense to account for active subresource loaders.
151 needsIsLoadingInAPISenseQuirk initial=false
152
153 shouldRespectImageOrientation initial=false
154 wantsBalancedSetDefersLoadingBehavior initial=false
155 requestAnimationFrameEnabled initial=true
156 deviceSupportsTouch initial=false
157 deviceSupportsMouse initial=true
158
159 # For touch adjustment to apply, the compile option TOUCH_ADJUSTMENT must also be enabled.
160 # This setting adds a means to dynamically disable the feature at runtime on systems with
161 # support for touch adjustment.
162 touchAdjustmentEnabled initial=true
163
164 needsDidFinishLoadOrderQuirk initial=false
165 fixedPositionCreatesStackingContext initial=false
166 syncXHRInDocumentsEnabled initial=true
167 cookieEnabled initial=true
168 mediaEnabled initial=true
169 applicationChromeMode initial=false
170 DOMPasteAllowed initial=false
171
172 threadedHTMLParser initial=false, conditional=THREADED_HTML_PARSER
173 useThreadedHTMLParserForDataURLs initial=false, conditional=THREADED_HTML_PARSER
174
175 # When enabled, window.blur() does not change focus, and
176 # window.focus() only changes focus when invoked from the context that
177 # created the window.
178 windowFocusRestricted initial=true
179
180 diagnosticLoggingEnabled initial=false
181 applyDeviceScaleFactorInCompositor initial=true
182 applyPageScaleFactorInCompositor initial=false
183 plugInSnapshottingEnabled initial=false
184 frameFlatteningEnabled initial=false
185
186 allowCustomScrollbarInMainFrame initial=true
187 webSecurityEnabled initial=true
188 spatialNavigationEnabled initial=false
189
190 # This setting adds a means to enable/disable touch initiated drag & drop. If
191 # enabled, the user can initiate drag using long press.
192 touchDragDropEnabled initial=false
193
194 unifiedTextCheckerEnabled initial=defaultUnifiedTextCheckerEnabled
195
196 logsPageMessagesToSystemConsoleEnabled initial=false
197
198 smartInsertDeleteEnabled initial=true