Граф коммитов

154 Коммитов

Автор SHA1 Сообщение Дата
JW Wang 79b5f2dd2e Bug 1425996 - fix build error: unused variable 'rv'. r=gerald
MozReview-Commit-ID: 7MhsSWbxB3z

--HG--
extra : rebase_source : 81207a1e5b663314295f2f95afd4b726ffe8f12d
2017-12-21 12:12:42 +08:00
Jean-Yves Avenard 6258e4b122 Bug 1425631 - Reduce global threads count. r=jya
MozReview-Commit-ID: JWPH6DRg1k7

--HG--
extra : rebase_source : 5a05a3de3123db26ac2facb0e6ffdf6f9a0815f0
2017-12-15 21:45:35 +01:00
Nika Layzell f1ac9bf744 Bug 1419597 - Part 18: Remove IsInnerWindow and IsOuterWindow methods, r=smaug
MozReview-Commit-ID: DAAm6tLubhJ
2017-11-23 13:12:13 -05:00
Andrea Marchesini 4b1b084ce7 Bug 1416724 - part 3 - AbstractThread::Dispatch return value check in dom/media, r=jwwang 2017-11-15 07:58:03 +01:00
shindli 385fb3428c Backed out 4 changesets (bug 1416724) for failing /builds/worker/workspace/build/src/dom/media/hls/HLSDemuxer.cpp:89:5 r=backout on a CLOSED TREE
Backed out changeset 45352aa4319d (bug 1416724)
Backed out changeset 01d1e5263bcd (bug 1416724)
Backed out changeset bc854c315ec8 (bug 1416724)
Backed out changeset 35a50167485d (bug 1416724)
2017-11-15 09:49:04 +02:00
Andrea Marchesini 642cdd108b Bug 1416724 - part 3 - AbstractThread::Dispatch return value check in dom/media, r=jwwang 2017-11-15 07:58:03 +01:00
Andreas Pehrson ed6023658c Bug 1411322 - Call nsIMemoryReporterManager::EndReport after reporting. r=SingingTree
This is required now that the reporter is async.

MozReview-Commit-ID: djvw9v7kuj

--HG--
extra : rebase_source : d105f972eda0d59212b8094150762e44aa8c582d
2017-11-10 11:59:43 +01:00
Andreas Pehrson 306c663532 Bug 1411322 - Simplify MediaRecorderReporter. r=SingingTree
This is primarily to improve code readability of the reporter's lifetime.
Creation of the singleton was hidden away in GetRecorders().
Both creation and destruction is now more explicit in {Add|Remove}MediaRecorder.

MozReview-Commit-ID: CqxgPQ1JptK

--HG--
extra : rebase_source : 5af3052911cd346c7d1221baf653f0b046304ed0
2017-11-10 11:58:33 +01:00
Andreas Pehrson c097414d77 Bug 1413116 - Consolidate MediaRecorder::Session state and avoid "start" and "error" races. r=SingingTree
MozReview-Commit-ID: L5cj4DStnUt

--HG--
extra : rebase_source : 103a088100a9bdd57bd192ec40e37f44328b5f98
2017-10-31 18:34:23 +01:00
Andreas Pehrson 5d087cdcd7 Bug 1413116 - Handle errors from MutableBlobStorage::Append. r=baku,SingingTree
MozReview-Commit-ID: D2cxv0VFzWx

--HG--
extra : rebase_source : 9cb089a486fdd928b03069d214e9047870b2432d
2017-10-31 09:48:54 +01:00
Jonathan Watt 60fa0649f2 Bug 1406819 - Remove various bits of dead code from dom/. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D109
2017-10-11 10:09:13 +01:00
Andrea Marchesini 970f42c82a Bug 1403706 - Remove race conditions in temporary blob - part 2 - MediaRecorder should use MutableBlobStorage, r=pehrsons, r=smaug 2017-10-05 07:41:41 +02:00
Andrea Marchesini 728ee9036d Bug 1404326 - Fixing comments in MediaRecorder.cpp, r=padenot 2017-09-29 16:11:47 +02:00
Bryce Van Dyk 06435b3208 Bug 1400757 - Add telemetry to MediaRecorder and TrackEncoder to track basic usage. r=francois,pehrsons
Add telemetry to collect the following:
- Number of times a MediaRecorder is started during a session
- Duration of media recordings
- How often we're timing out init of audio and video track encoders

