Commit Graph

14596 Commits

Author SHA1 Message Date
alwu
a9d45e7e55 Bug 1277437 - part1 : remove UA agent checkings. r=heycam
There is no need to check whether the code is running on other browser, because we won't upstream the change back to the github repo, as this code uses a lots mozilla-only APIs.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 07:01:42 +00:00
David Major
33bacb9783 Bug 1528074 - Clean up some media warning flags r=jya
I suspect these may have been cargo-culted from elsewhere.

We only need -Wno-sign-compare, which we can add regardless of compiler because clang-cl understands it natively in addition to the -wdNNNN form.

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

--HG--
extra : moz-landing-system : lando
2019-02-22 17:22:12 +00:00
Byron Campen [:bwc]
ee86d56d40 Bug 1521879 - Part 7: Create new CI jobs for media mochitests with socket process enabled. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D17942

--HG--
extra : moz-landing-system : lando
2019-02-21 20:26:33 +00:00
Byron Campen [:bwc]
45212e73ed Bug 1521879 - Part 5: Update IPC serialize/deserialize code for RTP stream stats to match what is in the dictionaries. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D17278

--HG--
extra : moz-landing-system : lando
2019-02-21 20:26:29 +00:00
Byron Campen [:bwc]
94a554c150 Bug 1521879 - Part 3: Get --disable-webrtc builds working. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D17275

--HG--
extra : moz-landing-system : lando
2019-02-21 21:54:54 +00:00
Byron Campen [:bwc]
5ca6cf53af Bug 1521879 - Part 1.1: Compensate for changes to how IPC headers are generated in the last rebase. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D19975

--HG--
rename : media/webrtc/signaling/src/peerconnection/MediaTransportHandlerParent.h => dom/media/webrtc/MediaTransportParent.h
rename : media/webrtc/signaling/src/peerconnection/MediaTransportHandlerParent.cpp => media/webrtc/signaling/src/peerconnection/MediaTransportParent.cpp
extra : moz-landing-system : lando
2019-02-21 20:25:07 +00:00
Byron Campen [:bwc]
7ab14bdf2c Bug 1521879 - Part 1: IPC-based MediaTransport implementation r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D17273

--HG--
extra : moz-landing-system : lando
2019-02-21 20:24:54 +00:00
Ehsan Akhgari
b5a2bda7ee Bug 1527505 - Part 9: Make nsIPermissionManager accept ACString arguments for permission types instead of raw C strings; r=nika
This will mean that in places like the tight loop in GetTypeIndex()
we would no longer require calling strlen() on the input type argument
once per loop iteration.

Depends on D20236

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

--HG--
extra : moz-landing-system : lando
2019-02-21 22:54:28 +00:00
Brindusan Cristian
136394135f Backed out 9 changesets (bug 1521879) for flake failures at /transforms/tests.py. CLOSED TREE
Backed out changeset baac167868b3 (bug 1521879)
Backed out changeset 54ac1b47b736 (bug 1521879)
Backed out changeset 94b62c6f22e2 (bug 1521879)
Backed out changeset d44f15fd4529 (bug 1521879)
Backed out changeset 761fca0514fb (bug 1521879)
Backed out changeset 0b85b1a7c1ce (bug 1521879)
Backed out changeset 5dc76e863a02 (bug 1521879)
Backed out changeset 604b9a007fe5 (bug 1521879)
Backed out changeset c414d82a5325 (bug 1521879)
2019-02-21 19:32:31 +02:00
Byron Campen [:bwc]
597c5c6ed9 Bug 1521879 - Part 7: Create new CI jobs for media mochitests with socket process enabled. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D17942

--HG--
extra : moz-landing-system : lando
2019-02-21 15:32:59 +00:00
Byron Campen [:bwc]
9e2c830949 Bug 1521879 - Part 5: Update IPC serialize/deserialize code for RTP stream stats to match what is in the dictionaries. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D17278

--HG--
extra : moz-landing-system : lando
2019-02-21 15:35:06 +00:00
Byron Campen [:bwc]
d7729846c2 Bug 1521879 - Part 3: Get --disable-webrtc builds working. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D17275

