Changeset 235553 in webkit


Ignore:
Timestamp:
Aug 31, 2018 8:52:45 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

REGRESSION(r235484) _WKPreferencesGetWebRTCLegacyAPIEnabled symbol not found when running Safari with external SDK build
https://bugs.webkit.org/show_bug.cgi?id=189188

Patch by Frederic Wang <fwang@igalia.com> on 2018-08-31
Reviewed by Youenn Fablet.

WebRTCLegacyAPI preference has been removed in r235484. However, the API is still used by
Safari when running external SDK builds. Hence we restore some dummy getter/setter for now.

  • UIProcess/API/C/WKPreferences.cpp:

(WKPreferencesSetWebRTCLegacyAPIEnabled): no-op.
(WKPreferencesGetWebRTCLegacyAPIEnabled): Always return false.

  • UIProcess/API/C/WKPreferencesRef.h:
  • UIProcess/API/Cocoa/WKPreferences.mm:

(-[WKPreferences _webRTCLegacyAPIEnabled]): Always return false.
(-[WKPreferences _setWebRTCLegacyAPIEnabled:]): no-op.

  • UIProcess/API/Cocoa/WKPreferencesPrivate.h:
Location:
trunk/Source/WebKit
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r235539 r235553  
     12018-08-31  Frederic Wang  <fwang@igalia.com>
     2
     3        REGRESSION(r235484) _WKPreferencesGetWebRTCLegacyAPIEnabled symbol not found when running Safari with external SDK build
     4        https://bugs.webkit.org/show_bug.cgi?id=189188
     5
     6        Reviewed by Youenn Fablet.
     7
     8        WebRTCLegacyAPI preference has been removed in r235484. However, the API is still used by
     9        Safari when running external SDK builds. Hence we restore some dummy getter/setter for now.
     10
     11        * UIProcess/API/C/WKPreferences.cpp:
     12        (WKPreferencesSetWebRTCLegacyAPIEnabled): no-op.
     13        (WKPreferencesGetWebRTCLegacyAPIEnabled): Always return false.
     14        * UIProcess/API/C/WKPreferencesRef.h:
     15        * UIProcess/API/Cocoa/WKPreferences.mm:
     16        (-[WKPreferences _webRTCLegacyAPIEnabled]): Always return false.
     17        (-[WKPreferences _setWebRTCLegacyAPIEnabled:]): no-op.
     18        * UIProcess/API/Cocoa/WKPreferencesPrivate.h:
     19
    1202018-08-31  Frederic Wang  <fwang@igalia.com>
    221
  • trunk/Source/WebKit/UIProcess/API/C/WKPreferences.cpp

    r235539 r235553  
    14291429}
    14301430
     1431void WKPreferencesSetWebRTCLegacyAPIEnabled(WKPreferencesRef, bool)
     1432{
     1433}
     1434
     1435bool WKPreferencesGetWebRTCLegacyAPIEnabled(WKPreferencesRef)
     1436{
     1437    return false;
     1438}
     1439
    14311440void WKPreferencesSetWebRTCMDNSICECandidatesEnabled(WKPreferencesRef preferencesRef, bool enabled)
    14321441{
  • trunk/Source/WebKit/UIProcess/API/C/WKPreferencesRef.h

    r235484 r235553  
    269269WK_EXPORT bool WKPreferencesGetPeerConnectionEnabled(WKPreferencesRef preferencesRef);
    270270
     271// This is for backward compatibility with external SDK builds (https://webkit.org/b/189188).
     272// FIXME: Remove these API functions.
     273WK_EXPORT void WKPreferencesSetWebRTCLegacyAPIEnabled(WKPreferencesRef preferencesRef, bool enabled);
     274WK_EXPORT bool WKPreferencesGetWebRTCLegacyAPIEnabled(WKPreferencesRef preferencesRef);
     275
    271276// Defaults to false
    272277WK_EXPORT void WKPreferencesSetWebRTCMDNSICECandidatesEnabled(WKPreferencesRef preferencesRef, bool enabled);
  • trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm

    r235484 r235553  
    670670}
    671671
     672- (BOOL)_webRTCLegacyAPIEnabled
     673{
     674    return NO;
     675}
     676
     677- (void)_setWebRTCLegacyAPIEnabled:(BOOL)enabled
     678{
     679}
     680
    672681- (void)_setJavaScriptCanAccessClipboard:(BOOL)javaScriptCanAccessClipboard
    673682{
  • trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h

    r235484 r235553  
    119119@property (nonatomic, setter=_setEnumeratingAllNetworkInterfacesEnabled:) BOOL _enumeratingAllNetworkInterfacesEnabled WK_API_AVAILABLE(macosx(10.13), ios(11.0));
    120120@property (nonatomic, setter=_setICECandidateFilteringEnabled:) BOOL _iceCandidateFilteringEnabled WK_API_AVAILABLE(macosx(10.13.4), ios(11.3));
     121@property (nonatomic, setter=_setWebRTCLegacyAPIEnabled:) BOOL _webRTCLegacyAPIEnabled WK_API_AVAILABLE(macosx(10.13), ios(11.0));
    121122@property (nonatomic, setter=_setInactiveMediaCaptureSteamRepromptIntervalInMinutes:) double _inactiveMediaCaptureSteamRepromptIntervalInMinutes WK_API_AVAILABLE(macosx(10.13.4), ios(11.3));
    122123
Note: See TracChangeset for help on using the changeset viewer.