Commit Graph

13005 Commits

Author SHA1 Message Date
Eitan Isaacson
9f972b9f46 Bug 1437332 - Don't speak after inner window was destroyed. r=smaug 2018-02-26 16:09:00 +02:00
Andreea Pavel
fa0861e443 Merge mozilla-inbound to mozilla-central. a=merge on a CLOSED TREE 2018-02-28 00:24:02 +02:00
Peter Van der Beken
6cf0e1c871 Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
--HG--
extra : rebase_source : f6f781b04923f67f60718706a78b3c4de15eca94
2018-02-22 20:22:29 +01:00
Andreas Pehrson
8963e5d00e Bug 1439529 - Same resolution is also feasible. r=jib
MozReview-Commit-ID: F9DGzgr7pCN

--HG--
extra : rebase_source : ca3817b548033e0447236a61f54d3f9711c77bbe
2018-02-26 11:07:53 +01:00
Tiberius Oros
5bf13b301a Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-02-27 00:22:22 +02:00
Tiberius Oros
ba173eb9ee Merge inbound to mozilla-central. a=merge 2018-02-27 00:19:49 +02:00
Brindusan Cristian
e1d9e5f7ed Backed out 4 changesets (bug 1436074, bug 1436694) for frequent asertion failures at MediaEngineWebRTCAudio.cpp CLOSED TREE
Backed out changeset 1aff350b83b8 (bug 1436074)
Backed out changeset f5cc71d38e4a (bug 1436694)
Backed out changeset 6c38cc382d21 (bug 1436694)
Backed out changeset ae428bfb913f (bug 1436694)
2018-02-26 17:54:18 +02:00
Narcis Beleuzu
5968b0947f Backed out 10 changesets (bug 1410456) for Android mochitest crashes, e.g. in test_postMessages.html. CLOSED TREE
Backed out changeset 7ec175446efd (bug 1410456)
Backed out changeset 94457911bb24 (bug 1410456)
Backed out changeset 5248a21216ae (bug 1410456)
Backed out changeset f182ab7885db (bug 1410456)
Backed out changeset e482347bdae3 (bug 1410456)
Backed out changeset f7b646045e06 (bug 1410456)
Backed out changeset 6a8ed4bf5d2f (bug 1410456)
Backed out changeset 1a9c687ec277 (bug 1410456)
Backed out changeset 82f6667c6758 (bug 1410456)
Backed out changeset 7bf358e3e01b (bug 1410456)
2018-02-26 15:58:20 +02:00
Andreas Pehrson
c597c8df87 Bug 1440252 - Implement MediaEngineWebRTCMicrophoneSource::GetSettings. r=padenot
MozReview-Commit-ID: IVbax9Xxs8R

--HG--
extra : rebase_source : 6d42af31705860100ba40b0d750ddce2b513467d
2018-02-26 09:41:20 +01:00
Alex Chronopoulos
816b44e1a0 Bug 1410456 - use jni methods in place of removed cubeb methods. r=padenot
MozReview-Commit-ID: 18fQVZeYAgk

--HG--
extra : rebase_source : 67b9df3bdfb22d2baa05a15f6535af8d3d5c12d9
2018-02-20 15:37:07 +02:00
Nick Alexander
03710dc7d0 Bug 1440743 - Part 2: Remove most of MOZ_BUILD_MOBILE_ANDROID_WITH_GRADLE. r=jchen
This is the easy stuff -- everything but mobile/android/base/Makefile.in.

MozReview-Commit-ID: 5x2z97AHUrR

--HG--
extra : rebase_source : 531fd41d367cad071b209b85ca5b5602fd7cbf7b
2018-02-22 11:45:51 -08:00
Paul Adenot
992d7d94eb Bug 1439046 - Guard against division by zero in DynamicsCompressorKernel.cpp. r=pehrsons
MozReview-Commit-ID: 2DlebpogUHm

--HG--
extra : rebase_source : fb28ec70ed9bff57fec0475f08563d080c00477f
2018-02-23 14:06:51 +01:00
Florian Quèze
682b1ec3b2 Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
Andreas Pehrson
210228f94e Bug 1436074 - Reduce turn-off timer by time since we turned on. r=jib
MozReview-Commit-ID: 2AvnJxUSTmy

--HG--
extra : rebase_source : c0f0755c15e9ed564f333856125a1c1a9e05b4bf
2018-02-14 16:35:45 +01:00
Andreas Pehrson
0815f2e5dc Bug 1436694 - Clarify that MediaEngineSources can be double-stopped. r=padenot
This is already true for the audio sources. It should be for all.

Crashtests showed that shutting down amidst the async init can lead to
double-stops. It is impossible to completely protect yourself from them without
waiting for all queued operations to resolve (results to become known) before
taking action. Doing that would require a refactor in MediaManager and cause
higher latency for device operations so it seems like the wrong way to go.