--HG--
extra : moz-landing-system : lando
2019-02-21 15:32:15 +00:00
Byron Campen [:bwc]
bc939b7978 Bug 1521879 - Part 1.1: Compensate for changes to how IPC headers are generated in the last rebase. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D19975

--HG--
rename : media/webrtc/signaling/src/peerconnection/MediaTransportHandlerParent.h => dom/media/webrtc/MediaTransportParent.h
rename : media/webrtc/signaling/src/peerconnection/MediaTransportHandlerParent.cpp => media/webrtc/signaling/src/peerconnection/MediaTransportParent.cpp
extra : moz-landing-system : lando
2019-02-21 15:33:57 +00:00
Byron Campen [:bwc]
4604113749 Bug 1521879 - Part 1: IPC-based MediaTransport implementation r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D17273

--HG--
extra : moz-landing-system : lando
2019-02-21 16:42:12 +00:00
Byron Campen [:bwc]
7933dbcd50 Bug 1231414 - Part 1: Allow addTrack without a stream argument. r=jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D19841

--HG--
extra : moz-landing-system : lando
2019-02-21 14:53:23 +00:00
Oana Pop Rus
e3f2246ee8 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-02-21 11:42:10 +02:00
Andreea Pavel
9fb81d5829 Bug 1516043 - Disabled test_background_video_resume_after_end_show_last_frame.html on linux-qr r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D20462

--HG--
extra : moz-landing-system : lando
2019-02-20 13:43:32 +00:00
Karl Tomlinson
45ab39f95a Bug 1519562 throw in AudioWorkletNode constructor if name is not registered r=padenot
Depends on D20274

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

--HG--
extra : moz-landing-system : lando
2019-02-19 12:57:57 +00:00
Karl Tomlinson
25a27ff34a bug 1519562 send AudioParamDescriptors from registerProcessor() to AudioContext r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D20274

--HG--
extra : moz-landing-system : lando
2019-02-21 03:12:59 +00:00
Cosmin Sabou
f3db52f4cf Merge mozilla-inbound to mozilla-central. a=merge 2019-02-21 05:42:03 +02:00
Christoph Kerschbaumer
54df1cb98c Bug 1528677: Remove nullchecks for loadinfo since we have loadinfo on all channels. r=baku 2019-02-20 13:27:25 +01:00
Alex Chronopoulos
09df5a19bb Bug 1481244 - When a stream is errored avoid updating the volume. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D20314

--HG--
extra : moz-landing-system : lando
2019-02-20 09:41:30 +00:00
Bogdan Tara
aedbe0b772 Merge inbound to mozilla-central. a=merge 2019-02-19 19:34:25 +02:00
Masatoshi Kimura
e25fbce870 Bug 1528651 - Re-enable warnings-as-errors on Windows in some directories. r=dmajor
--HG--
extra : source : ba86ea25070b37f4725834e1c2d9ec4c0783e119
2019-02-17 15:03:02 +09:00
Alastor Wu
21c604d2f7 Bug 1528420 - part1 : set positionAlign to auto by default. r=jya
According to spec [1], By default, the position alignment is set to auto

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

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

--HG--
extra : moz-landing-system : lando
2019-02-19 12:59:27 +00:00
sotaro
e7cc92c95a Bug 1516834 - Check if CopyData succeeded r=nical
When CopyData failed, an image does not have valid data. It should not be used.

