Commit Graph

73 Commits

Author SHA1 Message Date
Randell Jesup
9e0a39679d Bug 807103: plug leak of PeerConnectionImpl in PeerConnection r=anant 2012-10-31 20:31:37 -04:00
Kyle Huey
45adfbf2c8 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
e6e6deb486 Backout 67cb43bb8865: Breaks B2G Marionette 2012-10-31 16:35:11 +08:00
Kyle Huey
7457de64ad 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
a7bb0ec116 Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE 2012-10-30 17:02:31 +00:00
Kyle Huey
dd0cfd935a 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
f9b2a74082 Bug 806618 - rewrite PR_NewLogModule calls to not generate static initializers; r=ehsan 2012-10-29 19:32:10 -04:00
Henrik Skupin
6a8a11d043 Bug 803493 - Fix Makefile.in entry for /dom/media mochitests. r=jesup 2012-10-29 08:57:11 -04:00
Robert O'Callahan
a738cb5616 Bug 805703. Part 1: MediaStreamGraph::CreateInputStream -> CreateSourceStream. r=jesup
--HG--
extra : rebase_source : 3c327e9ead92508f12df4b95f2fd24fa2ba97ab5
2012-10-29 17:36:31 +13:00
Henrik Skupin
86254240b2 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
605f3da171 Bug 805871: Make PeerConnection constraints optional; r=jesup 2012-10-26 15:31:17 -07:00
Ryan VanderMeulen
4c180e35d1 Merge the last PGO-green inbound chnageset to m-c. 2012-10-25 21:14:50 -04:00
Randell Jesup
c0385b6f1c Bug 805451: Remove lock (mostly) and ensure other singleton refs are MainThread r=derf 2012-10-25 20:14:47 -04:00
Randell Jesup
5070ee343b Bug 798829: Force MediaManager to be created from MainThread r=anant 2012-10-25 00:54:38 -04:00
Anant Narayanan
a3a1f3a567 Bug 802694: Pass along constraints from PC JS module to PCImpl; r=ekr,jesup 2012-10-25 12:24:30 -07:00
Randell Jesup
8518f841ca Bug 803976: Bustage fixes r=ehsan 2012-10-24 21:31:08 -04:00
Randell Jesup
2eb9a9bf7e Bug 803976: Implementation of LocalMediaStreams for .stop() r=roc,anant 2012-10-24 19:21:32 -04:00
Randell Jesup
97d57fb78e Bug 803799: Start gUM streams in Success callback; add MediaManager mutex r=anant,roc 2012-10-24 19:21:15 -04:00
Ehsan Akhgari
28c105ccf5 Backed out changeset ea436c6f7d2d (bug 803799), landed on a CLOSED TREE 2012-10-24 20:30:08 -04:00
Ehsan Akhgari
33b4d241b7 Backed out changeset 165208ecd591 (bug 803976) 2012-10-24 20:29:32 -04:00
Randell Jesup
5d4b72af55 Bug 803976: Implementation of LocalMediaStreams for .stop() r=roc,anant 2012-10-24 19:21:32 -04:00
Randell Jesup
781f490022 Bug 803799: Start gUM streams in Success callback; add MediaManager mutex r=anant,roc 2012-10-24 19:21:15 -04:00
Henrik Skupin
a3cefe72cf Bug 805063 - Fix hang in crashtest for bug 791330. r=ekr 2012-10-24 17:13:39 -04:00
Henrik Skupin
acd86c8ba3 Bug 791330 - Crashtest for WebRTC crash [@ mozilla::NrIceCtx::GetGlobalAttributes], r=jesup 2012-10-23 16:18:09 -04:00
Henrik Skupin
c072edf87a Bug 804118 - Fix crashtests to use mozRTCPeerConnection insread of mozPeerConnection. r=jesup 2012-10-22 22:22:27 -04:00
EKR
9c8dd57e19 Bug 791330: Suppress calls to PC after close has been called; r=anant 2012-10-20 09:43:57 -07:00
Jason Smith
4f9e8545a8 Bug 780780 - Crash test for mozilla::SuccessCallbackRunnable::Run - r=jesup 2012-10-17 23:32:25 -07:00
Anant Narayanan
13047623fc Bug 780790: Check for NULL callbacks in getUserMedia; r=jesup 2012-10-18 11:31:00 -07:00
Anant Narayanan
8a0543bcc3 Backed out changeset 3dfb18a29fe2 2012-10-18 11:53:59 -07:00
Anant Narayanan
94ce1cb2fa Bug 780790: Check for NULL callbacks to getUserMedia; r=jesup 2012-10-18 11:52:39 -07:00
Randell Jesup
728f12acfb Bug 803093: Lock access to MediaEngineWebRTC singleton r=anant 2012-10-18 14:03:00 -04:00
Randell Jesup
ca11404fd3 Bug 802661: Clean up getUserMedia MediaStream handling r=roc,anant 2012-10-17 17:40:14 -04:00
Henrik Skupin
61a7b4fefd Bug 791278 - Crash test for WebRTC crash [@sipcc::PeerConnectionImpl::SetLocalDescription]. r=jesup 2012-10-17 15:33:57 -04:00
Randell Jesup
2614d8891d 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
ba618700c7 Bug 802411: Refactor MediaEngine to use GIPS singletons; r=jesup 2012-10-16 17:53:55 -07:00
Henrik Skupin
a9ecba9e97 Bug 791270 - Crashtest for WebRTC crash [@sipcc::PeerConnectionImpl::AddStream]. r=jesup 2012-10-16 13:23:41 -04:00
Randell Jesup
d1d511ba1f 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
722ec7e1ab Bug 801297: Fix PeerConnection.createAnswer API; r=jesup 2012-10-15 11:35:21 -07:00
Peter Van der Beken
59b6711296 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
d7cb56991b Bug 799191: incorrect audioCount in GetUserMediaDevicesRunnable r=derf 2012-10-09 17:56:22 -04:00
Anant Narayanan
98ea085676 Bug 798966: Create a preference to bypass gUM permission; r=jesup 2012-10-07 17:31:45 -07:00
Anant Narayanan
ba6106d6fa Bug 798825: Add DataChannel DOM interfaces to RTCPeerConnection; r=smaug 2012-10-07 01:34:30 -04:00
Anant Narayanan
1aff81d601 Bug 694807: Implement PeerConnection DOM interface; r=jst 2012-10-07 01:34:30 -04:00
Anant Narayanan
62ba9bbbc0 Bug 694807: Implement PeerConnection C++ module; r=jst,jesup,ekr 2012-10-07 01:34:30 -04:00
Anant Narayanan
b281255b34 Bug 792188: Add hints to MediaStreams to help with generating signaling r=jesup 2012-10-07 01:34:30 -04:00
Anant Narayanan
9498d75919 Bug 797796: Hookup getUserMedia backend with frontend UI; r=jesup 2012-10-05 17:20:47 -07:00
Anant Narayanan
3dcc0204a2 Bug 794668 - Fix error in patch to add fake media stream; r=me 2012-10-01 15:29:21 -07:00
Anant Narayanan
d1b0968bdf Bug 794668 - Add fake media stream functionality to getUserMedia; r=jesup 2012-09-28 15:26:00 -07:00
Kyle Huey
1ccfbe810b 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
ef6ae63b3f Bug 752352: Implement getUserMediaDevices for privileged chrome code; r=smaug, r=jesup 2012-09-20 12:54:00 -07:00