Title: [251732] trunk/Source/WebKit
Revision
251732
Author
[email protected]
Date
2019-10-29 13:58:46 -0700 (Tue, 29 Oct 2019)

Log Message

REGRESSION (r251413): Nightly build crashes on launch due to -[WKPreferences _setShouldAllowDesignSystemUIFonts:]: unrecognized selector
https://bugs.webkit.org/show_bug.cgi?id=203549

Reviewed by Simon Fraser.

r251413 deleted an SPI that new Safari stopped calling. However,
old Safari continues to call it. The solution is just to add stub
implementations so old Safari doesn't fail to link at runtime.

* UIProcess/API/Cocoa/WKPreferences.mm:
(-[WKPreferences _shouldAllowDesignSystemUIFonts]):
(-[WKPreferences _setShouldAllowDesignSystemUIFonts:]):
* UIProcess/API/Cocoa/WKPreferencesPrivate.h:

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (251731 => 251732)


--- trunk/Source/WebKit/ChangeLog	2019-10-29 20:39:15 UTC (rev 251731)
+++ trunk/Source/WebKit/ChangeLog	2019-10-29 20:58:46 UTC (rev 251732)
@@ -1,3 +1,19 @@
+2019-10-29  Myles C. Maxfield  <[email protected]>
+
+        REGRESSION (r251413): Nightly build crashes on launch due to -[WKPreferences _setShouldAllowDesignSystemUIFonts:]: unrecognized selector
+        https://bugs.webkit.org/show_bug.cgi?id=203549
+
+        Reviewed by Simon Fraser.
+
+        r251413 deleted an SPI that new Safari stopped calling. However,
+        old Safari continues to call it. The solution is just to add stub
+        implementations so old Safari doesn't fail to link at runtime.
+
+        * UIProcess/API/Cocoa/WKPreferences.mm:
+        (-[WKPreferences _shouldAllowDesignSystemUIFonts]):
+        (-[WKPreferences _setShouldAllowDesignSystemUIFonts:]):
+        * UIProcess/API/Cocoa/WKPreferencesPrivate.h:
+
 2019-10-27  Wenson Hsieh  <[email protected]>
 
         Add enterkeyhint support

Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm (251731 => 251732)


--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm	2019-10-29 20:39:15 UTC (rev 251731)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm	2019-10-29 20:58:46 UTC (rev 251732)
@@ -713,6 +713,17 @@
     _preferences->setShouldAllowUserInstalledFonts(_shouldAllowUserInstalledFonts);
 }
 
+- (BOOL)_shouldAllowDesignSystemUIFonts
+{
+    // These fonts are always enabled. This function only exists for binary compatibility.
+    return YES;
+}
+
+- (void)_setShouldAllowDesignSystemUIFonts:(BOOL)_shouldAllowDesignSystemUIFonts
+{
+    // These fonts are always enabled. This function only exists for binary compatibility.
+}
+
 static _WKEditableLinkBehavior toAPI(WebCore::EditableLinkBehavior behavior)
 {
     switch (behavior) {

Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h (251731 => 251732)


--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h	2019-10-29 20:39:15 UTC (rev 251731)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h	2019-10-29 20:58:46 UTC (rev 251732)
@@ -126,6 +126,7 @@
 @property (nonatomic, setter=_setDOMPasteAllowed:) BOOL _domPasteAllowed WK_API_AVAILABLE(macos(10.13), ios(11.0));
 
 @property (nonatomic, setter=_setShouldAllowUserInstalledFonts:) BOOL _shouldAllowUserInstalledFonts WK_API_AVAILABLE(macos(10.13.4), ios(11.3));
+@property (nonatomic, setter=_setShouldAllowDesignSystemUIFonts:) BOOL _shouldAllowDesignSystemUIFonts WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA));
 
 @property (nonatomic, setter=_setEditableLinkBehavior:) _WKEditableLinkBehavior _editableLinkBehavior WK_API_AVAILABLE(macos(10.13.4), ios(11.3));
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to