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

15189 Коммитов

Автор SHA1 Сообщение Дата
Chris Pearce f0243bf126 Bug 1540573 - P3. Expose network link type on ContentChild for use in content process. r=snorp
In GeckoView the nsINetworkLinkService doesn't work in the content process, as
we don't seem to have an AndroidBridge there, so just maintain the network
connection type on the ContentChild.

(I had considered keeping this on the NeckoChild, but the creation of that is
initiated from the content process side, and there's not an easy and clean way
to have the parent process send us the connection type after construction of
the NeckoParent, other than have the NeckoChild request it either
synchronously, or doing it async and hoping it's not asked for the value before
the response comes in.)

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

--HG--
extra : moz-landing-system : lando
2019-05-06 22:41:25 +00:00
Dorel Luca 2365b4f5b1 Backed out changeset ef8c4674d0b0 (bug 1549383) for Build bustage. CLOSED TREE 2019-05-07 00:14:08 +03:00
Paul Adenot 447322c285 Bug 1549383 - Fix build bustage in CameraParent.cpp. r=jib
`rv` is not used anymore out of Nightly, because diagnostic asserts are
disabled.

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

--HG--
extra : moz-landing-system : lando
2019-05-06 20:56:16 +00:00
Tarek Ziadé 446d5cdff7 Bug 1542674 - Make Media debug info machine parsable r=padenot,smaug
This patch structurizes the media debug information via webidl dictionaries
that are returned by HTMLMediaElement::GetMozRequestDebugInfo() and
MediaSource::GetMozDebugReaderData().

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

--HG--
extra : moz-landing-system : lando
2019-05-06 16:39:58 +00:00
Geoff Brown 18638f8bc4 Bug 1545235 - Enable some android gtests in dom/media/gtest; r=jmaher
With changes from bug 1548555, some of the gtests previously disabled on Android
can be re-enabled.

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

--HG--
extra : moz-landing-system : lando
2019-05-06 18:53:54 +00:00
Jan-Ivar Bruaroey a8cc07510f Bug 1547381 - Call StopTrack() in the right order. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D29924

--HG--
extra : moz-landing-system : lando
2019-05-06 09:14:38 +00:00
Nico Grunbaum 705743fb99 Bug 1528078 - Adding WebRTC device access and deprecated interface telemetry r=jib,smaug
Adding telemetry for gUM, enumerate devices, and mozRTCPeerConnection

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

--HG--
extra : moz-landing-system : lando
2019-05-03 23:50:22 +00:00
Jan-Ivar Bruaroey 2a2f7640e3 Bug 1407415 - Add a CamerasParent shutdown blocker. r=dminor,asuth
Differential Revision: https://phabricator.services.mozilla.com/D29701

--HG--
extra : moz-landing-system : lando
2019-05-03 21:08:45 +00:00
Jan-Ivar Bruaroey e52e8837ef Bug 1407415 - Consolidate media::GetShutdownBarrier() use and return a RefPtr r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D29700

--HG--
extra : moz-landing-system : lando
2019-05-03 21:08:42 +00:00
Jan-Ivar Bruaroey 2a825b2d8a Bug 1407415 - Add a using statement to reduce word wrapping. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D29699

--HG--
extra : moz-landing-system : lando
2019-05-03 21:08:40 +00:00
Byron Campen [:bwc] 622f5f795e Bug 1531910: Re-enable a test-case, and check protocol length based on UTF-8 encoding. r=jib
Depends on D28252

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