MozReview-Commit-ID: 5Cci6whzTL7

--HG--
extra : rebase_source : 18efef4e294ac2b02753721ca5813bcbf63e3111
2018-02-22 12:23:06 +01:00
Andreas Pehrson
98c3816ece Bug 1436694 - MozPromisify device initialization and move it to SourceListener. r=jib
This so that SourceListener can keep its internal state in sync with the result
of the start operation.

MozReview-Commit-ID: Cgl5TFnpCeW

--HG--
extra : rebase_source : 4a7e8c1217b0db3879312d4b33dc74227e969608
2018-02-16 11:55:27 +01:00
Andreas Pehrson
fc712f4a1a Bug 1436694 - Make a PostTask variant that returns a MozPromise. r=jib, r=jya
MozReview-Commit-ID: 76mLpntaU5v

--HG--
extra : rebase_source : bd0ac6102854b5d50d711c16c94c6cfd07274f69
2018-02-15 15:18:12 +01:00
Paul Adenot
104e61097b Bug 1426129 - Take a reference to this when calling methods asynchronously in CameraChild.cpp r=pehrsons
--HG--
extra : rebase_source : 5912873029dbecabe3a106f4f1cf35684db0a461
2018-02-23 17:35:27 +01:00
Geoff Brown
764e843d9a Bug 1339568 - Re-enable some mochitest-media tests on linux/debug and linux/asan; r=whimboo 2018-02-23 09:47:56 -07:00
Andreas Pehrson
ce1efe51da Bug 1440347 - Lock while modifying mAllocations. r=padenot
--HG--
extra : rebase_source : 2f5c6e13e8f930b82ff26190485bb8eed69592e4
extra : histedit_source : 0b3cfe11cdd16ee5bf42eec68196de9531e2c36b
2018-02-23 10:20:01 +01:00
Ben Kelly
75bf35692e Bug 1440407 P2 Remove some unnecessary nsPIDOMWindowInner QI to nsIGlobalObject. r=mystor 2018-02-22 14:28:39 -08:00
Chris Pearce
08a18dd75d Bug 1439433 - Length check FileBlockCache::mBlockChanges access. r=gerald
I can't for the life of me figure out how we get into the situation
where the block change list is empty here, or how we can get past some
of the existing null checks in the code, but we can at least add some
more checks to hopefully ensure we don't crash...

MozReview-Commit-ID: 168G94IyrWt

--HG--
extra : rebase_source : b6ada7bfb755ae285f0010bd6eff2e305fc5fbf0
2018-02-22 15:00:18 +13:00
Nico Grunbaum
0b893198d5 Bug 1439041 - tighten up RTP sources mochitests r=mjf
MozReview-Commit-ID: 6fzHZpe1U0w

--HG--
extra : rebase_source : a5f5436efc1c12b0693814b5397d4777b4cd9dbc
2018-02-16 17:21:38 -08:00
Csoregi Natalia
8922f96260 Backed out changeset c5285ff72ac4 (bug 1439433) for build bustage. CLOSED TREE 2018-02-22 04:47:45 +02:00
Chris Pearce
fe23f86bc0 Bug 1439433 - Length check FileBlockCache::mBlockChanges access. r=gerald
I can't for the life of me figure out how we get into the situation
where the block change list is empty here, or how we can get past some
of the existing null checks in the code, but we can at least add some
more checks to hopefully ensure we don't crash...

MozReview-Commit-ID: 168G94IyrWt

--HG--
extra : rebase_source : 6918da94d4f42adad1978055ea49e7040e069368
2018-02-22 15:00:18 +13:00
Chris Pearce
49743998b7 Bug 1439437 - Tests for autoplay gesture activation in new windows/frames. r=kamidphish
Autoplay of audible media should be blocked in documents until they have a user
gesture in them, or in a same-origin parent document. This patch adds tests for
those cases.

MozReview-Commit-ID: B4FQhPOukId

--HG--
extra : rebase_source : 38d77ce42ec5f4edb0119ba2ccf03f53cd8cdb00
2018-02-19 16:31:36 +13:00
Nico Grunbaum
47a0842e58 Bug 1439736 - AudioLevel RTP header ext. send/recv mochitest r=mjf
MozReview-Commit-ID: 2ybzJSSS7Jb

--HG--
extra : rebase_source : 348891bc74bba556c94d51bbb1b2de51e15743de
2018-02-20 12:46:38 -08:00
shindli
f1c5255ad4 Merge inbound to mozilla-central. a=merge 2018-02-20 21:09:49 +02:00
Joel Maher
0d3fd13f91 Bug 1438641 - dom/media/test/reftest/gizmo.mp4.seek.html fails on new windows 10 hardware, add fuzzy-if. r=bryce 2018-02-20 10:45:26 -05:00
Byron Campen [:bwc]
7eeb085a3b Bug 1290949: Test that removeTrack does not remove the associated sender. r=jib
MozReview-Commit-ID: ERg48fO9i6b

