Commit Graph

14385 Commits

Author SHA1 Message Date
John Lin
3ef17ab0cb Bug 1508434 - p1: Support explicitly resetting seek threshold. r=jya
Usually the threshold is reset internally in MediaDataDecoder subclasses
that support the hint in their Flush() implementations so the value
will start fresh after seeking completed. But sometimes when there are
consecutive seek requests, MediaFormatReader::DecoderData::Flush() could
return early because DecoderData::mFlushed stays true when there is no
sample demuxed yet, and the threshold will not be cleared. Also, in
MediaFormatReader::SetVideoDecodeThreshold() we decide not to set the
hint when the seek target is close to EOS by checking the existence of
the next keyframe, and that could fail when there are gaps between MSE
buffered ranges. To make sure the hint is never out of date, we should
clear it rather than leaving it untouched.

Differential Revision: https://phabricator.services.mozilla.com/D15227

--HG--
extra : moz-landing-system : lando
2019-01-08 20:57:34 +00:00
Karl Tomlinson
930c7dff0f Bug 1518352 remove unnecessary WeakPtr support from PannerNode r=padenot
This is no longer used since https://hg.mozilla.org/mozilla-central/rev/11b4729e92ec#l3.101

Differential Revision: https://phabricator.services.mozilla.com/D15890

--HG--
extra : moz-landing-system : lando
2019-01-08 10:07:15 +00:00
alwu
15cbe4a2c3 Bug 1512277 - Add Telemetry to know AudioContext blocking status if we enable blocking autoplay for web audio. r=karlt,Dexter
Differential Revision: https://phabricator.services.mozilla.com/D14118

--HG--
extra : moz-landing-system : lando
2019-01-08 21:52:31 +00:00
Andreas Pehrson
6f2800844c Bug 1517711 - Guard other uses of SetPullingEnabled too. r=padenot
Depends on D15892

Differential Revision: https://phabricator.services.mozilla.com/D15896

--HG--
extra : moz-landing-system : lando
2019-01-08 10:06:08 +00:00
Andreas Pehrson
72327b88f5 Bug 1517711 - Check for a destroyed MediaStream on the right thread. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D15892

--HG--
extra : moz-landing-system : lando
2019-01-08 10:06:11 +00:00
Karl Tomlinson
f470a0dcbc Bug 1512737 assign HRTF to panningModel attribute instead of adding type property r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D14494

--HG--
extra : moz-landing-system : lando
2019-01-07 08:51:31 +00:00
alwu
6b72f94b2f Bug 1513039 - part14 : add new error message for web audio. r=baku,flod
Differential Revision: https://phabricator.services.mozilla.com/D14637

--HG--
extra : moz-landing-system : lando
2019-01-07 18:44:03 +00:00
alwu
a4a90d4976 Bug 1513039 - part13 : set 'mWasAllowedToStart' flag. r=karlt
'mWasAllowedToStart' would be set to false if AudioContext is not allowed to start, and would be set to true if AudioContext has been allowed to start.

Differential Revision: https://phabricator.services.mozilla.com/D14636

--HG--
extra : moz-landing-system : lando
2019-01-07 18:43:31 +00:00
alwu
b19b9b34f5 Bug 1513039 - part11 : remove pref 'media.autoplay.ask-permission'. r=cpearce
Depends on D14335

Differential Revision: https://phabricator.services.mozilla.com/D14336

--HG--
extra : moz-landing-system : lando
2019-01-07 18:41:58 +00:00
alwu
edbf43dd41 Bug 1513039 - part10 : remove nsIAutoplay.PROMPT r=daleharvey,cpearce
Depends on D14334

Differential Revision: https://phabricator.services.mozilla.com/D14335

--HG--
extra : moz-landing-system : lando
2019-01-07 18:41:03 +00:00
alwu
047b607301 Bug 1513039 - part6 : remove AutoplayPermissionManager and AutoplayPermissionRequest. r=cpearce,smaug
Depends on D14330