Differential Revision: https://phabricator.services.mozilla.com/D19746
2019-02-19 09:12:47 +09:00
Cosmin Sabou
7d542a11f7 Merge mozilla-central to mozilla-inbound. 2019-02-21 05:44:20 +02:00
Kris Maglione
b2f85650a1 Bug 1524687: Part 12 - Convert everything else to static registration. r=erahm
--HG--
extra : source : 625f71135038f79c075f758e316fbb00097c9a18
extra : intermediate-source : 7a1ef487a9e74d66b112034051e49b77023860b8
extra : histedit_source : 88d19dbee4a99faa191e49e2847c4c59aba05b0c%2C5ee702f97153152d31124e0c5f3e8318cbeb3195
2019-01-29 16:03:41 -08:00
arthur.iakab
470dbf03b6 Backed out 5 changesets (bug 1524687) for causing build bustages on platform.h CLOSED TREE
Backed out changeset 0f06a6b51bfe (bug 1524687)
Backed out changeset 7a1ef487a9e7 (bug 1524687)
Backed out changeset accad7b4cbc7 (bug 1524687)
Backed out changeset eb33f7e6467c (bug 1524687)
Backed out changeset 86cf09db340b (bug 1524687)
2019-02-21 02:04:02 +02:00
Kris Maglione
95c0cf7aa9 Bug 1524687: Part 12 - Convert everything else to static registration. r=erahm
--HG--
extra : rebase_source : ccc1b4f8559152237e523b67ea76e2b406c1cb11
extra : intermediate-source : e8ad5619116c31fc4d38e0e789ddb9b5d2a5bb25
extra : source : 625f71135038f79c075f758e316fbb00097c9a18
2019-01-29 16:03:41 -08:00
Daniel Varga
5a59867ce2 Merge mozilla-central to autoland. a=merge 2019-02-17 23:49:02 +02:00
Sylvestre Ledru
e0c61dafa5 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
Summary: # ignore-this-changeset

Reviewers: Ehsan

Reviewed By: Ehsan

Subscribers: emilio, jandem, bbouvier, jya

Bug #: 1519636

Differential Revision: https://phabricator.services.mozilla.com/D20062
2019-02-16 20:20:37 +01:00
Karl Tomlinson
6e6824aff1 Bug 1518378 set panningModel on warm-up panner r=padenot
This is required since changes in
https://hg.mozilla.org/mozilla-central/rev/5636007e3d1a

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

--HG--
extra : moz-landing-system : lando
2019-02-15 14:38:48 +00:00
alwu
a904454ea2 Bug 1526044 - part3 : add crash test. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D19449

--HG--
extra : moz-landing-system : lando
2019-02-15 14:41:54 +00:00
alwu
a844fb97f3 Bug 1526044 - part2 : resume from Chrome should only take effect when the AudioContext was suspended from Chrome. r=padenot
If the AudioContext is suspended by content or by Autoplay policy, it shouldn't be resumed by chrome.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 14:41:46 +00:00
alwu
1c2aaaf683 Bug 1526044 - part1 : do not append duplicated stream. r=padenot
Different nodes might have same AudioParam, so we shouldn't append same stream multiple times.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 14:41:22 +00:00
Cosmin Sabou
8cb8ef3973 Merge mozilla-central to autoland. 2019-02-15 20:50:34 +02:00
Cosmin Sabou
a4b19fcd61 Merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : browser/components/nsBrowserContentHandler.js => browser/components/BrowserContentHandler.jsm
2019-02-15 20:39:45 +02:00
Michael Froman
9599965900 Bug 1500596 - pt3 - Add remote audio decoding for Vorbis. r=jya
- Use a single remote decoder IPDL spec and make a remote decoding
  base class.
Renames PRemoteVideoDecoder.ipdl to PRemoteDecoder.ipdl
Renames RemoteVideoDecoder{Child|Parent}.{cpp|h} to
        RemoteDecoder{Child|Parent}.{cpp|h}

- Move remote video decoding to new subclasses.
Creates RemoteVideoDecoder.{cpp|h} that contains both the parent
and child sides of the RemoteVideoDecoder{Child|Parent} classes.

- Create new remote audio decoder
Creates RemoteAudioDecoder.{cpp|h} that contains both the parent
and child sides of the RemoteAudioDecoder{Child|Parent} classes.

- Connect all the plumbing to use the new remote audio decoder to
  decode Vorbis in RDD including a new pref to control whether
  Vorbis is decoding in the AgnosticDecoderModule or the
  RemoteDecoderModule/RDD (media.rdd-vorbis.enabled).

Depends on D18640

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

