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

16876 Коммитов

Автор SHA1 Сообщение Дата
Brindusan Cristian 4646c1f41f Backed out 2 changesets (bug 1614933) for bc failures at browser_tabicon_after_bg_tab_crash.js.
Backed out changeset 59503d3a702f (bug 1614933)
Backed out changeset 578c8ba9598f (bug 1614933)
2020-03-22 17:30:07 +02:00
Gabriele Svelto 322404bebb Bug 1614933 - Gather content processes' crash annotations at exception time instead of using IPC; r=froydnj
Crash annotations in content processes are currently sent over IPC via
shared memory buffers. To pave the way for the Rust rewrite of the exception
handler we are removing this code and gathering all the crash annotations
within the content processes themselves. This patch causes annotations to be
stored in the global table of each content process. They are then streamed
out to the parent process by the exception handler together with the
exception-time annotations.

This has a number of benefits:

* we have one less channel to exchange data between content processes and
  the parent process
* we save memory because we don't need to allocate the shared memory buffers
* annotations are faster because we don't stream them all out every time one
  changes
* we won't truncate annotations anymore if we run out of space in the shared
  segment.
* we don't need delayed annotations anymore, so we can get rid of the
  associated machinery

As I refactored the code I tried to adjust all the obsolete comments,
consolidate shared code and remove the redundant steps that were sometimes
present. In many places we had two entire crash annotation tables we merged to
change just a couple; that comes from the fact that historically we loaded
them from disk. Now it doesn't matter anymore and we can just go ahead and
change the ones we care about.

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

--HG--
extra : moz-landing-system : lando
2020-03-21 17:13:08 +00:00
Simon Giesecke 7e9a7de895 Bug 1620632 - Rename confusingly named types/macros for relocation handling of nsTArray. r=froydnj
Specifically, this renames
* nsTArray_CopyChooser to nsTArray_RelocationStrategy
* the Copy template argument of nsTArray_base to RelocationStrategy
* nsTArray_CopyWithConstructors to nsTArray_RelocateUsingMoveConstructor
* nsTArray_CopyWithMemutils to nsTArray_RelocateUsingMemutils
* DECLARE_USE_COPY_CONSTRUCTORS to MOZ_DECLARE_RELOCATE_USING_MOVE_CONSTRUCTOR

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

--HG--
extra : moz-landing-system : lando
2020-03-20 17:04:27 +00:00
Byron Campen [:bwc] 319b20ae91 Bug 1616875: Make this mochitest use the right kind of timestamps, and remove some unused code. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D64241

--HG--
extra : moz-landing-system : lando
2020-03-20 15:35:39 +00:00
Byron Campen [:bwc] 865bbdca09 Bug 1616875: Move some receiver-related testing functions from RTCPeerConnection to RTCRtpReceiver. r=ng,smaug
Differential Revision: https://phabricator.services.mozilla.com/D64262

--HG--
extra : moz-landing-system : lando
2020-03-20 15:33:55 +00:00
Byron Campen [:bwc] 9a84c4d7b4 Bug 1616875: Add some functions to PeerConnectionObserver that PeerConnectionImpl can use to fire track/stream association events. r=jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D64237

--HG--
extra : moz-landing-system : lando
2020-03-20 15:33:37 +00:00
Byron Campen [:bwc] 1898507132 Bug 1616875: Create RTCRtpReceiver in c++, and move code into it from both JSImpl and other places in c++. Also, move some code from JSImpl to PeerConnectionImpl. r=jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D64235

--HG--
extra : moz-landing-system : lando
2020-03-20 15:33:24 +00:00
Byron Campen [:bwc] 82081f2ffa Bug 1616875: Remove code that we will not need to move to RTCRtpReceiver. r=ng,smaug
Primarily, this removes code that was compensating for inconsistencies between webrtc.org's timestamps, and JS timestamps. Also, this removes a few bits of indirection on GetRtpSources; that's all going to go directly to RTCRtpReceiver now. None of this code is being moved elsewhere.

Depends on D50395

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

--HG--
extra : moz-landing-system : lando
2020-03-20 15:33:12 +00:00
alwu 371b11291d Bug 1582509 - part1 : implement 'MediaPositionState' and 'setPositionState()'. r=emilio
According to the spec [1], implement the dictionary `MediaPositionState` and `setPositionState()`.

[1] https://w3c.github.io/mediasession/#dom-mediasession-setpositionstate

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