MozReview-Commit-ID: 9Pc2oKNCH1M

--HG--
extra : rebase_source : 16414a5ffa95413458d36295e5508df4c16e6fa9
2017-09-19 07:34:02 +12:00
Andreas Pehrson 97db817de8 Bug 1296531 - Don't wait for TracksAvailableCallback if tracks are already available. r=jesup
MozReview-Commit-ID: JQMyhhxaLLq

--HG--
extra : rebase_source : 1c23b170cc9fcf4dce1f7de8c2d4503e37a59ba8
2017-02-24 14:34:25 +01:00
Andreas Pehrson a2ba5f2311 Bug 1296531 - Break out TracksAvailableCallback logic to Session method. r=jesup
MozReview-Commit-ID: 9RupsdXKjwo

--HG--
extra : rebase_source : 3b8263124a5a6ac8942237b1ddaaf7bca7063641
2017-02-24 14:23:35 +01:00
Andreas Pehrson ca0438115d Bug 1296531 - Refactor MediaRecorder. r=jesup,SingingTree
The main purpose of this patch is to make the TrackEncoders run in a TaskQueue
to avoid multi-threaded access to members, and to change to track listeners to
allow for recording all kinds of tracks (the description of bug 1296531).

MozReview-Commit-ID: EtLXaDDBPdy

--HG--
extra : rebase_source : 5761bb2c7d5832f69cc80129e5160f173e8168c7
extra : source : 24b2a67ddf5a621a5cf58af5b9e363dac3071775
2017-05-24 18:51:47 +02:00
Andreas Pehrson 56e3e766b1 Bug 1296531 - Rip out direct stream listeners from MediaRecorder. r=jesup
MozReview-Commit-ID: CUAR85XvdUI

--HG--
extra : rebase_source : 77f3e6ef10ef3bc21a36032ee373f849184f33f6
extra : source : d02e3c80a7db8303f062704150a93dc977e5c9b5
2016-10-13 12:28:56 +02:00
Bryce Van Dyk 885710fcc9 Bug 1395022 - Fix MediaRecorder firing unnecessary start event when erroring. r=pehrsons
MozReview-Commit-ID: 6ULFqlEHaqx

--HG--
extra : rebase_source : 1179446840c81d7ef1bed90ce798bc7ec22e18a2
2017-09-04 08:28:01 +12:00
Bryce Van Dyk 9fec9bfac9 Bug 1388909 - Rework MediaRecorder to tranisition to inactive upon error. r=pehrsons
The MediaRecorder should transition to a 'inactive' state immediately upon
error. This changeset updates the recorder to do so. Previously the recorder
would fire an error event before transitioning, resuling in the state still
being 'recording' for handling of the the thrown error.

MozReview-Commit-ID: KMkaPOnEBYx

--HG--
extra : rebase_source : 4d05d46de775029d307ac2460700ce28c4e8321a
2017-09-01 11:38:52 +12: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
Bryce Van Dyk df6a8a21ac Bug 1275856 - Capture MediaRecorder DOMExceptions early in order to capture JS traces. r=jib
In order to expose the JS stack on aync exceptions from the MediaRecorder,
these exceptions must be created at the time of the operation which led to the
exception. E.g. during the start() operation. This changeset creates the
exceptions ahead of time in order to expose the JS stack traces.

MozReview-Commit-ID: HgDJrpjgidD

--HG--
extra : rebase_source : 1d208a848308c819a209f4b5c33e3563e83b9518
2017-08-07 09:49:24 +12:00
Bryce Van Dyk 9878ae061e Bug 1275856 - Fire MediaRecorderErrorEvent in media recorder. r=jib
The MediaRecorder is current not behaving as per the spec in regards to async
errors. The spec states that in such a scenario a MediaRecorderErrorEvent which
wraps a DOMException should be fired. This changeset updates the recorder to do
so.

MozReview-Commit-ID: xt4ipCmbiu

--HG--
extra : rebase_source : 50124e6c878438a84c8a440bf79e50b3b7da3998
2017-08-07 09:48:42 +12:00
Masatoshi Kimura dec070e4cf Bug 1389460 - Remove @deprecated nsIDOMEventTarget.DispatchDOMEvent. r=smaug
MozReview-Commit-ID: E88DZK5sfwx

