Title: [215271] trunk/Source/WebKit2
Revision
215271
Author
[email protected]
Date
2017-04-12 10:23:09 -0700 (Wed, 12 Apr 2017)

Log Message

Allow iOS to toggle webRTCAPI legacy flag.
https://bugs.webkit.org/show_bug.cgi?id=170735

Patch by Andrew Gold <[email protected]> on 2017-04-12
Reviewed by Eric Carlson.

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

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (215270 => 215271)


--- trunk/Source/WebKit2/ChangeLog	2017-04-12 17:19:57 UTC (rev 215270)
+++ trunk/Source/WebKit2/ChangeLog	2017-04-12 17:23:09 UTC (rev 215271)
@@ -1,3 +1,15 @@
+2017-04-12  Andrew Gold  <[email protected]>
+
+        Allow iOS to toggle webRTCAPI legacy flag.
+        https://bugs.webkit.org/show_bug.cgi?id=170735
+
+        Reviewed by Eric Carlson.
+
+        * UIProcess/API/Cocoa/WKPreferences.mm:
+        (-[WKPreferences _webRTCLegacyAPIEnabled]):
+        (-[WKPreferences _setWebRTCLegacyAPIEnabled:]):
+        * UIProcess/API/Cocoa/WKPreferencesPrivate.h:
+
 2017-04-12  Yusuke Suzuki  <[email protected]>
 
         Unreviewed, build fix for GTK port after r215262

Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm (215270 => 215271)


--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm	2017-04-12 17:19:57 UTC (rev 215270)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm	2017-04-12 17:23:09 UTC (rev 215271)
@@ -587,6 +587,16 @@
     _preferences->setICECandidateFilteringEnabled(enabled);
 }
 
+- (BOOL)_webRTCLegacyAPIEnabled
+{
+    return _preferences->webRTCLegacyAPIEnabled();
+}
+
+- (void)_setWebRTCLegacyAPIEnabled:(BOOL)enabled
+{
+    _preferences->setWebRTCLegacyAPIEnabled(enabled);
+}
+
 @end
 
 #endif // WK_API_ENABLED

Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferencesPrivate.h (215270 => 215271)


--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferencesPrivate.h	2017-04-12 17:19:57 UTC (rev 215270)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferencesPrivate.h	2017-04-12 17:23:09 UTC (rev 215271)
@@ -102,6 +102,7 @@
 @property (nonatomic, setter=_setMediaCaptureRequiresSecureConnection:) BOOL _mediaCaptureRequiresSecureConnection WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
 @property (nonatomic, setter=_setEnumeratingAllNetworkInterfacesEnabled:) BOOL _enumeratingAllNetworkInterfacesEnabled WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
 @property (nonatomic, setter=_setICECandidateFilteringEnabled:) BOOL _iceCandidateFiltertingEnabled WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
+@property (nonatomic, setter=_setWebRTCLegacyAPIEnabled:) BOOL _webRTCLegacyAPIEnabled WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
 
 + (NSArray<_WKExperimentalFeature *> *)_experimentalFeatures WK_API_AVAILABLE(macosx(10.12), ios(10.0));
 - (BOOL)_isEnabledForFeature:(_WKExperimentalFeature *)feature WK_API_AVAILABLE(macosx(10.12), ios(10.0));
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to