Changeset 288505 in webkit
- Timestamp:
- Jan 24, 2022, 5:55:17 PM (5 years ago)
- Location:
- branches/safari-613-branch/Source/WebKit
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/API/Cocoa/WKPreferences.mm (modified) (1 diff)
-
UIProcess/API/Cocoa/WKPreferencesPrivate.h (modified) (1 diff)
-
UIProcess/Cocoa/WKWebViewContentProviderRegistry.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-613-branch/Source/WebKit/ChangeLog
r288501 r288505 1 2022-01-24 Alan Coon <alancoon@apple.com> 2 3 Cherry-pick r288034. rdar://problem/86341944 4 5 REGRESSION: ARKit example loads a page full of random symbols instead of a 3D model 6 https://bugs.webkit.org/show_bug.cgi?id=235254 7 8 Reviewed by Tim Horton. 9 10 When we enabled the ModelDocument support, we disabled the ContentProvider path. 11 This was a mistake - it has to be a runtime check. 12 13 * UIProcess/API/Cocoa/WKPreferences.mm: Expose the ModelDocumentEnabled WebPreference so that 14 it can be read from a WKWebViewConfiguration. 15 (-[WKPreferences _setModelDocumentEnabled:]): 16 (-[WKPreferences _modelDocumentEnabled]): 17 * UIProcess/API/Cocoa/WKPreferencesPrivate.h: 18 * UIProcess/Cocoa/WKWebViewContentProviderRegistry.mm: Rather than the compile-time test, check the 19 WebPreferences to see if ModelDocument is disabled. 20 (-[WKWebViewContentProviderRegistry initWithConfiguration:]): 21 22 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288034 268f45cc-cd09-0410-ab3c-d52691b4dbfc 23 24 2022-01-14 Dean Jackson <dino@apple.com> 25 26 REGRESSION: ARKit example loads a page full of random symbols instead of a 3D model 27 https://bugs.webkit.org/show_bug.cgi?id=235254 28 29 Reviewed by Tim Horton. 30 31 When we enabled the ModelDocument support, we disabled the ContentProvider path. 32 This was a mistake - it has to be a runtime check. 33 34 * UIProcess/API/Cocoa/WKPreferences.mm: Expose the ModelDocumentEnabled WebPreference so that 35 it can be read from a WKWebViewConfiguration. 36 (-[WKPreferences _setModelDocumentEnabled:]): 37 (-[WKPreferences _modelDocumentEnabled]): 38 * UIProcess/API/Cocoa/WKPreferencesPrivate.h: 39 * UIProcess/Cocoa/WKWebViewContentProviderRegistry.mm: Rather than the compile-time test, check the 40 WebPreferences to see if ModelDocument is disabled. 41 (-[WKWebViewContentProviderRegistry initWithConfiguration:]): 42 1 43 2022-01-24 Alan Coon <alancoon@apple.com> 2 44 -
branches/safari-613-branch/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm
r287121 r288505 1561 1561 } 1562 1562 1563 - (void)_setModelDocumentEnabled:(BOOL)enabled 1564 { 1565 _preferences->setModelDocumentEnabled(enabled); 1566 } 1567 1568 - (BOOL)_modelDocumentEnabled 1569 { 1570 return _preferences->modelDocumentEnabled(); 1571 } 1572 1563 1573 @end 1564 1565 1574 1566 1575 @implementation WKPreferences (WKDeprecated) -
branches/safari-613-branch/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h
r286911 r288505 178 178 @property (nonatomic, setter=_setAccessHandleEnabled:) BOOL _accessHandleEnabled WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); 179 179 @property (nonatomic, setter=_setNotificationsEnabled:) BOOL _notificationsEnabled WK_API_AVAILABLE(macos(10.13.4), ios(WK_IOS_TBA)); 180 @property (nonatomic, setter=_setModelDocumentEnabled:) BOOL _modelDocumentEnabled WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); 180 181 181 182 #if !TARGET_OS_IPHONE -
branches/safari-613-branch/Source/WebKit/UIProcess/Cocoa/WKWebViewContentProviderRegistry.mm
r285936 r288505 31 31 #import "WKPDFView.h" 32 32 #import "WKUSDPreviewView.h" 33 #import <WebKit/WKWebViewConfigurationPrivate.h>34 33 #import "WKWebViewInternal.h" 35 34 #import "WebPageProxy.h" 36 35 #import <WebCore/MIMETypeRegistry.h> 36 #import <WebKit/WKPreferencesPrivate.h> 37 #import <WebKit/WKWebViewConfigurationPrivate.h> 37 38 #import <wtf/FixedVector.h> 38 39 #import <wtf/HashCountedSet.h> … … 55 56 #endif 56 57 57 #if USE(SYSTEM_PREVIEW) && !HAVE(UIKIT_WEBKIT_INTERNALS) && !ENABLE(MODEL_ELEMENT)58 if (configuration._systemPreviewEnabled ) {58 #if USE(SYSTEM_PREVIEW) && !HAVE(UIKIT_WEBKIT_INTERNALS) 59 if (configuration._systemPreviewEnabled && !configuration.preferences._modelDocumentEnabled) { 59 60 for (auto& type : WebCore::MIMETypeRegistry::usdMIMETypes()) 60 61 [self registerProvider:[WKUSDPreviewView class] forMIMEType:@(type)];
Note:
See TracChangeset
for help on using the changeset viewer.