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

15530 Коммитов

Автор SHA1 Сообщение Дата
Michael Froman c0b45a73e5 Bug 1560366 - add WAV decoding on RDD. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D37619

--HG--
extra : moz-landing-system : lando
2019-07-11 19:43:56 +00:00
Bryce Van Dyk ea20dbf0b2 Bug 1560092 - Create decoder for encrypted h264 media even if an SPS is not found. r=jya
If an mp4 uses the AVC3 sample format then extra data will be stored in sample
data rather than in metadata. In encrypted streams the metadata is unencrypted
but samples are typically encrypted. If all samples are encrypted and the only
SPS data is in samples then the MediaChangeMonitor will never observe any SPS
data.

This updates the MediaChangeMonitor so that it will not try and inspect h264
content once encryption is detected and relies on the CDM to handle such
content.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 16:29:18 +00:00
shindli 883c6619a6 Backed out 3 changesets (bug 1324552, bug 1324545, bug 1350973) for causing perma mda leakcheck failures CLOSED TREE
Backed out changeset db14e59c7e6e (bug 1324545)
Backed out changeset 088e13476d39 (bug 1324552)
Backed out changeset e79a64fc49e7 (bug 1350973)
2019-07-11 18:55:03 +03:00
Paul Adenot e66a2c4316 Bug 1324545 - Implement AudioContext getOutputTimestamp(). r=baku
Differential Revision: https://phabricator.services.mozilla.com/D37281

--HG--
extra : moz-landing-system : lando
2019-07-11 13:34:15 +00:00
Paul Adenot 4c99611f32 Bug 1324552 - Implement AudioContext baseLatency and outputLatency attributes. r=pehrsons,baku
Differential Revision: https://phabricator.services.mozilla.com/D37280

--HG--
extra : moz-landing-system : lando
2019-07-11 13:30:07 +00:00
Paul Adenot 03e7bf883c Bug 1350973 - Implement new attributes MediaStreamAudioSourceNode.mediaStream and MediaElementAudioSourceNode.mediaElement. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D37283

--HG--
extra : moz-landing-system : lando
2019-07-11 13:18:51 +00:00
Tarek Ziadé 358d1707a7 Bug 1561404 - Ensure thread safety r=jya
Adds a lock in MediaCacheStream::SizeOfExcludingThis to prevent a race
condition with MediaCache::NoteSeek

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

--HG--
extra : moz-landing-system : lando
2019-07-11 12:15:24 +00:00
John Lin 95099600d5 Bug 1563734 - always sync session ID from remote decoder. r=jya
In bug 1552607/D36382, RemoteDataDecoder always increases session ID but
CodecProxy only performs flush IPC when neccessary. This will cause the
ID numbers out of sync and prevent remote decoder from receiving any
more input. By reading the session ID in dequeued input samples, the
numbers can always be in sync.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 07:25:30 +00:00
Barret Rennie bb885448d8 Bug 1289211 - Rename InfallibleTArray to nsTArray in dom/media/ r=jya
Differential Revision: https://phabricator.services.mozilla.com/D36946

--HG--
extra : moz-landing-system : lando
2019-07-10 04:14:23 +00:00
Paul Adenot 7786a2a4d6 Bug 1456263 - Throw appropriate errors in the ChannelMergerNode ctor. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D37433

--HG--
extra : moz-landing-system : lando
2019-07-10 01:31:21 +00:00
Andreas Pehrson 2283c81baa Bug 1560907 - Remove default value for mediaSource constraint. r=jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D36087

--HG--
extra : moz-landing-system : lando
2019-07-10 09:45:26 +00:00
Jean-Yves Avenard 4bc5c804e3 Bug 1561484 - Keep MediaInfo object for entire benchmark. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D36566

--HG--
extra : moz-landing-system : lando
2019-07-10 05:24:54 +00:00
Razvan Maries 1a0c0179a5 Backed out changeset b157ff9c0f22 (bug 1561484) for build bustages. CLOSED TREE 2019-07-10 08:19:35 +03:00
Jean-Yves Avenard 98fa016236 Bug 1561484 - Keep MediaInfo object for entire benchmark. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D36566

--HG--
extra : moz-landing-system : lando
2019-07-09 21:45:29 +00:00
Andreas Pehrson 54f1db2d04 Bug 1177793 - Update mochitest. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D36918

