Title: [251860] tags/Safari-609.1.9/Source/WebKit
Revision
251860
Author
[email protected]
Date
2019-10-31 10:52:14 -0700 (Thu, 31 Oct 2019)

Log Message

Cherry-pick r251732. rdar://problem/56696055

    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:

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@251732 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: tags/Safari-609.1.9/Source/WebKit/ChangeLog (251859 => 251860)


--- tags/Safari-609.1.9/Source/WebKit/ChangeLog	2019-10-31 17:49:54 UTC (rev 251859)
+++ tags/Safari-609.1.9/Source/WebKit/ChangeLog	2019-10-31 17:52:14 UTC (rev 251860)
@@ -1,5 +1,42 @@
 2019-10-30  Alan Coon  <[email protected]>
 
+        Cherry-pick r251732. rdar://problem/56696055
+
+    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:
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@251732 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    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-30  Alan Coon  <[email protected]>
+
         Cherry-pick r251710. rdar://problem/56689789
 
     Unreviewed, rolling out r251594.

Modified: tags/Safari-609.1.9/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm (251859 => 251860)


--- tags/Safari-609.1.9/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm	2019-10-31 17:49:54 UTC (rev 251859)
+++ tags/Safari-609.1.9/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm	2019-10-31 17:52:14 UTC (rev 251860)
@@ -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: tags/Safari-609.1.9/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h (251859 => 251860)


--- tags/Safari-609.1.9/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h	2019-10-31 17:49:54 UTC (rev 251859)
+++ tags/Safari-609.1.9/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h	2019-10-31 17:52:14 UTC (rev 251860)
@@ -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