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

726620 Коммитов

Автор SHA1 Сообщение Дата
Andreas Pehrson 6f74e25fa2 Bug 1656438 - Report pre-buffer as current buffer size before receiving data in DynamicResampler. r=padenot
Without this patch we return 0, and that can be misinterpreted by
AudioDriftCorrection so it thinks we have drifted a lot. This becomes more
obvious with a large desired buffer.

Differential Revision: https://phabricator.services.mozilla.com/D89759
2020-09-17 06:10:47 +00:00
Andreas Pehrson 71771a0418 Bug 1656438 - Make const DynamicResampler members public. r=padenot
Depends on D89757

Differential Revision: https://phabricator.services.mozilla.com/D89758
2020-09-17 06:10:47 +00:00
Andreas Pehrson fd9ab63f61 Bug 1656438 - Test CrossGraph ports with a multi-second buffer. r=padenot
The buffer size is exposed as a pref, so it better have a bit of test coverage.

Differential Revision: https://phabricator.services.mozilla.com/D89757
2020-09-17 06:10:32 +00:00
Andreas Pehrson 0593892c7a Bug 1656438 - Elaborate on CrossGraphPort tests. r=padenot
This patch lets us pass in a drift factor to allow for testing of the drift
correction code. It also enables output verification for the CrossGraph tests.

Differential Revision: https://phabricator.services.mozilla.com/D89756
2020-09-17 06:10:25 +00:00
Andreas Pehrson 37a6eb474a Bug 1656438 - Prune chunks after 50ms without imagining the samplerate. r=padenot
In a CrossGraphReceiver there is 100ms worth of buffering in AudioChunks.
Without this patch the graph will buffer 2400 frames in each track before
removing data from them. If a graph contains a CrossGraphReceiver and runs at a
sample rate lower than 24000Hz, that CrossGraphReceiver will run out of chunks
and an assertion failure happens at best.

Differential Revision: https://phabricator.services.mozilla.com/D89755
2020-09-17 06:10:18 +00:00
Andreas Pehrson 24443f7b3f Bug 1656438 - Do output verification in the gtest body. r=padenot
Depends on D89753

Differential Revision: https://phabricator.services.mozilla.com/D89754
2020-09-17 06:10:19 +00:00
Andreas Pehrson f03dabce6e Bug 1656438 - Only raise the FramesProcessedEvent once there is no silence. r=padenot
Because an audio driver starts out with its fallback driver running the graph,
we might use unnecessary amounts of silence for the verification. Especially
with the `GoFaster()` mode turned on, as the fallback driver's thread runs
rarely compared to how often we are feeding the graph audio data from the
MockCubebStream.

Differential Revision: https://phabricator.services.mozilla.com/D89753
2020-09-17 06:10:04 +00:00
Andreas Pehrson 2dcb57b54e Bug 1656438 - Remove MockCubeb::GetCurrentStream. r=padenot
It is a fragile and timing-sensitive way of getting the stream.

Differential Revision: https://phabricator.services.mozilla.com/D89752
2020-09-17 06:09:56 +00:00
Andreas Pehrson e47375ecc9 Bug 1656438 - Remove dependency on GMPTestMonitor in TestAudioTrackGraph.cpp. r=padenot
Depends on D89749

Differential Revision: https://phabricator.services.mozilla.com/D89751
2020-09-17 06:09:56 +00:00
Andreas Pehrson 07c81cab89 Bug 1656438 - Simplify TestAudioTrackGraph.CrossGraphPort. r=padenot
Depends on D89748

Differential Revision: https://phabricator.services.mozilla.com/D89749
2020-09-17 06:09:49 +00:00
Andreas Pehrson 023eb06367 Bug 1656438 - Simplify TestAudioTrackGraph.SourceTrack. r=padenot
Depends on D89747

Differential Revision: https://phabricator.services.mozilla.com/D89748
2020-09-17 06:09:46 +00:00
Andreas Pehrson 1f5b086c6e Bug 1656438 - Simplify TestAudioTrackGraph.ErrorStateCrash. r=padenot
Depends on D89746

Differential Revision: https://phabricator.services.mozilla.com/D89747
2020-09-17 06:09:38 +00:00
Andreas Pehrson 2f47c358ac Bug 1656438 - Simplify TestAudioTrackGraph.NotifyDeviceStarted. r=padenot
Depends on D89745

Differential Revision: https://phabricator.services.mozilla.com/D89746
2020-09-17 06:09:31 +00:00
Andreas Pehrson f29b0ad649 Bug 1656438 - Simplify TestAudioTrackGraph.SetOutputDeviceID. r=padenot
Depends on D89744

Differential Revision: https://phabricator.services.mozilla.com/D89745
2020-09-17 06:09:23 +00:00
Andreas Pehrson b112f2ac62 Bug 1656438 - Simplify TestAudioTrackGraph.DifferentDeviceIDs. r=padenot
Depends on D89743