--HG--
extra : moz-landing-system : lando
2019-07-09 20:07:44 +00:00
Andreas Pehrson 277b0e53db Bug 1177793 - Modernize test_streams_capture_origin.html. r=jib
Depends on D36896

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

--HG--
extra : moz-landing-system : lando
2019-07-08 13:30:23 +00:00
Andreas Pehrson 378c51c9f8 Bug 1177793 - Pass principal instead of forcing black when capturing cross-origin media resource. r=jya,jib
Differential Revision: https://phabricator.services.mozilla.com/D36896

--HG--
extra : moz-landing-system : lando
2019-07-08 21:15:10 +00:00
Bryce Van Dyk 89f408ffff Bug 1549406 - Break out logic to determine encryption scheme for mp4s. r=jya
This is a refactor of the encryption scheme detection used in Index.cpp aside
from one additional check: the new function verifies that if sample group
information is present that it is consistent with other encryption information.

Introduce a new function that contains all the logic to detect the encryption
scheme used for the current sample. This helps separate the logic of scheme
detection from setting scheme specific data on the current sample. This makes
the steps easier to understand and change in isolation.

This function returns a result, with failure cases containing a string
explaining the error. This is motivated by being able to log or surface the
error for failure cases. Logging is not yet implemented, but will be in
bug 1547328.

Driveby add comment documenting GetSampleEncryptionEntry.

Driveby adjust include order to match Mozilla/Google style.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 18:48:38 +00:00
alwu ae4242d665 Bug 1305732 - part7 : remove duplicated declaration. r=heycam
We have declared `supportPseudo`, remove the duplicated declaration.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 04:47:46 +00:00
alwu c2ca57258b Bug 1305732 - part5 : set CSS properties directly on '::cue'. r=heycam,emilio
According to the spec [1], we have to set those CSS properties on the root node, and then this root node would have a child node, background box [2], which would contain all other child nodes.

In our case, the background box is `cueDiv` [3].

In theory, all those properties set on the root node should be inherited by the background box. However, when the background box is a pseudo element `::cue`, they won't be directly inherit from the the background box's parent, inherited styles would acutally come from video instead.

Therefore, we have to directly set these properties on the pseudo element and mark them as `!important` to avoid being overrided by user style script.

[1] https://www.w3.org/TR/webvtt1/#ref-for-list-of-webvtt-node-objects-9
[2] https://www.w3.org/TR/webvtt1/#webvtt-cue-background-box
[3] https://searchfox.org/mozilla-central/rev/11712bd3ce7454923e5931fa92eaf9c01ef35a0a/dom/media/webvtt/vtt.jsm#533-534

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

--HG--
extra : moz-landing-system : lando
2019-07-09 01:42:45 +00:00
alwu fdde30fdd6 Bug 1305732 - part4 : background box should be a inline node. r=heycam
According to the spec [1], the background box should be `display:inline`.

Therefore, we should create a `<span>`, which already is an inline element, for the background box, not a `<div>`, which is a block element.

In addition, when the pseudo element is enabled, even though the element is currently a `div`, it doesn't match the div `{ display: block; }` rule from the UA style sheet because the pseudo element only matches `::cue` rules. It also has the initial value of display which is `inline`.

[1] https://www.w3.org/TR/webvtt1/#webvtt-cue-background-box

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

--HG--
extra : moz-landing-system : lando
2019-07-08 18:02:53 +00:00
alwu 044a87f6e8 Bug 1305732 - part3 : remove redundent properties setting on non-pseudo background node. r=heycam
If the background node is not a pseudo element, these properties would actually be inherited, so we have no need to set them again.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 04:45:01 +00:00
alwu 85d9f025b6 Bug 1305732 - part2 : list all properties set on the root node in one place to make them clear. r=heycam
In order to clearly see what properties are applied on the root node, create a function to list all of them together.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 04:44:47 +00:00
Alastor Wu 540674f2db Bug 1305732 - part1 : don't show the box with zero width or height. r=heycam
Setting cue's position would also affect cue box's size which would be determined by cue's position alignment as well. If the cue box's width or height is zero, it means that this box should not be display on the screen and we should clear cue's display state as well.

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