--HG--
extra : rebase_source : 64e1a47c9366a970f20ec459dde9b379a207e802
2017-08-07 02:28:52 +09:00
Sebastian Hengst b3269bec34 Backed out changeset 685802013f43 (bug 1389460) for OS X bustage at widget/cocoa/nsMenuX.mm:364: no member named 'DispatchDOMEvent' in 'nsIContent'. r=backout 2017-08-11 17:46:42 +02:00
Masatoshi Kimura 58d29db70b Bug 1389460 - Remove @deprecated nsIDOMEventTarget.DispatchDOMEvent. r=smaug
MozReview-Commit-ID: E88DZK5sfwx

--HG--
extra : rebase_source : 63300d87c0496394d3f75cb76bc47c75d640d369
2017-08-07 02:28:52 +09:00
Wes Kocher 47df5726ac Backed out 6 changesets (bug 1275856) for failures in test_interfaces.html and test_all_synthetic_events.html a=backout
Backed out changeset d229d269ac55 (bug 1275856)
Backed out changeset 2fb8d23f1ece (bug 1275856)
Backed out changeset 210e8d6d5f85 (bug 1275856)
Backed out changeset 38739c5a3ae8 (bug 1275856)
Backed out changeset 1c8e6dd99100 (bug 1275856)
Backed out changeset 407dc5f8de5b (bug 1275856)

MozReview-Commit-ID: CeTwTrzfY2P
2017-08-10 16:32:12 -07:00
Bryce Van Dyk 575792962a Bug 1275856 - Capture MediaRecorder DOMExceptions early in order to capture JS traces. r=jib
In order to expose the JS stack on aync exceptions from the MediaRecorder,
these exceptions must be created at the time of the operation which led to the
exception. E.g. during the start() operation. This changeset creates the
exceptions ahead of time in order to expose the JS stack traces.

MozReview-Commit-ID: HgDJrpjgidD

--HG--
extra : rebase_source : e7ad0b2a30ac2e7161d3805a22b3873a7382b43b
2017-08-07 09:49:24 +12:00
Bryce Van Dyk a9924d1aba Bug 1275856 - Fire MediaRecorderErrorEvent in media recorder. r=jib
The MediaRecorder is current not behaving as per the spec in regards to async
errors. The spec states that in such a scenario a MediaRecorderErrorEvent which
wraps a DOMException should be fired. This changeset updates the recorder to do
so.

MozReview-Commit-ID: xt4ipCmbiu

--HG--
extra : rebase_source : 50124e6c878438a84c8a440bf79e50b3b7da3998
2017-08-07 09:48:42 +12:00
Sylvestre Ledru 7c0ae251cd Bug 1381253 - Remove redundant control flow declarations rs=ehsan
MozReview-Commit-ID: FFxP4aMCbOL

--HG--
extra : amend_source : 3aec108430b11048f47ffe19d5da7ac5034770a9
2017-07-15 19:03:04 +02:00
Bryce Van Dyk 1b35f7626e Bug 1378826 - Remove direct track listeners for video tracks if MediaRecorder is notified of their removal. r=jesup
--HG--
extra : rebase_source : cdd2f7070fab1ad1491d272819e0be524d9583fd
2017-07-11 09:14:28 +12: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
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
Nicholas Nethercote 58786e1ea7 Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange.
This patch makes the following changes to the macros.

- Removes PROFILER_LABEL_FUNC. It's only suitable for use in functions outside
  classes, due to PROFILER_FUNCTION_NAME not getting class names, and it was
  mostly misused.

- Removes PROFILER_FUNCTION_NAME. It's no longer used, and __func__ is
  universally available now anyway.

- Combines the first two string literal arguments of PROFILER_LABEL and
  PROFILER_LABEL_DYNAMIC into a single argument. There was no good reason for
  them to be separate, and it forced a '::' in the label, which isn't always
  appropriate. Also, the meaning of the "name_space" argument was interpreted
  in an interesting variety of ways.

- Adds an "AUTO_" prefix to PROFILER_LABEL and PROFILER_LABEL_DYNAMIC, to make
  it clearer they construct RAII objects rather than just being function calls.
  (I myself have screwed up the scoping because of this in the past.)

