Commit Graph

321 Commits

Author SHA1 Message Date
Randell Jesup
9aaa528306 Bug 820978: keep reference to MediaManager singleton r=derf 2012-12-28 15:29:52 -05:00
Randell Jesup
47876db407 Bug 802538: Enable getUserMedia() mochitests r=whimboo 2012-12-28 15:29:48 -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
Henrik Skupin
d75d249337 Bug 824923 - Stablize WebRTC mochitests against Javascript exceptions to prevent timeouts. r=jesup 2012-12-27 21:55:52 +01:00
Henrik Skupin
9a0052199c Bug 796890 - Create Mochitest for Video/Audio connection (send/receive/disconnect). r=jesup 2012-12-23 23:04:37 +01: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
Adam Roach [:abr]
011f5f2df2 Bug 797534: Update PeerConnectionImpl to use SDP from SIPCC, r=ehugg 2012-12-19 09:25:51 -06: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
Adam Roach
379d6a6735 Bug 817429: Accept candidate messages that are zero numbered r=jesup 2012-11-21 12:48:32 -06: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
Henrik Skupin
5eec2d1178 Bug 796892 - Create Mochitest for Audio only connection (send/disconnect). r=jesup
--HG--
extra : rebase_source : 3bb5261272dd2cb69f51811273a3ed723fcdc0bf
2012-12-14 10:27:04 +01:00
Jason Smith
670f0ff137 bug 799419 - crashtest for 2 peer connections create and close with fake video. r=jesup 2012-12-04 01:02:28 -08:00
Henrik Skupin
99e00a9b89 Bug 796888 - Create Mochitest for Video only connection (connect/disconnect). r=jesup 2012-12-13 21:38:49 +01:00
Jason Smith
ca744e4695 Bug 818466 - Enable basic automated WebRTC gUM tests on Android. r=jesup 2012-12-12 16:40:57 -05:00
Randell Jesup
a188ee1084 Bug 812886: disable peerconnection creation while offline r=smaug 2012-12-11 07:58:12 -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
Henrik Skupin
1541623233 Bug 812785 - Crashtest for WebRTC use-after-free crash. r=jesup 2012-11-19 15:56:29 +01:00
Saurabh Anand
c9e3659e16 Bug 818817 - Fix some compiler warnings, r=Ms2ger 2012-12-09 22:53:19 +05:30
Henrik Skupin
04948ff104 Bug 817709 - Fix make bustage when including leaking tests. r=standard8 2012-12-07 12:28:22 +01:00
Henrik Skupin
e89a6bddbe Bug 817709 - Global flag to conditionally enable leaking mochitests. r=jesup 2012-12-05 15:57:37 +01:00
Henrik Skupin
d7afd65f4c Backout bug 817709 because tests have not been updated correctly. 2012-12-04 19:49:11 +01:00
Henrik Skupin
eec94d0e3a Bug 817709 - Global flag to conditionally enable leaking mochitests. r=jesup
--HG--
extra : rebase_source : 08445b394ef810ac0be430298000a137c4cbd49b
2012-12-04 16:22:43 +01:00
Randell Jesup
76bf113eeb Bug 817841: Proxy deletion of nsDOMMediaStreams with NS_ProxyRelease() r=roc 2012-12-03 22:17:38 -08:00
Jason Duell
239cbd5e77 Backed out changeset d9bcbec33260 for bustage. 2012-12-03 22:12:51 -08:00
Randell Jesup
e60c01dd98 Bug 817841: Proxy deletion of nsDOMMediaStreams with NS_ProxyRelease() r=roc 2012-12-04 00:53:13 -05:00
Jason Smith
2904e16946 Bug 802982 - Crash test for excessive getUserMedia calls. r=jesup 2012-12-03 00:56:54 -08:00
Paul Adenot
7d39705bee Bug 817433 - Accept missing Mid for RTCIceCandidate. r=jesup 2012-12-02 14:10:19 -08:00
Henrik Skupin
8e44f4c656 Bug 816463 - Update webrtc crashtest manifest to use new default-preferences feature. r=jesup
--HG--
extra : rebase_source : 614a2906772fe40a3b781a014eb2ad18f1a226ca
2012-11-29 14:15:33 +01:00
Jason Smith
b185e7f32f Bug 781534 - Create basic automated test coverage for the mozGetUserMedia for desktop. r=roc 2012-11-26 18:27:46 -08:00
Paul Adenot
82e2293ae5 Bug 814012 - Add a |onopen| member to the PeerConnection interface. r=ekr 2012-11-21 17:55:25 +01:00
Paul Adenot
5ee2ad1976 Bug 813885 - RTCIceCandidate constructor arguments don't match spec. r=jesup 2012-11-21 15:52:43 +01:00
Paul Adenot
13c630d582 Bug 810458 - Make mozRTCSessionDescriptor respect the spec. r=jesup 2012-11-21 08:59:02 +01:00
Paul Adenot
c33ef24a14 Backed out changeset d66d35f64802 because it is wrong. 2012-11-20 14:53:46 +01:00
Paul Adenot
2ed72ff7df Bug 810458 - Make mozRTCSessionDescriptor respect the spec. r=jesup 2012-11-20 14:36:29 +01:00
Randell Jesup
645ded6229 Bug 812886: Watch network (tear)down events and kill PeerConnections r=ekr,smaug,bsmith 2012-11-18 23:53:14 -05: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
4e788c410e Bug 811695: disable internal socket transports for getUserMedia Audio capture r=derf 2012-11-15 17:58:40 -05:00
Henrik Skupin
7e064dbeb0 Bug 801227 - Crashtest for WebRTC crash [@mozilla::MediaManager::GetUserMedia]. r=jesup 2012-11-15 19:34:41 +01:00
Randell Jesup
5e69867f45 Bug 801227: Patch v2 (unbitrotted) r=anant a=abillings 2012-11-13 16:55:02 -05:00
Anant Narayanan
b541c1dade Bug 810164: Disable bfcache for pages with active PeerConnections; r=smaug,jesup 2012-11-09 21:04:27 -08:00
Jim Mathies
264552a173 Backout Bug 810164 due to bustage. r=bustage 2012-11-09 18:04:23 -06:00
Anant Narayanan
515fe04fc1 Bug 810164: Disable bfcache for pages with active PeerConnections; r=smaug,jesup 2012-11-09 15:27:38 -08:00
Randell Jesup
1854649bc3 Bug 808002: add missing consts lost in main landing for unreliable data channels r=anant 2012-11-07 14:07:22 -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
Randell Jesup
aa19509013 Bug 807103: plug leak of PeerConnectionImpl in PeerConnection r=anant 2012-10-31 20:31:37 -04:00
Kyle Huey
1482122303 Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon
--HG--
extra : rebase_source : 98337b6a8c07d05e8c961a452dd05a7d75c3c60b
2012-10-31 09:13:28 -07:00
Vicamo Yang
8297cdabd6 Backout 67cb43bb8865: Breaks B2G Marionette 2012-10-31 16:35:11 +08:00
Kyle Huey
bdf47895bb Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 12:28:11 -07:00
Ed Morley
777eed8444 Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE 2012-10-30 17:02:31 +00:00
Kyle Huey
aa1997a51a Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 08:26:12 -07: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
Henrik Skupin
89bb08bfc8 Bug 803493 - Fix Makefile.in entry for /dom/media mochitests. r=jesup 2012-10-29 08:57:11 -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
Henrik Skupin
3c33a0b7f2 Bug 803493 - Move WebRTC Mochitests from dom/tests/mochitests/media to /dom/media/tests/mochitest. r=ted 2012-10-27 13:51:48 -04:00
Anant Narayanan
59635f87a5 Bug 805871: Make PeerConnection constraints optional; r=jesup 2012-10-26 15:31:17 -07:00
Ryan VanderMeulen
40f09ef25e Merge the last PGO-green inbound chnageset to m-c. 2012-10-25 21:14:50 -04: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
Anant Narayanan
70fbb3f665 Bug 802694: Pass along constraints from PC JS module to PCImpl; r=ekr,jesup 2012-10-25 12:24:30 -07:00
Randell Jesup
7471bcbfec Bug 803976: Bustage fixes r=ehsan 2012-10-24 21:31:08 -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
Henrik Skupin
984ac2c283 Bug 805063 - Fix hang in crashtest for bug 791330. r=ekr 2012-10-24 17:13:39 -04:00
Henrik Skupin
c264e710b1 Bug 791330 - Crashtest for WebRTC crash [@ mozilla::NrIceCtx::GetGlobalAttributes], r=jesup 2012-10-23 16:18:09 -04:00
Henrik Skupin
6c9a1d75a2 Bug 804118 - Fix crashtests to use mozRTCPeerConnection insread of mozPeerConnection. r=jesup 2012-10-22 22:22:27 -04:00
EKR
c8916f12f0 Bug 791330: Suppress calls to PC after close has been called; r=anant 2012-10-20 09:43:57 -07:00
Jason Smith
b99c56e34d Bug 780780 - Crash test for mozilla::SuccessCallbackRunnable::Run - r=jesup 2012-10-17 23:32:25 -07: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
Randell Jesup
9490a0aea5 Bug 802661: Clean up getUserMedia MediaStream handling r=roc,anant 2012-10-17 17:40:14 -04:00
Henrik Skupin
5520b0b926 Bug 791278 - Crash test for WebRTC crash [@sipcc::PeerConnectionImpl::SetLocalDescription]. r=jesup 2012-10-17 15:33:57 -04:00
Randell Jesup
8050a5ddc6 Bug 801843: Change how video frames are inserted into getUserMedia streams to remove blocking r=roc,anant 2012-10-17 05:46:40 -04:00
Anant Narayanan
8e09a03964 Bug 802411: Refactor MediaEngine to use GIPS singletons; r=jesup 2012-10-16 17:53:55 -07:00
Henrik Skupin
c316c36e49 Bug 791270 - Crashtest for WebRTC crash [@sipcc::PeerConnectionImpl::AddStream]. r=jesup 2012-10-16 13:23:41 -04: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
Anant Narayanan
00adac2897 Bug 801297: Fix PeerConnection.createAnswer API; r=jesup 2012-10-15 11:35:21 -07:00
Peter Van der Beken
1735393652 Fix for bug 711628 (Implement PeerConnection.localStreams/remoteStreams). r=bz.
--HG--
extra : rebase_source : e21a429d85fc60a972752a2a7deb88a7cb648f3c
2012-09-13 18:04:31 +02: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
0e8bef661b Bug 798825: Add DataChannel DOM interfaces to RTCPeerConnection; r=smaug 2012-10-07 01:34:30 -04:00
Anant Narayanan
552e23146d Bug 694807: Implement PeerConnection DOM interface; r=jst 2012-10-07 01:34:30 -04:00
Anant Narayanan
785ec1a331 Bug 694807: Implement PeerConnection C++ module; r=jst,jesup,ekr 2012-10-07 01:34:30 -04: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
Ms2ger
d1bb662c3c Bug 792343 - Enable FAIL_ON_WARNINGS in some more of dom/ (second batch); r=mounir 2012-09-20 09:55:36 +02: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
Paul Adenot
627efd03dc Bug 774581: Send event when starting/stopping audio or video recording; r=anant,mhabicher 2012-08-17 09:10:08 -07: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
Mike Hommey
6173fa297f Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02: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
Ehsan Akhgari
d8df82ca0f Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (dom parts); r=bzbarsky 2012-06-14 22:31:55 -04: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