--HG--
extra : moz-landing-system : lando
2019-07-03 23:07:43 +00:00
Nicholas Nethercote abf15f999d Bug 1560530 - Split StaticPrefs_accessibility.h from StaticPrefs.h. r=froydnj
This implements the machinery for the splitting of static prefs headers, and
uses it for a single header. #includes are used in such a way that the amount
of boilerplate for each static prefs header file is minimal.

Future patches will split the remaining prefs into more header files.

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

--HG--
rename : modules/libpref/StaticPrefs.h => modules/libpref/StaticPrefsBase.h
rename : modules/libpref/StaticPrefs.h => modules/libpref/init/StaticPrefListBegin.h
extra : moz-landing-system : lando
2019-07-08 23:40:39 +00:00
Alastor Wu 3a3f6a61b1 Bug 1544455 - part3 : consider the result of computed position alignment to return correct computed position. r=heycam
In the spec [1], it only considers text's alignment when computing the `position`. However, the text alignment `start` and `end` can make the same result of what `left` and `right` make, depending on what direction the text uses.

For example, setting text alignment `left` is equal to `start` for the LTR text. Therefore, we could check the result of `ComputedPositionAlign`, which would return correctly direction automatically accoding to the text's base direction.

[1] https://www.w3.org/TR/webvtt1/#cue-computed-position

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

--HG--
extra : moz-landing-system : lando
2019-07-02 23:02:19 +00:00
Alastor Wu 7df6fd26b7 Bug 1544455 - part2 : modify test 'test_webvtt_positionalign.html'. r=heycam
Add new test cases for alignment `start` and `end` for both LTR and RTL text.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 17:51:29 +00:00
Alastor Wu d5695bf69c Bug 1544455 - part1 : check the base direction of cue text in 'ComputedPositionAlign()'. r=heycam
According to the spec [1], when text alignment is `start` or `end`, we have to check the base direction of the cue text in order to decide the position alignment.

[1] https://www.w3.org/TR/webvtt1/#cue-computed-position-alignment

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

--HG--
extra : moz-landing-system : lando
2019-07-03 00:39:50 +00:00
Jonathan Kingston 31441f82ea Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D35504

--HG--
extra : moz-landing-system : lando
2019-07-08 16:37:45 +00:00
Andreas Pehrson cf67d306f8 Bug 1561569 - Put limits to width and height constraints in MediaEngineVideoDefault. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D36028

--HG--
extra : moz-landing-system : lando
2019-07-08 14:56:13 +00:00
Andreas Pehrson 90ffbb1560 Bug 1561319 - Check facingMode constraint in MediaEngineDefaultVideo and don't match empty string by default. r=jib
This does two things:
It makes MediaEngineDefaultVideo::GetBestFitnessDistance include a facingMode
check.
It also makes FitnessDistance() for StringRanges take a Maybe<nsString>, since
the device might not have a value for all StringRange constraints, as is the
case for facingMode. This fixes this issue for a MediaEngineRemoteVideoSource
with no facingMode, since such a device would match a facingMode of the empty
string prior to this patch.

To be fully spec compliant, the Maybe should be a set instead, since a device
may support multiple values for the facingMode capability. We don't support
more than one value however, so this change can be made later as needed.

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

--HG--
extra : moz-landing-system : lando
2019-07-05 18:46:32 +00:00
Andreas Pehrson dc0eb05ef0 Bug 1560207 - Reset all settings on every settings update, to avoid double-constructing. r=jib
Depends on D36192

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

--HG--
extra : moz-landing-system : lando
2019-07-05 22:13:11 +00:00
Andreas Pehrson 995ee35634 Bug 1560207 - Give Refcountable assignment operators. r=jib
Depends on D36191

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

--HG--
extra : moz-landing-system : lando
2019-07-05 22:11:22 +00:00
Andreas Pehrson b5260f58d6 Bug 1560207 - Add crashtest. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D36191

--HG--
extra : moz-landing-system : lando
2019-07-05 22:07:17 +00:00
Sylvestre Ledru 131d0c6a02 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-07-06 08:18:28 +00:00
Emilio Cobos Álvarez 1a39c45ae2 Bug 1563728 - Add a return statement to BiquadFilterNode::GetFrequencyResponse to fix bustage. rs=padenot
CLOSED TREE
2019-07-06 10:45:56 +02:00
Paul Adenot 3ffaf1696e Bug 1563728 - Throw when the three parameters of BiquadFilterNode.getFrequencyResponse aren't of the same size. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D37056