--HG--
extra : moz-landing-system : lando
2020-03-19 19:29:40 +00:00
Bogdan Tara 2b0b0d8b79 Backed out 9 changesets (bug 1616875) for bustages complaining about RTCRtpReceiver.h CLOSED TREE
Backed out changeset 92ed87a5add4 (bug 1616875)
Backed out changeset 96b3a322e605 (bug 1616875)
Backed out changeset a301ce4e5571 (bug 1616875)
Backed out changeset ac73b2ce3e20 (bug 1616875)
Backed out changeset f5a201261e83 (bug 1616875)
Backed out changeset 36892aed2a94 (bug 1616875)
Backed out changeset 2c21627f3678 (bug 1616875)
Backed out changeset ebdad7b7b632 (bug 1616875)
Backed out changeset 3bad18c7a567 (bug 1616875)
2020-03-20 16:38:30 +02:00
Mark Banner d69ed85444 Bug 1621166 - Fix ESLint bustage in browser_media_control_stop_timer.js. r=MeFisto94
Differential Revision: https://phabricator.services.mozilla.com/D67622

--HG--
extra : moz-landing-system : lando
2020-03-20 13:52:56 +00:00
Byron Campen [:bwc] 78e76f65fb Bug 1616875: Make this mochitest use the right kind of timestamps, and remove some unused code. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D64241

--HG--
extra : moz-landing-system : lando
2020-03-19 18:42:57 +00:00
Byron Campen [:bwc] 72efb619af Bug 1616875: Move some receiver-related testing functions from RTCPeerConnection to RTCRtpReceiver. r=ng,smaug
Differential Revision: https://phabricator.services.mozilla.com/D64262

--HG--
extra : moz-landing-system : lando
2020-03-19 18:42:29 +00:00
Byron Campen [:bwc] 88d739273e Bug 1616875: Add some functions to PeerConnectionObserver that PeerConnectionImpl can use to fire track/stream association events. r=jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D64237

--HG--
extra : moz-landing-system : lando
2020-03-19 18:42:16 +00:00
Byron Campen [:bwc] fc5f5e381e Bug 1616875: Create RTCRtpReceiver in c++, and move code into it from both JSImpl and other places in c++. Also, move some code from JSImpl to PeerConnectionImpl. r=jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D64235

--HG--
extra : moz-landing-system : lando
2020-03-19 18:41:58 +00:00
Byron Campen [:bwc] 4e1d375bf8 Bug 1616875: Remove code that we will not need to move to RTCRtpReceiver. r=ng,smaug
Primarily, this removes code that was compensating for inconsistencies between webrtc.org's timestamps, and JS timestamps. Also, this removes a few bits of indirection on GetRtpSources; that's all going to go directly to RTCRtpReceiver now. None of this code is being moved elsewhere.

Depends on D50395

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

--HG--
extra : moz-landing-system : lando
2020-03-19 18:41:46 +00:00
alwu 699bb58267 Bug 1621166 - part4 : add test. r=MeFisto94
Differential Revision: https://phabricator.services.mozilla.com/D67385

--HG--
extra : moz-landing-system : lando
2020-03-20 00:10:31 +00:00
alwu 1ca8d55a56 Bug 1621166 - part3 : make 'playMedia' and 'pauseMedia' as general utils functions. r=MeFisto94
There are several tests using similar methods of playing/pausing media, and we should make them as util functions to share the same code.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 21:07:56 +00:00
Tom Schuster 5eb9932e47 Bug 1621813 - Remove nsIScriptError.exceptionFlag. r=mccr8
I made some changes in preparation for removing nsIScriptError.flags in favor
of nsIConsoleMessage.logLevel.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 21:31:44 +00:00
Chun-Min Chang ce0d9c74e7 Bug 1621779 - Make sure BrowsingContext exists before using it. r=alwu
A declare of a pointer in the init-statement within if need to be
checked if it's a NULL before it's being used, to avoid a potential
crash.

To prevent any goes wrong in mMediaSessionInfoMap and lead to create a
null BrowsingContext pointer from it, using an assertion is more
straightforward.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 17:53:42 +00:00
Mihai Alexandru Michis 93ec4f0381 Backed out changeset f01596089356 (bug 1220810) for causing crashes in test_performance_attributes_exist_in_object.html
CLOSED TREE
2020-03-19 17:12:32 +02:00
Andrea Marchesini e4db0e4496 Bug 1220810 - Hardcode localhost to loopback, r=ckerschb,dragana
Differential Revision: https://phabricator.services.mozilla.com/D64586

--HG--
extra : moz-landing-system : lando
2020-03-19 13:06:48 +00:00
alwu 48224e1c93 Bug 1623202 - part2 : add comments to document the usage, parameters and return value for media test utils functions. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D67238

--HG--
extra : moz-landing-system : lando
2020-03-18 21:31:21 +00:00
alwu e9b84006c8 Bug 1623202 - part1 : move some functions to `head.js` to become utility functions. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D67395

--HG--
extra : moz-landing-system : lando
2020-03-18 21:30:02 +00:00
Nico Grunbaum 73ab17c20e Bug 1592662 - Remove stale telemetry call;r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D67370

