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

15519 Коммитов

Автор SHA1 Сообщение Дата
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
Andreas Pehrson 028862e84c Bug 1559568 - Make DOMMediaStream support WeakPtr. r=jya
As required by the next patch to avoid strong refs to DOMMediaStream in
OutputStreamManager.

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

--HG--
extra : moz-landing-system : lando
2019-07-03 09:09:40 +00:00
Paul Adenot 1877aafe44 Bug 1563193 - Remove "media.webaudio.audiocontextoptions-samplerate.enabled". r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D36733

--HG--
extra : moz-landing-system : lando
2019-07-03 12:12:15 +00:00
Kris Maglione b459f53a11 Bug 1561061: Move SpecialPowers pref env code to parent and make sane-ish. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D35706

--HG--
extra : rebase_source : ec33af8c17048c3828d4ca4643e2e17bd2a854c0
extra : source : c2d0956f41d82e76c682f829807e818863cd802a
2019-06-24 13:47:53 -07:00
Andreas Pehrson 3aa79baaae Bug 1523563 - Modernize test_gUM_audioCapture.html somewhat. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D35174

--HG--
extra : moz-landing-system : lando
2019-06-20 08:03:35 +00:00
Andreas Pehrson 6dc2504942 Bug 1523563 - Make sense of EbmlComposer. r=bryce
This does two things:
- Makes the code for how flushing works actually readable (seriously).
- Allows audio-only webms.

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

--HG--
extra : moz-landing-system : lando
2019-07-03 09:25:03 +00:00
Andreas Pehrson b2f96303bf Bug 1523563 - Make mochitests pass with new video/webm fallback. r=jib
From the previous patch, if ogg is disabled we'll fallback on video/webm.
So some tests relying on errors need it disabled too, in order to pass.

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

--HG--
extra : moz-landing-system : lando
2019-06-19 16:09:44 +00:00
Andreas Pehrson 82a2eb17d3 Bug 1523563 - Pass in mime type to MediaEncoder and give preference to it when passed. r=jib
Somewhere along the way this must have gotten broken.
Until this, passing mime type to MediaRecorder has had no effect.

This patch does two things:
1) Passes the mime type through from MediaRecorder to MediaEncoder
2) Gives preference to the mime type when passed, wrt picking codecs,
   however, we still yield to a video mime type when given a video track
   since that's how both Firefox and Chromium function today.

Proper spec handling of mime type will be fixed in bug 1512175.

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

--HG--
extra : moz-landing-system : lando
2019-06-19 16:09:35 +00:00
Andreas Pehrson 1b58bc5b84 Bug 1523563 - Test all mime types with audio node recording. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D35170

--HG--
extra : moz-landing-system : lando
2019-06-19 16:09:26 +00:00
Andreas Pehrson ca22489bbb Bug 1523563 - Modernize test_mr_record_audionode.html. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D35169

--HG--
extra : moz-landing-system : lando
2019-06-19 16:09:17 +00:00
John Lin a987fc3b69 Bug 1552607 - p2: check sample session ID when processing buffers. r=jya
Because IPC call runs asynchronously in both remote decoder process and
content process, ProcessOutput() for buffers prior to Flush() could be
scheduled to run after the flush promise is resolved, and Codec.queueInput()
could be preempted and processes prior sample after flush.
To help check the validness of buffers, a session ID increased by flush
is added to both RemoteDataDecoder and remote codec service and will be
passed through IPC. If the passed ID doesn't agree with current session
ID, it means the buffer doesn't belong to current session and should be
discard.

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

--HG--
extra : moz-landing-system : lando
2019-07-02 18:12:44 +00:00
Andreas Pehrson 19c022c9e4 Bug 1405083 - Re-enable test_getUserMedia_basicScreenshare.html on linux64. r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D36220

--HG--
extra : moz-landing-system : lando
2019-07-01 18:26:52 +00:00