--HG--
extra : moz-landing-system : lando
2019-07-05 20:34:47 +00:00
Jan-Ivar Bruaroey 4736d10ce8 Bug 1528031 - Update tests to work with [SecureContext] navigator.mediaDevices. r=pehrsons,smaug
Differential Revision: https://phabricator.services.mozilla.com/D35970

--HG--
extra : moz-landing-system : lando
2019-07-05 21:21:38 +00:00
Sylvestre Ledru 2bf505b023 Bug 1562642 - Add missing MPL2 headers r=mhoye
Differential Revision: https://phabricator.services.mozilla.com/D37053

--HG--
extra : moz-landing-system : lando
2019-07-05 17:05:57 +00:00
Paul Adenot f5a83e7113 Bug 893020 - Make AudioParam.value getter return a value based on the AudioContext.currentTime. r=karlt
AudioWG resolution: https://github.com/WebAudio/web-audio-api/issues/1788#issuecomment-468345987

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

--HG--
extra : moz-landing-system : lando
2019-05-14 05:17:00 +00:00
Alastor Wu 8c92fdce8f Bug 1562021 - part5 : add test 'test_texttrack_mode_change_during_loading.html'. r=jya
In order to simulate the specific running order, we have to add a test event 'mozStartedLoadingTextTrack', which would be controlled under a pref.

This test is used to ensure that we won't get `error` event when we change track's  mode during loading.

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

--HG--
extra : moz-landing-system : lando
2019-07-03 23:28:31 +00:00
Alastor Wu 5113a3b94b Bug 1562021 - part4 : wrap channel and listener clean-up to a function. r=jya
There are several places doing channel or listenr clean up, all these places should do channel and listener clean-up together because they are being used as a pair.

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

--HG--
extra : moz-landing-system : lando
2019-07-03 23:27:12 +00:00
Alastor Wu fd5355860a Bug 1562021 - part3 : cancel old VTT listener when we start a new load. r=jya,baku
When we start a new load, all previous data fetching from the previous listener and all state changing applied to track element should be ignored.

Therefore, we add a new method `Cancel()` which owner of the listener should call when we would like to discard current listener.

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

--HG--
extra : moz-landing-system : lando
2019-07-03 23:23:29 +00:00
Alastor Wu ad11f4deea Bug 1562021 - part1 : modify debug log for WebVTTListener. r=jya
Refactor these log by using the `WebVTT` log module and adding address info in the log.

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

--HG--
extra : moz-landing-system : lando
2019-07-03 23:07:43 +00:00
Victor Porof 0a8ff0ad85 Bug 1561435 - Format dom/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : 62f3501af4bc1c0bd1ee1977a28aee04706a6663
2019-07-05 10:44:55 +02:00
Victor Porof b5a4cb3848 Bug 1558517 - Pre 3.0: Remove conflicting eslint rules, and turn on "curly: all" everywhere, r=standard8
Differential Revision: https://phabricator.services.mozilla.com/D34535

--HG--
extra : source : 74ed7ee773393d305c4e948a57a1b1e32b1f12e8
extra : intermediate-source : 403d0757d61683e0a85d0bb07768eb39fbd0af72
2019-06-28 17:14:01 +02:00
Razvan Maries daed363fd7 Merge mozilla-inbound to mozilla-central a=merge 2019-07-05 00:40:17 +03:00
Oana Pop Rus 2ad74ef9f7 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-07-04 06:38:21 +03:00
Andreas Pehrson 63654234e3 Bug 1559568 - Remove extraneous dtor guard in OutputStreamData. r=padenot
MediaInputPort::Destroy must always be called, or it will not remove its strong
ref to the MediaStreamGraph. The guard is not even needed, since
MediaInputPort::Disconnect is idempotent.

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

--HG--
extra : moz-landing-system : lando
2019-07-04 11:01:59 +00:00
Andreas Pehrson c3318b4aa4 Bug 1559568 - Remove strong refs from OutputStreamManager. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D36570

--HG--
extra : moz-landing-system : lando
2019-07-04 11:01:45 +00:00