--HG--
extra : moz-landing-system : lando
2020-03-18 19:13:51 +00:00
Paul Adenot eb1764b731 Bug 1558124 - When calling the AudioWorkletProcessor ctor, switch to rethrowing exceptions to handle them manually. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D64769

--HG--
extra : moz-landing-system : lando
2020-03-18 10:53:31 +00:00
Paul Adenot 3514c96161 Bug 1558124 - When an exception happens in the AudioWorkletGlobalScope, fire `onprocessorerror`. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D64766

--HG--
extra : moz-landing-system : lando
2020-03-18 10:53:56 +00:00
Paul Adenot 2fef3e1da9 Bug 1558124 - Pass the track and the JSContext to SendProcessorError. r=karlt
Those are needed, respectively to be able to ensure the stream doesn't go away
when messaging back to the control thread, and then to access the details of the
exception thrown.

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

--HG--
extra : moz-landing-system : lando
2020-03-18 10:53:00 +00:00
Paul Adenot bf21b8928e Bug 1558124 - Don't suppress the exception when the ctor of an AudioWorkletProcessor throws. r=karlt
https://github.com/WebAudio/web-audio-api/issues/2096

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

--HG--
extra : moz-landing-system : lando
2020-03-18 10:52:53 +00:00
Paul Adenot 0dfeed31ae Bug 1558124 - Pass a JSContext to AudioWorkletGlobalScope::ConstructProcessor. r=karlt
Having nested AutoJSAPI clobbers the exception value of the innermost one on
destruction.

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

--HG--
extra : moz-landing-system : lando
2020-03-18 10:52:46 +00:00
Martin Stransky 7f9b73f612 Bug 1619258 [Wayland] Enable VA-API for all formats, r=jya
Differential Revision: https://phabricator.services.mozilla.com/D65536

--HG--
extra : moz-landing-system : lando
2020-03-18 07:01:27 +00:00
Jean-Yves Avenard befd1cb52f Bug 1528265 - P2. Adjust time of last block if needed. r=chunmin
The produce the same outcome as originally done in bug 1487797. However, we only do so on the last block ever retrieved.

Ideally, we should calculate the start time based on the number of frames previously returned. It would avoid such inconsistency and while we had one file presenting such symptom, I'm not sure we can always rely for the frame_or_sample_num value to be valid in reference to the first frame block size.

Depends on D66989

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

--HG--
extra : moz-landing-system : lando
2020-03-17 22:48:30 +00:00
Jean-Yves Avenard c289f3008f Bug 1528265 - P1. Revert changes introduced by bug 1487797. r=chunmin
It didn't take into account that there could be a mixture of variable block size and fixed block size and could use the start time of an invalid block to determine the end of the previous frame as the code relied on Frame::FindNext() to have always returning a valid frame; but this isn't always the case.

We also want to keep the scope of each classes separate, so that it is up to the FrameParser to correct a Frame should it be invalid or not set properly.

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

--HG--
extra : moz-landing-system : lando
2020-03-17 19:46:55 +00:00
Bryce Seager van Dyk 84490e7824 Bug 1622729 - Use the appropriate level of indirection when calling av_freep in FFmpegVideoDecoder. r=jya
Adds another level of &ing as expected by av_freep.

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

--HG--
extra : moz-landing-system : lando
2020-03-18 01:27:27 +00:00
Chun-Min Chang acef9be28a Bug 1580623 - P2: Fire seek{for,back}ward action handler if it's set r=alwu
Depends on D45459

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

--HG--
extra : moz-landing-system : lando
2020-03-17 23:39:10 +00:00
Chun-Min Chang ce354ff512 Bug 1580623 - P1: Add `seek{back,for}ward` to MediaSessionAction and implement `seekOffset` r=webidl,alwu,baku
Differential Revision: https://phabricator.services.mozilla.com/D45459

--HG--
extra : moz-landing-system : lando
2020-03-17 23:39:10 +00:00
Ciure Andrei 35bf0da2a1 Backed out 3 changesets (bug 1620077, bug 1580623) for causing mochitest failures CLOSED TREE
Backed out changeset 981e37f4d18d (bug 1620077)
Backed out changeset 0333485a02ed (bug 1580623)
Backed out changeset d729f6a0050b (bug 1580623)
2020-03-18 01:24:26 +02:00
Chun-Min Chang 8874ca494f Bug 1580623 - P2: Fire seek{for,back}ward action handler if it's set r=alwu
Depends on D45459

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

--HG--
extra : moz-landing-system : lando
2020-03-17 22:05:02 +00:00
Chun-Min Chang c0d25f3402 Bug 1580623 - P1: Add `seek{back,for}ward` to MediaSessionAction and implement `seekOffset` r=webidl,alwu,baku
Differential Revision: https://phabricator.services.mozilla.com/D45459

