Commit Graph

13835 Commits

Author SHA1 Message Date
Coroiu Cristina
a181840cce Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-09-24 12:52:35 +03:00
Andreas Pehrson
529b7c66ea Bug 1488832 - Change init assert to runtime guard. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D6144

--HG--
extra : moz-landing-system : lando
2018-09-20 12:29:50 +00:00
Andreas Pehrson
3f65f029bf Bug 1488832 - Improve window validity checks after async gUM steps. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D6143

--HG--
extra : moz-landing-system : lando
2018-09-21 08:29:12 +00:00
Andreas Pehrson
e503a31ddc Bug 1488832 - Add mochitest. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D6390

--HG--
extra : moz-landing-system : lando
2018-09-21 18:50:19 +00:00
Chris Peterson
b5ad48a759 Bug 1336712 - dom/media: Remove test checks for Android GB (API Level 15). r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D6583

--HG--
extra : source : 8d277a0ad4e4314054b30b644c7b972ff74e7744
extra : histedit_source : 51f5fc31952641c4df66a6a1eb2a958d52997e8c
2018-09-15 00:12:47 -07:00
Chris Peterson
867866d2d3 Bug 1336712 - dom: Drop test checks for OS X 10.5 and Windows XP. r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D6578

--HG--
extra : source : 682a1bfda27c8e82aea0d86f256d5dee3ff5c2a0
extra : histedit_source : 2e60b58780900e879177542c5e32a27c805e8f67
2018-09-13 23:30:12 -07:00
Bogdan Tara
3e0d3c693c Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-09-22 01:06:13 +03:00
Nathan Froyd
0bd6a5e5e4 Bug 1492894 - part 4 - eliminate already_AddRefed variables in dom/; r=mccr8
We need to disallow these to fix our static analysis, which should have
already been disallowing them.
2018-09-21 16:45:49 -04:00
Bryce Van Dyk
8d1b27c4a2 Bug 1492915 - Stop WebMDemuxer from inspecting partially encrypted packets for keyframe information. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D6415

--HG--
extra : moz-landing-system : lando
2018-09-21 15:58:13 +00:00
alwu
666e27f65b Bug 1476649 - part3 : add test. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D6324

--HG--
extra : moz-landing-system : lando
2018-09-20 22:18:17 +00:00
alwu
863b4b7a26 Bug 1476649 - part2 : adjust next-timestamp for the last frame r=jya
When reading samples from plain file resource, if we can't get the duration from sample, that means it's the last sample. Therefore, the next timestamp should be the track's duration.

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

--HG--
extra : moz-landing-system : lando
2018-09-20 08:27:56 +00:00
alwu
56b18353de Bug 1476649 - part1 : reuse same pattern code. r=jya
As audio track sample and video track sample are both using the same code pattern, we can eliminate
redundant codes.

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

--HG--
extra : moz-landing-system : lando
2018-09-19 21:05:32 +00:00
Byron Campen [:bwc]
93985b16c9 Bug 1486012: Rework ICE restart. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D5897

--HG--
rename : dom/media/tests/mochitest/test_peerConnection_restartIceLocalAndRemoteRollback.html => dom/media/tests/mochitest/test_peerConnection_restartIceLocalAndRemoteRollbackNoSubsequentRestart.html
rename : dom/media/tests/mochitest/test_peerConnection_restartIceLocalRollback.html => dom/media/tests/mochitest/test_peerConnection_restartIceLocalRollbackNoSubsequentRestart.html
extra : moz-landing-system : lando
2018-09-20 16:07:51 +00:00
Bryce Van Dyk
d3c1de1214 Bug 1491117 - Do not add crypto info to unencrypted samples from encrypted WebM tracks. r=jya
WebMs with encrypted tracks may have unencrypted samples in these tracks.
Previously we would populate some of the crypto metadata on these samples. This
data was correct, but it was potentially misleading to include crypto metadata on
clear samples.

This changeset alters the behaviour so that we do not populate any such data for
unencrypted packets. This should not alter existing behaviour, notably the
Widevine CDM version 9 should continue to work. However, this change makes our
samples easier to feed to version 10 of the CDM. Without this change, we would
need to do extra conversion steps to appease the new CDM.

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

--HG--
extra : moz-landing-system : lando
2018-09-19 17:09:29 +00:00
Thomas Daede
3e8224c602 Bug 1368843: Enable libaom on Android. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D6336

--HG--
extra : moz-landing-system : lando
2018-09-20 08:25:35 +00:00
Chris Peterson
a9e2a34ec1 Bug 979649 - Part 1: Drop webrtc test check for Windows XP. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D6120

