Commit Graph

252 Commits

Author SHA1 Message Date
Boris Zbarsky
51868f7e3f Bug 909645 part 3. Make including SpeechRecognition.h and MediaManager.h not pull ipdl headers. r=ms2ger 2013-08-28 00:14:57 -04:00
Randell Jesup
e95c682ba0 Bug 909187: Part 2 - Allow DOM MediaStreams to intercept SetTrackEnabled calls r=roc (reland) 2013-08-26 02:07:19 -04:00
Wes Kocher
be6c9d6c51 Backed out 2 changesets (bug 909187)
Backed out changeset 79b1a4a62635 (bug 909187)
Backed out changeset 0601038e2a31 (bug 909187)
2013-08-26 02:29:55 -07:00
Randell Jesup
7762a0f6f0 Bug 909187: Part 2 - Allow DOM MediaStreams to intercept SetTrackEnabled calls r=roc 2013-08-26 02:07:19 -04:00
Randell Jesup
58feac255e Bug 884365: Deliver gUM data directly to PeerConnection to avoid delay buildup and resampling r=roc 2013-08-24 09:53:11 -04:00
Ehsan Akhgari
3ec2c9b451 Bug 905353 - Minimize the #includes in dom/base; r=jst
--HG--
extra : rebase_source : e7a1d2262bf6d8c9b78057b8eb6cdbfd98262f68
2013-08-15 14:17:48 -04:00
Joshua Cranmer
fb0ab49c35 Bug 884061 - Part 3f: Use NS_DECL_THREADSAFE_ISUPPORTS in dom/, r=smaug,dhylands.
--HG--
extra : rebase_source : b8eaae07c54c94c8c46c7ed4c0e226eb74584652
2013-07-18 21:21:20 -05:00
Boris Zbarsky
1d61759816 Bug 838146 part 2. Implement WebIDL API on Navigator for all our nonstandard extensions that are not behind build-time flags. r=smaug, sr=peterv 2013-07-12 10:35:44 -04:00
David Zbarsky
8649b6e814 Bug 864206 - Use dom::Touch instead of nsIDOMTouch where possible r=Ms2ger 2013-05-17 13:17:53 -07:00
Robert O'Callahan
5ce353bec6 Bug 866514. Part 2: Delay delivering getUserMedia stream result until the DOM object has asynchronously acquired the desired tracks. r=jesup
--HG--
extra : rebase_source : 26a908d2e1bcf0d6d83a864f47dd9d117699bb9c
2013-05-03 17:07:37 +12:00
Michael Wu
78451df40a Bug 869206 - Make webrtc code build on gonk-JB, r=jesup 2013-05-04 11:00:35 -04:00
Ms2ger
c74b574718 Backout changesets f309dacf4010:be3cef4b69e3 for thread safety assertions on Windows and test failures on OSX. 2013-05-05 11:51:47 +02:00
Robert O'Callahan
d13c12bc99 Bug 866514. Part 2: Delay delivering getUserMedia stream result until the DOM object has asynchronously acquired the desired tracks. r=jesup 2013-05-03 17:07:37 +12:00
Chiajung Hung
105da9b5d8 Bug 825110 - Part 3: WebRTC changes for B2G WebRTC video module. r=jesup 2013-05-02 08:00:12 -04:00
David Zbarsky
82391d9a22 Bug 861729 - Remove nsPIDOMWindow::GetExtantDocument r=Ms2ger 2013-04-24 00:22:37 -04:00
Randell Jesup
0befe359d2 Bug 856434: Bug 837035 didn't create the TransportFlow for DataChannels. Passes the m-line index of the flow r=ehugg 2013-03-31 21:09:27 -04:00
Randell Jesup
8161849c3d Bug 839650: Add debugs to MediaStreamGraph to ease investigation of issues in the future r=roc 2013-03-07 03:53:45 -05:00
Ed Morley
b360848aef Backed out changeset be1ee54becf4 (bug 839650) for build failures 2013-03-07 09:10:47 +00:00
Randell Jesup
07aff4ee8e Bug 839650: Add debugs to MediaStreamGraph to ease investigation of issues in the future r=roc 2013-03-07 03:53:45 -05:00
Randell Jesup
86187459da Bug 842715: Refactor gUM prefs use to be on mainthread, and prepare for constraints r=derf 2013-03-04 16:02:17 -05:00
Randell Jesup
44e551f166 Bug 843971: fix backend for GUM a/v notification in opt builds r=derf 2013-03-02 21:49:29 -05:00
Randell Jesup
092c0d6656 Bug 843971: Add MediaManager function to report what a window is capturing r=smaug 2013-02-27 15:36:06 -05:00
Alex Xu
9705cc157e Bug 840834 - Fix compiler warning. r=jesup 2013-02-25 09:07:16 -05:00
Randell Jesup
9ae0592a36 Bug 843190: Allow cameras/mics to be shared if permissions UI is disabled r=derf 2013-02-20 17:08:44 -05:00
Justin Dolske
105ad9c97f Bug 827145 - When no A/V devices are available, return that error to the page's getUserMedia callbacks. r=jesup 2013-02-15 19:22:27 -08:00
Randell Jesup
a3585fec0d Bug 835953: Notify UI that all gUM streams for a WindowID are gone r=dolske 2013-02-15 11:10:15 -05:00
Robert O'Callahan
8192e0a0c4 Bug 837034. Part 2: Convert DOMMediaStream to use WebIDL. r=peterv,jesup
--HG--
rename : content/media/nsDOMMediaStream.cpp => content/media/DOMMediaStream.cpp
rename : content/media/nsDOMMediaStream.h => content/media/DOMMediaStream.h
extra : rebase_source : 483fca748444db20ed0d35cb586485f277e1808c
2013-02-15 21:04:11 +13:00
Robert O'Callahan
ca6fcfb8f3 Bug 837034. Part 1: Rename nsDOM(Local)MediaStream to DOM(Local)MediaStream and put them in the mozilla namespace. r=jesup
--HG--
rename : content/media/nsDOMMediaStream.cpp => content/media/DOMMediaStream.cpp
rename : content/media/nsDOMMediaStream.h => content/media/DOMMediaStream.h
extra : rebase_source : 6fd3f71779b4ecb9d3b053b6cd844c2ff0c25f80
2013-02-15 21:01:58 +13:00
Randell Jesup
cf23ac0992 Bug 818670: Enable AEC in PeerConnection, AGC/NoiseSuppression in gUM (w/bustage fix) r=derf 2013-01-29 11:55:09 -05:00
Randell Jesup
f5828290db Bug 836294: Don't drop array of media devices on the floor r=bz 2013-01-30 10:56:10 -05:00
Ed Morley
0428c8dbe2 Backout 40f09f7bc670 & fc262e3c635f (bug 818670) for frequent fedora64 mochitest-3 leaks on a CLOSED TREE 2013-01-30 10:32:11 +00:00
Randell Jesup
0e1d434873 Bug 818670: Enable AEC in PeerConnection, AGC/NoiseSuppression in gUM (w/bustage fix) r=derf 2013-01-29 11:55:09 -05:00
Ed Morley
382ec96750 Backout df75a87cce60 & 19e164f7d88d (bug 818670) for build bustage on a CLOSED TREE 2013-01-29 17:28:30 +00:00
Randell Jesup
86ad09285d Bug 818670: Enable AEC in PeerConnection, AGC/NoiseSuppression in gUM r=derf 2013-01-29 11:55:09 -05:00
Sotaro Ikeda
9d3d93e810 Bug 833521 - forward "recording-device-events" event to parent process, r=dougt 2013-01-24 21:45:36 -05:00
Gian-Carlo Pascutto
1293fd1727 Bug 812650 - Enable WebRTC audio recording on Android. r=dmose 2013-01-16 10:14:49 +01:00
Randell Jesup
f1063f9e3c Bug 827913: remove no-longer-correct MOZ_ASSERT in getUserMedia r=derf 2013-01-08 22:10:09 -05:00
Randell Jesup
69b6350bab Bug 827203: add locks against calling RemoveListener on a Destroy()ed MediaStream r=roc 2013-01-07 21:44:43 -05:00
Randell Jesup
5cb83be2c9 Bug 826576: Manage the lifetimes of GUMCMSL objects (with inactive Listeners) r=roc 2013-01-06 21:31:32 -05:00
Randell Jesup
307173aba3 Bug 827007: Implement Stop for UserMediaStreams; add NotifyRemoved for MediaStream listeners r=roc 2013-01-06 21:31:30 -05:00
Randell Jesup
e49f0b1470 Bug 802656: GetUserMediaDevices: Consider no devices available an error r=anant 2013-01-04 13:11:14 -05:00
Randell Jesup
1109b8dd0b Bug 805632: backend for getUserMedia:revoke r=anant 2013-01-04 13:11:12 -05:00
Robert O'Callahan
d254dc4188 Bug 822956. Part 2: Don't wrap getUserMedia's SourceMediaStream in a DOM object wrapper. Create an nsDOMUserMediaStream wrapper specifically to clean up the SourceMediaStream and the MediaInputPort. r=jesup 2013-01-04 12:16:32 -05:00
Randell Jesup
24ac0fe4a6 Bug 822956: convert to TrackUnionStreams for getUserMedia (and add hint support) r=roc 2012-12-19 02:07:37 -05:00
Randell Jesup
84c2e07542 Bug 825526: Improve lifetime control of SourceMediaStream in gUM r=anant 2012-12-31 18:12:15 -05:00
Randell Jesup
410542abca Bug 811757: Allow the user to explicitly share devices between tabs r=anant 2012-12-31 18:12:12 -05:00
Randell Jesup
9aaa528306 Bug 820978: keep reference to MediaManager singleton r=derf 2012-12-28 15:29:52 -05:00
Randell Jesup
5f6aa0a677 Bug 802538: Make sure gUM MediaStreams are destroyed (and fix other leaks) r=derf 2012-12-28 15:27:57 -05:00
Randell Jesup
7390f14e53 Bug 799417: Backend support for list of documents that have active gUM MediaStreams r=derf 2012-12-22 03:09:36 -05:00
Randell Jesup
ea2c275271 Bug 823453 - Change gUM permissions response to be an array. r=anant 2012-12-20 12:03:07 -05:00
Randell Jesup
8f7cb1702e Bug 822956: backout 3dead2094684 due to breaking normal PeerConnection cases rs=me 2012-12-20 14:23:55 -05:00
Randell Jesup
182f2a4a27 Bug 822956: convert to TrackUnionStreams for getUserMedia (and add hint support) r=roc 2012-12-19 02:48:12 -05:00
Ted Mielczarek
93098f258c bug 821306 - Expose nsIMediaDevice.id to script. r=jst
--HG--
extra : rebase_source : 147c0419bc89e52164234cc6edcb367f63322317
2012-12-17 08:28:24 -05:00
Mark Banner
d0a23afeeb Bug 819916 Selecting "Share Microphone" or "Share Camera" picks the last item in the list rather than the first. r=jesup 2012-12-10 19:51:48 +00:00
Randell Jesup
11408280ba Bug 802376: wallpaper permissions bug when selecting a camera+audio other than the first r=ekr 2012-11-18 23:13:22 -05:00
Randell Jesup
5e69867f45 Bug 801227: Patch v2 (unbitrotted) r=anant a=abillings 2012-11-13 16:55:02 -05:00
Anant Narayanan
e207f505f8 Bug 803782: Reset found flag while enumerating audio devices; r=jesup 2012-11-07 08:12:14 -08:00
Anant Narayanan
6d4035604b Revert d2f77172baf2 due to incorrect crashtest 2012-11-07 08:10:36 -08:00
Anant Narayanan
cd9ac34e6f Bug 803782: Reset found flag before enumerating audio devices; r=jesup 2012-11-07 06:51:38 -08:00
Nathan Froyd
bd55a07f0e Bug 806618 - rewrite PR_NewLogModule calls to not generate static initializers; r=ehsan 2012-10-29 19:32:10 -04:00
Robert O'Callahan
8fe699d05c Bug 805703. Part 1: MediaStreamGraph::CreateInputStream -> CreateSourceStream. r=jesup
--HG--
extra : rebase_source : 3c327e9ead92508f12df4b95f2fd24fa2ba97ab5
2012-10-29 17:36:31 +13:00
Randell Jesup
b993796c62 Bug 805451: Remove lock (mostly) and ensure other singleton refs are MainThread r=derf 2012-10-25 20:14:47 -04:00
Randell Jesup
558beaed38 Bug 798829: Force MediaManager to be created from MainThread r=anant 2012-10-25 00:54:38 -04:00
Randell Jesup
b7a4ba499c Bug 803976: Implementation of LocalMediaStreams for .stop() r=roc,anant 2012-10-24 19:21:32 -04:00
Randell Jesup
0b36cd32e3 Bug 803799: Start gUM streams in Success callback; add MediaManager mutex r=anant,roc 2012-10-24 19:21:15 -04:00
Ehsan Akhgari
e4097ac608 Backed out changeset ea436c6f7d2d (bug 803799), landed on a CLOSED TREE 2012-10-24 20:30:08 -04:00
Ehsan Akhgari
cab6e9af53 Backed out changeset 165208ecd591 (bug 803976) 2012-10-24 20:29:32 -04:00
Randell Jesup
8865bcac96 Bug 803976: Implementation of LocalMediaStreams for .stop() r=roc,anant 2012-10-24 19:21:32 -04:00
Randell Jesup
491dae523f Bug 803799: Start gUM streams in Success callback; add MediaManager mutex r=anant,roc 2012-10-24 19:21:15 -04:00
Anant Narayanan
5042136270 Bug 780790: Check for NULL callbacks in getUserMedia; r=jesup 2012-10-18 11:31:00 -07:00
Anant Narayanan
535e65793e Backed out changeset 3dfb18a29fe2 2012-10-18 11:53:59 -07:00
Anant Narayanan
4282a8dc13 Bug 780790: Check for NULL callbacks to getUserMedia; r=jesup 2012-10-18 11:52:39 -07:00
Randell Jesup
890418950c Bug 803093: Lock access to MediaEngineWebRTC singleton r=anant 2012-10-18 14:03:00 -04:00
Anant Narayanan
8e09a03964 Bug 802411: Refactor MediaEngine to use GIPS singletons; r=jesup 2012-10-16 17:53:55 -07:00
Randell Jesup
bab284d6b8 Bug 773649: Support getting audio and video in the same getUserMedia call r=roc,anant 2012-10-15 16:41:46 -04:00
Randell Jesup
fbf4e9c920 Bug 799191: incorrect audioCount in GetUserMediaDevicesRunnable r=derf 2012-10-09 17:56:22 -04:00
Anant Narayanan
b9965a1838 Bug 798966: Create a preference to bypass gUM permission; r=jesup 2012-10-07 17:31:45 -07:00
Anant Narayanan
92ad319945 Bug 792188: Add hints to MediaStreams to help with generating signaling r=jesup 2012-10-07 01:34:30 -04:00
Anant Narayanan
2fa83b8747 Bug 797796: Hookup getUserMedia backend with frontend UI; r=jesup 2012-10-05 17:20:47 -07:00
Anant Narayanan
0ef26fa806 Bug 794668 - Fix error in patch to add fake media stream; r=me 2012-10-01 15:29:21 -07:00
Anant Narayanan
f7e7e69c9c Bug 794668 - Add fake media stream functionality to getUserMedia; r=jesup 2012-09-28 15:26:00 -07:00
Kyle Huey
e5eb83ac5a Bug 760331: Coalesce data for inline style across nodes. r=bz
This patch enables sharing of an nsAttrValue's MiscContainer between nodes for style rules.  MiscContainers of type eCSSStyleRule are now refcounted (with some clever struct packing to ensure that the amount of memory allocated for MiscContainer remains unchanged on 32 and 64 bit).  This infrastructure can be used to share most MiscContainer types in the future if we find advantages to sharing other types than just eCSSStyleRuley.  A cache mapping strings to MiscContainers has been added to nsHTMLCSSStyleSheet.  MiscContainers can be shared between nsAttrValues when one nsAttrValue is SetTo another nsAttrValue or when there is a cache hit in this cache.  This patch also adds the ability to tell a style rule that it belongs to an nsHTMLCSSStyleSheet, with appropriate accessor functions to separate that from the existing case of belonging to an nsCSSStyleSheet.