--HG--
rename : dom/media/ipc/PRemoteVideoDecoder.ipdl => dom/media/ipc/PRemoteDecoder.ipdl
rename : dom/media/ipc/RemoteVideoDecoderChild.cpp => dom/media/ipc/RemoteDecoderChild.cpp
rename : dom/media/ipc/RemoteVideoDecoderChild.h => dom/media/ipc/RemoteDecoderChild.h
rename : dom/media/ipc/RemoteVideoDecoderParent.cpp => dom/media/ipc/RemoteDecoderParent.cpp
rename : dom/media/ipc/RemoteVideoDecoderParent.h => dom/media/ipc/RemoteDecoderParent.h
extra : moz-landing-system : lando
2019-02-14 19:08:21 +00:00
Michael Froman
51aa9729a2 Bug 1500596 - pt2 - Add operator== for AudioInfo and VideoInfo. r=jya
These are needed for upcoming addition to an IPDL union.

Depends on D18639

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

--HG--
extra : moz-landing-system : lando
2019-02-14 19:08:19 +00:00
Razvan Maries
c93e77a62f Backed out changeset b7713efeb5f1 (bug 1525278) as jya's request for diagnostic and causing crashes. CLOSED TREE 2019-02-15 13:52:45 +02:00
Sylvestre Ledru
41d1d79094 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-02-15 08:15:57 +00:00
Daniel Varga
1e9aa9e1fc Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE
--HG--
rename : browser/components/nsBrowserContentHandler.js => browser/components/BrowserContentHandler.jsm
2019-02-15 03:51:05 +02:00
Kris Maglione
dfc6aeef42 Backout most of bug 1524687 for Windows PGO xpcshell selftest failures. r=backout 2019-02-14 17:17:36 -08:00
Mike Hommey
9c34e0b914 Bug 1512504 - Don't set __PRETTY_FUNCTION__ on clang-cl. r=froydnj
clang-cl defines it on its own, although the value is slightly different
from __FUNCSIG__ (it doesn't contain the ABI, which doesn't really
matter). We've only been setting it this was on clang-cl by extension of
setting it for msvc.

Depends on D19616

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

--HG--
extra : moz-landing-system : lando
2019-02-14 18:56:29 +00:00
Mike Hommey
ef3ad686ee Bug 1512504 - Remove support for MSVC. r=froydnj
Consequently, this removes:
- MOZ_LIBPRIO, which is now always enabled.
- non_msvc_compiler, which is now always true.
- The cl.py wrapper, since it's not used anymore.
- CL_INCLUDES_PREFIX, which was only used for the cl.py wrapper.
- NONASCII, which was only there to ensure CL_INCLUDES_PREFIX still
  worked in non-ASCII cases.

This however keeps a large part of detecting and configuring for MSVC,
because we still do need it for at least headers, libraries, and midl.

Depends on D19614

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

--HG--
extra : moz-landing-system : lando
2019-02-14 21:45:27 +00:00
Aaron Klotz
84c01f8930 Bug 1400344: Rename mscom::MainThreadRuntime to mscom::ProcessRuntime and make it aware of Win32k lockdown and of multiple instantiations; r=Jamie
This patch takes care of a bunch of issues and does some cleanup:

* We rename mscom::MainThreadRuntime to mscom::ProcessRuntime, as the latter
  is a more accurate name going forward.
* We make ProcessRuntime aware of the Win32k Lockdown process mitigation
  policy. When Win32k is disabled, we perform process-wide COM initialization
  in the multi-threaded apartment (since we cannot create an STA window).
* We refactor the mscom apartment region stuff to enable the Win32k lockdown
  pieces in ProcessRuntime.
* We move some Gecko-specific stuff into MOZILLA_INTERNAL_API guards so that
  ProcessRuntime is usable outside of xul.dll (I will be needing it for the
  launcher process).