Differential Revision: https://phabricator.services.mozilla.com/D14331

--HG--
extra : moz-landing-system : lando
2019-01-07 18:35:30 +00:00
alwu
2e3f453263 Bug 1513039 - part5 : log warning when autoplay is blocked. r=cpearce,karlt
Wrap 'nsContentUtils::ReportToConsole()' to reduce necessary input parameters and call it when we need to log error or warning message. Show the warning when autoplay is blocked.

For web audio, this restores the console messages removed in part4 and also reports the same message when the AudioContext is blocked in the constructor.

Differential Revision: https://phabricator.services.mozilla.com/D14330

--HG--
extra : moz-landing-system : lando
2019-01-07 19:57:48 +00:00
alwu
28a21fe0ad Bug 1513039 - part4 : remove permission request logic in AudioContext. r=karlt
AudioContext won't need to ask permission request anymore, and we will report error message in patch5.

Differential Revision: https://phabricator.services.mozilla.com/D14329

--HG--
extra : moz-landing-system : lando
2019-01-07 18:33:36 +00:00
alwu
242554622e Bug 1513039 - part1 : remove caching temporary autoplay permission. r=smaug,florian
We're going to remove all autoplay temporary permission related codes, so we don't need to cache it anymore.

Differential Revision: https://phabricator.services.mozilla.com/D14325

--HG--
extra : moz-landing-system : lando
2019-01-07 18:29:10 +00:00
Csoregi Natalia
498c659ff8 Merge inbound to mozilla-central. a=merge 2019-01-07 23:46:59 +02:00
Brindusan Cristian
331818d5aa Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-07 18:46:25 +02:00
Brindusan Cristian
4d62b74678 Merge inbound to mozilla-central. a=merge 2019-01-07 18:43:04 +02:00
Andreas Pehrson
97ca0d12ba Bug 1517710 - Avoid calling SetPullingEnabled on a destroyed MediaStream. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D15798

--HG--
extra : moz-landing-system : lando
2019-01-07 08:24:08 +00:00
Cosmin Sabou
2cbb9f9248 Bug 1453375 - Disable dom/media/test/test_mediarecorder_principals.html on win10 webrender. r=jmaher 2019-01-07 02:45:28 +02:00
Jeremy Lainé
1e7f350880 Bug 1517731 - "Enable mochitests for maxRetransmits and maxPacketLifeTime". r=dminor 2019-01-04 06:36:00 +02:00
Andreea Pavel
95c3660e27 Bug 1485407 - test disabled on android debug r=jmaher 2019-01-03 15:46:00 +02:00
Bryce Van Dyk
d217fb09a2 Bug 1515471 - Add gtest for mp4 sample description entry lookup. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D15442

--HG--
extra : moz-landing-system : lando
2019-01-04 17:57:18 +00:00
Bryce Van Dyk
d93e35223b Bug 1515471 - Tidy mp4parser test cases. r=jya
Driveby tidying:
- Tidy and clarify comment impacted by global clang-formatting.
- Update comments on two test cases disabled by bug 1224019. These tests no
  longer have log spam issues, and have some value as sanity tests, but remain
  disabled due to being resource hogs. Comments indicate this.

Differential Revision: https://phabricator.services.mozilla.com/D15441

--HG--
extra : moz-landing-system : lando
2019-01-03 14:14:24 +00:00
Bryce Van Dyk
49eadf9b1e Bug 1515471 - Persist the track fragment header box on the Moof class. r=jya
Persisting this box lets us use it later while indexing into metadata.
Importantly, it lets us look up the appropriate sample description entry, which
lets us determine if a fragment is associated with crypto information in the
init segment.

Being able to do this is required for cbcs encryption. This will be done in a
follow up bug: Bug 1487416 (and possibly others).

Differential Revision: https://phabricator.services.mozilla.com/D15440