- Fills in the 'js::ProfileEntry::Category::' qualifier within the macro, so
  the caller doesn't need to. This makes a *lot* more of the uses fit onto a
  single line.

The patch also makes the following changes to the macro uses (beyond those
required by the changes described above).

- Fixes a bunch of labels that had gotten out of sync with the name of the
  class and/or function that encloses them.

- Removes a useless PROFILER_LABEL use within a trivial scope in
  EventStateManager::DispatchMouseOrPointerEvent(). It clearly wasn't serving
  any useful purpose. It also serves as extra evidence that the AUTO_ prefix is
  a good idea.

- Tweaks DecodePool::SyncRunIf{Preferred,Possible} so that the labelling is
  done within them, instead of at their callsites, because that's a more
  standard way of doing things.

--HG--
extra : rebase_source : 318d1bc6fc1425a94aacbf489dd46e4f83211de4
2017-06-22 17:08:53 +10: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
Bill McCloskey 4592152411 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Bill McCloskey d6affd5261 Bug 1365098 - Convert NS_GetCurrentThread uses in dom/media (r=cpearce)
MozReview-Commit-ID: DUPt6xj49zz
2017-06-12 20:20:08 -07:00
Bryce Van Dyk 308b77f727 Bug 1364776 - Relax the restrictions on when MediaRecorder.requestData can be called. r=pehrsons
MozReview-Commit-ID: JnTwtTQP8M

--HG--
extra : rebase_source : 1dbfde4a37f5f13f175e3c8dc769a8dfcc5db588
2017-05-15 08:53:06 +12:00
Andreas Pehrson 5835686871 Bug 1332845 - Remove listeners before other cleanup in MediaRecorder. r=jesup
There was an indirect race from destroying this MediaInputPort before removing
the direct listener.

MozReview-Commit-ID: 7rPzsLL4EvG

--HG--
extra : rebase_source : 6271778593079609119153ce8b81587a9188d8ba
2017-04-07 16:50:55 +02:00
Jean-Yves Avenard b7844bd5c3 Bug 1319987: P9. More coding style fixes. r=gerald
MozReview-Commit-ID: DhFRqkWQZny

--HG--
extra : rebase_source : 03ed44efc83fe9cab7fc975229ac4e5746aff96b
2017-01-27 13:20:37 +01:00
Bevis Tseng 72d516ef01 Bug 1314833 - Part 2.2: Use AbstractThread::CreateDirectTaskDrainer() to Drain Direct Tasks Dispatched to MediaStreamGraph. f=rjesup,r=padenot,jwwang
MozReview-Commit-ID: 1KgE3uKu4CG

--HG--
extra : rebase_source : 2ad950afe84675fb9bc4c449e53e7c0d52270175
2016-12-07 22:00:12 -10:00
Randell Jesup 3fa45d2f9b Bug 1326311: Avoid races in destroying MediaRecorder sessions - destroy on MainThread r=jib
MozReview-Commit-ID: 3DA4HxUuzje
2017-01-08 22:08:09 -05:00
pierre.brochard.1982@m4x.org f3a18dbce1 Bug 1326311: Fix thread and Track listener leaks starting and stopping MediaRecorder r=jesup
MozReview-Commit-ID: 3q6RgA4Ehtc
2017-01-08 22:06:28 -05:00
Markus Stange 927eee33e9 Bug 1323100 - Stop double-registering the Media_Encoder thread with the profiler. r=froydnj
MozReview-Commit-ID: 8TQMVhbw13s

--HG--
extra : rebase_source : b2a55afe65d9a68d1d20d08806cb016ce040d044
2016-12-21 23:06:56 +01:00
Andrew McCreight fccb0645ed Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
Nathan Froyd 826598caba Backout aba6c73511a2 (bug 1307961) for massive test bustage resulting in a CLOSED TREE; r=alltheorange 2016-12-12 08:45:46 -05:00
Andrew McCreight e31b5489da Bug 1307961 - require consistent bloatview reporting for nsISupports classes; r=froydnj 2016-12-12 07:58:33 -05:00
Ehsan Akhgari 04638eba02 Bug 1318354 - Remove the b2g specific code for audio/video capture permissions; r=baku 2016-11-22 08:31:06 -05:00