--HG--
extra : moz-landing-system : lando
2018-09-19 12:43:22 +00:00
Byron Campen [:bwc]
79ea3c1025 Bug 1468451: Add a closed check to addTransceiver. r+jib r=jib
MozReview-Commit-ID: DMmorKFz5EL

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

--HG--
extra : moz-landing-system : lando
2018-09-19 21:03:30 +00:00
Andreas Pehrson
35e775d5ca Bug 1253499 - Add live setParameters checks to simulcast_OddResolution mochitest. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D4128

--HG--
extra : moz-landing-system : lando
2018-09-19 15:00:15 +00:00
Andreas Pehrson
022de58578 Bug 1253499 - Add method for changing size to VideoFrameEmitter. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D5860

--HG--
extra : moz-landing-system : lando
2018-09-19 15:00:08 +00:00
Andreas Pehrson
ed6cf715a9 Bug 1253499 - Add mochitest for live-updating scaleResolutionDownBy. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D4127

--HG--
extra : moz-landing-system : lando
2018-09-19 15:00:02 +00:00
Andreas Pehrson
f389699776 Bug 1253499 - Update simulcast mochitests to cover new scaling algorithm. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D4126

--HG--
extra : moz-landing-system : lando
2018-09-19 14:59:56 +00:00
Andreas Pehrson
9ef4251a71 Bug 1253499 - Make VideoFrameEmitter use both width and height. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D4125

--HG--
extra : moz-landing-system : lando
2018-09-19 14:59:50 +00:00
Jean-Yves Avenard
5957f22482 Bug 1492365 - Prevent arithmetic overflow. r=gerald
Should mStreamLength be > 2^32, we could have overflowed leading to false positive test.

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

--HG--
extra : moz-landing-system : lando
2018-09-19 08:34:15 +00:00
arthur.iakab
1ee75a928a Merge inbound to mozilla-central a=merge 2018-09-19 05:18:50 +03:00
alwu
6b88cb930f Bug 1489375 - part1 : do not recreate AudioChannelAgent. r=padenot
When calling resume() on a running AudioContext, there is no need to discard current AudioChannelAgent and then create a new one.

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

--HG--
extra : moz-landing-system : lando
2018-09-18 14:57:30 +00:00
Jean-Yves Avenard
8768e0b175 Bug 1491132 - Clamp cache reads to content size. r=gerald
Prior bug 1416085, reads were clamped to the content's duration (if known). It appears that the new code relied on MediaCacheReadBlockFromCache to properly account for the end of content.

However, this was not the case, the MediaCache always reads (and write) one full block at a time regardles of the size requested (a block is 32768 bytes).

Rather than clamping in the Read() method as it used to be, we clamp in ReadBlockFromCache as such safety will benefit other callers that would have otherwise also returned garbage reads.

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

--HG--
extra : moz-landing-system : lando
2018-09-17 17:41:31 +00:00
Dorel Luca
e504175469 Bug 1481101 - Disabled test_getUserMedia_audioConstraints_concurrentIframes.html for frequent failures. r=jmaher 2018-09-17 17:59:00 +03:00
alwu
2183140f78 Bug 1489278 - part2 : add test. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D5611

--HG--
extra : moz-landing-system : lando
2018-09-13 11:39:14 +00:00
alwu
d7a75adbdb Bug 1489278 - part1 : show doorhanger when create AudioContext r=padenot
In the ideal situation, sites should create AudioContext only when sites are going to produce
sound, so we would show doorhanger to ask users whether they want to allow autoplay.

We delay the AudioContext's state transition from `suspended` to `running` until
(1) user click 'Allow' button in doorhanger
(2) user interact with sites, and then AudioContext calls resume() again

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

--HG--
extra : moz-landing-system : lando
2018-09-13 16:51:07 +00:00
Andreas Pehrson
c66af482b6 Bug 1490700 - Cap capability values to avoid truncation. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D5785

--HG--
extra : moz-landing-system : lando
2018-09-14 09:15:53 +00:00
Andreas Pehrson
bbcf773bf1 Bug 1490700 - Ignore scaling requests to a max dimension of 0. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D5784

--HG--
extra : moz-landing-system : lando
2018-09-14 09:16:24 +00:00
Andreas Pehrson
54c2771d20 Bug 1490700 - Add crashtest. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D5783

--HG--
extra : moz-landing-system : lando
2018-09-14 09:15:46 +00:00
Timothy Guan-tin Chien
9455e67e2c Bug 1491066 - Allow TextTrackManager to pass cue without videocontrols r=alwu
With UA Widget, the videocontrols container is created lazily.
It won't be a problem for WebVTT.processCues() in vtt.jsm, so
TextTrackManager::UpdateCueDisplay() should not early return there, but pass
nullptr to it.

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

