Closed
Bug 947429
Opened 11 years ago
Closed 11 years ago
Provide prefs to allow disabling of video gUM and video PeerConnections
Categories
(Core :: WebRTC, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox28 | --- | fixed |
People
(Reporter: jesup, Assigned: jesup)
Details
(Whiteboard: [qa-])
Attachments
(1 file)
5.17 KB,
patch
|
jib
:
review+
|
Details | Diff | Splinter Review |
This is so we can safely enable/disable these features at any point with minimal risk.
Starts out with them disabled on B2G
Attachment #8343983 -
Flags: review?(jib)
Comment 1•11 years ago
|
||
Comment on attachment 8343983 [details] [diff] [review]
prefs.patch
Review of attachment 8343983 [details] [diff] [review]:
-----------------------------------------------------------------
lgtm. One question.
::: media/webrtc/signaling/src/peerconnection/PeerConnectionCtx.cpp
@@ +73,5 @@
> memset(c, 0, sizeof(*c));
> #ifdef MOZILLA_INTERNAL_API
> Apply(aSrc.mMandatory.mOfferToReceiveAudio, &c->offer_to_receive_audio, true);
> Apply(aSrc.mMandatory.mOfferToReceiveVideo, &c->offer_to_receive_video, true);
> + if (!Preferences::GetBool("media.peerconnection.video.enabled", true)) {
Don't you need #ifdef MOZ_WIDGET_GONK here to make it default to false for gonk?
It's not clear to me it matters, since I'm not sure in what circumstances the default arg is used when the presence of the pref is guaranteed (which I assume it is). But I wanted to mention it.
::: media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp
@@ +245,5 @@
>
> // Adding tracks here based on nsDOMMediaStream expectation settings
> uint32_t hints = stream->GetHintContents();
> +#ifdef MOZILLA_INTERNAL_API
> + if (!Preferences::GetBool("media.peerconnection.video.enabled", true)) {
Same here.
Attachment #8343983 -
Flags: review?(jib) → review+
Comment 2•11 years ago
|
||
Comment on attachment 8343983 [details] [diff] [review]
prefs.patch
Review of attachment 8343983 [details] [diff] [review]:
-----------------------------------------------------------------
Jesup, doesn't this patch disable gUM video?
Attachment #8343983 -
Flags: review+ → review?(jib)
Comment 3•11 years ago
|
||
Comment on attachment 8343983 [details] [diff] [review]
prefs.patch
Review of attachment 8343983 [details] [diff] [review]:
-----------------------------------------------------------------
still lgtm.
::: dom/media/MediaManager.cpp
@@ +1310,5 @@
> aPrivileged = true;
> }
> + if (!Preferences::GetBool("media.navigator.video.enabled", true)) {
> + c.mVideo = false;
> + }
It only disables gUM video if media.navigator.video.enabled is present and set to false.
::: modules/libpref/src/init/all.js
@@ +229,5 @@
> pref("media.apple.mp3.enabled", true);
> #endif
> #ifdef MOZ_WEBRTC
> pref("media.navigator.enabled", true);
> +pref("media.navigator.video.enabled", true);
It defaults to true.
Attachment #8343983 -
Flags: review?(jib) → review+
Assignee | ||
Comment 4•11 years ago
|
||
(In reply to Jan-Ivar Bruaroey [:jib] from comment #1)
> Comment on attachment 8343983 [details] [diff] [review]
> prefs.patch
>
> Review of attachment 8343983 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> lgtm. One question.
>
> ::: media/webrtc/signaling/src/peerconnection/PeerConnectionCtx.cpp
> @@ +73,5 @@
> > memset(c, 0, sizeof(*c));
> > #ifdef MOZILLA_INTERNAL_API
> > Apply(aSrc.mMandatory.mOfferToReceiveAudio, &c->offer_to_receive_audio, true);
> > Apply(aSrc.mMandatory.mOfferToReceiveVideo, &c->offer_to_receive_video, true);
> > + if (!Preferences::GetBool("media.peerconnection.video.enabled", true)) {
>
> Don't you need #ifdef MOZ_WIDGET_GONK here to make it default to false for
> gonk?
No, since the real default for gonk is in all.js, so I'm not doing that here.
Assignee | ||
Comment 5•11 years ago
|
||
Target Milestone: --- → mozilla28
Assignee | ||
Updated•11 years ago
|
blocking-b2g: --- → 1.3?
Comment 6•11 years ago
|
||
blocking+ - needed to ensure safe pref off peer connection & gUM for 1.3 if need be.
blocking-b2g: 1.3? → 1.3+
Comment 7•11 years ago
|
||
Backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/84cb9cf72c02 on suspicion of breaking gaia-ui-test, which in its opaque way says https://tbpl.mozilla.org/php/getParsedLog.php?id=31600298&tree=Mozilla-Inbound, but says it consistently.
Comment 8•11 years ago
|
||
(In reply to Phil Ringnalda (:philor) from comment #7)
> Backed out in
> https://hg.mozilla.org/integration/mozilla-inbound/rev/84cb9cf72c02 on
> suspicion of breaking gaia-ui-test, which in its opaque way says
> https://tbpl.mozilla.org/php/getParsedLog.php?id=31600298&tree=Mozilla-
> Inbound, but says it consistently.
FWIW - This looks like a general failure to shutdown a content process.
Comment 9•11 years ago
|
||
(In reply to Jason Smith [:jsmith] from comment #8)
> (In reply to Phil Ringnalda (:philor) from comment #7)
> > Backed out in
> > https://hg.mozilla.org/integration/mozilla-inbound/rev/84cb9cf72c02 on
> > suspicion of breaking gaia-ui-test, which in its opaque way says
> > https://tbpl.mozilla.org/php/getParsedLog.php?id=31600298&tree=Mozilla-
> > Inbound, but says it consistently.
>
> FWIW - This looks like a general failure to shutdown a content process.
However - I don't see how this could be causing the gaia ui test failure - none of our gaia ui tests touch UI code that hits getUserMedia right now.
Comment 10•11 years ago
|
||
Yeah, me neither, since the push before this was what got merged to m-c, and Gu failed there too. Eventually, and perhaps this time, I'll learn that when Gu breaks, it is never ever going to be because of a Gecko push, it's always going to be from something invisible and external, and I'll just hide it when it breaks.
Relanded in https://hg.mozilla.org/integration/mozilla-inbound/rev/33e4d9281b5d
Comment 11•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Whiteboard: [qa-]
Updated•11 years ago
|
status-firefox28:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•