Commit Graph

726292 Commits

Author SHA1 Message Date
Andreas Pehrson
61b7d9f063 Bug 1656438 - Simplify TestAudioTrackGraph.SetOutputDeviceID. r=padenot
Depends on D89744

Differential Revision: https://phabricator.services.mozilla.com/D89745
2020-09-15 11:53:37 +00:00
Andreas Pehrson
5ae9f63543 Bug 1656438 - Simplify TestAudioTrackGraph.DifferentDeviceIDs. r=padenot
Depends on D89743

Differential Revision: https://phabricator.services.mozilla.com/D89744
2020-09-15 11:53:29 +00:00
Andreas Pehrson
9eed18e4b6 Bug 1656438 - Add explainer for the need for asyncness in TestAudioTrackGraph.cpp. r=padenot
Depends on D89742

Differential Revision: https://phabricator.services.mozilla.com/D89743
2020-09-15 11:53:22 +00:00
Andreas Pehrson
de121769f0 Bug 1656438 - Break out and simplify the StartStop ControlMessage for re-use. r=padenot
Depends on D89741

Differential Revision: https://phabricator.services.mozilla.com/D89742
2020-09-15 11:53:14 +00:00
Andreas Pehrson
ae837f3da5 Bug 1656438 - Add async flow helpers to TestAudioTrackGraph. r=padenot
Depends on D89740

Differential Revision: https://phabricator.services.mozilla.com/D89741
2020-09-15 11:53:07 +00:00
Andreas Pehrson
3125ba99d4 Bug 1656438 - Fix non-direct int16 speex resampler halving values. r=karlt
As regressed by
0e5d424fdb (diff-a05703278f3e5abb7d4b60dd33006618R478)

Fix cherrypicked from
https://gitlab.xiph.org/xiph/speexdsp/-/merge_requests/5

Differential Revision: https://phabricator.services.mozilla.com/D89740
2020-09-15 14:41:51 +00:00
Andreas Pehrson
4e26dd626c Bug 1656438 - Speed up MediaTrackGraph gtests. r=padenot
Depends on D85558

Differential Revision: https://phabricator.services.mozilla.com/D89739
2020-09-15 11:52:52 +00:00
Alex Chronopoulos
32917001a5 Bug 1656438 - Create a unittest for CrossGraphTrack. r=padenot
The unittest does not verify that the input is forwarded to the output of the
CrossGraphReceiver because it is not easy to get the corresponding
MockCubebStream. This has been left as future work.

Depends on D85557

Differential Revision: https://phabricator.services.mozilla.com/D85558
2020-09-15 14:41:49 +00:00
Alex Chronopoulos
0d36f710e8 Bug 1656438 - Create a unitest for SourceMediaTrack and AudioInputProcessing. r=padenot
Use the newly added functionality in MockCubeb to verify that the input is
forwarded to the output.

Depends on D85556

Differential Revision: https://phabricator.services.mozilla.com/D85557
2020-09-15 14:43:46 +00:00
Alex Chronopoulos
332eacb86a Bug 1656438 - Simulate audio input and verify audio output in MockCubeb. r=padenot
With this patch, AudioGenerator is used to create a sine tone audio input to a
duplex stream. In parallel, the AudioVerifier is used to verify that this sine
tone exists in the output (on demand).

This is the first approach. Fancier generators/verifiers can be future work.

Depends on D85554

Differential Revision: https://phabricator.services.mozilla.com/D85555
2020-09-15 14:43:41 +00:00
Alex Chronopoulos
3c7681a521 Bug 1656438 - Add interleaved buffer support in AudioGenerator/Verifier. r=padenot
This is useful in order to be used by the low-level part of the stack
(MockCubeb) where the buffers contain interleaved channels.

Depends on D85553

Differential Revision: https://phabricator.services.mozilla.com/D85554
2020-09-15 14:41:42 +00:00
Alex Chronopoulos
b856bbadd6 Bug 1656438 - Remove AudioToneGenerator and move AudioToneVerifier to dedicated file. r=padenot
The existing AudioGenerator takes over the job of AudioToneGenerator.
AudioToneVerifier becomes AudioVerifier to match the naming pattern.

In order to reuse the functionality for other tests.

Depends on D85552

Differential Revision: https://phabricator.services.mozilla.com/D85553
2020-09-15 14:42:42 +00:00
Andreas Pehrson
4da0ed94ab Bug 1656438 - Generalize AudioGenerator and SineWaveGenerator to support AudioToneGenerator's use cases. r=padenot
Depends on D85552