--HG--
extra : moz-landing-system : lando
2018-09-13 22:38:43 +00:00
Noemi Erli
a548d10a8c Merge inbound to mozilla-central. a=merge 2018-09-14 01:01:37 +03:00
alwu
96bbc1cbf8 Bug 1490074 - add Telemetry to know how long the AudioContext become audible since it was created. r=padenot,francois
I want to know how many sites will have that scenario which is to create AudioContext in advance and produces sound later (ex. when user click the page or certain button).

I will add a Telemetry probe to meausure how long the AudioContext would become audible since it was created.

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

--HG--
extra : moz-landing-system : lando
2018-09-13 16:58:05 +00:00
Bryce Van Dyk
bedc01c77a Bug 1487811 - P4: Implement CDM10 -> CDM9 compat layer. r=cpearce
Implement a compatibility layer so that we can expose a CDM10 interface while
still using CDM9. Notably, this layer checks to make sure the new encryption
scheme introduced with CDM10 is not used with CDM9.

Depends on D5630

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

--HG--
extra : moz-landing-system : lando
2018-09-13 15:11:17 +00:00
Bryce Van Dyk
ebabdad8ee Bug 1487811 - P3: Add CDM10 functions to IPDL. r=cpearce
The CDM10 interface makes 2 notable changes here:
1) Instead of the binary choice between unencrypted and encrypted (which assumed
cenc encryption), the interface now allows for specification of encryption used.
Practically this means we will eventually need to support choosing between not
encrypted, cenc, or cbcs.
2) The interface adds a bool for hardware secure codecs for use when
initializing the CDM.

This changeset adjusts the IPDL for the CDM to accommodate these changes. The
changes are also supported in surrounding code, but are not fully plumbed to
either the web, or the CDM.

Fully supporting new encryption schemes and hardware secure codecs will require
further work which is beyond the scope of this bug.

Some formatting drive bys so new formatting and old formatting both match
expected formatting by clang-format.

Depends on D5629

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

--HG--
extra : moz-landing-system : lando
2018-09-13 14:49:45 +00:00
Bryce Van Dyk
0a25798c4e Bug 1487811 - P2 Remove CDM8 interface specific IPDL. r=cpearce
Remove members only used by CDM8 from the IPDL and remove code that depended on
the removed IPDL. Rename various instances of 'error' to 'exception' as from
CDM9 'exception' is used exclusively to refer to promise failure states.

Depends on D5628

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

--HG--
extra : moz-landing-system : lando
2018-09-13 14:49:27 +00:00
Bryce Van Dyk
413ba3feef Bug 1487811 - P1: Update Widevine headers and C++ code to prepare for CDM interface 10 support. r=cpearce
Update content_decryption_module.h and other Widevine headers. This removes the
CDM8 interface and adds in the CDM10 and CDM11 interfaces. As such this patch
removes references to CDM8 from the code and adds some of the foundations for
supporting CDM10. Most of the CDM10 code will be implemented in another bug, but
there are a number of cases where it was straight forward to shuffle CDM8+9 code
-> CDM9+10, rather than deleting it and replacing it later.

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

--HG--
extra : moz-landing-system : lando
2018-09-13 14:49:10 +00:00
Thomas Daede
65fe410cae Bug 1490877: Make codecs=av01* mimetypes work with MSE. r=jya
While the MP4 parser correctly handles the av01* codec string, it
is then converted to a video/av01* mimetype to search for a PDM.
The libaom PDM only accepts video/av1, so always produce a video/av1
MIME type from a codecs=av01 string.

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

--HG--
extra : moz-landing-system : lando
2018-09-13 07:55:17 +00:00
Andreas Pehrson
15606e2807 Bug 1404992 - Initialize primitive VP8TrackEncoder members in declarations. r=dminor
--HG--
extra : rebase_source : c121870ba14181687c5492d42fb748dcb666065f
extra : source : 5cdee8077cab849ffe6e9dbf6f6498d6d20c6817
2018-09-11 14:51:18 +02:00
Andreas Pehrson
16fdd518b3 Bug 1404992 - Use common code to convert images to I420. r=dminor
--HG--
extra : rebase_source : 7cb2c551870e06f4929da3366a523eaff9b86b2c
extra : source : f37bd9a9f4af84a6068d0b030427dab47bed7eb8
2018-09-11 14:51:16 +02:00
Cosmin Sabou
de7676288a Merge mozilla-inbound to mozilla-central. a=merge 2018-09-11 13:06:37 +03:00
Jean-Yves Avenard
1e194027cb Bug 1484783 - Ensure to read the default stride when hardware acceleration isn't usable. r=mattwoodrow
On some platforms where a hardware decoder is present, but non functioning, we would fail to initialize the video stride, leading to the frames being incorrectly displayed later.

