Commit Graph

1091 Commits

Author SHA1 Message Date
Nicholas Nethercote
f941156987 Bug 1386600 - Change nsIStringBundle methods to return |AString| instead of |wstring|. r=emk,sr=dbaron.
This removes about 2/3 of the occurrences of nsXPIDLString in the tree. The
places where nsXPIDLStrings are null-checked are replaced with |rv| checks.

The patch also removes a couple of unused declarations from
nsIStringBundle.idl.

Note that nsStringBundle::GetStringFromNameHelper() was merged into
GetStringFromName(), because they both would have had the same signature.

--HG--
extra : rebase_source : ac40bc31c2a4997f2db0bd5069cc008757a2df6d
2017-08-04 14:40:52 +10:00
Masatoshi Kimura
8b713b2b0f Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj
This mechanically replaces nsILocalFile with nsIFile in
*.js, *.jsm, *.sjs, *.html, *.xul, *.xml, and *.py.

MozReview-Commit-ID: 4ecl3RZhOwC

--HG--
extra : rebase_source : 412880ea27766118c38498d021331a3df6bccc70
2017-08-04 17:49:22 +09:00
Bevis Tseng
a7505864a8 Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm
--HG--
extra : rebase_source : 11319e568a51d16754a6a9990f76c35c86c2bda7
2017-07-26 16:13:35 +08:00
Paul Adenot
b9e645073e Bug 1375119 - Consider a page active if it has running AudioContexts. r=ehsan
MozReview-Commit-ID: IOQ2DY9LoTw

--HG--
extra : rebase_source : f47568d3db129ff8d9a484d5b5554f1154d53133
2017-07-24 11:17:14 +02:00
JW Wang
dacbe216d5 Bug 1378295. P3 - remove BufferDecoder. r=jya
Since now MFR doesn't need an AbstractMediaDecoder at all, we can
now remove BufferDecoder which exists as an empty shell to implement AbstractMediaDecoder.

MozReview-Commit-ID: HpEcK0mfpeh

--HG--
extra : rebase_source : e4d58d3b706aaf6ee005b9f82a668dd38efc2200
extra : intermediate-source : caa1e64b1a0216773d31854341075858a8dc2d0f
extra : source : c644912a8eeed0a18d61e11a3bcc92a39a6de483
2017-07-13 15:33:02 +08:00
JW Wang
35f6829a03 Bug 1378295. P1 - remove unused MFR::mDecoder. r=jya
MozReview-Commit-ID: BuvxlYs0LqD

--HG--
extra : rebase_source : 8595e8c5e08e9cd6575b3e3bf37e59e25c79045c
extra : intermediate-source : 589082a3f0571cea45e6942a1e6b82adda7efdcb
extra : source : 47cdc0a2b7acec44d102b165e1867b4f689e488c
2017-07-13 15:13:12 +08:00
JW Wang
e8dccab6e2 Bug 1380568. P2 - remove AbstractMediaDecoder::NotifyDecodedFrames(). r=jya
MozReview-Commit-ID: AZyPseUiZLl

--HG--
extra : rebase_source : d95e84525ebde5311361daa588abe83ab7342882
extra : intermediate-source : 35bf63aab05dedec7248de5ff97572b078c430db
extra : source : 8e00ba5990178daefa228a011ad3eed629dcbcd6
2017-07-13 14:12:25 +08:00
Wes Kocher
d45eb771f0 Merge m-c to inbound, a=merge
MozReview-Commit-ID: Ah48RzFU8Mt
2017-07-21 18:20:46 -07:00
Wes Kocher
e4f2d0a9db Backed out changeset cd615bff6069 (bug 1375119) for android mochitest failures in test_webaudioNotification.html a=backout
MozReview-Commit-ID: 4XQnvJ9Qr7R
2017-07-21 15:21:32 -07: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
Paul Adenot
78d51fcd94 Bug 1375119 - Consider a page active if it has running AudioContexts. r=ehsan
MozReview-Commit-ID: IOQ2DY9LoTw

--HG--
extra : rebase_source : 5cc3ab7406707427e9e5de1f96597bb16222cf97
extra : source : 2de831b0d2329c02ddd87d60e1d814fe518e3c67
2017-07-21 12:41:52 +02:00
JW Wang
87a7705558 Bug 1316211. P16 - remove MediaDecoderReader completely and fix includes. r=gerald
MozReview-Commit-ID: AGNyyh4kt3e

--HG--
extra : rebase_source : 48bfd7c681693a965848078c19ac81707ac19540
extra : source : 093ff5fe2ab6dd7551453b10b480fa3553ec135d
2017-07-20 09:56:08 +08:00
JW Wang
ef025c6fcf Bug 1316211. P15 - remove MDR from the base class of MFR. r=gerald
MozReview-Commit-ID: Jf5pCxkhexg

--HG--
extra : rebase_source : 3ec9423d4d0f3b60ee9e5f6f19af18188530e1d9
extra : source : 4fbc225bfc79abacaf47ffd4405ef2d6711dea32
2017-07-19 22:18:37 +08:00
JW Wang
5370eb3105 Bug 1316211. P13 - replace use of MediaDecoderReader with MediaFormatReader. r=gerald
We will remove MediaDecoderReader in the future.

MozReview-Commit-ID: BaCRXleKK5a

--HG--
extra : rebase_source : dc14a593d6291136f02b1deb910cd6dcd01c0355
extra : source : 8f71b7dae0a541562c7c3829b5a873e9f9fd2674
2017-07-19 17:01:32 +08:00
JW Wang
a7d0db5642 Bug 1316211. P11 - remove empty functions. r=gerald
MozReview-Commit-ID: 44blKyrVzLV

--HG--
extra : rebase_source : c65bc3b216cbd2409f22c519100a525f8c01beac
extra : source : dcdb98fbdd1389eaec08ccf32a685774ce53f755
2017-07-19 15:15:14 +08:00
Paul Adenot
4029e408c3 Bug 1378067 - Label more runnables in dom/media (GraphDriver.cpp, CubebUtils.cpp, DOMMediaStream.cpp). r=jesup
MozReview-Commit-ID: EQzR1AfzvzE

--HG--
extra : rebase_source : 9950d07eb1e8e9b1d07f94c10d7c5cf0008a8141
2017-07-18 11:26:58 +02:00
Sebastian Hengst
cb2227a5c7 Backed out changeset 6dc016256eba (bug 1378067) for bustage at dom/media/webaudio/WebAudioUtils.cpp:107. r=backout on a CLOSED TREE 2017-07-18 11:51:22 +02:00
Paul Adenot
ac12821115 Bug 1378067 - Label more runnables in dom/media (GraphDriver.cpp, CubebUtils.cpp, DOMMediaStream.cpp). r=jesup
MozReview-Commit-ID: EQzR1AfzvzE
2017-07-18 11:26:58 +02:00
Dan Minor
a99713bbf7 Bug 1373727 - Annotate Web Audio pointer to RefPtr use; r=karlt
MozReview-Commit-ID: FZwvw1YW1EM

--HG--
extra : rebase_source : d6ca04fa96f65981ca5294cda498a1f35d2798e9
2017-06-15 11:51:28 -04:00
Yoshi Huang
c9afcc965e Bug 1377480 - fix mda mochitest failure. r=smaug 2017-07-10 11:45:51 +08:00
JW Wang
aeaad5857f Bug 1378689 - add a structure to pack the data sent to the MediaDecoderReader constructor. r=jya
It would be handy we want to pass more data to the constructor.

MozReview-Commit-ID: 3AUUsTbv534

--HG--
extra : rebase_source : 8d230c85addf1ba296e6a0512f0d18ebd41c0d17
extra : source : e6568e9fa24f52c59baecaa16aa044b492f407fb
2017-07-06 16:59:22 +08:00
Sylvestre Ledru
4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
JW Wang
31837937da Bug 1378304. P4 - remove AbstractMediaDecoder::GetResource(). r=jya
MozReview-Commit-ID: KjHJyfxYwA6

--HG--
extra : rebase_source : aeca63220bff8d4f293a60304855d6fb1245a2d3
extra : source : 31882e43072808d6523fe093cbcbff6f907452fe
2017-07-05 14:36:11 +08:00
JW Wang
d0a1126090 Bug 1378304. P1 - pass a MediaResource* to DecoderTraits::CreateReader() to reduce the use of AbstractMediaDecoder::GetResource(). r=jya
MozReview-Commit-ID: CKFiqaBznVe

--HG--
extra : rebase_source : 2c78850a82ee610e794488bc90e895b8986737da
extra : source : a0a827722cc16c7a5070e37497cba6e4d414aba2
2017-07-05 14:07:54 +08: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
91cc425f9a Bug 1341555 - Label MSG runnables. r=pehrsons
MozReview-Commit-ID: 4sfRH3FxtBT

--HG--
extra : rebase_source : 1c473d1f6c7f79462c39126dc7bb9116948cca54
2017-06-29 11:31:17 -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
JW Wang
c6e43291cb Bug 1376363. P3 - remove MediaResource::GetContentType() and its friends. r=gerald
Note we remove the call to mChannel->SetContentType() from RecreateChannel().

The hint never works as expected for [1] is the only caller to
nsIChannel::GetContentType() and MediaResource::Create() always happens
before any reads from the resource.

[1] http://searchfox.org/mozilla-central/rev/b425854d9bbd49d5caf9baef3686e49ec91c17ec/dom/media/MediaResource.cpp#1500

MozReview-Commit-ID: 1n4yHEouCjC

--HG--
extra : rebase_source : 9a7345c29b985ddee7a90a94191e9d526e2a0a67
extra : source : 054d9ffaf21eb937a6349df76228269ad2d7dc2c
2017-06-26 21:39:16 +08: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
033f83145c Bug 1375387 - Reorder and section-ify GeckoProfiler.h. r=mstange.
This patch gives some structure and order to the profiler's API.

