|
Lines 84-93
- (void)awakeFromNib
a/Tools/MiniBrowser/mac/AppDelegate.m_sec1
|
| 84 |
|
84 |
|
| 85 |
if (!configuration) { |
85 |
if (!configuration) { |
| 86 |
configuration = [[WKWebViewConfiguration alloc] init]; |
86 |
configuration = [[WKWebViewConfiguration alloc] init]; |
| 87 |
configuration.preferences._fullScreenEnabled = YES; |
|
|
| 88 |
configuration.preferences._developerExtrasEnabled = YES; |
| 89 |
configuration.preferences._mediaDevicesEnabled = YES; |
| 90 |
configuration.preferences._mockCaptureDevicesEnabled = YES; |
| 91 |
|
87 |
|
| 92 |
_WKProcessPoolConfiguration *processConfiguration = [[[_WKProcessPoolConfiguration alloc] init] autorelease]; |
88 |
_WKProcessPoolConfiguration *processConfiguration = [[[_WKProcessPoolConfiguration alloc] init] autorelease]; |
| 93 |
processConfiguration.diskCacheSpeculativeValidationEnabled = ![SettingsController shared].networkCacheSpeculativeRevalidationDisabled; |
89 |
processConfiguration.diskCacheSpeculativeValidationEnabled = ![SettingsController shared].networkCacheSpeculativeRevalidationDisabled; |
|
Lines 117-122
- (void)awakeFromNib
a/Tools/MiniBrowser/mac/AppDelegate.m_sec2
|
| 117 |
enabled = [feature defaultValue]; |
113 |
enabled = [feature defaultValue]; |
| 118 |
[configuration.preferences _setEnabled:enabled forInternalDebugFeature:feature]; |
114 |
[configuration.preferences _setEnabled:enabled forInternalDebugFeature:feature]; |
| 119 |
} |
115 |
} |
|
|
116 |
|
| 117 |
configuration.preferences._fullScreenEnabled = YES; |
| 118 |
configuration.preferences._developerExtrasEnabled = YES; |
| 119 |
configuration.preferences._mediaDevicesEnabled = YES; |
| 120 |
configuration.preferences._mockCaptureDevicesEnabled = YES; |
| 121 |
configuration.preferences._webAuthenticationEnabled = YES; |
| 120 |
} |
122 |
} |
| 121 |
|
123 |
|
| 122 |
configuration.suppressesIncrementalRendering = [SettingsController shared].incrementalRenderingSuppressed; |
124 |
configuration.suppressesIncrementalRendering = [SettingsController shared].incrementalRenderingSuppressed; |