Also delete the DXVA2 manager early under those circumstances

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

--HG--
extra : moz-landing-system : lando
2018-09-11 00:52:09 +00:00
Jean-Yves Avenard
ee4625f0a7 Bug 1489049 - Don't recycle decoder on codec change. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D5397

--HG--
extra : moz-landing-system : lando
2018-09-10 21:37:19 +00:00
Gerald Squelart
b51e0fd0cc Bug 1489944 - Fixed some std::move warnings - r=froydnj
> dom/media/gmp/CDMStorageIdProvider.cpp(63,10):  warning:
> local variable 'storageId' will be copied despite being returned by name [-Wreturn-std-move]
nsAutoCString -> nsCString, will add std::move().

> layout/painting/DisplayItemClip.cpp(581,10):  warning:
> local variable 'str' will be copied despite being returned by name [-Wreturn-std-move]
nsAutoCString -> nsCString, will add std::move().

> layout/painting/DisplayItemClipChain.cpp(88,10):  warning:
> local variable 'str' will be copied despite being returned by name [-Wreturn-std-move]
nsAutoCString -> nsCString, will add std::move().

> layout/painting/nsDisplayList.cpp(179,10):  warning:
> local variable 'str' will be copied despite being returned by name [-Wreturn-std-move]
nsAutoCString -> nsCString, will add std::move().

> gfx/thebes/gfxWindowsPlatform.cpp(454,10):  warning:
> moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
Will remove std::move().

> gfx/thebes/gfxFontEntry.cpp(245,20):  warning:
> local variable 'name' will be copied despite being returned by name [-Wreturn-std-move]
nsAutoCString -> nsCString, will add std::move().

> netwerk/cookie/nsCookieService.cpp(4460,10):  warning:
> local variable 'path' will be copied despite being returned by name [-Wreturn-std-move]
GetPathFromURI() result is stored in an nsAutoCString, so it might as well return that type.

> toolkit/components/extensions/WebExtensionPolicy.cpp(462,12):  warning:
> local variable 'result' will be copied despite being returned by name [-Wreturn-std-move]
> toolkit/components/extensions/WebExtensionPolicy.cpp(475,10):  warning:
> local variable 'result' will be copied despite being returned by name [-Wreturn-std-move]
`result` may be empty or may be arbitrarily long, so I'll use nsCString inside the function.

> toolkit/xre/CmdLineAndEnvUtils.h(349,10):  warning:
> moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
Returning an UniquePtr, will remove std::move().
Also will `return s` instead of `return nullptr` when `(!s)`, to avoid extra construction which could also prevent elision (not entirely sure, but it's at least not worse!); and it's clearer that the two `return`s return the same already-constructed on-stack object.

> tools/profiler/core/shared-libraries-win32.cc(111,10):  warning:
> local variable 'version' will be copied despite being returned by name [-Wreturn-std-move]
nsPrintfCString -> nsCString, will add std::move().

> xpcom/glue/FileUtils.cpp(179,10):  warning:
> local variable 'fullName' will be copied despite being returned by name [-Wreturn-std-move]
> xpcom/glue/FileUtils.cpp(209,10):  warning:
> local variable 'path' will be copied despite being returned by name [-Wreturn-std-move]
nsAuto{,C}String -> ns{,C}String, will add std::move().

This allowed removals of 'AllowCompilerWarnings' from layout/painting,
netwerk/cookie, and toolkit/components/extensions.

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

--HG--
extra : moz-landing-system : lando
2018-09-10 15:51:48 +00:00
Jan-Ivar Bruaroey
c65e5bbe7b Bug 1489623 - Throw SyntaxError on empty urls in iceServers and switch to real SyntaxError over DOMException, + update WPT. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D5452

--HG--
extra : moz-landing-system : lando
2018-09-10 19:23:15 +00:00
Mike Hommey
117e48720c Bug 1489363 - Replace some string.Assign* with AssignLiteral. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D5224

--HG--
extra : moz-landing-system : lando
2018-09-07 22:12:01 +00:00
Jean-Yves Avenard
ebe177f75e Bug 1489102 - P5. Ensure the Opus decoder never returns an empty sample. r=bryce
This leads to audio content having negative start time

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

--HG--
extra : moz-landing-system : lando
2018-09-07 18:38:34 +00:00
Jean-Yves Avenard
d5fd103cae Bug 1489102 - P4. Add flac in mp4 plain file test. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D5242

--HG--
extra : moz-landing-system : lando
2018-09-07 14:18:15 +00:00