It also renames AutoProfilerRegister as AutoProfilerRegisterThread, to match
profiler_register_thread().
2017-06-22 14:28:47 +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
Jonathan Hao
dca1a28633 Bug 1217238 - Reduce time precision when privacy.resistFingerprinting is on. r=mystor
This patch is adapted from Tor bug 1517.

To offer some protection against timing attacks by JS content pages, in this
patch we round the various time-exposing APIs (such as Date and
Event.timeStamps) to the nearest 100 ms when the pref "privacy.resistFingerprinting" is on.

MozReview-Commit-ID: eGucM9nGTn

--HG--
extra : rebase_source : 3ee600b07943f3954e9a2a9561391f2f7821bb86
2017-06-06 11:45:14 +08:00
Chris Pearce
1291d78800 Bug 1366907 - Remove BufferDecoder's GMPCrashHelper. r=karlt
We no longer support decoding non-EME audio via GMPs, so it's not possible
for a GMP to be used for decoding content that passes through a WebAudio
BufferDecoder. So we don't need to keep the GMPCrashHelper around in the
WebAudio code. If EME content is being used, there will be a crash helper on
the MediaKeys object anyway.

MozReview-Commit-ID: BThxnTANSTD

--HG--
extra : rebase_source : 2c2ce4e982dcef6e3985c426386974083505c953
2017-05-23 11:09:08 +12:00
JW Wang
dccac51c32 Bug 1365524. P1 - Make MetadataHolder non-ref-counted. r=jya
Since MozPromise supports move-only types, we don't need to make MetadataHolder a ref-counted type.

MozReview-Commit-ID: E7KJuFQNWxe

--HG--
extra : rebase_source : d303c4d119504a289fe60cf5cdd2793ebf58d643
2017-05-18 10:20:44 +08:00
Chun-Min Chang
da52aad1f7 Bug 1331763 - part1: Support EME content for AudioContext::CreateMediaElementSource; r=cpearce
MozReview-Commit-ID: 1OMySAPCH4i

--HG--
extra : rebase_source : abd014ffc19976abbfdb523b6a172e42a3a80521
2017-05-15 13:21:28 +08:00
JW Wang
4018e22ad9 Bug 1362910. P2 - fix callers. r=gerald
Since RefPtr<T>&& can't be converted to T* implicitly, we need to change
T* to RefPtr<T> in resolve/reject callbacks to make it compile again.

We should review the changes later to look for the opportunity to
optimize away unnecessary AddRef/Release pairs.

MozReview-Commit-ID: 22rHQ8dhxJv

