Bug 1159659 - Allow tab sharing on XP and OSX 10.6. r=pkerr, a=lizzard
authorMaire Reavy <mreavy@mozilla.com>
Fri, 01 May 2015 08:55:33 -0400
changeset 265877 3459985784d0a2bff504044ac2cdb2b43f97a443
parent 265876 e84ae588f726a930872042634616fae409625e23
child 265878 1f1699b0cec116270a238af733008655c70f2589
push id4718
push userraliiev@mozilla.com
push dateMon, 11 May 2015 18:39:53 +0000
treeherdermozilla-beta@c20c4ef55f08 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspkerr, lizzard
bugs1159659
milestone39.0a2
Bug 1159659 - Allow tab sharing on XP and OSX 10.6. r=pkerr, a=lizzard
dom/media/MediaManager.cpp
--- a/dom/media/MediaManager.cpp
+++ b/dom/media/MediaManager.cpp
@@ -1834,16 +1834,18 @@ MediaManager::GetUserMedia(
       // the requesting document is not from a host on the whitelist, or
       // we're on Mac OSX 10.6 and WinXP until proved that they work
       if (!Preferences::GetBool(((src == dom::MediaSourceEnum::Browser)?
                                 "media.getusermedia.browser.enabled" :
                                 "media.getusermedia.screensharing.enabled"),
                                 false) ||
 #if defined(XP_MACOSX) || defined(XP_WIN)
           (
+            // Allow tab sharing for all platforms including XP and OSX 10.6
+            (src != dom::MediaSourceEnum::Browser) &&
             !Preferences::GetBool("media.getusermedia.screensharing.allow_on_old_platforms",
                                   false) &&
 #if defined(XP_MACOSX)
             !nsCocoaFeatures::OnLionOrLater()
 #endif
 #if defined (XP_WIN)
             !IsVistaOrLater()
 #endif