--HG--
extra : moz-landing-system : lando
2019-01-03 14:14:00 +00:00
Bryce Van Dyk
07b9273ae0 Bug 1515471 - Have the moof parser store if sample description entries contain crypto info. r=jya
This is required to disambiguate if samples should be considered encrypted or
not when parsing certain cbcs encrypted files. Unlike with cenc encryption, cbcs
encrypted media may have fragments that lack characteristics from which we can
infer encryption. Because of this we need to store and trust this information
from the sample description box.

Differential Revision: https://phabricator.services.mozilla.com/D15439

--HG--
extra : moz-landing-system : lando
2019-01-04 17:57:04 +00:00
Bryce Van Dyk
5daa213b32 Bug 1515471 - Remove unused code from MoofParser.h r=jya
The following code appears to be dead and is removed:
- The AuxInfo class.
- Moof::ParseSaiz.
- Moof::ParseSaio.
- MoofParser::ParseSinf.

Differential Revision: https://phabricator.services.mozilla.com/D15438

--HG--
extra : moz-landing-system : lando
2019-01-03 14:13:09 +00:00
Andreas Pehrson
fef7f858ef Bug 1513973 - Remove mutable keyword from MediaEngineWebRTCMicrophoneSource runnables. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D15220

--HG--
extra : moz-landing-system : lando
2019-01-04 06:40:05 +00:00
Andreas Pehrson
8acabc8a13 Bug 1513973 - Log NotifyPull per track instead of per stream. r=jib
This better reflects the actual pulling that we do.

Differential Revision: https://phabricator.services.mozilla.com/D15195

--HG--
extra : moz-landing-system : lando
2019-01-04 06:39:58 +00:00
Andreas Pehrson
997855e877 Bug 1513973 - Enable pulling at the same time as starting audio sources. r=jib
Otherwise we risk building up a buffer in the microphone source from when
Start() is run until pulling is enabled. This manifests itself as input latency
to the user.

Differential Revision: https://phabricator.services.mozilla.com/D15194

--HG--
extra : moz-landing-system : lando
2019-01-04 06:39:43 +00:00
Andreas Pehrson
d8bf65f800 Bug 1513973 - Make MediaEngineSource::SetTrack return void. r=jib
All subclasses are now returning NS_OK, so there's no point in keeping nsresult
as the return type.

Differential Revision: https://phabricator.services.mozilla.com/D15193

--HG--
extra : moz-landing-system : lando
2019-01-04 06:39:40 +00:00
Andreas Pehrson
de06fc1905 Bug 1513973 - Remove check for false. r=jib
The microphone source is no longer shared so this check is moot.

Differential Revision: https://phabricator.services.mozilla.com/D15192

--HG--
extra : moz-landing-system : lando
2019-01-04 06:39:33 +00:00
Ciure Andrei
7a748ae68f Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-04 01:03:06 +02:00
Boris Zbarsky
058f83508f Bug 1517434 part 2. Convert existing callers of GetIsSystemPrincipal() to IsSystemPrincipal(). r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D15673

--HG--
extra : moz-landing-system : lando
2019-01-03 20:55:38 +00:00
Andreas Pehrson
4e9e43bc92 Bug 1515873 - Don't create a backend as part of cleanup. r=jib
There's no guarantee a backend exists when a MediaManager does, and
crash-stats shows that shutdown can occur between posting a task and running
it, making it illegal to create a backend anew.

We're safer off avoiding creating a new backend. The cleanup step we're trying
to do is only effective if a backend already exists anyway.

Differential Revision: https://phabricator.services.mozilla.com/D15631

--HG--
extra : moz-landing-system : lando
2019-01-03 04:21:09 +00:00
Andreas Pehrson
e72c999524 Bug 1515873 - Remove aWindowId arg from MediaManager::GetBackend. r=jib
It is unused.

Differential Revision: https://phabricator.services.mozilla.com/D15630