--HG--
extra : rebase_source : 1b09f353d6e86d60c93a2746333585ec0dba8526
2017-05-11 08:30:39 +08:00
Bill McCloskey
c197e07ff2 Bug 1363560 - Name more runnables (r=mccr8)
MozReview-Commit-ID: 3hxZDA4JlTV
2017-05-09 21:53:25 -07:00
Paul Adenot
16a32f974b Bug 1361475 - Remove proprietary constructor on AudioContext. r=baku
This was used only for B2G, was proprietary, and is causing issues, because
`AudioContext` can now have a parameter that is a property bag, per spec
(although we haven't implemented it at the moment).

MozReview-Commit-ID: 6LOlNp0cbfV

--HG--
extra : rebase_source : 48aa342213dba201c1062a08c7453acd16b8baea
2017-05-04 13:43:14 +02:00
Alastor Wu
c03792963c Bug 1358061 - remove moz-audiochannel codes for media element and web audio. r=baku
MozReview-Commit-ID: KPuhxCVezOZ

--HG--
extra : rebase_source : 74a9c9a9746d0add26f279c6dd5ddc30681be901
2017-04-26 12:02:32 +08:00
Phil Ringnalda
6b3d58414b Backed out changeset 6e7efb9115fd (bug 1358061) for build bustage
CLOSED TREE

MozReview-Commit-ID: F9FSciVgynw
2017-04-25 20:55:30 -07:00
Alastor Wu
222377e8ac Bug 1358061 - remove moz-audiochannel codes for media element and web audio. r=baku
MozReview-Commit-ID: BwZ6vHUPnSB

--HG--
extra : rebase_source : c92556cf92ff96b8014281396b28e1e232aa8576
2017-04-25 12:19:28 +08:00
Cervantes Yu
cc5836fbae Bug 1024669 - Part 1: Annotate crash reports with thread names. r=gsvelto
NS_SetCurrentThreadName() is added as an alternative to PR_SetCurrentThreadName()
inside libxul. The thread names are collected in the form of crash annotation to
be processed on socorro.

MozReview-Commit-ID: 4RpAWzTuvPs
2017-02-07 18:57:23 +08:00
Andrea Marchesini
b623ab29ec Bug 1354599 - Implement DOMEventTargetHelper::KeepAliveIfHasListenersFor, r=smaug 2017-04-18 13:51:27 +02:00
Florian Queze
37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst
a07223d699 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Florian Queze
95d4d20c17 Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Paul Adenot
e34a6067fb Bug 1355798 - Fix a division by zero in PannerNode.cpp. r=dminor
This happens when the listener and a PannerNode are at the same position, and
a cone gain has been specified.

The issue is that our implementation of 3d vector normalization does not
special-case vectors that have all components at zero, that dividing by zero
results in infinity, and multiplying by infinity produces NaN.

This end up setting the volume member for the output AudioChunk to NaN, and this
breaks everything downstream, of course. In practice, silence is output, with
some clicks (on linux/pulse at least).

MozReview-Commit-ID: 8u54LixvYMu

--HG--
extra : rebase_source : 3b37970b42e5c60cd6e39d3197b580edc63b5ac9
2017-04-12 15:44:19 +02:00
Sebastian Hengst
1828ea89ca Backed out changeset 7fdcabdbb675 (bug 1024669) for failing mda, GTest and talos jobs. r=backout on a CLOSED TREE 2017-04-10 19:05:44 +02:00
Cervantes Yu
364e524eca Bug 1024669 - Part 1: Annotate crash reports with thread names. r=gsvelto
MozReview-Commit-ID: 4RpAWzTuvPs
2017-02-07 18:57:23 +08:00
Carsten "Tomcat" Book
02ddc23c74 Backed out changeset 7a52d887bcea (bug 1024669) for bustage 2017-04-10 11:43:49 +02:00
Cervantes Yu
ece1ce1a7d Bug 1024669 - Part 1: Annotate crash reports with thread names. r=gsvelto
MozReview-Commit-ID: 4RpAWzTuvPs
2017-02-07 18:57:23 +08:00
Paul Adenot
57ca60efa3 Bug 1341549 - Label runnables in dom/media/webaudio/ r=billm
MozReview-Commit-ID: 1SG1KoVjivS

--HG--
extra : rebase_source : 3a4eb33a3402eca8a6fce31cd90e8edcc81c3eda
2017-04-04 13:47:47 +02:00
Karl Tomlinson
1b6a37c1b9 bug 1353246 adjust int/float comparison to treat floats just outside the range of int as outside r=padenot
float(numeric_limits<int>::max()) can round up and so this inequality was
false even when f was (float)0x80000000 (without rounding) and could not be
represented by an int.

--HG--
extra : rebase_source : 758b66fcab9ec540cf444e573f7f3a7bf9c06ba2
2017-04-04 16:10:26 +12:00
Paul Adenot
6d9a0e3387 Bug 1351456 - Don't assume that window.load will be called after the pref has been flipped. r=pehrsons
MozReview-Commit-ID: 2r6d6a5vIa

--HG--
extra : rebase_source : ed7ba96903fd92e51ccddb320213313e3b368e17
2017-04-03 13:20:33 +02:00
Paul Adenot
26e9175c0d Bug 1351456 - Fix test logging.
MozReview-Commit-ID: KpyHg95FKcv
2017-03-31 18:51:01 +02:00
Paul Adenot
93f23173cb Bug 1351456 - Add some instrumentation to try to understand a test timeout. irc-r=jesup
MozReview-Commit-ID: 935bdFmhwTq

--HG--
extra : rebase_source : 69f29432b714dffbb2eb9c51098d603744e4ceb6
2017-03-31 17:41:31 +02:00
Alastor Wu
4c0c1f059d Bug 1346872 - part1 : notify audible state change when AudioDestinationNode was muted or suspended. r=Ehsan
Web audio should also notify AudioChannelService about its audible state change.

MozReview-Commit-ID: BtjUkHKPETg

--HG--
extra : rebase_source : 809549258b652cb1e531dedfd6aee869d32aa4e4
2017-03-30 14:25:37 +08:00
Kaku Kuo
990f2963e1 Bug 1351527 - Label runnables in dom/media/webaudio/MediaBufferDecoder.cpp; r=jwwang
MozReview-Commit-ID: LbuwnrGCXah

--HG--
extra : rebase_source : 66418e5d78799230a6ae9d731f65da0c6038e328
2017-03-29 10:42:48 +08:00
Paul Adenot
863a1ccd9e Bug 1343550 - Mochitest. r=baku
MozReview-Commit-ID: 72V86HrbVCl

--HG--
extra : rebase_source : 8f561de253021c7566e5d3160bb6b8f43ff0319f
extra : intermediate-source : b258ffe9ee50b38cecbd4eb8fb00c02d30f42376
extra : source : 1aa20dad5c31bc1629516af77266266e1074fb26
2017-03-09 14:09:48 +01:00
Paul Adenot
838b5a8cad Bug 1343550 - Prevent creating AudioNodes on an AudioContext that has been disconnected from its owner. r=baku
Spec (being written): https://github.com/WebAudio/web-audio-api/issues/1139

Bug 1343550 - Prevent touching promises when shutting down an AudioContext, when the global is going away soon. r=baku

MozReview-Commit-ID: F6en9KEbNNf

--HG--
extra : rebase_source : 04076caa38bba980cdff776b5997f33e24516d9e
extra : intermediate-source : 4f2cd3f715a218dc3bca55e89720b6aa1040d35c
extra : source : 69cd9c72bd4ed419e3f7f7b5ab64ee0fa8bd89a2
2017-03-15 17:36:40 +01:00
Alastor Wu
d8197f5d08 Bug 1347758 - part4 : add audio channel log. r=Ehsan
MozReview-Commit-ID: 3zVYtD86O82

--HG--
extra : rebase_source : 3a7726760d6e4941cdbe2e6c9ee7132420482bb4
2017-03-24 14:44:18 +08:00
Iris Hsiao
26a234de5d Backed out 6 changesets (bug 1347758) for eslint failure
Backed out changeset 9becd55242c1 (bug 1347758)
Backed out changeset 2abce19f5001 (bug 1347758)
Backed out changeset 80232d4c85d5 (bug 1347758)
Backed out changeset 1fd084ec34d4 (bug 1347758)
Backed out changeset cafb3c12027b (bug 1347758)
Backed out changeset 85846edfe957 (bug 1347758)
2017-03-24 16:58:08 +08:00
Alastor Wu
e81c17d1b2 Bug 1347758 - part4 : add audio channel log. r=Ehsan
MozReview-Commit-ID: LNXzRZx2rC2

--HG--
extra : rebase_source : eef0ad3d65161c422d3cab57e6e081796452bdd1
2017-03-24 12:04:15 +08:00
JW Wang
989380307c Bug 1349145. P2 - revert the changes in bug 1203047 for MediaBufferDecoder.cpp. r=jya
MozReview-Commit-ID: sxacIjDp2Y

--HG--
extra : rebase_source : 82c554d6a85aaeef71f76fd80620478feba71a71
2017-03-22 11:25:23 +08:00
Dan Minor
62b1eb1bac Bug 1305136 - Disable testAudioContext test in audioContextSuspendResumeClose.html on Linux; r=karlt
This also removes the extra logging I added in loadFile which did not end up
helping anything after all.

MozReview-Commit-ID: FZT5ZShhcG0

--HG--
extra : rebase_source : f5eca9ae169c99dabfbb02dd148b66524325d352
2017-03-03 13:48:45 -05:00
Dan Minor
f3d81cd73f Bug 1305136 - Add additional status messages to loadFile function; r=padenot
It seems like adding these extra "todos" decreases the frequency of this
intermittent. I think it makes sense to land these temporarily while we look
for a root cause.

MozReview-Commit-ID: 4RiXtT3yBzG

--HG--
extra : rebase_source : fc107091d0a34943df3bf3ca579d978b97de877f
2017-02-22 10:59:47 -05:00
Vedant Sareen
7d4bd52fae Bug 1330907 - Rename Telemetry::ID to Telemetry::HistogramID. r=dexter
Changed |print("enum ID : uint32_t {", file=output)| to |print("enum HistogramID : uint32_t {", file=output)| at line 53 of the file |toolkit/components/telemetry/gen-histogram-enum.py|, and then replaced all the textual occurrences of |Telemetry::ID| to |Telemetry::HistogramID| and |ID| to |HistogramID| in 43 other files.
2017-02-16 00:45:15 +05:30
Wes Kocher
f85117da36 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 1c81Eie63Pe
2017-02-14 14:45:40 -08:00
Jean-Yves Avenard
4ee48a05fa Bug 1336358: P4. Disable some noisy tests on Android. r=padenot
Issue tracked in bug 1339449 and bug 1339448

MozReview-Commit-ID: GmlS56bI4Ki

--HG--
extra : rebase_source : 4b85907a840c9ffa03ee8b757deec3ea5539d28b
2017-02-14 16:10:11 +01:00
Bill McCloskey
225fab4ac5 Bug 1337537 - Avoid SystemGroup assertion during WebAudio test (r=ehsan)
MozReview-Commit-ID: 9GbXnkF4fvZ
2017-02-13 17:03:05 -08:00
Paul Adenot
f7e4a455e2 Bug 1339438 - Fix the test that checks that MediaElementAudioSourceNode are working correctly. r=pehrsons
MozReview-Commit-ID: Fazp4QsbxHk
2017-02-14 19:28:04 +01:00
Ehsan Akhgari
8a998d9134 Bug 1336484 - Don't throttle timeouts in background tabs that are playing audio; r=baku
In websites such as Facebook Live, timeout chains are used to drive the
playback of a video or something similar in JavaScript.  Throttling the
minimum timeout values a tab playing a video from such websites in the
background could make the timeout based scheduling of video playback to
not work correctly, and cause audio buffer under-runs that are audible.

In order to address this, other major browsers don't throttle timeouts
in tabs that are playing audio.  This brings us to parity to other
browsers (even though we already do this for websites that use Web Audio
since we've had similar bug reports using the Web Audio API.)

The current audio agent setup that drives the tab audio notification
icons is currently tracking whether a Window is playing audio.  We use
this setup to decide whether to throttle timeouts when a window goes
into background.
2017-02-10 12:08:25 -05:00
Beekill95
b8a8dc861a Bug 1308437 - Part 3: Change expected error to TypeError when testing setValueCurveAtTime with non-finite elements in TestAudioEventTimeline.cpp. r=dminor, a=padenot
--HG--
extra : rebase_source : b3b2d2d3f5e2c1ac974faf2aa2e57e2f28294826
2017-02-07 22:12:06 +07:00
Beekill95
050a685aa9 Bug 1308437 - Part 2: Add test case to verify TypeError is thrown when calling setValueCurve on non-finite elements. r=dminor r=padenot
--HG--
extra : rebase_source : 211c205d53a60647c39723a85da97f02a86909f4
2017-02-06 22:18:04 +07:00
Beekill95
0412139325 Bug 1308437 - Part 1: Change the exception thrown by 'setValueCurve' on non-finite elements to TypeError. r=dminor
--HG--
extra : rebase_source : 3fe7493e7d8933365c873ef652946975983427ea
2017-02-06 22:14:58 +07: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
Paul Adenot
b51488fd48 Bug 1320705 - Add a test to check that decoding an Opus file does to produce a long tail. r=jya
MozReview-Commit-ID: B4IlW1cWYlX
2017-01-27 15:18:58 +01:00
Paul Adenot
0ac29668f5 Bug 1336098 - When the input is silent, AnalyserNode.getFloatFrequencyData should put -Infinity in the buffer. r=pehrsons 2017-02-02 17:13:13 +01:00
Beekill95
ebd1ad47ba Bug 1308434 - Add testcase for calling DecodeAudioData on detached buffer. r=padenot,dminor
MozReview-Commit-ID: 25zz7RfVHxO

--HG--
extra : rebase_source : 35f8364bf8025a5c440934add359d440c09af9bb
2017-01-26 13:45:51 +07:00
Beekill95
0dc2d443bb Bug 1308434 - Throw TypeError if calling decodeAudioData on a detached buffer. r=padenot,dminor
MozReview-Commit-ID: JxFyFCECTeK

--HG--
extra : rebase_source : c69df64616cfe014684f1049c6e2b2b84b899b64
2017-01-21 13:11:46 +07: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
Bevis Tseng
f2bdbd8fd1 Bug 1314833 - Part 2.1: Factor out AbstractThread::MainThread() used in Media Playback. r=billm,jwwang
MozReview-Commit-ID: 9yJi3iDtVZG

--HG--
extra : rebase_source : 39c720ccc576ed9247b5e8abb70d99d7873b3ad6
2016-11-29 13:03:36 +08:00
Boris Zbarsky
03dbb8c08b Bug 851892 part 10. Convert CSSNamespaceRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:03 -05:00
Sebastian Hengst
e21b4b941f Backed out changeset 9dee4f98503c (bug 851892) 2017-01-20 19:30:23 +01:00
Boris Zbarsky
1e1b760bf1 Bug 851892 part 10. Convert CSSNamespaceRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:03 -05:00
Wes Kocher
54c460dbd6 Merge inbound to m-c a=merge
MozReview-Commit-ID: 3cGydlfeaPN
2017-01-18 14:17:10 -08:00
Gerald Squelart
f17dd305d6 Bug 1331289 - Use MediaContainerType in MediaResource, SourceBuffer, TrackBuffersManager, and dependencies - r=jya
Continuing the work of replacing MIME strings with MediaContainerType, starting
from MediaResource and following the dependencies.

Most changes are mechanical: Just change ns*String into MediaContainerType, and
MIME string literals into MEDIAMIMETYPE("a/b").
Some checks for empty/invalid strings and lowercase comparisons can go, thanks
to the always-valid always-lowercase-MIME invariants of MediaContainerType.

One special case in is MediaSourceResource, which used to have an empty string
as its type (because its own type is not relevant, but its SourceBuffers carry
types). Because the inherited GetContentType *must* be overridden, and must
return a MediaContainerType, we needed a valid type even though it should not
be seen in the real world. I've chosen "application/x.mediasource" for that.

MozReview-Commit-ID: 1aCH75Kh2e6

--HG--
extra : rebase_source : 0d9cd9b69c264e5dcfc3845f80ee107f4bcbcd9a
2016-12-28 18:59:02 +11:00
Gerald Squelart
5745998021 Bug 1331770 - Rename 'MediaContentType' to 'MediaContainerType' - r=jya
MozReview-Commit-ID: F0BWai8vPyo

--HG--
rename : dom/media/MediaContentType.cpp => dom/media/MediaContainerType.cpp
rename : dom/media/MediaContentType.h => dom/media/MediaContainerType.h
extra : rebase_source : 640ada96750b4496055087e80ae3f600c9df31c9
2017-01-18 11:59:03 +11:00
Florian Quèze
85611a7b6d Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws.
--HG--
extra : rebase_source : a22344ee1569f58f1f0a01017bfe0d46a6a14602
2017-01-17 11:50:25 +01:00
Ehsan Akhgari
b89a8163fa Bug 1328422 - Make WebAudioDecodeJob not be refcounted, and instead manage its lifetime explicitly; r=padenot 2017-01-16 15:53:45 +08:00
Phil Ringnalda
c4129ca15b Merge autoland to m-c, a=merge 2017-01-15 12:31:23 -08:00
Phil Ringnalda
686006613e Backed out 20 changesets (bug 851892) for load failures in Android crashtest-4
Backed out changeset b9c4115cdeac (bug 851892)
Backed out changeset 5f491bf49b85 (bug 851892)
Backed out changeset 9bf5bcb3e8c5 (bug 851892)
Backed out changeset a9cab46e8b45 (bug 851892)
Backed out changeset 73858e15c8c0 (bug 851892)
Backed out changeset a25638588b6b (bug 851892)
Backed out changeset d58e0e5069ef (bug 851892)
Backed out changeset d8da2a3d8f10 (bug 851892)
Backed out changeset a8da3c34983f (bug 851892)
Backed out changeset 29cf8acbd21e (bug 851892)
Backed out changeset c53cd7bdf8b3 (bug 851892)
Backed out changeset e841a2796375 (bug 851892)
Backed out changeset 2eab85b00159 (bug 851892)
Backed out changeset ca4b1fb9cae4 (bug 851892)
Backed out changeset 74c0ba66f108 (bug 851892)
Backed out changeset 719bb9f41e5b (bug 851892)
Backed out changeset d6aa4c6192df (bug 851892)
Backed out changeset dc81a167a75d (bug 851892)
Backed out changeset 65422477b3a5 (bug 851892)
Backed out changeset 3089dd379077 (bug 851892)
2017-01-15 11:50:10 -08:00
Boris Zbarsky
72579551f8 Bug 851892 part 10. Convert CSSNamespaceRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:03 -05:00
Gerald Squelart
882af395f0 Bug 1330284 - Use MediaContentType in CreateReader and MediaBufferDecoder - r=jya
MozReview-Commit-ID: E9yVaxNdLad

--HG--
extra : rebase_source : 35828ab34adcc2fca6d607459d3dbb3c3c16d5cd
2016-12-22 11:57:48 +11:00
Xidorn Quan
a8e64a94e1 Bug 1298756 - Use uint8_t/uint16_t as underlying type for enums from webidl. r=bz
MozReview-Commit-ID: 3uS9s5ZrPFd

--HG--
extra : rebase_source : ff64b4468ee99ba08fd8638298a27711b7fb6393
2017-01-12 12:23:37 +11:00
Andrea Marchesini
2abf88ce1f Bug 1329744 - AudioBuffer ctor updated, r=padenot 2017-01-10 21:30:28 +00:00
Paul Adenot
01a3eba51c Bug 1325066 - Use correct exception for connect calls between AudioNodes and AudioParams of different contexts. r=baku
MozReview-Commit-ID: KrG4ZAya088

--HG--
extra : rebase_source : c6d7c7c4dcc58aacdeb79ff7966050aad6170f83
2016-12-21 14:45:51 +01:00
Markus Stange
4bdc4ca0fb Bug 1323100 - Register most of the remaining threadfunc threads with the profiler. r=froydnj
As far as I can tell, this covers all the remaining threads which we start
using PR_CreateThread, except the ones that are created inside NSPR or NSS,
and except for the Shutdown Watchdog thread in nsTerminator.cpp and the
CacheIO thread. The Shutdown Watchdog thread stays alive past leak detection
during shutdown (by design), so we'd report leaks if we profiled it. The
CacheIO thread seems to stay alive past shutdown leak detection sometimes as
well.

This adds a AutoProfilerRegister stack class for easy registering and
unregistering. There are a few places where we still call
profiler_register_thread() and profiler_unregister_thread() manually, either
because registration happens conditionally, or because there is a variable that
gets put on the stack before the AutoProfilerRegister (e.g. a dynamically
generated thread name). AutoProfilerRegister needs to be the first object on
the stack because it uses its own `this` pointer as the stack top address.

MozReview-Commit-ID: 3vwhS55Yzt

--HG--
extra : rebase_source : 56dd27282e7bd09a7e7dc7ca09ccfe3a0198e7af
2017-01-05 16:34:26 +01:00
Edgar Chen
68253477ee Bug 1328206 - Do not use binding_detail things in AudioContext, use Sequence instead; r=dminor 2017-01-03 11:54:37 +08:00
Olli Pettay
0364dbc792 Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
--HG--
extra : rebase_source : 3ae1207308de120b7299b13ecaa95dd1612b3459
2017-01-03 21:47:55 +02:00
Andrea Marchesini
1605ddf333 Bug 1324181 - Better implementation of PeriodicWave constructor, r=padenot 2016-12-22 15:37:33 +01:00
Paul Adenot
fd396ecf1d Bug 1325215 - Fix bustage.
MozReview-Commit-ID: 6P9ccLvylG2
2017-01-18 11:04:31 +01:00
Paul Adenot
945d697015 Bug 1325215 - Reject promises in flight when shutting down AudioContexts. r=ehsan
Spec bug: https://github.com/WebAudio/web-audio-api/issues/1139

MozReview-Commit-ID: 8aTaoEKDWYd

--HG--
extra : rebase_source : f325defd56d15a716c23d796bf875b183867c6a7
2017-01-18 10:50:14 +01:00
Ehsan Akhgari
1b687dcdfe Bug 1325215 - Ensure that all AudioContext members that need to participate in cycle collection do so; r=padenot
MozReview-Commit-ID: JIL0nFL4lMW

--HG--
extra : rebase_source : 09993abc04db0ec0ceaef808a58a8b4d37e3a8eb
2017-01-18 10:48:40 +01:00
Andrea Marchesini
7d3342df6b Bug 1324659 - AudioParam.minValue/maxValue, r=padenot 2016-12-21 10:53:38 +01:00
Andrea Marchesini
60364b27c9 Bug 1324568 - Implement AudioScheduledSourceNode, r=padenot 2016-12-21 10:53:17 +01:00
Andrea Marchesini
de7438cf52 Bug 1324352 - Implement BaseAudioContext, r=padenot 2016-12-21 10:52:50 +01:00
Sebastian Hengst
ac153b5903 Backed out changeset 50a74758ee7d (bug 1324352) for failing webaudioeditor devtools tests like test/browser_audionode-actor-bypass.js. r=backout 2016-12-20 23:03:36 +01:00
Sebastian Hengst
d17f05006b Backed out changeset d70b97db8d9e (bug 1324568) 2016-12-20 23:02:48 +01:00
Sebastian Hengst
2c02931295 Backed out changeset f350bbf9e636 (bug 1324659) 2016-12-20 23:02:44 +01:00
Andrea Marchesini
f9c4996182 Bug 1324659 - AudioParam.minValue/maxValue, r=padenot 2016-12-20 20:20:41 +01:00
Andrea Marchesini
bd93c7bd15 Bug 1324568 - Implement AudioScheduledSourceNode, r=padenot 2016-12-20 20:20:41 +01:00
Andrea Marchesini
ad79ef8d0a Bug 1324352 - Implement BaseAudioContext, r=padenot 2016-12-20 20:20:41 +01:00
Andrea Marchesini
826ada7c51 Bug 1324537 - Implement the OfflineAudioCompletionEvent constructor - part 2, r=me 2016-12-20 11:02:50 +01:00
Andrea Marchesini
4f29b70d10 Bug 1324537 - Implement the OfflineAudioCompletionEvent constructor, r=smaug 2016-12-20 10:41:30 +01:00
Andrea Marchesini
e217483d1a Bug 1322883 - AudioNode constructors - part 18 - MediaStreamAudioDestinationNode, r=padenot 2016-12-15 19:24:43 +01:00
Andrea Marchesini
040ca23f4e Bug 1322883 - AudioNode constructors - part 17 - MediaStreamAudioSourceNode, r=padenot 2016-12-15 19:24:43 +01:00
Andrea Marchesini
ef0b4a0ce6 Bug 1322883 - AudioNode constructors - part 16 - MediaElementAudioSourceNode, r=padenot 2016-12-15 19:24:43 +01:00
Andrea Marchesini
be2438d32b Bug 1322883 - AudioNode constructors - part 15 - AudioBuffer, r=padenot 2016-12-15 19:24:42 +01:00
Andrea Marchesini
a5807e46ae Bug 1322883 - AudioNode constructors - part 14 - PeriodicWave, r=padenot 2016-12-15 19:24:42 +01:00
Andrea Marchesini
91ff6d8f42 Bug 1322883 - AudioNode constructors - part 13 - OscillatorNode, r=padenot 2016-12-15 19:24:42 +01:00
Andrea Marchesini
28750547b1 Bug 1322883 - AudioNode constructors - part 12 - DynamicsCompressorNode, r=padenot 2016-12-15 19:24:42 +01:00
Andrea Marchesini
5f7e08bcd8 Bug 1322883 - AudioNode constructors - part 11 - ChannelMergerNode, r=padenot 2016-12-15 19:24:42 +01:00
Andrea Marchesini
f36c0079c1 Bug 1322883 - AudioNode constructors - part 10 - ChannelSplitterNode, r=padenot 2016-12-15 19:24:42 +01:00
Andrea Marchesini
0c863ebca2 Bug 1322883 - AudioNode constructors - part 9 - ConvolverNode, r=padenot 2016-12-15 19:24:42 +01:00
Andrea Marchesini
892e3c83ca Bug 1322883 - AudioNode constructors - part 8 - StereoPannerNode, r=padenot 2016-12-15 19:24:42 +01:00
Andrea Marchesini
beb4c0043b Bug 1322883 - AudioNode constructors - part 7 - PannerNode, r=padenot 2016-12-15 19:24:42 +01:00
Andrea Marchesini
ba8652fc67 Bug 1322883 - AudioNode constructors - part 6 - WaveShaperNode, r=padenot 2016-12-15 19:24:42 +01:00
Andrea Marchesini
a85230b0c3 Bug 1322883 - AudioNode constructors - part 5 - IIRFilterNode, r=padenot 2016-12-15 19:24:41 +01:00
Andrea Marchesini
d00453d527 Bug 1322883 - AudioNode constructors - part 4 - BiquadFilterNode, r=padenot 2016-12-15 19:24:41 +01:00
Andrea Marchesini
0432a35b02 Bug 1322883 - AudioNode constructors - part 3 - DelayNode, r=padenot 2016-12-15 19:24:41 +01:00
Andrea Marchesini
9c8c0e312f Bug 1322883 - AudioNode constructors - part 2 - GainNode, r=padenot 2016-12-15 19:24:41 +01:00
Andrea Marchesini
c14a015895 Bug 1322883 - AudioNode constructors - part 1 - AudioBufferSourceNode, r=padenot 2016-12-15 19:24:41 +01:00
Andrea Marchesini
a71db5b97f Bug 1322883 - AudioNode constructors - part 0 - AnalyserNode, r=padenot 2016-12-15 19:24:41 +01:00
Andrea Marchesini
3200b37b47 Bug 1322982 - DOMException should be passed as argument in DecodeErrorCallback, r=padenot 2016-12-13 07:00:15 +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
Tomislav Jurin
348bfffc19 Bug 1296189 - Replace NS_RUNTIMEABORT("some string literal message") with MOZ_CRASH(). r=froydnj 2016-12-02 13:46:53 -08:00
Dan Minor
46844007d0 Bug 1157635 - Use DenormalDisabler.h to automatically flush subnormals; r=karlt
This adds a DenormalDisabler instance at the beginning of each
MediaStreamGraph iteration. On supported platforms, this will cause subnormal
numbers to be flushed automatically.

MozReview-Commit-ID: JGtunsqSirR

--HG--
extra : rebase_source : b051708f5191a267fc2eaef0ae40f438e1a77e4a
2016-08-05 15:33:08 -04:00
Dan Minor
7c22a70554 Bug 1157635 - Update DenormalDisabler.h from chromium rev e3bc1d8cebf65a51bb23abf204cf1ba059f1e865; r=karlt
Since this was originally landed, chromium has added support disabling denormalized
numbers on ARM and ARM64.

MozReview-Commit-ID: 7hdZNpJqA9q

--HG--
extra : rebase_source : d628c41489b1acee9ac9aeef85ffd9ba293163a5
2016-08-05 14:22:24 -04:00
Andrea Marchesini
2f974ccbce Bug 1318273 - Improve the use of SpecialPowers.pushPrefEnv() - part 1, r=qdot 2016-11-18 09:33:33 +01:00
Dan Minor
df1e61fa98 Bug 1308433 - In automation methods, when startTime is < AudioContext.currentTime, clamp to AudioContext.currentTime; r=padenot
MozReview-Commit-ID: ImnxgOiIdnG

--HG--
extra : rebase_source : 57f874281bf9cbb97b6f52bbb3f138b5c35edcc7
2016-11-08 09:29:35 -05:00
Chris Pearce
0a0e9d8f06 Bug 1317822 - Move GMPCrashHelper into its own file. r=gerald
MozReview-Commit-ID: 7CinZ2Y2Fmz

--HG--
extra : rebase_source : 3b176cbfadebf6463384105c261ff208bc58b1c2
2016-11-16 11:35:36 +13:00
Sebastian Hengst
8ee9323cd0 Bug 1310297 - Remove test annotations using b2g, mulet or gonk: dom/media. r=RyanVM
MozReview-Commit-ID: JVsnpnBDeCC

--HG--
extra : rebase_source : 5a7ccee10b094808e3ee73de7a226306a9fd55fd
2016-11-05 11:29:16 +01:00
Phil Ringnalda
c9fdc270b6 Merge m-c to autoland
--HG--
rename : dom/media/webaudio/compiledtest/TestAudioEventTimeline.cpp => dom/media/webaudio/gtest/TestAudioEventTimeline.cpp
2016-11-03 20:02:24 -07:00
Dan Minor
98715f6438 Bug 1313058 - Fix SetValueCurveAtTime interpolation; r=padenot
This interpolates over aCurveLength - 1 steps rather than over
aCurveLength steps as was done before.

Previously we would reach the final value on the curve before
the end of the specified duration. For example, on the curve
[1.0, 0.0] with duration 1000, we would interpolate from 1.0 to
0.0 by time 500 rather than time 1000. With these changes, we
don't reach 0.0 until time 1000, as expected.

This also updates TestSpecExample in TestAudioEventTimeline.cpp
to match the curve in the latest spec.

MozReview-Commit-ID: Cgs8csbRUMh

--HG--
extra : rebase_source : 1960128558ae9174933cd5be3c1fbfcb79f5ba1d
2016-10-26 10:33:20 -04:00
Andreas Pehrson
75e0ffd718 Bug 1301675 - Test that a track from MediaStreamAudioDestinationNode can be stopped. r=padenot
MozReview-Commit-ID: 5wViWJQmI2H

--HG--
extra : rebase_source : 9792ea4240d830175e8abd3a1901e60bb332fcbd
2016-09-16 11:50:20 +02:00
Andreas Pehrson
86b155361f Bug 1301675 - Implement AudioDestinationTrackSource. r=padenot
So stop()ing the output track can clean up the destination node.

MozReview-Commit-ID: CmMXRCpOeFY

--HG--
extra : rebase_source : f1625cf63989b6ab7283a021cd08bdbabf8d82ed
2016-09-16 11:25:38 +02:00
Nicholas Nethercote
2af130581e Bug 1314556 - Convert TestAudioEventTimeline.cpp to a gtest. r=padenot.
This required moving template function ValidateEvent into the .h file to avoid
linking problems in xul-gtest.

--HG--
rename : dom/media/webaudio/compiledtest/TestAudioEventTimeline.cpp => dom/media/webaudio/gtest/TestAudioEventTimeline.cpp
rename : dom/media/webaudio/compiledtest/moz.build => dom/media/webaudio/gtest/moz.build
extra : rebase_source : 1a8917fc0e75e9c264bc88aec5565d9fff085c12
2016-11-03 13:39:26 +11:00
Dan Minor
50b4412911 Bug 1265401 - Perform linear interpolation when computing the SetValueCurveAtTime events; r=padenot
MozReview-Commit-ID: IOiyq5a4P2A

--HG--
extra : rebase_source : b3d225348d6b8c9dd8b4b20eb11e8ec65413a52e
2016-10-24 13:07:32 -04:00
Dan Minor
4b0ae91ea2 Bug 1308427 - Allow a setTargetAtTime TimeConstant to be 0; r=padenot
MozReview-Commit-ID: 86YSuJDdks8

--HG--
extra : rebase_source : f7bcee3652446e21a7379371e424c5137c3d9391
2016-10-20 11:10:19 -04:00
Ryan VanderMeulen
5c4d7020f2 Merge m-c to inbound. a=merge 2016-10-21 11:08:45 -04:00
Dan Minor
ca6d6b732d Bug 1308432 - Implement ConstantSourceNode; r=padenot
MozReview-Commit-ID: DZ6Zq1rzRwP

--HG--
extra : rebase_source : 6761e21ec9573d8489c48286e87b1eb0cc69e9e8
2016-10-13 15:17:04 -04:00
Dan Minor
a480f90374 Bug 1308432 - Add webidl for ConstantSourceNode; r=smaug
MozReview-Commit-ID: 1VtsBk7icrW

--HG--
extra : rebase_source : 702a5c607bf69245c82fba81b561fcb95290dc96
2016-10-13 10:40:29 -04:00
Dan Minor
c426848b1a Bug 1308432 - Add missing includes to PannerNode.h and PannerNode.cpp; r=padenot
The missing includes were hidden due to the unified build.

MozReview-Commit-ID: 5M3YnyIOW8C

--HG--
extra : rebase_source : 16a1742148c9ac24a3c011b0df3f359d82686df1
2016-10-13 10:41:24 -04:00
Dan Minor
397fdefcf6 Bug 957024 - Update PannerNode distance calculations to match the web audio spec; r=karlt
Distances less than refDistance should be treated as refDistance when calculating
the gain.

MozReview-Commit-ID: JASGb7jLp5L

--HG--
extra : rebase_source : 24e0207b7e6482000ec134bbde59ce448eee25f7
2016-08-16 11:07:12 -04:00
Jon Coppeard
556585c65f Bug 1297558 - Remove explicit calls to Expose*ToActiveJS r=mccr8 2016-10-18 17:58:19 +01:00
Paul Adenot
1de5663f4b Bug 1291702 - Remove the aDestination parameter in DisconnectFromOutputIfConnected and IterateOnDestinationInputs. r=karlt
We do this by abstracting away getting the input for AudioNodes and AudioParams
with templates. This prevents removing the wrong connection when disconnecting
nodes with multiple inputs.

MozReview-Commit-ID: 3fzUKthRM1f
2016-10-20 14:34:27 +02:00
Paul Adenot
0aacea49a5 Bug 1291702 - Rename the argument of the predicate lambda to aInputNode. r=karlt
`aInput` clashes with outer scope variables, and we can't rename captured
variables just yet, as it is a C++14 feature that we can't use in
mozilla-central.

MozReview-Commit-ID: JL4ChEpusM4
2016-10-20 14:34:03 +02:00
Paul Adenot
b16eb24739 Bug 1291702 - Wrap AudioNode.cpp to 80 character lines. r=karlt
This patch only contains indentation changes, line breaks, and whitespace
changes.

MozReview-Commit-ID: 1lhRIecxZ4J
2016-10-20 14:33:59 +02:00
Paul Adenot
5424c454d0 Bug 1291702 - Refactor the input node iteration loop on destination node when disconnecting nodes. r=karlt
MozReview-Commit-ID: FE19hEVhA7R
2016-09-09 13:41:01 +02:00
Dan Minor
fd13f2e7a3 Bug 1291702 - Avoid removing same output node repeatedly during AudioNode disconnect; r=karlt
MozReview-Commit-ID: 5w5972qjwV8
2016-08-11 12:13:33 -04:00
Paul Adenot
f4851b4599 Bug 1130010 - Add tests for the new {AudioParam,AudioNode}.disconnect() methods. r=dminor
Initial patch by Thomas Escalon <tesc.bugzilla@gmail.com>.

MozReview-Commit-ID: 2cptcTYuzDQ
2016-07-18 18:53:24 +02:00
James Cheng
48efb9caad Bug 1300654 Part1-Remove MOZ_EME from code base. r=cpearce,smaug
MozReview-Commit-ID: JboGO0w4tcE

--HG--
extra : rebase_source : abfe53f30081f74fc39c900cab48d08c7574bfec
2016-09-08 18:06:20 +08:00
Paul Adenot
5056af1d5d Bug 1130010: Implement the new AudioNode.disconnect methods. r=dminor,ehsan
Initial patch by Thomas Escalon <tesc.bugzilla@gmail.com>.

MozReview-Commit-ID: KDnmKIGWYL
2015-06-05 11:17:14 +02:00
Alex Chronopoulos
2090e1210d Bug 1286041 - Ignore AudioContext state change to Suspended when in Closed. r=padenot 2016-09-12 12:25:10 +03:00
Matthew Gregan
f0efb94bfd Bug 1303083 - Make CubebUtils::PreferredSampleRate handle InitPreferredSampleRate failures. r=padenot 2016-09-18 16:32:22 +12:00
Makoto Kato
1ab5272de6 Bug 1298569 - Part 2. Replace -fpu=neon with CONFIG['NEON_FLAGS']. r=glandium
Use CONFIG['NEON_FLAGS'] on moz.build instead.

MozReview-Commit-ID: F6R532Hi5mg

--HG--
extra : rebase_source : 7243f316de3138c702f09b336f6d430e6c9c15b5
2016-09-14 18:34:19 +09:00
Jean-Yves Avenard
a3d152a719 Bug 1299072: P7. Use MediaResult with MetadataPromise. r=jwwang
MozReview-Commit-ID: KrRr8wDuPNT

--HG--
extra : rebase_source : 3df3763890a55c898ca3f00dd914e3c78fe714b1
2016-09-10 19:56:50 +10:00
Jean-Yves Avenard
c590867926 Bug 1299072: P6. Pass decoding error details to MDSM and relatives. r=jwwang
MozReview-Commit-ID: 4ow2nF6Syz

--HG--
extra : rebase_source : d8cc561f42ca774b3a2865042392fb4a6aea82fa
2016-09-10 16:48:53 +10:00
Wes Kocher
5cbc382303 Merge inbound to m-c a=merge 2016-09-07 17:54:24 -07:00
Andreas Pehrson
5c882b1fe8 Bug 1300529 - Remove default arguments from AudioNodeStream::Create. r=padenot
MozReview-Commit-ID: KG8PtBbJrc2

--HG--
extra : rebase_source : 4be41a0dff23a62dfa43699a1e0ebd8c429b41b7
2016-09-05 17:25:41 +02:00
Paul Adenot
36a828f198 Bug 1288359 - Add a pref to disable the Web Audio API. r=karlt,smaug
MozReview-Commit-ID: 6h37P9PctYW

--HG--
extra : rebase_source : c4ab6cfe7b8267e6529b10358e3e4102cce1f15f
2016-07-22 13:59:52 +02:00
Sebastian Hengst
aaf35da4fc Backed out changeset 232069c62626 (bug 1286041) 2016-09-06 19:07:22 +02:00
Alex Chronopoulos
04d69510e8 Bug 1286041 - Ignore AudioContext state change to Suspended when in Closed. r=padenot
MozReview-Commit-ID: 2VCBMCdx5xz
2016-09-06 13:40:36 +02:00
Nicholas Nethercote
b71747b2ac Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
The new name makes the sense of the condition much clearer. E.g. compare:

  NS_WARN_IF_FALSE(!rv.Failed());

with:

  NS_WARNING_ASSERTION(!rv.Failed());

The new name also makes it clearer that it only has effect in debug builds,
because that's standard for assertions.

--HG--
extra : rebase_source : 886e57a9e433e0cb6ed635cc075b34b7ebf81853
2016-09-01 15:01:16 +10:00
Andrew McCreight
cdcad29bd2 Bug 1296275 - Be better about exposing to active js in AudioBuffer::StealJSArrayDataIntoSharedChannels(). r=terrence
MozReview-Commit-ID: GC8sncFJlPS

--HG--
extra : rebase_source : 13603a66a9281fc42b59cc71f0793745a04755d9
2016-08-29 15:03:42 -07:00
Wes Kocher
f78f2d693b Merge inbound to central, a=merge 2016-08-25 16:59:00 -07:00
Andreas Pehrson
9a907cfbfc Bug 1259788 - Add a new disabled mode for MSG tracks. r=jesup
MozReview-Commit-ID: 1dMTR4Wmcd8

--HG--
extra : rebase_source : 8c2ea262d53901a11ec5c0e5067f328461dee8f2
2016-08-15 14:19:42 +02:00
Andreas Pehrson
091e8c0b00 Bug 1259788 - Support MediaStream sources for HTMLMediaElement.mozCaptureStream(). r=jesup
This adds support for HTMLMediaElement.mozCaptureStream() and
mozCaptureStreamUntilEnded() for a HTMLMediaElement playing a MediaStream.

This is up to spec, while capturing a HTMLMediaElement playing a file is not.
This incompatibility means we cannot mix sources for the returned MediaStream.

As such, a MediaStream returned while the HTMLMediaElement was playing a file
will only have content while the element is playing files. If the src changes
to a MediaStream, the stream will be empty.

It works the same way if a MediaStream was captured while the HTMLMediaElement
was playing another MediaStream.

This is due to TrackID management - MediaDecoder doesn't care, and creates new
tracks when you seek, so users are unable to keep track, while for MediaStream
we control everything from main thread and keep track of the TrackIDs used
previously.

This also adds a separate path from MediaElementAudioSourceNode so that we don't
forward video tracks when the returned MediaStream is only used internally for
WebAudio. We should in that case not require a DOMMediaStream but just forwarding
tracks to a TrackUnionStream should be enough, and will save us some cpu cycles.
This is however fine for now as it's simpler.

MozReview-Commit-ID: Bg8hESDISDU

--HG--
extra : rebase_source : 83885a73ec8cfc5fbe3c30a9330a52cd6b6dff12
extra : source : f1aec79078869c0a6435a1c06957c649d7a40dd9
2016-08-23 17:51:50 +02:00
Andreas Pehrson
83dcc7266e Bug 1259788 - Break out AddTrackInternal() from DOMMediaStream::CreateDOMTrack. r=jesup
Sometimes a track is added to a stream synchronously (before the stream is
exposed to script), and sometimes asynchronously (see the mediacapture-main spec
on the "addtrack" event).

In the latter case we might still need to create the MediaStreamTrack object
synchronously for tracking purposes. CaptureStream of Media element playing a
MediaStream wants this.

MozReview-Commit-ID: 7me8xzN7rwj

--HG--
extra : rebase_source : 4f129b127b855e47aad2ae9ab3981ffde057412d
2016-08-12 13:50:41 +02:00
Nicholas Nethercote
c2306345d5 Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm.
This patch removes checking of all the callback calls in memory reporter
CollectReport() functions, because it's not useful.

The patch also does some associated clean-up.

- Replaces some uses of nsIMemoryReporterCallback with the preferred
  nsIHandleReportCallback typedef.

- Replaces aCallback/aCb/aClosure with aHandleRepor/aData for CollectReports()
  parameter names, for consistency.

- Adds MOZ_MUST_USE/[must_use] in a few places in nsIMemoryReporter.idl.

- Uses the MOZ_COLLECT_REPORT macro in all suitable places.

Overall the patch reduces code size by ~300 lines and reduces the size of
libxul by about 37 KiB on my Linux64 builds.

--HG--
extra : rebase_source : e94323614bd10463a0c5134a7276238a7ca1cf23
2016-08-24 15:23:45 +10:00
Thomas Wisniewski
6c4149c011 Bug 1017704 - Move DropJSObjects into the destructor in AudioBuffer.cpp. r=mccr8
--HG--
extra : rebase_source : a4c5ee7e40bf26814df7b9397b9862fb08684069
2016-08-20 20:32:52 -04:00
Andreas Pehrson
dc0f8c6c81 Bug 1295296 - Add a mochitest. r=jesup
MozReview-Commit-ID: OolLgdIQy9

--HG--
extra : rebase_source : ed1ba6c14885f17e1d11fb4cb76fe5184f9a0e2a
extra : source : 4c3c88e0fdc55930c9bc2c43667513932417d6c4
2016-08-18 18:39:19 +02:00
Wes Kocher
a58f8b89a0 Merge m-c to inbound, a=merge 2016-08-18 16:32:58 -07:00
Wes Kocher
75891668b5 Merge m-c to fx-team, a=merge 2016-08-17 17:26:23 -07:00
Randell Jesup
bb59c9e52f Backed out changeset 3fb31d11633e (bug 1295296) 2016-08-17 16:22:41 -04:00
Andreas Pehrson
0083eb9342 Bug 1295296 - Ignore video tracks in MediaStreamAudioSourceNode. r=jesup
MozReview-Commit-ID: 1NeFS5wIpxC

--HG--
extra : transplant_source : %CB%0A%A7c%5C%EF%9A%EA%E6D%AE%9C%8F%CC%16%3E%9E%9E2a
2016-08-17 14:26:47 +02:00
Andreas Pehrson
0dd38ea89e Bug 1295296 - Assert that we don't see video tracks in ExternalAudioInputStream. r=jesup
MozReview-Commit-ID: Cw7KMFhY5Ai

--HG--
extra : transplant_source : w_U%C6%0DVL%3F%22%03D%0F%8E%05%86%8A%97%D6%7C%8D
2016-08-17 14:26:15 +02:00
Andreas Pehrson
97c077fd3e Bug 1295296 - Add a mochitest. r=jesup
MozReview-Commit-ID: OolLgdIQy9

--HG--
extra : transplant_source : %87%0E%B2K%BFr%D4%2B%F4%B99r%F7%F3%92%BA%D3%90%A7%FD
2016-08-17 14:25:33 +02:00
Dan Minor
3de6cf478f Bug 1281382 - Fix setTargetAtTime using incorrect starting value when earlier event is skipped; r=karlt
This updates mLastComputedValue when removing events during the call to
CleanupEventsOlderThan.

MozReview-Commit-ID: 1Veyv8kLIna

--HG--
extra : rebase_source : 9ee9aeb458b60316f93616e3310ad26f9e85e79c
2016-08-12 14:57:19 -04:00
Wes Kocher
4aec37ca6e Merge m-c to autoland, a=merge 2016-08-12 16:30:03 -07:00
Nicholas Nethercote
bab6d17ebf Bug 1293117 (part 4) - Change many NS_IMETHODIMP occurrences to NS_IMETHOD. r=froydnj.
This patch makes the following changes on many in-class methods.

- NS_IMETHODIMP F() override;      --> NS_IMETHOD F() override;
- NS_IMETHODIMP F() override {...} --> NS_IMETHOD F() override {...}
- NS_IMETHODIMP F() final;         --> NS_IMETHOD F() final;
- NS_IMETHODIMP F() final {...}    --> NS_IMETHOD F() final {...}

Using NS_IMETHOD is the preferred way of marking in-class virtual methods.
Although these transformations add an explicit |virtual|, they are safe --
there's an implicit |virtual| anyway because |override| and |final| only work
with virtual methods.

--HG--
extra : rebase_source : 386ee4e4ea2ecd8d5001efabc3ac87b4d6c0659f
2016-08-08 10:54:47 +10:00
Dan Minor
37a83aa8e1 Bug 1113634 - Update mLastComputedValue in AudioEventTimeline when skipping events of same time; r=karlt
We need to update mLastComputedValue while processing events that occur at the
same time rather than just skipping over them.

MozReview-Commit-ID: LuxSK6PHFHv

--HG--
extra : rebase_source : be323da2a50ea32838aef322267115d153a14c3d
2016-08-08 16:00:35 -04:00
Kaku Kuo
a6ed727230 Bug 1292091 - Part 2 - replace MaybeResolve(JS::UndefinedHandleValue) with MaybeResolveWithUndefined(); r=bz
MozReview-Commit-ID: KNbxVcCVqts

--HG--
extra : transplant_source : %1D%18%E5%C9o%F0%29%E7%E0%93%EEcR%C7B%3BeX%B3%87
2016-08-09 17:15:13 +08:00
Nicholas Nethercote
e7f10a07fd Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.

As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.

--HG--
extra : rebase_source : 815d0018b0b13329bb5698c410f500dddcc3ee12
2016-08-08 12:18:10 +10:00
Dan Minor
de25516000 Bug 11130010 - Backout new AudioNode.disconnect methods; r=mreavy,karlt,smaug
MozReview-Commit-ID: AgHScRbICYU

--HG--
extra : rebase_source : 9ee0a1b35e5e292059f47fdea9f3782943b2ba5f
extra : amend_source : 40c16a7338c89cbce9ad550453fadbe1b7963aa0
2016-08-16 15:26:35 -04:00
Sebastian Hengst
8c139b8da8 Backed out changeset 74b1d84ac6aa (bug 1113634) for failing Cpp unit test TestAudioEventTimeline. r=backout 2016-08-11 17:30:54 +02:00
Dan Minor
540fbdb6bd Bug 1113634 - Update mLastComputedValue in AudioEventTimeline when skipping events of same time; r=karlt
MozReview-Commit-ID: LuxSK6PHFHv

--HG--
extra : rebase_source : 2f0a906e747f30a83aa7237850245c056e932bd6
2016-08-08 16:00:35 -04:00
Michael Layzell
2513a13f51 Bug 1291741 - Relax setTimeout throttling in background tabs when an AudioContext is present, rather than only when audio is playing, r=bkelly 2016-08-04 16:53:58 -04:00
JW Wang
32c54a1d7b Bug 1290028 - Remove the check for IsShutdown() from MediaDecoder::OwnerHasError(). r=gerald
MozReview-Commit-ID: Cg5UoFngxFr

--HG--
extra : rebase_source : afece4f66454cf7b2c68ede4b5802fc445be96fa
2016-07-28 17:21:09 +08:00
Gerald Squelart
7bea2e1262 Bug 1289668 - Refactor FrameStatistics writers to use Data struct - r=kamidphish
Decoders now use FrameStatisticsData to gather data for their frame-related
notifications. This will ease introducing new members later on.

MozReview-Commit-ID: DWdOSPX3JM

--HG--
extra : rebase_source : a3e05f34353a397d1c82b3f4d935c0864f90556e
2016-07-18 10:41:40 +10:00
Andrea Marchesini
60ab8339e0 Bug 1288736 - Add some missing rv.SuppressException(), r=smaug 2016-07-22 16:50:10 +02:00
Carsten "Tomcat" Book
8b6316ec5f Merge mozilla-central to mozilla-inbound 2016-07-22 11:59:06 +02:00
Carsten "Tomcat" Book
336105a0de merge mozilla-inbound to mozilla-central a=merge 2016-07-22 11:58:02 +02:00
Andrew McCreight
623b56a3f1 Bug 1287143 - Remove the window argument to SpecialPowers.exactGC(). r=jmaher
Cu.forceCC() is the same as DOMWindowUtils.cycleCollect(), but does
not require a window.
2016-07-19 13:13:00 +08:00
Karl Tomlinson
791610c158 mochitest for bug 1255618 r=ehsan
--HG--
extra : transplant_source : %00%09%7E%28%2C%F2%AA%5E%BA0%F6K%0F%06%9A%9E%7C%91%CD%85
2016-03-14 16:58:18 +13:00
Karl Tomlinson
42c4a689dc bug 1242268 collect memory reports of AudioNode dom objects on the main thread r=padenot
This will permit allowing the main thread to run while collecting
reports from graph thread objects.

MozReview-Commit-ID: 7xChGz7xJ8M

--HG--
extra : rebase_source : a69dd197bfd3173c9a46979bac35e654d7d0771e
2016-07-01 18:46:34 +12:00
Karl Tomlinson
c69534f446 bug 1242268 store a node type string pointer on engines and use that for memory reporting r=padenot
removing some off-main-thread usage of AudioNodeEngine::mNode.

MozReview-Commit-ID: GYgFzPJQjjm

--HG--
extra : rebase_source : 9c4697b27bdfee971d9502c4b0573cdb7c740774
2016-07-01 16:26:15 +12:00
Karl Tomlinson
dc9ad2f5b2 bug 1242268 use pointers instead of copies of string literals in AudioNode memory reporting r=padenot
MozReview-Commit-ID: E85FGrmfOWI

--HG--
extra : rebase_source : 0895e91ca000164f70251ae0fbb61fcca39cbe56
2016-07-04 16:24:47 +12:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Carsten "Tomcat" Book
8428cd56e3 merge mozilla-inbound to mozilla-central a=merge 2016-07-20 11:20:15 +02:00
Paul Adenot
d408de78ad Bug 1130010 - Add tests for the new {AudioParam,AudioNode}.disconnect() methods. r=dminor
Initial patch by Thomas Escalon <tesc.bugzilla@gmail.com>.

MozReview-Commit-ID: 2cptcTYuzDQ
2016-07-18 18:53:24 +02:00
Jan-Ivar Bruaroey
594073da3e Bug 1213517 - make getUserMedia store initial constraints on resulting tracks. r=jesup
MozReview-Commit-ID: 291CrmVmq4x

--HG--
extra : rebase_source : d29e6996ee93b01c8abe3a98a3f6d05e98bce3c5
2015-11-24 23:42:26 -05:00
Iris Hsiao
725d265c2c Backed out changeset 0fc93ec9ccd7 (bug 1213517) 2016-07-18 15:41:37 +08:00
Jan-Ivar Bruaroey
e7503fa4a5 Bug 1213517 - make getUserMedia store initial constraints on resulting tracks. r=jesup
MozReview-Commit-ID: 291CrmVmq4x

--HG--
extra : rebase_source : d29e6996ee93b01c8abe3a98a3f6d05e98bce3c5
2015-11-24 23:42:26 -05:00
Dan Minor
6f4290af81 Bug 1265394 - Handle infinite values in SetPosition and SetOrientation; r=padenot
Passing infinite values into an AudioParam will trigger an assert in debug
builds. Returning early here mimics the non-debug behaviour of refusing to
insert an event with an infinite value.

MozReview-Commit-ID: BaAtiAnh1s

--HG--
extra : rebase_source : 29b0e9a1f889c96725afb3abb71541e485330433
extra : histedit_source : 9281990becd2fbc934e121675d3075a40158049d
2016-07-05 14:29:59 -04:00
Dan Minor
de75e41852 Bug 1265394 - Update tests; r=padenot
MozReview-Commit-ID: 1G42f5ct8d4

--HG--
extra : rebase_source : 3c5bace5e1566f9c27a6fbb2f7ec817e094c2759
extra : histedit_source : 9ff9612c0332d05fd5001c1a3eabb04f34f9d05e
2016-06-23 13:41:52 -04:00
Dan Minor
8f422cb76a Bug 1265394 - Use new PannerNode AudioParams; r=padenot
MozReview-Commit-ID: 80n4dp8IrbM

--HG--
extra : rebase_source : 0a987b7e1fdc568a85bbf6824fb2074b07e81e68
extra : histedit_source : 34c7954fb256299ddc1e4df0774d7ffeeeb16eb7
2016-06-23 13:42:12 -04:00
Schwartz Clement
be454b970c Bug 1265394 - Add new PannerNode AudioParams to webidl; r=smaug
MozReview-Commit-ID: I09QSCU9pIr

--HG--
extra : rebase_source : 51f1737285ce7e8f821797c2f2ca43f12dde2958
2016-06-03 14:15:15 +02:00
Paul Adenot
9fe74fa149 Bug 1266646 - Disable assert temporarily to not cause too much pain to sherrifs.
This happens because we take a shortcut sometimes when resolving events, and
this de-linearizes the event queue.

MozReview-Commit-ID: AzJKGfnMNDi
2016-07-07 18:42:23 +02:00
Gregory Szorc
021d3fdfc7 Merge mozilla-central to mozilla-inbound 2016-07-06 18:26:17 -07:00
Wes Kocher
7c9b5f12a6 Merge m-c to autoland, a=merge 2016-07-05 17:14:16 -07:00
Paul Adenot
f754b752be Bug 1273009 - Prune AudioParam events in the main thread when inserting new events. r=karlt
Running the test-case in the bug, and profiling under OSX using Instruments'
time profiler, the time spent in `AudioEventTimeline::ValidateEvent` was the
highest Web Audio API-related function. This patch makes it disappear from the
profile. We already use the same technique on the MSG thread to keep the number
of events low.

MozReview-Commit-ID: GJLPRWBh7nQ
2016-06-29 10:25:58 +02:00
Andreas Pehrson
123a522376 Bug 934512 - Mark MediaStream source node as active while it has live audio tracks. r=padenot
MozReview-Commit-ID: F78FmUMMm6N

--HG--
extra : rebase_source : 707fdcba94859cecc20df3d8c7cbf572fbee10a3
2016-06-27 17:30:01 +02:00
Andreas Pehrson
982874d771 Bug 934512 - Test that MediaStreamAudioSourceNode does not get GCed while it has live audio tracks. r=padenot
MozReview-Commit-ID: u5Qh2aC7gI

--HG--
extra : rebase_source : 471f19f67f6beefb0d3183fe266c6b05c88cd584
2016-06-29 12:27:44 +02:00
Andreas Pehrson
c2f3b97171 Bug 1280445 - Clean up MediaStreamAudioSourceNode's TrackListener on destruction. r=padenot
MozReview-Commit-ID: L8ZOwiiFO15

--HG--
extra : rebase_source : cf0b489701a718950728b5324bbe7ec001ba03d0
2016-06-21 13:45:52 +02:00
Andreas Pehrson
e028368c0f Bug 1280445 - Remove wrapper from MediaStream. r=jesup, r=padenot
MozReview-Commit-ID: CTCFloIUXKa

--HG--
extra : rebase_source : b1c2073c638bb65c19a0f40e8d17e9a5bae15c98
extra : source : c6d854b3209e7de7d97153c0bfc492c1d5f1e6b5
2016-06-29 12:27:13 +02:00
ctai
fd36b32d94 Bug 1266646 - Move group of MediaStreamListener to a new header file. r=pehrsons
This can reduce the include header dependency. MediaStreamVideoSink will inherit from DirectMediaStreamTrackListener. But we can't use forward declaration on MediaStreamListener because the usage of nsTArray<RefPtr<MediaStreamVideoSink>>.

MozReview-Commit-ID: 328s4Kw9NvW

--HG--
extra : transplant_source : %D2%18%E3%3B%0C%D8%F04%F3%EB%EB%A0%A7%8B%B1%A9%AB%97rY
2016-06-30 15:07:48 +08:00
Dan Minor
db1eb8620e Bug 1283910 - Fix initialization of WaveShaperNode output buffer in null input case; r=padenot
MozReview-Commit-ID: 1YtpEvTa5vd

--HG--
extra : rebase_source : e84883081549df585673c87e3d77bc342f1d6522
2016-07-04 13:38:35 -04:00
Paul Adenot
bcad05ddff Bug 1283056 - Cast the enum to int to fix a bustage on a CLOSED TREE.
MozReview-Commit-ID: 8g6gJpz66cu

--HG--
extra : amend_source : 963759b6f8cd4f13ecbde08eb8863d5b5ae06481
2016-07-04 10:19:18 +02:00
Paul Adenot
2a30934f3d Bug 1283056 - Print the invalid state transition before crashing on the assert in AudioContext::OnStateChange. r=karlt
MozReview-Commit-ID: 6m6wmlzDtWk
2016-07-01 09:38:43 +02:00
Chris Pearce
0b88ff590f Bug 1267918 - Add GMPCrashHelper for WebAudio buffer decoder. r=karlt
This means if WebAudio is using the Adobe GMP for decoding and it crashes,
we'll get a crash report for the GMP.

MozReview-Commit-ID: FOZoPxvUwq5

--HG--
extra : rebase_source : 0641e4c46619693b2983a7d7297af525f1ac5bea
2016-06-29 11:42:10 +12:00
Paul Adenot
5e9d303d47 Bug 1269741 - Allow resuming a suspended AudioContext in the same event loop run. r=karlt
MozReview-Commit-ID: L7WlO96d2vh
2016-06-27 14:17:38 +02:00
Paul Adenot
a3c568891c Bug 1269741 - Test. r=karlt
MozReview-Commit-ID: 9dl3e5eTOKV
2016-05-04 14:25:52 +02:00
Paul Adenot
05d76a6ef9 Bug 1281408 - Nullcheck mInputPort in MediaStreamAudioSourceNode to prevent crashing when getting memory reports after the underlying MediaStream has been destroyed. r=pehrsons
MozReview-Commit-ID: 7OzFPmLVJA5

--HG--
extra : rebase_source : 50af142059a0d45521f42cf00c8f22344ffa72ec
2016-06-22 18:20:46 +02:00
Michael Layzell
62918c47a1 Bug 1279092 - Wait for the webaudio-node-demise event, r=padenot 2016-06-24 12:49:51 -04:00
Karl Tomlinson
8f6ffacf7d bug 1213313 set mComputedValue for each tick so that SetTarget values are calculated correctly r=padenot
from mLastComputedValue.

MozReview-Commit-ID: 28lYzlarp8U

--HG--
extra : rebase_source : fc8aca3718d9857b75cd835ffac1940d20e9d943
2016-06-21 18:02:06 +12:00
Karl Tomlinson
470d8c9d1d bug 1257718 replace bailOut variable with more descriptive timeMatchesEventIndex r=padenot
with the new variable matching the loop exit status of interest.

MozReview-Commit-ID: 8xy5ipo4trp

--HG--
extra : rebase_source : e951177af0699a550a4fb56a6192720207e74cb2
2016-06-21 17:48:31 +12:00
Karl Tomlinson
5d244c17fc bug 1257718 look for new events as time advances r=padenot
|bailout| is reset for each aTime, so that the appropriate events for that
time can be found.

The |eventIndex| loop is adjusted so that, when it is re-entered, it keeps
the current set of events if they are appropriate (instead of advancing
every time it is entered).

|previous| and |next| are now advanced even when passing the last event,
removing the special case when past all events.

MozReview-Commit-ID: 8ZSIzKKGQbd

--HG--
extra : rebase_source : bfc899287abaf12d5cdbfbc1b22d6626ab2299dd
2016-06-21 17:01:18 +12:00
Karl Tomlinson
ba91bfca8e bug 1257718 use is() for comparison with more info on failure than ok() r=padenot
MozReview-Commit-ID: 3XgQCq4Gg0S

--HG--
extra : rebase_source : 35a4c0c8a626350f96ba0d2359b28f557235aae4
2016-06-17 14:28:39 +12:00
Karl Tomlinson
b92cb079fc bug 1257718 introduce function-scope TimeOf() to simplify templated event time getter calls r=padenot
MozReview-Commit-ID: 7uKqlT2BpcS

--HG--
extra : rebase_source : 2670536946bde0e1a6911bacbaa68d1c636e6455
2016-06-17 10:54:54 +12:00
Karl Tomlinson
fc997c1ba1 bug 1257718 rename lastEventId to eventIndex r=padenot
This is not necessarily related to the last event and it is not the
previous event.

MozReview-Commit-ID: 6hhv184BHfg

--HG--
extra : rebase_source : 8013606e27a159bb2598217db40df926539227c6
2016-06-17 09:36:24 +12:00
Karl Tomlinson
9d3453793f bug 1257718 don't export implementation of complex timeline methods r=padenot
This limits recompilation required when modifying the methods, and
makes the public interface easier to read.

MozReview-Commit-ID: Lo2f7xmIdGu

--HG--
rename : dom/media/webaudio/AudioEventTimeline.h => dom/media/webaudio/AudioEventTimeline.cpp
extra : rebase_source : 75586bb320dd2e5606e691919b1c6a7c48c2065f
2016-06-17 05:26:13 +12:00
Karl Tomlinson
6fca9ca1b9 bug 1257718 move comment to within the code path it describes r=padenot
The comment was not necessarily true where it was previously positioned.

MozReview-Commit-ID: FMYkGkmuvVS

--HG--
extra : rebase_source : a6ae6958b9486c92c7830fcc334dac66c643dc29
2016-06-17 03:29:40 +12:00