Differential Revision: https://phabricator.services.mozilla.com/D89744
2020-09-17 06:09:15 +00:00
Andreas Pehrson d0a02da7bc 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-17 06:09:08 +00:00
Andreas Pehrson 3bb02445e5 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-17 06:09:00 +00:00
Andreas Pehrson 6b70ab1404 Bug 1656438 - Add async flow helpers to TestAudioTrackGraph. r=padenot
Depends on D89740

Differential Revision: https://phabricator.services.mozilla.com/D89741
2020-09-17 06:08:52 +00:00
Andreas Pehrson cc1a0581dc 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-17 06:08:38 +00:00
Andreas Pehrson 6062e55fc9 Bug 1656438 - Speed up MediaTrackGraph gtests. r=padenot
Depends on D85558

Differential Revision: https://phabricator.services.mozilla.com/D89739
2020-09-17 06:08:39 +00:00
Alex Chronopoulos 896ee86ffa 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-17 06:08:24 +00:00
Alex Chronopoulos 996b37335f Bug 1656438 - Create a unittest 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-17 06:16:18 +00:00
Alex Chronopoulos 6809f0a9c8 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-17 06:08:06 +00:00
Alex Chronopoulos 60715e70c9 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-17 06:07:59 +00:00
Alex Chronopoulos 30b0da89d4 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-17 06:16:49 +00:00
Andreas Pehrson b4bf812615 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-17 06:07:50 +00:00
Alex Chronopoulos e0a11a51c2 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-17 06:16:49 +00:00
Mihai Alexandru Michis 1b504b40f3 Backed out changeset bc975e4047cc (bug 1635859) for causing xpcshell failures in test_bookmark_deduping.js
CLOSED TREE
2020-09-17 11:32:50 +03:00
Mihai Alexandru Michis fa05fd89fa Backed out changeset 0b196026ed59 (bug 1643689) for causing issues with manifest scheduling.
CLOSED TREE
2020-09-17 11:26:12 +03:00
Kevin Jacobs ed0deeb271 Bug 1660509 - land NSS NSS_3_57_BETA1 UPGRADE_NSS_RELEASE, r=jcj
2020-09-15  Kevin Jacobs  <kjacobs@mozilla.com>

	* automation/release/nspr-version.txt:
	Bug 1660372 - NSS 3.57 should depend on NSPR 4.29. r=kaie

	[56224882ccc3] [NSS_3_57_BETA1]

Differential Revision: https://phabricator.services.mozilla.com/D90324
2020-09-17 05:29:26 +00:00
Botond Ballo 80d302db4e Bug 1665499 - Document clangd's 'switch header/source' command. r=andi DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D90482
2020-09-17 05:20:18 +00:00
Daniel Holbert 3f7161b817 Bug 1665540: Update our in-tree sccache version to address issues from premature tiny-http update. r=glandium
This just moves us one commit forward in order to pick up the fix for
https://github.com/mozilla/sccache/issues/846

Differential Revision: https://phabricator.services.mozilla.com/D90509
2020-09-17 04:44:21 +00:00
Mark Hammond ec83e7c737 Bug 1635859 - ensure all bookmarks have correct syncStatus after reconcilliation. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D87218
2020-09-17 04:37:52 +00:00
Marco Zehe 6fb51e8cb7 Bug 1520779 Part 6: Return consistent results for paragraphs that contain forced line breaks, r=Jamie
1. Make sure the paragraph text and start and end ofsets returned for offsets on either the text or its adjacent br always match.
2. For a single line break at the beginning of the enclosing paragraph, or two consecutive line breaks, treat the second one as its own paragraph without text, and its start offset corresponding to its offset, and end offset being 1 greater.
3. Add a test case exercising all cases.

Differential Revision: https://phabricator.services.mozilla.com/D90355
2020-09-17 04:51:31 +00:00
Marco Zehe 2209e8f5b2 Bug 1520779 Part 5: Expose both text and list bullet when requesting the paragraph from a list item, r=Jamie
Tagging onto what we already do for getting line offsets, also doing the same when the paragraph selection is requested.

Differential Revision: https://phabricator.services.mozilla.com/D90238
2020-09-17 00:02:22 +00:00
Marco Zehe ba3763885d Bug 1520779 Part 4: Add tests to exercise paragraph retrieval, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D90117
2020-09-17 00:02:22 +00:00
Marco Zehe 74739aaa14 Bug 1520779 Part 3: Hook up the IA2_TEXT_BOUNDARY_PARAGRAPH to the internal nsIAccessibleText::BOUNDARY_PARAGRAPH support, r=Jamie
Depends on D90115

Differential Revision: https://phabricator.services.mozilla.com/D90116
2020-09-17 00:02:21 +00:00
Marco Zehe b3310a715c Bug 1520779 Part 2: Implement nsIAccessibleText::BOUNDARY_PARAGRAPH in HyperTextAccessible::GetTextAtOffset, r=Jamie,eeejay
For TextBeforeOffset and TextAfterOffset, bail out with an empty text and 0-initialized out integers if the boundary type is nsIAccessibleText::BOUNDARY_PARAGRAPH.