--HG--
extra : moz-landing-system : lando
2019-05-03 19:08:25 +00:00
Andreea Pavel e2388edd9f Backed out 7 changesets (bug 1540573) for causing bug 1548441
Backed out changeset dd882b8cd73e (bug 1540573)
Backed out changeset b10d2cae45f2 (bug 1540573)
Backed out changeset 270a8917377f (bug 1540573)
Backed out changeset 3db059b34e40 (bug 1540573)
Backed out changeset fe196b2dfc62 (bug 1540573)
Backed out changeset 1bde5042e507 (bug 1540573)
Backed out changeset 4ff116b9d729 (bug 1540573)
2019-05-03 20:35:27 +03:00
Dorel Luca 926056ac66 Backed out changeset beae0db3529d (bug 1531910) for WPT failures in webrtc/RTCPeerConnection-createDataChannel.html 2019-05-03 18:37:07 +03:00
Boris Zbarsky ff72e84ac1 Bug 1547923 part 4. Add nsIGlobalObject::HasJSGlobal(). r=mccr8
Consumers that just care about this boolean state should use this instead of
getting the JSObject* directly.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 21:32:17 +00:00
Boris Zbarsky 248fcf067d Bug 1547923 part 1. Remove unused callers of GetGlobalJSObject. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D29702

--HG--
extra : moz-landing-system : lando
2019-05-02 18:37:52 +00:00
Bryce Van Dyk e6ea35d315 Bug 1533211 - Remove assertion for if MP4 sample description index is invalid. r=jya
It's possible for a malformed mp4 to contain invalid sample description index in
fragments, that do not reference any sample description entries found in the
header. E.g. the header may contain 2 sample description entries (which should
be indexed with indices 1 and 2), but for a fragment to contain an index to 4.
Instead of asserting in this case we should gracefully fail.

Bug 1547328 plans to add logging for this case, so we have a means to still
detect failures here from bad files.

Depends on D29733

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

--HG--
extra : moz-landing-system : lando
2019-05-03 00:38:10 +00:00
Bryce Van Dyk 910dd0ad38 Bug 1533211 - Add crashtest for MP4 with a bad sample description index. r=jya
Add an mp4 with a bad sample description index to crashtests. When samples in a
fragment are encountered, they should reference a sample description entry found
in the mp4 header. However, it's possible that the index contained in the
fragment may refer to an entry that doesn't exist in the header, as in this
file.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 00:38:28 +00:00
Michael Froman dbe06dee04 Bug 1548686 - only add RemoteDecoderModule in CreatePDMs if e10s. r=jya
This can cause 1proc tests to fail because no decoder ends up supporting
a format.  The particular case was enabling Vorbis decoding on RDD.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 00:35:15 +00:00
Michael Froman 9b57c4ac82 Bug 1548113 - pass mEOS from MediaRawData to remote decoder. r=jya
Lack of mEOS for decoding Vorbis on RDD was causing a mochitest failure
with file spacestorm-1000Hz-100ms.ogg in dom/media/test/test_playback.html.
The symptom was an incorrect frame count here[1].

[1] https://searchfox.org/mozilla-central/rev/b59a99943de4dd314bae4e44ab43ce7687ccbbec/dom/media/platforms/agnostic/VorbisDecoder.cpp#178

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

--HG--
extra : moz-landing-system : lando
2019-05-03 00:36:19 +00:00
Bryce Van Dyk db3021c25c Bug 1533215 - Remove assert that can be triggered by malformed MP4. r=jya
The assert removed here can be triggered by malformed mp4s that lack certain
crypto info (the sinf box), but that still indicate samples are encrypted via
sample description entries.

I plan to follow up the removal here by adding logs so we have some way to
detect this case. This will be done as part of bug 1547328.

Depends on D29692

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

--HG--
extra : moz-landing-system : lando
2019-05-03 00:48:45 +00:00
Bryce Van Dyk be7276c15c Bug 1533215 - Add crashtest for MP4 with encrypted track with bad sinf. r=jya
Add an mp4 with a mangled tenc box to the crashtests. This file has been fuzzed
and appears to have had the tenc box for its second track changed to a '.enc'
box, which means it cannot be parsed. The tenc box is contained in the sinf box,
so this will bust the sinf parse. We should tolerate such bad files and not
assert and/or crash.