--HG--
extra : rebase_source : 0e2944e0c30a2811be3d198f8b6a7bd36d53692e
2018-02-16 13:28:25 -06:00
Chris Pearce
1cfc65da51 Bug 1392747 - Backed out changeset 6524c2d721db. r=backout
The logging added in this patch was landed to help debug very rare shutdown
failures on android, but the logging runs on other platforms and is annoying.
No one is looking at fixing the rare shutdown problem on Android. So remove the
logging until fixing the shutdown failure becomes a priority.
2018-02-20 15:54:00 +13:00
Andreas Pehrson
e52987eee4 Bug 1436352 - Enable turning microphone off on track-disable by default. r=jib
MozReview-Commit-ID: LwIPkOD46p3

--HG--
extra : rebase_source : ddf21aec7f95c4071cc1955f446353e3b0361c36
2018-02-19 16:13:43 +01:00
Andreas Pehrson
4acbf7149c Bug 1438538 - Fix SourceListener::CapturingAudio logic. r=johannh
MozReview-Commit-ID: 9K0kOatj1CQ

--HG--
extra : rebase_source : ff026916008bafa17615d01ad01dd87aafab467a
2018-02-20 13:40:46 +01:00
Dorel Luca
f41b03eca9 Backed out changeset 38577c007450 (bug 1424371) for Marionett test failure on testing/marionette/harness/marionette_harness/tests/unit/test_window_maximize.py. CLOSED TREE 2018-02-19 22:15:23 +02:00
Dorel Luca
037478c033 Backed out 9 changesets (bug 1410456) for Mochitest failure on mobile/android/tests/browser/chrome/test_media_playback.html
Backed out changeset 36f6b40dfa88 (bug 1410456)
Backed out changeset 19f3248502d9 (bug 1410456)
Backed out changeset 18ef18999175 (bug 1410456)
Backed out changeset 0ec75a56b4c7 (bug 1410456)
Backed out changeset f7eae1545d5e (bug 1410456)
Backed out changeset d59060ecd24c (bug 1410456)
Backed out changeset f996b9dce4a6 (bug 1410456)
Backed out changeset 1f75636b5bce (bug 1410456)
Backed out changeset c170d37b1a04 (bug 1410456)
2018-02-19 21:45:10 +02:00
Milan Sreckovic
7571df7e7c Bug 1424371: Use BaseRect access methods instead of member variables in dom/ r=qdot
MozReview-Commit-ID: HXWhggOMIEK

--HG--
extra : rebase_source : 9c9eacf80d2b7f78faa82a1549170b98d12cdaa8
2018-02-19 12:56:10 -05:00
Alex Chronopoulos
33dc85d377 Bug 1410456 - use jni methods in place of removed cubeb methods. r=padenot
MozReview-Commit-ID: 7DqORSl0Sm2

--HG--
extra : rebase_source : 4559b6a65297bf3b2c70f33b6ab27e612a0fced2
2018-02-19 18:28:10 +02:00
Masatoshi Kimura
0c0ddaa7e8 Bug 1425219 - Stop using GetNativePath in ffvpx. r=jya
FFVPXRuntimeLinker could not handle file paths that contain characters outside the current system code page on Windows. This patch will fix it by using wide char APIs.

MozReview-Commit-ID: 9ES1xFELjDs

--HG--
extra : rebase_source : 4bdc082bd6db9263b41fe74d524e0a4d98802ea8
extra : intermediate-source : 8afa22df3893c678884e3a0811fb6c82790c1a3c
extra : source : c6f916a967a78e176bdb699a85e194bbdc372bce
2017-12-15 23:16:39 +09:00
Andreas Pehrson
f5d34fea0d Bug 1430856 - Default to two default capabilities when a camera can handle anything. r=jib
If a camera returns no capabilities we interpret it as it being able to handle
any capability we throw at it. However, we also end up trying to start it with
the default capability of 0x0@0. This often works, but we can crash when
rescaling it to the chosen target capability 0x0@0.

With this patch we inject up to two default capabilities, one at 640x480@30 and
one at 1280x720@30. With constraints present we'll try to adjust these defaults
so they fit within the constraints while at the same time preserve the
aspect ratio given by prefs.

MozReview-Commit-ID: 3mr7Li5TTbV

--HG--
extra : rebase_source : c525c2fd8d60f5dece548216caefc4976e9afb0b
2018-02-13 20:22:18 +01:00
Andreas Pehrson
7186f8d0f3 Bug 1430856 - Cache CaptureCapability in CapabilityCandidate. r=jib
This will lead to less ipc calls, hopefully speeding up getUserMedia for many
devices.