Differential Revision: https://phabricator.services.mozilla.com/D90115
2020-09-17 00:02:21 +00:00
Marco Zehe c230d1c198 Bug 1520779 Part 1: Add the paragraph boundary to nsIAccessibleText, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D90114
2020-09-17 00:02:21 +00:00
Henrik Skupin 48a0e53c0a Bug 1582736 - [marionette] Navigation tests of TestTLSNavigation needs to run in their own tab. r=marionette-reviewers,maja_zf
Because TestTLSNavigation is not based off BaseNavigationTestCase
each of its tests is run inside the initial tab. This could cause
bad interactions between tests and should be avoided.

Differential Revision: https://phabricator.services.mozilla.com/D90466
2020-09-17 00:26:24 +00:00
Hiroyuki Ikezoe 79b4b86322 Bug 1661316 - Use `visibleRect` for partial pre-render check instead of `dirtyRect`. r=mattwoodrow
With RDL the dirty rect might be empty if the target transformed frame is
marked as `mForceDescendIntoIfVisible`.

Differential Revision: https://phabricator.services.mozilla.com/D90497
2020-09-17 00:52:16 +00:00
Kris Maglione 387300d358 Bug 1662855: Remove defunct httpd.manifest file. r=mccr8,necko-reviewers,valentin
The manifest file hasn't actually done anything since XPT definitions were
moved to the libxul binary, and now just generates warnings in local builes.

Differential Revision: https://phabricator.services.mozilla.com/D89197
2020-09-17 03:15:11 +00:00
Emma Malysz b94b50a7ae Bug 1660665, hide subdialog if user chooses to print using system dialog. r=jwatt,Gijs,mstriemer
When the user chooses to print using the system dialog, we should hide the print
UI. We are choosing to hide the dialog stack instead of closing the dialog because
the print preview browser still needs to be available if the user tries to print.
We close the window if the user cancels the system dialog or once we receive the
promise from PrintUtils.printWindow.

Differential Revision: https://phabricator.services.mozilla.com/D88096
2020-09-17 02:18:50 +00:00
Shane Caraveo 41e690dc38 Bug 1659530 skip 3rd party panel when installing recommended addons r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D87326
2020-09-16 16:53:56 +00:00
Masayuki Nakano c808508f5a Bug 1664741 - Make `AutoBlockElementsJoiner::DeleteNodesEntirelyInRangeButKeepTableStructure()` check whether it deletes a visible content or not before deleting the contents r=m_kato
Oddly, it checks whether it deletes at least one visible thing after deleting
each content from the DOM tree.  It should be done before deleting from the
DOM tree because all text nodes become visible if they are not in the DOM tree
anymore.

Unfortunately, this change does not fix any automated test result, but the
base logic --only when it does not delete any visible things, join the adjacent
block elements-- sounds reasonable.  Therefore, let's take this change.
Note that without this change, cannot compute "affected ranges" of
`getTargetRanges()` in the case running this method later.

Differential Revision: https://phabricator.services.mozilla.com/D90065
2020-09-17 01:45:30 +00:00
Toshihito Kikuchi 4c58dba463 Bug 1588245 - Collect the assembly pattern of a target function on detour failure. r=mhowell
Many instances of the launcher failure ping indicate hooking NtMapViewOfSection
or LdrLoadDll failed.  This is most likely caused by a third-party application
applying a hook onto the same target earlier than we do.

This patch is to add a new field "detour_orig_bytes" in the laucnher failure ping
to collect the first sixteen bytes of a detour target function.  With this,
we can know whether those detour failures were caused by a third-party hook or not,
and if yes, what was the actual binary pattern.

Differential Revision: https://phabricator.services.mozilla.com/D89836
2020-09-17 01:42:26 +00:00
Dorel Luca ac0e714d57 Backed out changeset b445d02b1367 (bug 1657676) for Browser-chrome failures in newtab/test/browser/browser_topsites_section.js. CLOSED TREE 2020-09-17 04:46:23 +03:00
Karl Tomlinson f0ff67be12 Bug 1646601 don't assume fully active when ancestor BrowsingContext is discarded r=kmag
Tested when using --enable-fission with audiocontext-not-fully-active.html "frame in removed remote-site frame".
https://phabricator.services.mozilla.com/D90218#C3004773NL58

Differential Revision: https://phabricator.services.mozilla.com/D90219
2020-09-16 19:56:25 +00:00
Karl Tomlinson 3c3698a052 Bug 1646601 test AudioContext constructor throws when not fully active r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D90218
2020-09-16 16:28:36 +00:00
Matt Woodrow 77b568f7af Bug 1660709 - Use MacIOSurface code to determine texture formats when binding an IOSurface to a texture. r=jgilbert
The GLBlitHelper version was reimplementing the same logic, and didn't have support for all the pixel types needed.

Differential Revision: https://phabricator.services.mozilla.com/D88125
2020-09-10 23:38:30 +00:00