Driveby add a comment to another line in crashtests list to make it clear the
bug the file originally relates to.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 00:49:13 +00:00
Byron Campen [:bwc] 17a80eda9c Bug 1531910: Re-enable a test-case, and check protocol length based on UTF-8 encoding. r=jib
Depends on D28252

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

--HG--
extra : moz-landing-system : lando
2019-05-02 18:27:53 +00:00
Chris Pearce c957fbd2ef Bug 1540573 - P5. Only "always throttle" media download to the readahead on cellular connections. r=jya
Normally when downloading media data we throttle the download only if we're
ahead of the read cursor more than the "readahead limit", and if we estimate
that the connection is fast enough that we'll be able to download at a rate
fast enough to playback in real time if we resume it later.

On mobile we additionally override this so that we always throttle the download
once we're ahead of the read cursor by the readahead limit. This is to save
data.  I think we can relax this to only do this override if we're on a
cellular connection; if we're on WiFi we can assume data is cheap.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 02:44:31 +00:00
Chris Pearce c13f163bd6 Bug 1540573 - P4. Use larger MediaCache sizes when on cellular connection. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D26233

--HG--
extra : moz-landing-system : lando
2019-05-03 02:44:05 +00:00
Chris Pearce 693f25ad50 Bug 1540573 - P3. Expose network link type on ContentChild for use in content process. r=snorp
In GeckoView the nsINetworkLinkService doesn't work in the content process, as
we don't seem to have an AndroidBridge there, so just maintain the network
connection type on the ContentChild.

(I had considered keeping this on the NeckoChild, but the creation of that is
initiated from the content process side, and there's not an easy and clean way
to have the parent process send us the connection type after construction of
the NeckoParent, other than have the NeckoChild request it either
synchronously, or doing it async and hoping it's not asked for the value before
the response comes in.)

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

--HG--
extra : moz-landing-system : lando
2019-05-03 02:43:47 +00:00
Michael Froman 8d9ae81a3d Bug 1539030 - (redux) don't attempt RDD launch unless needed. r=jya
Detect content process that already has connection to the RDD process
and don't attempt to relaunch or needlessly call
RDDProcessManager::CreateContentBridge.  Calling CreateContentBridge
unnecessarily causes churn by recreating RemoteDecoderManagerParents.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 21:08:58 +00:00
alwu 6e61f3513b Bug 1540748 - part2 : add warning for negative adjusted time. r=jolin
As the purpose of adjusting time is to make the start of the playback to align to zero, so the result should not be negative.

However, we can't always ensure the demuxed start time is correct, the decoded first frame sample time might be different with the time demuxer provides.

Even if we try to update the start time when we get the first decoded sample, there is still a problem because a decoder might return samples with different order, which means the first frame the decoder returns is probably not a real first frame.

Therefore, using warning to help us knows how many this situaion would be.

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

--HG--
extra : moz-landing-system : lando
2019-04-29 21:44:06 +00:00
Alastor Wu 7d5891752c Bug 1540748 - part1 : Android decoder should throw an error when the decoded sample's time is smaller than the time of first demuxed sample. r=jolin,jya
Considering that the audio sample's time is always increased, the decoded sample's time decoder returns should always be equal or larger than its demuxed time.

When the decoded sample's time is smaller than the time of first demuxed sample, that time would probably cause a problem so we should  throw an error for that.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 17:58:05 +00:00
Alastor Wu 01946df64d Bug 1540748 - part0 : mark functions const. r=jya
There functions won't change any internal variables, so they should be marked as const.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 00:51:54 +00:00
Alastor Wu b0343f16e5 Bug 1546655 - Skip 'flac-s24.flac' and 'opus-mapping2.webm' in test_streams_element_capture.html r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D29594

--HG--
extra : moz-landing-system : lando
2019-05-02 17:48:33 +00:00
Valentin Millet d934ec2ff8 Bug 1530178 - copyFromChannel/copyToChannel until end of buffer when destination/source is longer r=padenot,karlt
than available space, as clarified in https://github.com/WebAudio/web-audio-api/issues/1004

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