This also lets us inject any hardcoded capabilities into the candidateSet in
the future (read: next patch).

MozReview-Commit-ID: HjIhRK1nVA1

--HG--
extra : rebase_source : f58e16c45f7bd6738ce0a0527dc86854f804bc7b
2018-02-13 20:13:47 +01:00
Dan Glastonbury
35b53a22df Bug 1428947 - Check plane width & stride constraints. r=mattwoodrow
MozReview-Commit-ID: HEcMG4JoEl3
2018-02-19 11:41:41 +10:00
Chris Peterson
0129d900f3 Bug 1436263 - Part 2: Replace override final virtual function specifiers with just final. r=froydnj
MozReview-Commit-ID: 70gt5SUu4Dv

--HG--
extra : rebase_source : 71912c6bde22aaed01e70615a4ee794a36e70d0e
extra : source : 1c22d4c65d70b797ee3e963ec426c90e1f89b5e3
2018-02-05 22:50:00 -08:00
Chris Peterson
d09123f248 Bug 1436263 - Part 1: Replace final override virtual function specifiers with just final. r=froydnj
MozReview-Commit-ID: DE5HkIhsZ6D

--HG--
extra : rebase_source : 94831c1e13a840dd2ea0600f64bcf70c2bf938d9
extra : source : cf9283bf1b0bca3a6311c98e227329d451f80ecb
2018-02-05 22:46:57 -08:00
Kyle Machulis
9e159ac69d Bug 1407040 - Change HTMLMediaElement XPCOM Enums to WebIDL Enums; r=bz
MozReview-Commit-ID: 55GnbaL2HKl

--HG--
extra : rebase_source : 5bb6c927443bf6adcfe594e69bd70c3b597b9ea4
2018-02-14 19:23:32 -08:00
Ralph Giles
31e3a8ea65 Bug 1437351 - Update callers for mp4parse v0.10.0. r=kinetik
Remove references to the mp4parse_log() method which was
removed in this release. Instead we default to the logging
implementation provided by libgkrust.

MozReview-Commit-ID: KKzeEcB5UiP

--HG--
extra : rebase_source : 2777f13a006c09afb82772475d25245b2752524c
2018-02-13 17:22:37 -08:00
Dorel Luca
dabf7b41ee Merge mozilla-central to autoland. CLOSED TREE
--HG--
extra : amend_source : 021950f3661e3b1d96e768155c5754b7af039f84
2018-02-15 00:35:45 +02:00
Paul Adenot
46da831f14 Bug 1422820 - Don't recurse too much when shutting down cameras. r=pehrsons
--HG--
extra : histedit_source : 2f3145f04e4ca35a412b9870a29ff26d28eab5d6
2018-02-08 17:49:25 +01:00
Munro Mengjue Chiang
6a3772c982 Bug 1426129 - Hold CamerasChild via promoting "this" to a RefPtr. r=jib
MozReview-Commit-ID: JdZqnGxlsBV

--HG--
extra : histedit_source : e7ad3a93f442260b2b9e4f6e8acb6d4e244f3fa1
2018-01-16 15:27:09 +08:00
Boris Zbarsky
9bdcffc985 Bug 1436902 part 3. Replace usage of NS_IMPL_ISUPPORTS_INHERITED0 with NS_INLINE_DECL_REFCOUNTING_INHERITED when possible. r=mccr8
The change to RootAccessible.cpp fixes an obvious bug introduced in bug 741707.

The visibility changes in gfx/thebes are because NS_DECL_ISUPPORTS has a
trailing "public:" that those classes were relying on to have public
constructors.

MozReview-Commit-ID: IeB8KIJCGhU
2018-02-12 15:44:40 -05:00
Tom Ritter
aa82f54ab6 Bug 1435296 Address test failures caused by bumping timer precision to 2 ms r=baku
There are a few different reasons why tests needed updating (not an exhaustive list):

- Tests assume that successive operations take place at different times.
- Tests assume that an operation took a minimum amount of time.
- Tests hardcodes a specific delay.

In most cases we hardcode the preference off. In some cases this is the best approach,
in others, we would like to improve. The bug for tracking those improvements is Bug 1429648

An improvement that is present in some tests is to hardcode a specific precision reduction
that is acceptable based on the confides of the test. (Obviously this needs to be a fix for
the test framework and not a requirement on the feature being tested.)

In a few places, the test itself can be fixed, for example to no longer require the end
time of an operation to be strictly greater than the start time, and allows it to be equal
to it.

MozReview-Commit-ID: J59c7xQtZZJ

--HG--
extra : rebase_source : df8a03e76eaf9cdc9524dbb3eb9035af237e534b
2018-02-12 11:39:41 -06:00