Differential Revision: https://phabricator.services.mozilla.com/D89738
2020-09-15 11:52:06 +00:00
Alex Chronopoulos
bd90aec1ed Bug 1656438 - Replace dos EOL with unix one. r=padenot
In addition to that remove it from the exclude list of the whitespace sanity check assuming that the dos EOL had made it fail.

Differential Revision: https://phabricator.services.mozilla.com/D85552
2020-09-15 14:42:42 +00:00
Anny Gakhokidze
6a0eb66873 Bug 1655572 - Make view-source not require session history, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D88509
2020-09-14 19:00:05 +00:00
Andi-Bogdan Postelnicu
17c635393e no bug - Doc: add reference for Visual Studio Code the build documentation. r=sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D90215
2020-09-15 14:32:17 +00:00
Emilio Cobos Álvarez
c9c8915c30 Bug 1665001 - Don't allow custom page margins to go under the unwriteable margin. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D90231
2020-09-15 14:15:43 +00:00
Nihanth Subramanya
0882288b45 Bug 1664873 - Add doh-rollout prefs to "important modified prefs" list in about:support. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D90221
2020-09-15 13:50:22 +00:00
Jamie Nicol
cd32d3d834 Bug 1663732 - Hook up GeckoView's CompositorController.setClearColor() to webrender. r=nical
Differential Revision: https://phabricator.services.mozilla.com/D90098
2020-09-15 13:22:24 +00:00
Hubert Boma Manilla
795fbdf4ae Bug 1661709 - Test for requests blocked by extensions r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D89309
2020-09-15 11:17:19 +00:00
Andrew Halberstadt
e8970ddcb9 Bug 1643689 - [taskgraph] enable manifest-scheduling on autoland, r=marco
Sets autoland to use the 'bugbug' test manifest loader. This is being enabled
as part of a temporary trial to see the impact it has on sheriffing.

Depends on D90159

Differential Revision: https://phabricator.services.mozilla.com/D90160
2020-09-14 23:12:31 +00:00
Andrew Halberstadt
ca0aefcd5b Bug 1643689 - [taskgraph] Fix error in 'split_bugbug_args', r=marco
The dict needs to be passed to the last two substrategies, not just the last
one.

Differential Revision: https://phabricator.services.mozilla.com/D90159
2020-09-14 23:08:28 +00:00
Bryce Seager van Dyk
32100f6e2f Bug 1642735 - Suppress exceptions in ChromiumCDMProxy if we don't have MediaKeys. r=jbauman
When rejecting promises in ChromiumCDMProxy we pass an exception to MediaKeys to
represent the error that took place. However, if we do not have a any keys the
exception is not passed anywhere. Since these exceptions will assert on
destruction that they were handled we need to explicitly suppress the exception
when we don't have MediaKeys to avoid firing asserts.

The case we hit this issue in is during browser shutdown, so I think it makes
sense to ignore the exception. This is not a case of simply ignoring an
exception when it can be handled, this is that we're in a state where various
machinery is becoming unavailable and where it makes sense to not try and send
the exception any further.

Differential Revision: https://phabricator.services.mozilla.com/D90156
2020-09-15 13:33:38 +00:00
Emilio Cobos Álvarez
edd6eea1f1 Bug 1664691 - Remove nsImageLoadingContent.imageBlockingStatus. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D90037
2020-09-15 11:59:28 +00:00
Csoregi Natalia
e572b21ddb Backed out changeset 5f67698e1e52 (bug 1642735) as per request. CLOSED TREE 2020-09-15 16:11:55 +03:00
Dão Gottwald
7183a3a857 Bug 1664203 - Send attribution request work for default tiles that became frecency tiles. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D90244
2020-09-15 12:21:29 +00:00
Jon Coppeard
2e7dd08c7c Bug 1664810 - Remove some dependencies of vm/EnvironmentObject.h r=jandem
Similar to previous patches, remove includes from EnvironmentObject.h where
possible and some of its uses.

Differential Revision: https://phabricator.services.mozilla.com/D90104
2020-09-15 12:54:09 +00:00
Jon Coppeard
d6d58f3b3d Bug 1664810 - Slim down AtomMarking includes r=sfink
Including SymbolType.h in AtomMarking.h pulls in a ton of vm includes. This
dependency can be moved to the -inl.h which used rarely.

Differential Revision: https://phabricator.services.mozilla.com/D90103
2020-09-15 11:04:31 +00:00
Jon Coppeard
a5d4574b7c Bug 1664810 - Remove dependencies on jit/MacroAssembler.h where possible r=jandem
This file is huge and pulls in a ton of includes. We can remove some of its
includes and a bunch of its uses too.