The primary use case is to reduce memory use for pages that have lots of inline style attributes with the same value.  This can happen easily with large pages that are automatically generated.  An (admittedly pathological) testcase in Bug 686975 sees over 250 MB of memory savings with this change.  Reusing the same MiscContainer for multiple nodes saves the overhead of maintaining separate copies of the string containing the serialized value of the style attribute and of creating separate style rules for each node.  Eliminating duplicate style rules enables further savings in layout through style context sharing.  The testcase sees the amount of memory used by style contexts go from over 250 MB to 10 KB.

Because the cache is based on the text value of the style attribute, it will not handle attributes that have different text values but are parsed into identical style rules.  We also do not attempt to share MiscContainers when the node's base URI differs from the document URI.  The effect of these limitations is expected to be low.
2012-09-30 09:40:24 -07:00
Anant Narayanan
9fe5825217 Bug 752352: Implement getUserMediaDevices for privileged chrome code; r=smaug, r=jesup 2012-09-20 12:54:00 -07:00
Randell Jesup
5e1942e760 Bug 773847: Fix popupcontrol logic and take snapshots from main thread, enable Snapshots on Android by default r=mounir,blassey 2012-08-26 01:33:08 -04:00
Ehsan Akhgari
0fd9123eac Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Arjun
1d993f2482 Bug 780553: Fix error caused by merge of previous patch; r=anant 2012-08-10 08:41:33 -07:00
Arjun
2fa98cbe14 Bug 780553 - Validate media type parameters for getUserMedia [r=anant] 2012-08-09 14:01:00 -07:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Robert O'Callahan
d6cfb605ee Bug 771833. Windows in mActiveWindows are all inner-windows. r=anant 2012-07-26 16:05:00 -07:00
Mounir Lamouri
5199742d8f Bug 769586 - Make PopupWindowManager using principal to test permissions instead of URI. r=sicking 2012-07-15 18:37:31 -07:00
Anant Narayanan
49cb4ef18b Bug 771833: Assign an nsIPrincipal to media streams returned by getUserMedia; r=roc 2012-07-12 04:53:48 -07:00
Anant Narayanan
9e902cd6a9 Bug 691234: Part 3/3: Add DOM binding for getUserMedia on Desktop; r=jst 2012-07-12 04:53:08 -07:00
Anant Narayanan
dbd8f86f56 Backout b53e8a614a4c, bustage 2012-07-11 21:43:48 -07:00
Anant Narayanan
c368641109 Backout 39fe6a5577d7, bustage 2012-07-11 21:43:24 -07:00
Anant Narayanan
fd62daa46c Bug 771833: Assign an nsIPrincipal to media streams returned by gUM; r=roc 2012-07-11 21:24:34 -07:00
Anant Narayanan
e83f8d1868 Bug 691234: Part 3/3: Add DOM binding for getUserMedia on Desktop; r=jst 2012-07-11 21:22:24 -07:00
Ryan VanderMeulen
891e38e528 Revert c39d36167b99 due to a horribly munged backout. 2012-06-10 19:44:50 -04:00
Ryan VanderMeulen
f497d31a0a Backout the bug 754202 backout due to orange. 2012-06-10 19:37:47 -04:00
Anant Narayanan
138c405799 Bug 738528: Android still image support for getUserMedia r=sicking, r=jesup (plus bustage fix r=jesup) 2012-06-05 08:53:00 -04:00
Anant Narayanan
50bc4e6656 Backout e8364adb4fd8, build bustage on Android (Bug 738528) 2012-06-08 17:17:52 -07:00
Anant Narayanan
6884bfc08d Bug 738528: Android still image support for getUserMedia; r=sicking, r=jesup 2012-06-05 08:53:00 -07:00
Anant Narayanan
beefeb5f37 Bug 752353: DOM bindings for getUserMedia; r=jst
--HG--
rename : content/media/nsIDOMMediaStream.idl => dom/media/nsIDOMMediaStream.idl
2012-06-03 00:35:15 -07:00