Changeset 209757 in webkit


Ignore:
Timestamp:
Dec 13, 2016, 8:59:55 AM (8 years ago)
Author:
eric.carlson@apple.com
Message:

Annotate MediaStream and WebRTC idl with EnabledAtRuntime flag
https://bugs.webkit.org/show_bug.cgi?id=165251

Reviewed by Youenn Fablet.

Source/WebCore:

No new tests, fixes an API test.

  • page/Settings.in: Delete mediaStreamEnabled and peerConnectionEnabled, we don't need a

setting and a runtime feature.

Source/WebKit2:

  • WebProcess/WebPage/WebPage.cpp:

(WebKit::WebPage::updatePreferences): Update the media stream and peer connection runtime
feature instead of the setting.

Tools:

  • TestWebKitAPI/Tests/WebKit2/EnumerateMediaDevices.cpp:

(TestWebKitAPI::TEST): Enable MediaStream, create web view from the page group upon which
the preferences have been set.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r209756 r209757  
     12016-12-13  Eric Carlson  <eric.carlson@apple.com>
     2
     3        Annotate MediaStream and WebRTC idl with EnabledAtRuntime flag
     4        https://bugs.webkit.org/show_bug.cgi?id=165251
     5
     6        Reviewed by Youenn Fablet.
     7
     8        No new tests, fixes an API test.
     9
     10        * page/Settings.in: Delete mediaStreamEnabled and peerConnectionEnabled, we don't need a
     11        setting and a runtime feature.
     12
    1132016-12-13  Antti Koivisto  <antti@apple.com>
    214
  • trunk/Source/WebCore/page/Settings.in

    r209643 r209757  
    116116fullScreenEnabled initial=false, conditional=FULLSCREEN_API
    117117asynchronousSpellCheckingEnabled initial=false
    118 mediaStreamEnabled initial=false
    119 peerConnectionEnabled initial=false
    120118
    121119# This feature requires an implementation of ValidationMessageClient.
  • trunk/Source/WebKit2/ChangeLog

    r209753 r209757  
     12016-12-13  Eric Carlson  <eric.carlson@apple.com>
     2
     3        Annotate MediaStream and WebRTC idl with EnabledAtRuntime flag
     4        https://bugs.webkit.org/show_bug.cgi?id=165251
     5
     6        Reviewed by Youenn Fablet.
     7
     8        * WebProcess/WebPage/WebPage.cpp:
     9        (WebKit::WebPage::updatePreferences): Update the media stream and peer connection runtime
     10        feature instead of the setting.
     11
    1122016-12-13  Sergio Villar Senin  <svillar@igalia.com>
    213
  • trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp

    r209683 r209757  
    30343034
    30353035#if ENABLE(MEDIA_STREAM)
    3036     settings.setMediaStreamEnabled(store.getBoolValueForKey(WebPreferencesKey::mediaStreamEnabledKey()));
     3036    RuntimeEnabledFeatures::sharedFeatures().setMediaStreamEnabled(store.getBoolValueForKey(WebPreferencesKey::mediaStreamEnabledKey()));
    30373037#endif
    30383038
    30393039#if ENABLE(WEB_RTC)
    3040     settings.setPeerConnectionEnabled(store.getBoolValueForKey(WebPreferencesKey::peerConnectionEnabledKey()));
     3040    RuntimeEnabledFeatures::sharedFeatures().setPeerConnectionEnabled(store.getBoolValueForKey(WebPreferencesKey::peerConnectionEnabledKey()));
    30413041#endif
    30423042
  • trunk/Tools/ChangeLog

    r209717 r209757  
     12016-12-13  Eric Carlson  <eric.carlson@apple.com>
     2
     3        Annotate MediaStream and WebRTC idl with EnabledAtRuntime flag
     4        https://bugs.webkit.org/show_bug.cgi?id=165251
     5
     6        Reviewed by Youenn Fablet.
     7
     8        * TestWebKitAPI/Tests/WebKit2/EnumerateMediaDevices.cpp:
     9        (TestWebKitAPI::TEST): Enable MediaStream, create web view from the page group upon which
     10        the preferences have been set.
     11
    1122016-12-08  Antti Koivisto  <antti@apple.com>
    213
  • trunk/Tools/TestWebKitAPI/Tests/WebKit2/EnumerateMediaDevices.cpp

    r209512 r209757  
    5454    WKRetainPtr<WKPageGroupRef> pageGroup(AdoptWK, WKPageGroupCreateWithIdentifier(Util::toWK("EnumerateDevices").get()));
    5555    WKPreferencesRef preferences = WKPageGroupGetPreferences(pageGroup.get());
     56    WKPreferencesSetMediaStreamEnabled(preferences, true);
    5657    WKPreferencesSetFileAccessFromFileURLsAllowed(preferences, true);
    5758    WKPreferencesSetMediaCaptureRequiresSecureConnection(preferences, false);
     
    6263    uiClient.checkUserMediaPermissionForOrigin = checkUserMediaPermissionCallback;
    6364
    64     PlatformWebView webView(context.get());
     65    PlatformWebView webView(context.get(), pageGroup.get());
    6566    WKPageSetPageUIClient(webView.page(), &uiClient.base);
    6667
Note: See TracChangeset for help on using the changeset viewer.