e5c267838e5b7211a44067442df1909e61f28a50
[WebKit-https.git] / Source / WebKit / mac / WebView / WebPreferencesPrivate.h
1 /*
2  * Copyright (C) 2005-2017 Apple Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * 1.  Redistributions of source code must retain the above copyright
9  *     notice, this list of conditions and the following disclaimer. 
10  * 2.  Redistributions in binary form must reproduce the above copyright
11  *     notice, this list of conditions and the following disclaimer in the
12  *     documentation and/or other materials provided with the distribution. 
13  * 3.  Neither the name of Apple Inc. ("Apple") nor the names of
14  *     its contributors may be used to endorse or promote products derived
15  *     from this software without specific prior written permission. 
16  *
17  * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
18  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20  * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
21  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  */
28
29 #import <WebKitLegacy/WebPreferences.h>
30
31 #if !TARGET_OS_IPHONE
32 #import <Quartz/Quartz.h>
33 #endif
34
35 typedef enum {
36     WebKitEditableLinkDefaultBehavior,
37     WebKitEditableLinkAlwaysLive,
38     WebKitEditableLinkOnlyLiveWithShiftKey,
39     WebKitEditableLinkLiveWhenNotFocused,
40     WebKitEditableLinkNeverLive
41 } WebKitEditableLinkBehavior;
42
43 typedef enum {
44     WebTextDirectionSubmenuNeverIncluded,
45     WebTextDirectionSubmenuAutomaticallyIncluded,
46     WebTextDirectionSubmenuAlwaysIncluded
47 } WebTextDirectionSubmenuInclusionBehavior;
48
49 typedef enum {
50     WebAllowAllStorage = 0,
51     WebBlockThirdPartyStorage,
52     WebBlockAllStorage
53 } WebStorageBlockingPolicy;
54
55 typedef enum {
56     WebKitJavaScriptRuntimeFlagsAllEnabled = 0
57 } WebKitJavaScriptRuntimeFlags;
58
59 extern NSString *WebPreferencesChangedNotification;
60 extern NSString *WebPreferencesRemovedNotification;
61 extern NSString *WebPreferencesChangedInternalNotification;
62 extern NSString *WebPreferencesCacheModelChangedInternalNotification;
63
64 @interface WebPreferences (WebPrivate)
65
66 // Preferences that might be public in a future release
67
68 - (BOOL)isDNSPrefetchingEnabled;
69 - (void)setDNSPrefetchingEnabled:(BOOL)flag;
70
71 - (BOOL)developerExtrasEnabled;
72 - (void)setDeveloperExtrasEnabled:(BOOL)flag;
73
74 - (WebKitJavaScriptRuntimeFlags)javaScriptRuntimeFlags;
75 - (void)setJavaScriptRuntimeFlags:(WebKitJavaScriptRuntimeFlags)flags;
76
77 - (BOOL)authorAndUserStylesEnabled;
78 - (void)setAuthorAndUserStylesEnabled:(BOOL)flag;
79
80 - (BOOL)applicationChromeModeEnabled;
81 - (void)setApplicationChromeModeEnabled:(BOOL)flag;
82
83 - (BOOL)usesEncodingDetector;
84 - (void)setUsesEncodingDetector:(BOOL)flag;
85
86 #if !TARGET_OS_IPHONE
87 - (BOOL)respectStandardStyleKeyEquivalents;
88 - (void)setRespectStandardStyleKeyEquivalents:(BOOL)flag;
89
90 - (BOOL)showsURLsInToolTips;
91 - (void)setShowsURLsInToolTips:(BOOL)flag;
92
93 - (BOOL)showsToolTipOverTruncatedText;
94 - (void)setShowsToolTipOverTruncatedText:(BOOL)flag;
95
96 - (BOOL)textAreasAreResizable;
97 - (void)setTextAreasAreResizable:(BOOL)flag;
98
99 - (PDFDisplayMode)PDFDisplayMode;
100 - (void)setPDFDisplayMode:(PDFDisplayMode)mode;
101 #endif
102
103 - (BOOL)shrinksStandaloneImagesToFit;
104 - (void)setShrinksStandaloneImagesToFit:(BOOL)flag;
105
106 - (BOOL)automaticallyDetectsCacheModel;
107 - (void)setAutomaticallyDetectsCacheModel:(BOOL)automaticallyDetectsCacheModel;
108
109 - (BOOL)domTimersThrottlingEnabled;
110 - (void)setDOMTimersThrottlingEnabled:(BOOL)domTimersThrottlingEnabled;
111
112 - (BOOL)webArchiveDebugModeEnabled;
113 - (void)setWebArchiveDebugModeEnabled:(BOOL)webArchiveDebugModeEnabled;
114
115 - (BOOL)localFileContentSniffingEnabled;
116 - (void)setLocalFileContentSniffingEnabled:(BOOL)localFileContentSniffingEnabled;
117
118 - (BOOL)offlineWebApplicationCacheEnabled;
119 - (void)setOfflineWebApplicationCacheEnabled:(BOOL)offlineWebApplicationCacheEnabled;
120
121 - (BOOL)databasesEnabled;
122 - (void)setDatabasesEnabled:(BOOL)databasesEnabled;
123
124 #if TARGET_OS_IPHONE
125 - (BOOL)storageTrackerEnabled;
126 - (void)setStorageTrackerEnabled:(BOOL)storageTrackerEnabled;
127 #endif
128
129 - (BOOL)localStorageEnabled;
130 - (void)setLocalStorageEnabled:(BOOL)localStorageEnabled;
131
132 - (BOOL)isWebSecurityEnabled;
133 - (void)setWebSecurityEnabled:(BOOL)flag;
134
135 - (BOOL)allowUniversalAccessFromFileURLs;
136 - (void)setAllowUniversalAccessFromFileURLs:(BOOL)flag;
137
138 - (BOOL)allowFileAccessFromFileURLs;
139 - (void)setAllowFileAccessFromFileURLs:(BOOL)flag;
140
141 - (BOOL)needsStorageAccessFromFileURLsQuirk;
142 - (void)setNeedsStorageAccessFromFileURLsQuirk:(BOOL)flag;
143
144 - (BOOL)zoomsTextOnly;
145 - (void)setZoomsTextOnly:(BOOL)zoomsTextOnly;
146
147 - (BOOL)javaScriptCanAccessClipboard;
148 - (void)setJavaScriptCanAccessClipboard:(BOOL)flag;
149
150 - (BOOL)isXSSAuditorEnabled;
151 - (void)setXSSAuditorEnabled:(BOOL)flag;
152
153 - (BOOL)experimentalNotificationsEnabled;
154 - (void)setExperimentalNotificationsEnabled:(BOOL)notificationsEnabled;
155
156 - (BOOL)isFrameFlatteningEnabled;
157 - (void)setFrameFlatteningEnabled:(BOOL)flag;
158
159 - (BOOL)isSpatialNavigationEnabled;
160 - (void)setSpatialNavigationEnabled:(BOOL)flag;
161
162 - (void)setSubtleCryptoEnabled:(BOOL)flag;
163 - (BOOL)subtleCryptoEnabled;
164
165 - (void)setMediaStreamEnabled:(BOOL)flag;
166 - (BOOL)mediaStreamEnabled;
167
168 - (void)setPeerConnectionEnabled:(BOOL)flag;
169 - (BOOL)peerConnectionEnabled;
170
171 #if !TARGET_OS_IPHONE
172 // zero means do AutoScale
173 - (float)PDFScaleFactor;
174 - (void)setPDFScaleFactor:(float)scale;
175 #endif
176
177 - (int64_t)applicationCacheTotalQuota;
178 - (void)setApplicationCacheTotalQuota:(int64_t)quota;
179
180 - (int64_t)applicationCacheDefaultOriginQuota;
181 - (void)setApplicationCacheDefaultOriginQuota:(int64_t)quota;
182
183 - (WebKitEditableLinkBehavior)editableLinkBehavior;
184 - (void)setEditableLinkBehavior:(WebKitEditableLinkBehavior)behavior;
185
186 - (WebTextDirectionSubmenuInclusionBehavior)textDirectionSubmenuInclusionBehavior;
187 - (void)setTextDirectionSubmenuInclusionBehavior:(WebTextDirectionSubmenuInclusionBehavior)behavior;
188
189 // Used to set preference specified in the test via LayoutTestController.overridePreference(..).
190 // For use with DumpRenderTree only.
191 - (void)_setPreferenceForTestWithValue:(NSString *)value forKey:(NSString *)key;
192
193 // If site-specific spoofing is enabled, some pages that do inappropriate user-agent string checks will be
194 // passed a nonstandard user-agent string to get them to work correctly. This method might be removed in
195 // the future when there's no more need for it.
196 - (BOOL)_useSiteSpecificSpoofing;
197 - (void)_setUseSiteSpecificSpoofing:(BOOL)newValue;
198
199 // WARNING: Allowing paste through the DOM API opens a security hole. We only use it for testing purposes.
200 - (BOOL)isDOMPasteAllowed;
201 - (void)setDOMPasteAllowed:(BOOL)DOMPasteAllowed;
202
203 - (NSString *)_ftpDirectoryTemplatePath;
204 - (void)_setFTPDirectoryTemplatePath:(NSString *)path;
205
206 - (void)_setForceFTPDirectoryListings:(BOOL)force;
207 - (BOOL)_forceFTPDirectoryListings;
208
209 - (NSString *)_localStorageDatabasePath;
210 - (void)_setLocalStorageDatabasePath:(NSString *)path;
211
212 - (BOOL)acceleratedDrawingEnabled;
213 - (void)setAcceleratedDrawingEnabled:(BOOL)enabled;
214
215 - (BOOL)displayListDrawingEnabled;
216 - (void)setDisplayListDrawingEnabled:(BOOL)enabled;
217
218 - (BOOL)resourceLoadStatisticsEnabled;
219 - (void)setResourceLoadStatisticsEnabled:(BOOL)enabled;
220
221 - (BOOL)canvasUsesAcceleratedDrawing;
222 - (void)setCanvasUsesAcceleratedDrawing:(BOOL)enabled;
223
224 - (BOOL)acceleratedCompositingEnabled;
225 - (void)setAcceleratedCompositingEnabled:(BOOL)enabled;
226
227 - (BOOL)showDebugBorders;
228 - (void)setShowDebugBorders:(BOOL)show;
229
230 - (BOOL)simpleLineLayoutEnabled;
231 - (void)setSimpleLineLayoutEnabled:(BOOL)enabled;
232
233 - (BOOL)simpleLineLayoutDebugBordersEnabled;
234 - (void)setSimpleLineLayoutDebugBordersEnabled:(BOOL)enabled;
235
236 - (BOOL)showRepaintCounter;
237 - (void)setShowRepaintCounter:(BOOL)show;
238
239 - (BOOL)webAudioEnabled;
240 - (void)setWebAudioEnabled:(BOOL)enabled;
241
242 - (BOOL)subpixelCSSOMElementMetricsEnabled;
243 - (void)setSubpixelCSSOMElementMetricsEnabled:(BOOL)enabled;
244
245 - (BOOL)webGLEnabled;
246 - (void)setWebGLEnabled:(BOOL)enabled;
247
248 - (BOOL)webGL2Enabled;
249 - (void)setWebGL2Enabled:(BOOL)enabled;
250
251 - (BOOL)forceSoftwareWebGLRendering;
252 - (void)setForceSoftwareWebGLRendering:(BOOL)forced;
253
254 - (BOOL)preferLowPowerWebGLRendering;
255 - (void)setPreferLowPowerWebGLRendering:(BOOL)preferLowPower;
256
257 - (BOOL)accelerated2dCanvasEnabled;
258 - (void)setAccelerated2dCanvasEnabled:(BOOL)enabled;
259
260 - (BOOL)paginateDuringLayoutEnabled;
261 - (void)setPaginateDuringLayoutEnabled:(BOOL)flag;
262
263 - (BOOL)hyperlinkAuditingEnabled;
264 - (void)setHyperlinkAuditingEnabled:(BOOL)enabled;
265
266 // Deprecated. Use -setVideoPlaybackRequiresUserGesture and -setAudioPlaybackRequiresUserGesture instead.
267 - (void)setMediaPlaybackRequiresUserGesture:(BOOL)flag;
268 // Deprecated. Use -videoPlaybackRequiresUserGesture and -audioPlaybackRequiresUserGesture instead.
269 - (BOOL)mediaPlaybackRequiresUserGesture;
270
271 - (void)setVideoPlaybackRequiresUserGesture:(BOOL)flag;
272 - (BOOL)videoPlaybackRequiresUserGesture;
273
274 - (void)setAudioPlaybackRequiresUserGesture:(BOOL)flag;
275 - (BOOL)audioPlaybackRequiresUserGesture;
276
277 - (void)setOverrideUserGestureRequirementForMainContent:(BOOL)flag;
278 - (BOOL)overrideUserGestureRequirementForMainContent;
279
280 - (void)setMediaPlaybackAllowsInline:(BOOL)flag;
281 - (BOOL)mediaPlaybackAllowsInline;
282
283 - (void)setInlineMediaPlaybackRequiresPlaysInlineAttribute:(BOOL)flag;
284 - (BOOL)inlineMediaPlaybackRequiresPlaysInlineAttribute;
285
286 - (void)setInvisibleAutoplayNotPermitted:(BOOL)flag;
287 - (BOOL)invisibleAutoplayNotPermitted;
288
289 - (void)setMediaControlsScaleWithPageZoom:(BOOL)flag;
290 - (BOOL)mediaControlsScaleWithPageZoom;
291
292 - (void)setAllowsAlternateFullscreen:(BOOL)flag;
293 - (BOOL)allowsAlternateFullscreen;
294
295 - (void)setAllowsPictureInPictureMediaPlayback:(BOOL)flag;
296 - (BOOL)allowsPictureInPictureMediaPlayback;
297
298 - (NSString *)pictographFontFamily;
299 - (void)setPictographFontFamily:(NSString *)family;
300
301 - (BOOL)pageCacheSupportsPlugins;
302 - (void)setPageCacheSupportsPlugins:(BOOL)flag;
303
304 // This is a global setting.
305 - (BOOL)mockScrollbarsEnabled;
306 - (void)setMockScrollbarsEnabled:(BOOL)flag;
307
308 #if TARGET_OS_IPHONE
309 // This is a global setting.
310 - (unsigned)audioSessionCategoryOverride;
311 - (void)setAudioSessionCategoryOverride:(unsigned)override;
312
313 - (BOOL)avKitEnabled;
314 - (void)setAVKitEnabled:(bool)flag;
315
316 // WARNING: this affect network performance. This must not be enabled for production use.
317 // Enabling this makes WebCore reports the network data usage.
318 // This is a global setting.
319 - (void)setNetworkDataUsageTrackingEnabled:(bool)trackingEnabled;
320 - (BOOL)networkDataUsageTrackingEnabled;
321
322 - (void)setNetworkInterfaceName:(NSString *)name;
323 - (NSString *)networkInterfaceName;
324
325 - (void)_setMinimumZoomFontSize:(float)size;
326 - (float)_minimumZoomFontSize;
327
328 // Deprecated. Has no effect.
329 - (void)setDiskImageCacheEnabled:(BOOL)enabled;
330
331 - (void)setMediaPlaybackAllowsAirPlay:(BOOL)flag;
332 - (BOOL)mediaPlaybackAllowsAirPlay;
333 #endif
334
335 - (void)_setTextAutosizingEnabled:(BOOL)enabled;
336 - (BOOL)_textAutosizingEnabled;
337
338 - (BOOL)isInheritURIQueryComponentEnabled;
339 - (void)setEnableInheritURIQueryComponent:(BOOL)flag;
340
341 // Other private methods
342 #if TARGET_OS_IPHONE
343 - (BOOL)_standalone;
344 - (void)_setStandalone:(BOOL)flag;
345 - (void)_setTelephoneNumberParsingEnabled:(BOOL)flag;
346 - (BOOL)_telephoneNumberParsingEnabled;
347 - (void)_setAllowMultiElementImplicitFormSubmission:(BOOL)flag;
348 - (BOOL)_allowMultiElementImplicitFormSubmission;
349 - (void)_setAlwaysRequestGeolocationPermission:(BOOL)flag;
350 - (BOOL)_alwaysRequestGeolocationPermission;
351 - (void)_setAlwaysUseAcceleratedOverflowScroll:(BOOL)flag;
352 - (BOOL)_alwaysUseAcceleratedOverflowScroll;
353 - (void)_setLayoutInterval:(int)milliseconds;
354 - (int)_layoutInterval; // Milliseonds.
355 - (void)_setMaxParseDuration:(float)d;
356 - (float)_maxParseDuration;
357 - (void)_setInterpolationQuality:(int)quality;
358 - (int)_interpolationQuality;
359 - (BOOL)_allowPasswordEcho;
360 - (float)_passwordEchoDuration;
361 #endif
362 - (void)_postPreferencesChangedNotification;
363 - (void)_postPreferencesChangedAPINotification;
364 + (WebPreferences *)_getInstanceForIdentifier:(NSString *)identifier;
365 + (void)_setInstance:(WebPreferences *)instance forIdentifier:(NSString *)identifier;
366 + (void)_removeReferenceForIdentifier:(NSString *)identifier;
367 - (NSTimeInterval)_backForwardCacheExpirationInterval;
368 + (CFStringEncoding)_systemCFStringEncoding;
369 + (void)_setInitialDefaultTextEncodingToSystemEncoding;
370 + (void)_setIBCreatorID:(NSString *)string;
371
372 // For DumpRenderTree use only.
373 + (void)_switchNetworkLoaderToNewTestingSession;
374 + (void)_setCurrentNetworkLoaderSessionCookieAcceptPolicy:(NSHTTPCookieAcceptPolicy)cookieAcceptPolicy;
375 + (void)_clearNetworkLoaderSession;
376
377 + (void)setWebKitLinkTimeVersion:(int)version;
378
379 // For WebView's use only.
380 - (void)willAddToWebView;
381 - (void)didRemoveFromWebView;
382
383 // Full screen support is dependent on WebCore/WebKit being
384 // compiled with ENABLE_FULLSCREEN_API. 
385 - (void)setFullScreenEnabled:(BOOL)flag;
386 - (BOOL)fullScreenEnabled;
387
388 - (void)setAsynchronousSpellCheckingEnabled:(BOOL)flag;
389 - (BOOL)asynchronousSpellCheckingEnabled;
390
391 - (void)setUsePreHTML5ParserQuirks:(BOOL)flag;
392 - (BOOL)usePreHTML5ParserQuirks;
393
394 - (void)setLoadsSiteIconsIgnoringImageLoadingPreference: (BOOL)flag;
395 - (BOOL)loadsSiteIconsIgnoringImageLoadingPreference;
396
397 // AVFoundation support is dependent on WebCore/WebKit being
398 // compiled with USE_AVFOUNDATION.
399 - (void)setAVFoundationEnabled:(BOOL)flag;
400 - (BOOL)isAVFoundationEnabled;
401
402 - (void)setAVFoundationNSURLSessionEnabled:(BOOL)flag;
403 - (BOOL)isAVFoundationNSURLSessionEnabled;
404
405 - (void)setQTKitEnabled:(BOOL)flag;
406 - (BOOL)isQTKitEnabled;
407
408 // Deprecated, has no effect.
409 - (void)setVideoPluginProxyEnabled:(BOOL)flag;
410 - (BOOL)isVideoPluginProxyEnabled;
411
412 // WebSocket support depends on ENABLE(WEB_SOCKETS).
413 - (void)setHixie76WebSocketProtocolEnabled:(BOOL)flag;
414 - (BOOL)isHixie76WebSocketProtocolEnabled;
415
416 #if TARGET_OS_IPHONE
417 - (void)_invalidateCachedPreferences;
418 - (void)_synchronizeWebStoragePolicyWithCookiePolicy;
419 #endif
420
421 - (void)setBackspaceKeyNavigationEnabled:(BOOL)flag;
422 - (BOOL)backspaceKeyNavigationEnabled;
423
424 - (void)setWantsBalancedSetDefersLoadingBehavior:(BOOL)flag;
425 - (BOOL)wantsBalancedSetDefersLoadingBehavior;
426
427 - (void)setShouldDisplaySubtitles:(BOOL)flag;
428 - (BOOL)shouldDisplaySubtitles;
429
430 - (void)setShouldDisplayCaptions:(BOOL)flag;
431 - (BOOL)shouldDisplayCaptions;
432
433 - (void)setShouldDisplayTextDescriptions:(BOOL)flag;
434 - (BOOL)shouldDisplayTextDescriptions;
435
436 - (void)setNotificationsEnabled:(BOOL)flag;
437 - (BOOL)notificationsEnabled;
438
439 - (void)setShouldRespectImageOrientation:(BOOL)flag;
440 - (BOOL)shouldRespectImageOrientation;
441
442 - (BOOL)requestAnimationFrameEnabled;
443 - (void)setRequestAnimationFrameEnabled:(BOOL)enabled;
444
445 - (void)setIncrementalRenderingSuppressionTimeoutInSeconds:(NSTimeInterval)timeout;
446 - (NSTimeInterval)incrementalRenderingSuppressionTimeoutInSeconds;
447
448 - (BOOL)diagnosticLoggingEnabled;
449 - (void)setDiagnosticLoggingEnabled:(BOOL)enabled;
450
451 - (void)setStorageBlockingPolicy:(WebStorageBlockingPolicy)storageBlockingPolicy;
452 - (WebStorageBlockingPolicy)storageBlockingPolicy;
453
454 - (BOOL)plugInSnapshottingEnabled;
455 - (void)setPlugInSnapshottingEnabled:(BOOL)enabled;
456
457 - (BOOL)hiddenPageDOMTimerThrottlingEnabled;
458 - (void)setHiddenPageDOMTimerThrottlingEnabled:(BOOL)flag;
459
460 - (BOOL)hiddenPageCSSAnimationSuspensionEnabled;
461 - (void)setHiddenPageCSSAnimationSuspensionEnabled:(BOOL)flag;
462
463 - (BOOL)lowPowerVideoAudioBufferSizeEnabled;
464 - (void)setLowPowerVideoAudioBufferSizeEnabled:(BOOL)enabled;
465
466 - (void)setUseLegacyTextAlignPositionedElementBehavior:(BOOL)flag;
467 - (BOOL)useLegacyTextAlignPositionedElementBehavior;
468
469 - (void)setMediaSourceEnabled:(BOOL)flag;
470 - (BOOL)mediaSourceEnabled;
471
472 - (void)setShouldConvertPositionStyleOnCopy:(BOOL)flag;
473 - (BOOL)shouldConvertPositionStyleOnCopy;
474
475 - (void)setImageControlsEnabled:(BOOL)flag;
476 - (BOOL)imageControlsEnabled;
477
478 - (void)setServiceControlsEnabled:(BOOL)flag;
479 - (BOOL)serviceControlsEnabled;
480
481 - (void)setGamepadsEnabled:(BOOL)flag;
482 - (BOOL)gamepadsEnabled;
483
484 - (void)setMediaKeysStorageDirectory:(NSString *)directory;
485 - (NSString *)mediaKeysStorageDirectory;
486
487 - (void)setMetaRefreshEnabled:(BOOL)flag;
488 - (BOOL)metaRefreshEnabled;
489
490 - (void)setHTTPEquivEnabled:(BOOL)flag;
491 - (BOOL)httpEquivEnabled;
492
493 - (void)setMockCaptureDevicesEnabled:(BOOL)flag;
494 - (BOOL)mockCaptureDevicesEnabled;
495
496 - (void)setMediaCaptureRequiresSecureConnection:(BOOL)flag;
497 - (BOOL)mediaCaptureRequiresSecureConnection;
498
499 - (void)setShadowDOMEnabled:(BOOL)flag;
500 - (BOOL)shadowDOMEnabled;
501
502 - (void)setCustomElementsEnabled:(BOOL)flag;
503 - (BOOL)customElementsEnabled;
504
505 - (void)setFetchAPIEnabled:(BOOL)flag;
506 - (BOOL)fetchAPIEnabled;
507
508 - (void)setDownloadAttributeEnabled:(BOOL)flag;
509 - (BOOL)downloadAttributeEnabled;
510
511 - (void)setCSSGridLayoutEnabled:(BOOL)flag;
512 - (BOOL)isCSSGridLayoutEnabled;
513
514 - (void)setWebAnimationsEnabled:(BOOL)flag;
515 - (BOOL)webAnimationsEnabled;
516
517 - (void)setModernMediaControlsEnabled:(BOOL)flag;
518 - (BOOL)modernMediaControlsEnabled;
519
520 @property (nonatomic) BOOL visualViewportEnabled;
521 @property (nonatomic) BOOL largeImageAsyncDecodingEnabled;
522 @property (nonatomic) BOOL animatedImageAsyncDecodingEnabled;
523 @property (nonatomic) BOOL javaScriptMarkupEnabled;
524 @property (nonatomic) BOOL mediaDataLoadsAutomatically;
525 @property (nonatomic) BOOL attachmentElementEnabled;
526 @property (nonatomic) BOOL allowsInlineMediaPlaybackAfterFullscreen;
527 @property (nonatomic) BOOL intersectionObserverEnabled;
528 @property (nonatomic) BOOL userTimingEnabled;
529 @property (nonatomic) BOOL resourceTimingEnabled;
530 @property (nonatomic) BOOL linkPreloadEnabled;
531
532 #if TARGET_OS_IPHONE
533 @property (nonatomic) BOOL quickLookDocumentSavingEnabled;
534 #endif
535
536 @end