Andreas Pehrson
85f30b0b5b
Bug 1299515 - Remove ReleaseMediaOperationResource. r=jib
...
MozReview-Commit-ID: 184hG8rMCmc
--HG--
extra : rebase_source : e4ac7637254baff5ac2cb093c263d5bcd681a37e
2017-11-14 11:53:52 +01:00
Andreas Pehrson
c7709bb25d
Bug 1299515 - Remove GetUserMediaNotificationEvent. r=jib
...
MozReview-Commit-ID: 3ecH5vCce17
--HG--
extra : rebase_source : 37843f4438a61e2415296d608a2506eba100b5b9
2017-11-14 11:50:07 +01:00
Andreas Pehrson
85ded5b958
Bug 1299515 - Plumb MediaStreamTrack enabled state to sources. r=jib
...
MozReview-Commit-ID: Eg1g9JtLmOz
--HG--
extra : rebase_source : 73057e1093d487736f69addca346b05c48d8d280
2017-11-10 15:55:42 +01:00
Andreas Pehrson
ee75d2b969
Bug 1408294 - Assert that NotifyPull produces data. r=padenot
...
MozReview-Commit-ID: CtC8A83iJgg
--HG--
extra : rebase_source : ada5a771164fafe35d22589956ced6f54545ee73
2017-12-05 14:34:08 +01:00
Johann Hofmann
8a35c0aab3
Bug 1345077 - Part 1 - Add an isHandlingUserInput flag to WebRTC permission requests. r=baku,padenot
...
MozReview-Commit-ID: SGu9lWjPH5
--HG--
extra : rebase_source : 18e49399247ea5b69dc603b70ef9981f97b618ba
2018-01-10 23:59:55 +01:00
Munro Mengjue Chiang
1051352e87
Bug 1423515 - register callback while creating the real backend. r=pehrsons
...
MozReview-Commit-ID: 2uVZ9VBAut0
--HG--
extra : rebase_source : e51862ad3f4ec74066b080eac66d69f428b86426
2017-12-06 19:09:40 +08:00
Jan-Ivar Bruaroey
4bed737a12
Bug 1422875 - Fix fake constraint to not apply to screensharing (on all platforms but android). r=pehrsons
...
MozReview-Commit-ID: K35vaNAolEy
--HG--
extra : rebase_source : 53fae5a862320ae6386e52d4163b06bea5c644d1
2017-12-04 11:56:28 -05:00
Jan-Ivar Bruaroey
22aabfd482
Bug 1422875 - Fix fake constraint to not apply to screensharing for media.navigator.permission.device codepath (aka Android) r=pehrsons
...
MozReview-Commit-ID: L9IIalMuFoC
--HG--
extra : rebase_source : 04842126225b6d96e37eb07c09e23439be552450
2017-12-04 11:25:50 -05:00
Andreas Pehrson
447e3169a3
Bug 1412394 - Remove window listeners explicitly during shutdown. r=jib
...
Currently we run the risk of missing MediaManager::OnNavigation() at shutdown in
some cases. When it happens, cleanup of window listeners is delayed to
MediaManager::Shutdown().
Triggering window listener shutdown through the destructor doesn't work when the
destructor is invoked by WindowTable::Clear(), as clearing out the
window listener's SourceListeners will trigger a call back into
WindowTable::Remove() to remove the now empty window listener.
This is not allowed by the hash table implementation.
This patch fixes this by changing strategy from cleanup-in-dtor to explicit-cleanup-before-dtor and making a non-clean state in the dtor an error.
MozReview-Commit-ID: C9FryVlv28d
--HG--
extra : rebase_source : 55ccf96b15eb3261d5176364e6952f51415bc668
2017-11-06 15:27:36 +01:00
Andreas Pehrson
5b49365cb5
Bug 1412394 - Delay blocking MediaManager::PostTask until media thread shutdown. r=jib
...
This delays setting sInShutdown (renamed to sHasShutdown for better semantics)
until all that remains of shutdown is to shut down the media thread.
From JS this is no change as JS cannot run until Shutdown() is done.
The difference is that we let members and still-active listeners get destroyed
and cause any members that are media-thread only (in this case devices), to shut
down before the thread goes away.
MozReview-Commit-ID: 5NTWwh8Umn8
--HG--
extra : rebase_source : f6b508abc95434f027a6544fdac53949138764da
2017-11-02 16:27:33 +01:00
Tom Ritter
5e81122570
Bug 1411742
Remove the pref media.getusermedia.playout_delay and the field as they are not used anywhere r=jib
...
MozReview-Commit-ID: Gjbeg0zWtJ1
--HG--
extra : rebase_source : 55ad0e8f5e8ec45e7ed365ea516da9ecbc498253
2017-11-16 21:57:07 -06:00
Tom Ritter
3b8bd8d918
Bug 1411742
Remove the media.navigator.video.default_minfps pref and all uses of it as the field is never actually used r=jib
...
MozReview-Commit-ID: 3WsdL18BF75
--HG--
extra : rebase_source : 9c0016e5045f50876c8db13930408b54fb8e1ac4
2017-10-26 11:37:16 -05:00
Tom Ritter
f9e8727c01
Bug 1411739 Use window::IsSecureContext to determine if screensharing is allowed instead of checking for https r=jib
...
MozReview-Commit-ID: HCKY1bNcpy4
--HG--
extra : rebase_source : 43ae071aef39bcf6af945fcd850721837505aed3
2017-10-26 11:09:29 -05:00
Chung-Sheng Fu
75fb42afad
Bug 1372073 - Ignore constraints in getUserMedia. r=arthuredelstein,jib
...
MozReview-Commit-ID: KdA9abmg3UA
--HG--
extra : rebase_source : f72c8e0d48ad86780f98e2b61e30fd67cc849f82
2017-09-18 17:51:51 +08:00
Chung-Sheng Fu
03debed820
Bug 1372073 - Spoof navigator.mediaDevices.enumerateDevices. r=arthuredelstein,jib,smaug
...
MozReview-Commit-ID: HubfB6M4UM0
--HG--
extra : rebase_source : 050065e484bdae32bf6cfcd730a6bfb626ad0508
2017-09-18 09:52:06 +08:00
Nika Layzell
2cb3ebf10d
Bug 1414974 - Part 4: Split WindowByIdTable into two separate tables for inner and outer windows, r=bz
...
MozReview-Commit-ID: LH3lKkFqTgG
2017-11-09 10:44:48 -05:00
Nika Layzell
ff8b5bd178
Bug 1414974 - Part 3: Move Get{Inner,Outer}WindowWithId onto the specific subclasses, r=smaug
...
These were originally exposed directly as static methods on nsGlobalWindow, but
as they are clearly associated with either the inner or outer window, it makes
more sense for them to be called as such.
MozReview-Commit-ID: LFq8EfnhDlo
2017-11-09 10:44:47 -05:00
Nika Layzell
3409141758
Bug 1414974 - Part 2: Switch many consumers to nsGlobalWindow{Inner,Outer}, r=smaug
...
This is a large patch which tries to switch many of the external consumers of
nsGlobalWindow to instead use the new Inner or Outer variants.
MozReview-Commit-ID: 99648Lm46T5
2017-11-09 10:44:47 -05:00
Andreas Pehrson
79107aea64
Bug 1405599 - GetUserMedia should reject when document not fully active. r=jib, r=bz
...
MozReview-Commit-ID: DLIuFMZLGFc
--HG--
extra : rebase_source : 6043b392bd659deb4c1c7ec012014cb264c38417
2017-10-04 11:24:35 +02:00
Masatoshi Kimura
dbd92543c6
Bug 1313150 - Remove |weak| parameter from nsIMutableArray methods. r=froydnj
...
MozReview-Commit-ID: 7JoD4VYzZp3
--HG--
extra : rebase_source : 5db437f1c34608aa223916874d62b48c59baeae8
2017-10-21 23:53:02 +09:00
Andreas Pehrson
b46de63fa2
Bug 1403186 - Add guards and sanity checks for Activated vs Stopped state. r=jib
...
MozReview-Commit-ID: 8Rdm3I0Z4SP
--HG--
extra : rebase_source : eccb161b3378961c0a4e01f809a1ac957ae32338
2017-10-02 15:13:15 +02:00
Andreas Pehrson
47611af5a5
Bug 1403186 - Don't call NotifyFinished if not activated. r=jib
...
MozReview-Commit-ID: JTUIXhK6mfi
--HG--
extra : rebase_source : 8158cf363516013a7dce35a6271dac75ac444ed3
2017-10-03 11:52:18 +02:00
Jan-Ivar Bruaroey
6a80cdfeb9
Bug 1406988 - Assert MediaManager invariant where applicable, and check for existence everywhere else. r=pehrsons
...
MozReview-Commit-ID: KfGP96IE17G
--HG--
extra : rebase_source : d03aeea5f8809b07d2172ee706a616b863526505
2017-09-29 15:06:51 -04:00
Wes Kocher
eb9a2ed0f2
Merge inbound to central, a=merge
...
MozReview-Commit-ID: IqwKWn7ceHC
2017-09-29 14:47:25 -07:00
Andreas Farre
2e8f0b10d0
Bug 1403586 - Don't disble budget throttling due to gUM. r=smaug,padenot
2017-09-29 15:21:45 +02:00
Munro Mengjue Chiang
e39858f1cd
Bug 1402377 - Stop the corresponding track instead of the whole stream when an external device is plugged out. r=jib,pehrsons
...
MozReview-Commit-ID: 7gbB5sgn6xI
--HG--
extra : rebase_source : 9dc0b1cc8d1dd55c4fb71f444c165498f0e7f7ad
2017-09-27 10:16:46 +08:00
Andreas Pehrson
d918302551
Bug 1319446 - DirectMediaStreamListener, you are dead to me. r=padenot
...
MozReview-Commit-ID: KwztE5ogSj9
--HG--
extra : rebase_source : e8e6bb3548c5697c5db901c0310ea5067a30c895
2017-09-27 12:01:46 +02:00
Chris Peterson
210c7f9690
Bug 870698 - Part 9: Replace Assign(NS_LITERAL_STRING("")) with AssignLiteral(u""). r=erahm
...
The NS_LITERAL_STRING macro creates a temporary nsLiteralString to encapsulate the char16_t string literal and its length, but AssignLiteral() can determine the char16_t string literal's length at compile-time without nsLiteralString.
MozReview-Commit-ID: 6vgQiU8zN3o
--HG--
extra : rebase_source : 1b536b92ef43f610db057ace6f108620e8d8b4d5
extra : source : 336e21386d5eeb16f1c9893c29377f23b67cc4b0
2017-09-06 01:43:13 -07:00
Nicholas Nethercote
e3c9cbb969
Bug 1401813 - Rename Null[C]String() as Void[C]String(). r=erahm.
...
XPCOM's string API doesn't have the notion of a "null string". But it does have
the notion of a "void string" (or "voided string"), and that's what these
functions are returning. So the names should reflect that.
--HG--
extra : rebase_source : 4e3f982e0873877174a08a25413595ff66f7d20e
2017-09-22 14:35:46 +10:00
Jan-Ivar Bruaroey
c0da003175
Bug 1381638 - Prevent sharing multiple input devices in the same process. r=jesup
2017-09-15 23:00:39 -04:00
Munro Mengjue Chiang
bb4430fa36
Bug 1399395 - skip devicechange event handler in shutdown stage. r=pehrsons
...
MozReview-Commit-ID: 8skWP7LuGvR
--HG--
extra : rebase_source : 4003690eedd10ee1676aecfc8f304593004f66ce
2017-09-14 11:16:42 +08:00
Andreas Farre
2a3cdfc4f6
Bug 1393359 - Register active user media on top level window. r=smaug,jib
2017-09-04 14:40:30 +02:00
Andrew McCreight
78807d8776
Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
...
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.
MozReview-Commit-ID: 5agRGFyUry1
--HG--
extra : rebase_source : 5388c56b2f6905c6ef969150f0c5b77bf247624d
2017-08-29 16:02:48 -07:00
Matthew Gregan
2f8cc7804c
Bug 1388236 - Remove B2G-only AudioChannel code from MSG. r=padenot
2017-08-10 13:00:08 +12:00
Eric Rahm
01f545fea7
Bug 1386825 - Part 1: Remove MOZ_B2G from dom. r=bkelly
...
MozReview-Commit-ID: 1zzP2r01B7U
2017-08-08 14:41:05 -07:00
Sebastian Hengst
915c63c332
merge mozilla-central to mozilla-inbound. r=merge a=merge
2017-07-31 11:28:37 +02:00
Nicholas Nethercote
72c884bf74
Bug 1384835 (part 3, attempt 2) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj.
...
--HG--
extra : rebase_source : d317b25be2ec21d1a60d25da3689e46cdce0b649
2017-07-31 14:28:48 +10:00
Munro Mengjue Chiang
d92f208dba
Bug 1364038
- Call SourceListener::StopTrack when the coresponding external device is disconnected. r=jib
...
MozReview-Commit-ID: EfpmXBJf7PP
--HG--
extra : rebase_source : b79b7969c6693ba980c5135784ddb1753e711ec4
2017-07-27 16:51:24 +08:00
Sebastian Hengst
5a483737cd
Backed out changeset 0cce9f382987 (bug 1364038
) for failing mda's dom/media/tests/mochitest/test_peerConnection_addSecondVideoStream.html. r=backout on a CLOSED TREE
2017-07-27 18:32:58 +02:00
Munro Mengjue Chiang
dc857a8098
Bug 1364038
- Call SourceListener::StopTrack when the coresponding external device is disconnected. r=jib
...
MozReview-Commit-ID: EfpmXBJf7PP
--HG--
extra : rebase_source : 328b146ba3531f10a36147f820e84f4d8402ff8a
2017-07-27 16:51:24 +08:00
Nicholas Nethercote
90eaa02ea0
Bug 1382099 - Remove MOZ_WIDGET_GONK from dom/media/. r=gerald.
...
As well as the obvious #ifdefs, this allows DOMHwMediaStream to be
removed, and also the "phone-state-changed" observer.
--HG--
extra : rebase_source : 373280183e228bd4b9bd9d866959409f2444c77e
2017-07-24 10:08:55 +10:00
Carsten "Tomcat" Book
daa67cc9e3
merge mozilla-inbound to mozilla-central a=merge
2017-06-30 12:59:45 +02:00
Paul Adenot
404c800005
Bug 1341555 - Consolidate use of the MSG's AbstractMainThread, and stop having AbstractMainThread on MediaStreams. r=pehrsons
...
MozReview-Commit-ID: 5hGDQcfpH6a
--HG--
extra : rebase_source : 41bb678f37cfcdbc9912a25f45a5ca488084aabe
2017-06-29 11:30:57 -07:00
Paul Adenot
6e485889b8
Bug 1330360 - Create new MSGs for each nsPIDOMWindow. r=jesup
...
MozReview-Commit-ID: 5m1MGcLmT7J
--HG--
extra : rebase_source : b9c05464bb545c047b7718a048eb7e5de3fe275d
2017-06-23 16:18:34 -07:00
Alex Chronopoulos
41737dc1af
Bug 1213414 - Implement channelCount audio constraint. r=jib,padenot
...
MozReview-Commit-ID: K95iBYOE1nR
--HG--
extra : rebase_source : 5c73eea4902933faec75e37d90e42a2f38c51b81
2017-06-29 21:01:17 -07:00
Andreas Pehrson
0a679e33cf
Bug 1376885 - Add prefs for automatically denying camera/microphone gUM prompts. r=jib
...
MozReview-Commit-ID: ISWek1BcLss
--HG--
extra : rebase_source : cc55cdce0e90ab56de05a165b7e1438830006f30
2017-06-28 12:09:14 -07:00
Bill McCloskey
f115503a0b
Bug 1372405
- Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book
8a1350b5a6
Backed out changeset 4f6302a98ae4 (bug 1372405
)
...
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Bill McCloskey
6b3e84ed5f
Bug 1372405
- Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book
ea1b86680c
Backed out changeset 9846de3bd954 (bug 1372405
)
...
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00