* Another thing that might happen with the launcher process is that, under
  error conditions in the launcher, we create a ProcessRuntime object on a
  background thread for the purposes of telemetry logging, but we also allow
  the main thread to proceed to start as the browser. This could result in a
  scenario where the main thread, as the browser process, is attempting to
  instantiate its ProcessRuntime and ends up racing with the launcher process's
  telemetry thread which has its own ProcessRuntime. To account for this
  situation, we add mutual exclusion to the process-wide initialization code.
  We host this part inside mozglue since that state is shared between both
  firefox.exe and xul.dll.
* We clean up ProcessRuntime::InitializeSecurity by using Vector to set up
  the EXPLICIT_ACCESS entries.
* We remove mscom::MainThreadClientInfo and replace it with a direct call to
  CoGetCallerTID
* We revise all references to this class to use the new name.

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

--HG--
rename : ipc/mscom/COMApartmentRegion.h => ipc/mscom/ApartmentRegion.h
rename : ipc/mscom/MainThreadRuntime.cpp => ipc/mscom/ProcessRuntime.cpp
rename : ipc/mscom/MainThreadRuntime.h => ipc/mscom/ProcessRuntime.h
extra : moz-landing-system : lando
2019-02-14 18:56:20 +00:00
Dorel Luca
67115dd61b Backed out changeset 2d4b8d90cbd7 (bug 1400344) for Spider monkey failrues. CLOSED TREE
--HG--
rename : ipc/mscom/ApartmentRegion.h => ipc/mscom/COMApartmentRegion.h
rename : ipc/mscom/ProcessRuntime.cpp => ipc/mscom/MainThreadRuntime.cpp
rename : ipc/mscom/ProcessRuntime.h => ipc/mscom/MainThreadRuntime.h
2019-02-14 20:45:26 +02:00
Aaron Klotz
0cb12a123a Bug 1400344: Rename mscom::MainThreadRuntime to mscom::ProcessRuntime and make it aware of Win32k lockdown and of multiple instantiations; r=Jamie
This patch takes care of a bunch of issues and does some cleanup:

* We rename mscom::MainThreadRuntime to mscom::ProcessRuntime, as the latter
  is a more accurate name going forward.
* We make ProcessRuntime aware of the Win32k Lockdown process mitigation
  policy. When Win32k is disabled, we perform process-wide COM initialization
  in the multi-threaded apartment (since we cannot create an STA window).
* We refactor the mscom apartment region stuff to enable the Win32k lockdown
  pieces in ProcessRuntime.
* We move some Gecko-specific stuff into MOZILLA_INTERNAL_API guards so that
  ProcessRuntime is usable outside of xul.dll (I will be needing it for the
  launcher process).
* Another thing that might happen with the launcher process is that, under
  error conditions in the launcher, we create a ProcessRuntime object on a
  background thread for the purposes of telemetry logging, but we also allow
  the main thread to proceed to start as the browser. This could result in a
  scenario where the main thread, as the browser process, is attempting to
  instantiate its ProcessRuntime and ends up racing with the launcher process's
  telemetry thread which has its own ProcessRuntime. To account for this
  situation, we add mutual exclusion to the process-wide initialization code.
  We host this part inside mozglue since that state is shared between both
  firefox.exe and xul.dll.
* We clean up ProcessRuntime::InitializeSecurity by using Vector to set up
  the EXPLICIT_ACCESS entries.
* We remove mscom::MainThreadClientInfo and replace it with a direct call to
  CoGetCallerTID
* We revise all references to this class to use the new name.

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

--HG--
rename : ipc/mscom/COMApartmentRegion.h => ipc/mscom/ApartmentRegion.h
rename : ipc/mscom/MainThreadRuntime.cpp => ipc/mscom/ProcessRuntime.cpp
rename : ipc/mscom/MainThreadRuntime.h => ipc/mscom/ProcessRuntime.h
extra : moz-landing-system : lando
2019-02-14 16:40:58 +00:00
Bryce Van Dyk
38ee1554b6 Bug 1513651 - Add test file with 2 sample description entries to MP4 parser general gtests. r=jya
Add a test file that was used to test mp4 parser telemetry to the general suite.
This file was added in the revision before this, and is also useful to provide
further coverage for other tests.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 11:14:07 +00:00