Differential Revision: https://phabricator.services.mozilla.com/D90102
2020-09-15 11:04:31 +00:00
Jon Coppeard
722d63f40b Bug 1664810 - Move internal helper thread definitions into a separate header file r=jandem
Currently HelperThreads.h defines all the internals of the helper thread
system, but most of this is only neeed by HelperThreads.cpp itself. This patch
splits that out into a separate file so that HelperThreads.h defines an API for
the helper thread system.

Differential Revision: https://phabricator.services.mozilla.com/D90101
2020-09-15 11:04:31 +00:00
Jon Coppeard
2f4a67969d Bug 1664810 - Remove TraceIncomingCCWs from the public API r=sfink
This is only used by ubinode and doesn't need to be in the public API. I
removed ZoneSet/CompartmentSet which are otherwise unneeded.

Differential Revision: https://phabricator.services.mozilla.com/D90100
2020-09-15 11:04:31 +00:00
Gijs Kruitbosch
0aa5254ee5 Bug 1662364 - use content principal as the triggering principal when opening external URIs from plugins, r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D90191
2020-09-15 07:33:25 +00:00
Bryce Seager van Dyk
cd72e6b8ec Bug 1642735 - Suppress exceptions in ChromiumCDMProxy if we don't have MediaKeys. r=jbauman
When rejecting promises in ChromiumCDMProxy we pass an exception to MediaKeys to
represent the error that took place. However, if we do not have a any keys the
exception is not passed anywhere. Since these exceptions will assert on
destruction that they were handled we need to explicitly suppress the exception
when we don't have MediaKeys to avoid firing asserts.

The case we hit this issue in is during browser shutdown, so I think it makes
sense to ignore the exception. This is not a case of simply ignoring an
exception when it can be handled, this is that we're in a state where various
machinery is becoming unavailable and where it makes sense to not try and send
the exception any further.

Differential Revision: https://phabricator.services.mozilla.com/D90156
2020-09-15 12:32:45 +00:00
Andrei Oprea
1b0916b6c1 Bug 1664750 - Redirect users to about:home after they opt in to restore default settings r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D90129
2020-09-14 19:49:21 +00:00
Csoregi Natalia
dd1efa8650 Backed out 5 changesets (bug 1664810) for build bustages on TestingFunctions.cpp. CLOSED TREE
Backed out changeset 8342bb37c478 (bug 1664810)
Backed out changeset 0cf50c9c75d9 (bug 1664810)
Backed out changeset b85512fd99e1 (bug 1664810)
Backed out changeset 99bd2cab97c8 (bug 1664810)
Backed out changeset 0d5cd8372bcb (bug 1664810)
2020-09-15 14:01:07 +03:00
Valentin Gosu
07362aeaa4 Bug 1663657 - Turn IsIpAddr* functions into NetAddr methods r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D89552
2020-09-15 10:39:56 +00:00
Valentin Gosu
7de4c8009c Bug 1525854 - TRR shouldn't fallback to DNS on DNSSEC error r=necko-reviewers,dragana
This patch adds support for the Extended DNS Errors draft code.
https://datatracker.ietf.org/doc/html/draft-ietf-dnsop-extended-error-16

While not yet in the draft, it seems the OPT code for Extended DNS Error is 15
https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-11

The list of errors for which we hard fail isn't necessarily final.
I picked the errors that indicate a DNSSec failure, or an intentional
filtering done by the resolver.

Differential Revision: https://phabricator.services.mozilla.com/D87698
2020-09-15 10:39:07 +00:00
Valentin Gosu
8fac241692 Bug 1660970 - Get rid of DoHAddr r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D88121
2020-09-15 10:38:41 +00:00
Valentin Gosu
3e2712a46b Bug 1645108 - Parse additional section of TRR response r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D87088
2020-09-15 10:38:27 +00:00
Jon Coppeard
bc5cc1dd1b Bug 1664810 - Remove some dependencies of vm/EnvironmentObject.h r=jandem
Similar to previous patches, remove includes from EnvironmentObject.h where
possible and some of its uses.

Differential Revision: https://phabricator.services.mozilla.com/D90104
2020-09-15 10:32:29 +00:00
Jon Coppeard
337a3accde Bug 1664810 - Slim down AtomMarking includes r=sfink
Including SymbolType.h in AtomMarking.h pulls in a ton of vm includes. This
dependency can be moved to the -inl.h which used rarely.