--HG--
extra : moz-landing-system : lando
2020-03-17 22:04:34 +00:00
Haik Aftandilian ce0541018a Bug 1602635 - [macOS] Remove security.sandbox.content.mac.earlyinit and the old sandbox startup code paths r=spohl
Remove old content sandbox code paths that allowed the sandbox to be started
later during content process startup when the SetProcessSandbox() message was
received from the parent process. This older way of starting the sandbox was
still in the tree to support WebReplay which is now being removed. With this
fix, content processes always use the "earlyinit" sandbox startup like the
RDD and GMP processes.

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

--HG--
extra : moz-landing-system : lando
2020-03-17 18:29:03 +00:00
Marc Streckfuss d86a617793 Bug 1620340 - part3: Cosmetic Changes to MediaControlKeysManager, r=alwu
rearranged the code, so that the comment is directly above the relevant statement (see https://phabricator.services.mozilla.com/D63459#inline-381952)

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

--HG--
extra : moz-landing-system : lando
2020-03-12 21:36:04 +00:00
Marc Streckfuss e105e0b816 Bug 1620340 - part2: Propagate SetMediaMetadata from the MediaControlKeysManager to the native event source, r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D66389

--HG--
extra : moz-landing-system : lando
2020-03-11 15:48:58 +00:00
Chris Fronk d5b004443b Bug 1143478 - Rename mozilla::Pair to CompactPair. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D64511

--HG--
rename : mfbt/Pair.h => mfbt/CompactPair.h
extra : moz-landing-system : lando
2020-03-17 12:42:12 +00:00
alwu ed38b0fac7 Bug 1582508 - part10 : change `MediaSessionPlaybackTestState::None` to `MediaSessionPlaybackTestState::Stopped` to fix the build fail on X11. r=webidl,Ehsan,chunmin
On X11, there is an universal definition for `None`, and it conflicts with the `None` in the enum of `MediaSessionPlaybackTestState`, which causes a build fail on X11. Also, as the `MediaSessionPlaybackTestState` is defined in the `ChromeUtilsBinding.h`, which is automatically generated by the code gen, we can't include `X11UndefineNone.h` to workaround this problem.

Therefore, we have to change its name to avoid using the same name.

[1] from `/usr/include/X11/X.h:115`
#define None                 0L /* universal null resource or null atom */

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

--HG--
extra : moz-landing-system : lando
2020-03-17 01:01:33 +00:00
alwu 4be8a331a0 Bug 1582508 - part8 : add test r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D66345

--HG--
extra : moz-landing-system : lando
2020-03-17 00:30:43 +00:00
alwu 5fb309e36a Bug 1582508 - part7 : create a chrome-only method to get the playback state from the main controller. r=webidl,Ehsan
Implement a chrome-only method `getCurrentMediaSessionPlaybackState()` to expose current actual playback state in testing.

The reason we create an new enum `MediaSessionPlaybackTestState` is because of building issue. If we use `MediaSessionPlaybackState` directly in the `ChromeUtils.webidl`, then the codegen would automatically add an header include of `MediaSessionBinding.h` in the `ChromeUtilsBinding.h`, which would cause the complier complaining about lots of undeclared identifier.

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

--HG--
extra : moz-landing-system : lando
2020-03-17 01:01:31 +00:00
alwu 9aea20214c Bug 1582508 - part6 : add actual playback state in the media controller r=chunmin
Implement the way of determining the actual playback state from the guessed playback state and the declared playback state.

[1] https://w3c.github.io/mediasession/#actual-playback-state

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

--HG--
extra : moz-landing-system : lando
2020-03-17 00:39:12 +00:00
alwu 252ad6b503 Bug 1582508 - part5 : replace 'PlaybackState' with 'MediaSessionPlaybackState'. r=chunmin
`PlaybackState` and `MediaSessionPlaybackState` are actually quite similar, and we don't want to have to many states to confuse reader and do unnecessary tranform between two states. Therefore, replaceing  `PlaybackState` with `MediaSessionPlaybackState`.

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

--HG--
extra : moz-landing-system : lando
2020-03-17 00:03:55 +00:00
alwu c369eaed94 Bug 1582508 - part4 : propagate declared playback state to media session controller. r=chunmin
This patch includes the implementation of propagating declared playback state from the media session in the content process to the media session controller in the chrome process.

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

--HG--
extra : moz-landing-system : lando
2020-03-17 00:17:36 +00:00
alwu 030d275312 Bug 1582508 - part3 : create new structure 'MediaSessionInfo' to store the declared playback state for media session. r=chunmin
As we would need to preserve media session's playback state as well, we create a new struture to store each media session's propagated properties.

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

--HG--
extra : moz-landing-system : lando
2020-03-17 00:03:44 +00:00