--HG--
extra : moz-landing-system : lando
2019-05-02 09:24:57 +00:00
Haik Aftandilian 58067ff840 Bug 1548406 - Part 1 - Simplify MacSandboxInfo and sandbox type enums r=handyman
Replace the MacSandboxType_Plugin sandbox type with MacSandboxType_Flash and MacSandboxType_GMP so that there is a 1:1 association between MacSandboxType values and sandbox policies.

Remove the MacSandboxPluginType enum. Instead of having different MacSandboxPluginTypes, we will just have MacSandboxType_GMP. We only use GMP for two plugin types, Widevine and OpenH264, and they only differ in that Widevine requires accss to the WindowServer.

Remove the MacSandboxPluginInfo struct and move the two needed fields pluginPath and pluginBinaryPath to MacSandboxInfo.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 07:04:44 +00:00
Noemi Erli 54a0234766 Backed out 6 changesets (bug 1540573) for failures in test_CSP.html
Backed out changeset 599e6e06599d (bug 1540573)
Backed out changeset bf725b7daa5b (bug 1540573)
Backed out changeset 814c94b26028 (bug 1540573)
Backed out changeset 3496ca48f6e0 (bug 1540573)
Backed out changeset 2c4303b175ec (bug 1540573)
Backed out changeset b49cd2b191ae (bug 1540573)
2019-05-02 06:41:33 +03:00
Chris Pearce 4c240bf871 Bug 1540573 - P5. Only "always throttle" media download to the readahead on cellular connections. r=jya
Normally when downloading media data we throttle the download only if we're
ahead of the read cursor more than the "readahead limit", and if we estimate
that the connection is fast enough that we'll be able to download at a rate
fast enough to playback in real time if we resume it later.

On mobile we additionally override this so that we always throttle the download
once we're ahead of the read cursor by the readahead limit. This is to save
data.  I think we can relax this to only do this override if we're on a
cellular connection; if we're on WiFi we can assume data is cheap.

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

--HG--
extra : moz-landing-system : lando
2019-05-01 23:48:17 +00:00
Chris Pearce 217bd1680c Bug 1540573 - P4. Use larger MediaCache sizes when on cellular connection. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D26233

--HG--
extra : moz-landing-system : lando
2019-05-01 23:48:13 +00:00
Chris Pearce 8ad76b6460 Bug 1540573 - P3. Expose network link type on ContentChild for use in content process. r=snorp
In GeckoView the nsINetworkLinkService doesn't work in the content process, as
we don't seem to have an AndroidBridge there, so just maintain the network
connection type on the ContentChild.

(I had considered keeping this on the NeckoChild, but the creation of that is
initiated from the content process side, and there's not an easy and clean way
to have the parent process send us the connection type after construction of
the NeckoParent, other than have the NeckoChild request it either
synchronously, or doing it async and hoping it's not asked for the value before
the response comes in.)

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

--HG--
extra : moz-landing-system : lando
2019-05-01 23:46:23 +00:00
Alastor Wu b8d3f16ea7 Bug 1535005 - part2 : add test. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D29095

--HG--
extra : moz-landing-system : lando
2019-05-01 23:02:38 +00:00
Jean-Yves Avenard 703b321635 Bug 1532867 - Force unsigned arithmetic. r=gerald
"For negative a, the behavior of a << b is undefined." https://en.cppreference.com/w/cpp/language/operator_arithmetic

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

--HG--
extra : moz-landing-system : lando
2019-05-01 07:20:23 +00:00
Jean-Yves Avenard da336c5aa4 Bug 1532849 - Prevent arithmetic overflow. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D29461