Differential Revision: https://phabricator.services.mozilla.com/D90103
2020-09-15 10:30:29 +00:00
Jon Coppeard
1342723b78 Bug 1664810 - Remove dependencies on jit/MacroAssembler.h where possible r=jandem
This file is huge and pulls in a ton of includes. We can remove some of its
includes and a bunch of its uses too.

Differential Revision: https://phabricator.services.mozilla.com/D90102
2020-09-15 10:30:14 +00:00
Jon Coppeard
456115c547 Bug 1664810 - Move internal helper thread definitions into a separate header file r=jandem
Currently HelperThreads.h defines all the internals of the helper thread
system, but most of this is only neeed by HelperThreads.cpp itself. This patch
splits that out into a separate file so that HelperThreads.h defines an API for
the helper thread system.

Differential Revision: https://phabricator.services.mozilla.com/D90101
2020-09-15 10:29:29 +00:00
Jon Coppeard
f55613367d Bug 1664810 - Remove TraceIncomingCCWs from the public API r=sfink
This is only used by ubinode and doesn't need to be in the public API. I
removed ZoneSet/CompartmentSet which are otherwise unneeded.

Differential Revision: https://phabricator.services.mozilla.com/D90100
2020-09-15 10:27:57 +00:00
Dão Gottwald
3bc9f5a61d Bug 1664502 - Disable canonical URL conversion for search shortcuts when using default top sites from remote settings. r=mikedeboer
Remote Settings still support search shortcuts for the time being but it's considered an obsolete feature that we don't intend to use.

Differential Revision: https://phabricator.services.mozilla.com/D90122
2020-09-15 08:38:42 +00:00
Jonathan Kew
9ed4473651 Bug 1664530 - Use WithDefaultDevMode() helper in nsPrinterWin::GetMarginsForPaper. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D90180
2020-09-15 10:14:52 +00:00
Timothy Nikkel
0dabf9ce91 Bug 1664419. Need to suppress scrollbar repaint when seting visual viewport offset. r=kats,botond
In ScrollFrameHelper::ScrollToImpl we suppress repainting scrollbars when calling UpdateScrollbarPosition if we've decided not to schedule a paint (because we are sending a pending scroll update instead). Otherwise we repaint which is what we are trying to avoid.

The desktop zooming scrollbars code added a call to UpdateScrollbarPosition in SetVisualViewportOffset because the vv offset is what determines the scrollbar position, no longer the layout scroll position. This means that we can trigger a repaint via that path, and there is a test that checks that we don't.

This patch moves the SetVisualViewportOffset call to just after the code that determines if we need to schedule a paint (it was just before it), and then add the AutoScrollbarRepaintSuppression class.

Differential Revision: https://phabricator.services.mozilla.com/D89902
2020-09-14 21:38:25 +00:00
Gijs Kruitbosch
90b9ab56dc Bug 1663499 - fix ending webbrowserpersist downloading so it only happens once, r=valentin
This fixes a few causes of firing EndDownload twice:

1. firing it from OnDataAvailable if the download was already canceled when the
   method was initially invoked, rather than if we are ourselves wanting to
   cancel the download because we encountered issues inside OnDataAvailable.
2. firing it from FinishDownload, dispatched from SerializeNextFile, after the
   download has already been ended elsewhere.
3. calling Cancel() multiple times.

It also adds some code to avoid the re-entrancy on the Promise code that the
bug was originally filed for, and a diagnostic assert to check if there are any
other cases of repeated EndDownload calling that we've missed.

As a driveby, it adds a few thread assertions to help with code clarity.

Differential Revision: https://phabricator.services.mozilla.com/D90186
2020-09-15 07:17:00 +00:00
Noemi Erli
efb7727779 Backed out 2 changesets (bug 1664735) for causing failures in repeating-conic-gradient.html CLOSED TREE
Backed out changeset 5219686dc465 (bug 1664735)
Backed out changeset b9ca78d0a835 (bug 1664735)
2020-09-15 12:33:35 +03:00
Emilio Cobos Álvarez
d94923f235 Bug 1664685 - Simplify HTML{Image,Input}Element.{width,height} getters. r=edgar
By moving it to nsImageLoadingContent we don't need to pass a reference
to the current request and can just use the member.

The weird reference-passing was introduced in bug 987140 and broke in
bug 1534608.

Also make it return a CSSIntSize rather than an nsSize, since it's what
it returns, nsSize is supposed to be in app units, not in CSS pixels :-)

Differential Revision: https://phabricator.services.mozilla.com/D90036
2020-09-15 09:04:59 +00:00