--HG--
extra : moz-landing-system : lando
2019-01-03 05:18:09 +00:00
Bogdan Tara
954395da08 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-01-02 23:41:59 +02:00
Bogdan Tara
6582cc9a1d Merge inbound to mozilla-central. a=merge 2019-01-02 23:36:12 +02:00
Geoff Brown
06eb954bfa Bug 1516441 - Skip dom/media/tests/mochitest/identity on android; r=bc
These tests were already skipped on the Android 4.3 emulator and started
failing on hardware when host-utils were updated to 66.0a.
2019-01-02 09:50:37 -07:00
Geoff Brown
3830f1cb12 Bug 1517170 - Skip some https tests on Android; r=bc
These tests have always been skipped silently. Now that https tests are
enabled to actually run, we find that some (all?) actually fail on Android:
now explicitly skipped to allow for green runs of tier 1 suites.
2019-01-02 09:50:37 -07:00
Nathan Froyd
9acf5a0c63 Bug 1517276 - thread callbacks through MemoryReportRequestClient; r=mccr8
The guts of MemoryReportRequestClient's supporting runnables contain
switches on the particular type of process we're running.  If you're
bringing up a new process type, having to add extra cases for your
process type here is a bit onerous.  These runnables really shouldn't
know anything about the process types that they're running on, either.

The easiest thing to do is modify MemoryReportRequestClient::Start to
take callbacks for what to do when a report is created and when
reporting is finished.  Then all process-specific knowledge can be
pushed out to the clients themselves, leaving MemoryReportRequestClient
and friends process-type agnostic.  We could even, at some later date,
move this code into xpcom/base/ to sit near nsMemoryReporterManager,
where it belongs.
2019-01-02 16:18:13 -05:00
James Willcox
d72a96de1f Bug 1450762 - Don't prompt for device permissions on Android in MediaDevices.enumerateDevices() r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D14575

--HG--
extra : moz-landing-system : lando
2019-01-02 16:44:35 +00:00
Geoff Brown
35e432a3a8 Bug 1392946 - backout 61eca43af2dffc3ba19cf343210d851c638694d5 since it was not effective 2018-12-31 13:24:26 -07:00
Geoff Brown
300213c9ea Bug 1516441 - backout f2dc090551f076387b984a670fe9eb7be9c8d460 since it was not effective 2018-12-31 13:24:23 -07:00
Geoff Brown
d8589d86d7 Bug 1516441 - Skip test_fingerprints.html on android-hw; r=me,a=test-only
This test started to perma-fail after host-utils were updated.
2018-12-31 11:46:07 -07:00
Geoff Brown
fdae0d32eb Bug 1392946 - Skip test_webvtt_positionalign.html on android-hw; r=me,a=test-only
This test started to perma-fail after host-utils were updated.
2018-12-31 11:46:04 -07:00
Andrea Marchesini
a7033b2822 Bug 1515658 - ChannelMediaResource should use the BlobURLs' length when known, r=jya 2019-01-03 19:22:49 +01:00
Emilio Cobos Álvarez
d2ed260822 Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.

Overall it's not a very interesting patch I think.

nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.

I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.

While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Jan-Ivar Bruaroey
cbb94950ec Bug 1321221 - Delay getDisplayMedia() promise until first frame arrives, to pass wpt. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D15283

--HG--
extra : moz-landing-system : lando
2018-12-28 03:13:11 +00:00
Jan-Ivar Bruaroey
c8bbcb8047 Bug 1321221 - Implement getDisplayMedia() and update related wpt tests. r=pehrsons,smaug
Differential Revision: https://phabricator.services.mozilla.com/D15058

--HG--
extra : moz-landing-system : lando
2018-12-28 03:12:57 +00:00
Jan-Ivar Bruaroey
ee3a9f9f4f Bug 1474376 - Merge window+screen sharing for content (list fullscreen as option in window-list), and get away from MediaSourceEnum. r=pehrsons,florian
Differential Revision: https://phabricator.services.mozilla.com/D14941

--HG--
extra : moz-landing-system : lando
2018-12-27 23:40:36 +00:00