--HG--
extra : moz-landing-system : lando
2019-05-01 23:13:34 +00:00
Jean-Yves Avenard 8926b1a54d Bug 1534156 - Get around int32_t to float rounding error. r=bryce
float(INT32_MAX); gets compiled into 2.14748365E+9 using clang, which is slightly bigger than INT32_MAX, as such 2.14748365E+9 <= INT32_MAX will return true (as INT32_MAX gets converted to a float)

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

--HG--
extra : moz-landing-system : lando
2019-05-01 23:11:56 +00:00
Dan Minor 4d0f83f387 Bug 1497559 - Remove Application from mediaCaptureWindowState; r=jib
Differential Revision: https://phabricator.services.mozilla.com/D28093

--HG--
extra : moz-landing-system : lando
2019-04-30 15:06:23 +00:00
Dan Minor 522725a730 Bug 1497559 - Remove application capture support; r=ng
This removes all references to application capture except from MediaSourceEnum.
That was left in place so as to not change the enumerated values used
for WEBRTC_GET_USER_MEDIA_TYPE telemetry.

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

--HG--
extra : moz-landing-system : lando
2019-04-26 16:35:39 +00:00
Sylvestre Ledru e226046cb8 Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan
# ignore-this-changeset

Depends on D28954

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

--HG--
extra : moz-landing-system : lando
2019-05-01 08:47:10 +00:00
Andreas Pehrson e8b6f83dce Bug 1538727 - Move TrackListener and track-PrincipalChangeObserver removal to Stop(). r=bryce
These are added in start, and we get into unexpected state if they notify us
after Stop() (when MediaEncoder shuts down and internally removes the tracks
it is encoding) but before Shutdown() when we remove the listeners. This is not
symmetrical. The proper thing to do is to remove these listeners in Stop() as
well.

Depends on D29080

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

--HG--
extra : moz-landing-system : lando
2019-04-30 18:39:21 +00:00
Andreas Pehrson 7485192753 Bug 1538727 - Add crashtest. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D29080

--HG--
extra : moz-landing-system : lando
2019-04-30 18:39:11 +00:00
Jan-Ivar Bruaroey 6b8d3b7ad8 Bug 1335740 - Update wpt & mochitests to work w/[SecureContext] navigator.mediaDevices. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D20425

--HG--
rename : testing/web-platform/meta/mediacapture-streams/MediaDevices-getSupportedConstraints.html.ini => testing/web-platform/meta/mediacapture-streams/MediaDevices-getSupportedConstraints.https.html.ini
rename : testing/web-platform/tests/mediacapture-streams/MediaDevices-getSupportedConstraints.html => testing/web-platform/tests/mediacapture-streams/MediaDevices-getSupportedConstraints.https.html
extra : moz-landing-system : lando
2019-04-30 15:20:53 +00:00
Jan-Ivar Bruaroey 51b1caf0cd Bug 1335740 - getUserMedia() Add 2 prefs to control A) NotAllowedError in http (pref'd on), and B) [SecureContext] navigator.mediaDevices (pref'd off) r=bzbarsky,pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D19549

--HG--
extra : moz-landing-system : lando
2019-04-30 15:20:59 +00:00
Bryce Van Dyk 11a3061e0d Bug 1540580 - Add crashtest for WebM with 0 sized samples. r=jya
Depends on D25846

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

--HG--
extra : moz-landing-system : lando
2019-04-30 15:12:49 +00:00
Bryce Van Dyk 378a61073b Bug 1540580 - WebM demuxer skips empty samples. r=jya
The mp4 demuxer already does this, so have the WebM case follow suit. This
avoids asserts with creating 0 size shmems in the case where the demuxer is
being used with the remote data decoder.

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

--HG--
extra : moz-landing-system : lando
2019-04-30 15:12:30 +00:00
Byron Campen [:bwc] f28444a083 Bug 1531803 - Part 6: Fire track events when that track has been added to a stream. r=jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D25799

--HG--
extra : moz-landing-system : lando
2019-04-29 15:52:03 +00:00