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

784733 Коммитов

Автор SHA1 Сообщение Дата
emilymichaels 45ae1fbadb Bug 1749038 - Adding a keyboard command to toggle narrate in reader mode. r=niklas,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D136068
2022-02-09 00:26:48 +00:00
Micah Tigley 2bd9bdc9bc Bug 1753401 - Change PiP toggle's visibility threshold back to 1.0. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D138218
2022-02-09 00:21:14 +00:00
sotaro e98adbac0a Bug 1754134 - Remove ImageBufferWrapper::AsPlanarYCbCrImage() r=media-playback-reviewers,alwu
We do not need to use PlanarYCbCrImage* here.

Differential Revision: https://phabricator.services.mozilla.com/D138111
2022-02-09 00:03:06 +00:00
Nika Layzell ecac1fbfef Bug 1747526 - Return a handle from asyncShutdown to observe and cancel thread shutdown progress, r=xpcom-reviewers,KrisWright
This change introduces a new interface, nsIThreadShutdown, which is used
to handle the relevant state for communicating thread shutdown state
between the joining and terminating threads. This type is now returned
from `nsIThread::AsyncShutdown` and can be used to register callbacks
for when thread shutdown is complete, as well as cancel shutdown
entirely, leading to the underlying PRThread never being joined using
PR_JoinThread. This leaking limitation may be avoidable if support for
detaching PRThreads is added to NSPR, or nsThread switches to a more
feature-complete threading API.

This patch also uses the new interface to rework nsThreadPool's Shutdown
and ShutdownWithTimeout methods to avoid poking at nsThread internals
and instead use the publicly facing methods. This allows us to start
async shutdown for all threads and spin the event loop until they all
complete, or a timeout timer fires.

Differential Revision: https://phabricator.services.mozilla.com/D136045
2022-02-08 23:58:03 +00:00
Nika Layzell 9919099425 Bug 1738734 - Directly pass around handles rather than using TransportDescriptor, r=jld,media-playback-reviewers,alwu
This simplifies the logic around descriptors significantly, which is
especially useful considering how few places use the type. There is a
small change required on Windows to create the NamedPipe directly and
transfer around each end's handle, rather than connecting between
processes after the fact.

A named pipe has to be used, rather than an anonymous pipe, as
bidirectional communication is required.

Differential Revision: https://phabricator.services.mozilla.com/D130381
2022-02-08 23:53:45 +00:00
Nika Layzell 486c5fc2c4 Bug 1751071 - Correctly forward-declare/import included but unused types in ipdlh headers, r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D137164
2022-02-08 23:53:44 +00:00
ahochheiden 85715645b0 Bug 1753555 - Replaced `ProcessHandler` in `run_python_test` with a more standard solution r=ahal
There's a bug with `ProcessHandler` on Windows that sometimes causes
tests to hang for an additional 3 minutes. This is a workaround that
just replaces `ProcessHandler` with a standard Python3 approach that
achieves the same thing.

Also added some logging output as the threads are created as some
additional feedback. Prior to this, the tests silently started
running without any indication.

Differential Revision: https://phabricator.services.mozilla.com/D137822
2022-02-08 23:46:12 +00:00
lougeniac64 d72675f1aa Bug 1713137 - Fixed sync TPS tests r=markh
Differential Revision: https://phabricator.services.mozilla.com/D137921
2022-02-08 23:46:03 +00:00
Byron Campen [:bwc] 258d57bb30 Bug 1253706: Compensate for bug 1751509 by waiting for gathering to finish. r=jib
Also add some logging that was useful, remove some cruft, add a little
exception-safety, and some formatting changes.

Differential Revision: https://phabricator.services.mozilla.com/D137530
2022-02-08 23:38:01 +00:00
Byron Campen [:bwc] 6d77bdea7b Bug 1253706: Remove this assert, since in ICE restart cases it may not be true. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D135376
2022-02-08 23:38:00 +00:00
Byron Campen [:bwc] aeb940c46d Bug 1253706: Let failure to init a non-obsolete stream slide. r=mjf
This can happen in cases where we have an old ICE ctx that is infeasible, but have
kicked off an ICE restart with a new configuration that _is_ feasible. The old streams
are not obsolete yet, because we have not committed the ICE restart.

Differential Revision: https://phabricator.services.mozilla.com/D135375
2022-02-08 23:38:00 +00:00
Byron Campen [:bwc] a2b7cf4952 Bug 1253706: Fix leaks/uafs caused by repeated setting of STUN/TURN servers. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D135374
2022-02-08 23:37:59 +00:00
Byron Campen [:bwc] dd8c41c4d2 Bug 1253706: Set STUN/TURN servers _before_ adding streams, since that is required now. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D135373
2022-02-08 23:37:59 +00:00
Byron Campen [:bwc] 77eef823de Bug 1253706: Give each stream its own copy of the ICE config when it is created. r=mjf
Because a given ICE ctx can have multiple configurations active at once (since
setConfiguration is tentative until the ICE restart it requires is finalized), we
give each stream its own config, since that is simple.

I also renamed the stun/turn server fields in nr_ice_ctx, to make it easier to
check that I did not miss any places that needed to be switched over to using the
fields in nr_ice_media_stream.

Differential Revision: https://phabricator.services.mozilla.com/D135372
2022-02-08 23:37:58 +00:00
Byron Campen [:bwc] f26821e362 Bug 1253706: If no pairs are started, but gathering is done, do not cancel the grace period timer. r=mjf
This was a pre-existing bug detected by new tests. Also add a little logging.

Differential Revision: https://phabricator.services.mozilla.com/D135371
2022-02-08 23:37:58 +00:00
Byron Campen [:bwc] 3b2e037d26 Bug 1253706: Don't bother trying to pair obsolete streams. r=mjf
This was a pre-existing bug detected by new tests.

Differential Revision: https://phabricator.services.mozilla.com/D135370
2022-02-08 23:37:58 +00:00
Byron Campen [:bwc] 0778b88df0 Bug 1253706: Stop storing this as a bare pointer. r=mjf
Once we allow the ICE servers to be set, each stream can have a different array
of ICE servers, and those ICE servers can have different lifetimes. Let's avoid
the potential dangling pointer issue here.

Also, this fixes a minor spec violation where we were doing foundation comparison
incorrectly (we're supposed to only compare the address).

Differential Revision: https://phabricator.services.mozilla.com/D135369
2022-02-08 23:37:57 +00:00
Byron Campen [:bwc] bd9b8e270e Bug 1253706: Allow empty list of STUN/TURN servers to be set. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D135368
2022-02-08 23:37:57 +00:00
Byron Campen [:bwc] 11a44236c6 Bug 1253706: Create NrIceCtx::SetIceConfig. r=mjf
Used to be part of NrIceCtx::Init, but needed to be broken out.

Differential Revision: https://phabricator.services.mozilla.com/D135367
2022-02-08 23:37:57 +00:00
Byron Campen [:bwc] ceadcbdb8e Bug 1253706: Move initial configuration setting into a setConfiguration call. r=mjf,emilio
Having a single codepath for this should make things easier to maintain.

Differential Revision: https://phabricator.services.mozilla.com/D135366
2022-02-08 23:37:56 +00:00
Byron Campen [:bwc] 17426d80c0 Bug 1253706: Create and use MediaTransportHandler::SetIceConfig. r=mjf
Used to be built into CreateIceCtx, but needed to be stand-alone so it
could be called subsequently. Necessitated adding some members so pref-based
config state could be saved for later use.

Differential Revision: https://phabricator.services.mozilla.com/D135365
2022-02-08 23:37:56 +00:00
Byron Campen 8e405e2b2a Bug 1253706: Webidl/JS for RTCPeerConnection.setConfiguration r=jib,emilio
Differential Revision: https://phabricator.services.mozilla.com/D135363
2022-02-08 23:37:55 +00:00
Byron Campen [:bwc] f6d630b181 Bug 1253706: Mochitests for setConfiguration. r=jib
Mainly covers ICE servers, since we don't have support for that in wpt.

Differential Revision: https://phabricator.services.mozilla.com/D135362
2022-02-08 23:37:55 +00:00
Byron Campen 5467f16d85 Bug 1253706: Web-platform-tests for bug. r=jib
Re-enable several tests, and add some ICE testing using iceTransportPolicy.
Cannot test ICE servers, since wpt does not have any harness support for that.

Differential Revision: https://phabricator.services.mozilla.com/D135361
2022-02-08 23:37:55 +00:00
Byron Campen [:bwc] 407b7b07ef Bug 1752896: In NAT simulator, check that incoming packets are arriving at the right port in addition to checking that they are arriving _from_ the right port. r=mjf
Also, some logging that was helpful in diagnosing the problem.

Differential Revision: https://phabricator.services.mozilla.com/D137529
2022-02-08 23:37:54 +00:00
Daniel Holbert 9ea51cda5a Bug 1754295 part 3: Fix non-unified build errors in layout/tables, and mark it as safe to build in non-unified mode. r=boris
This patch fixes the following build error:
layout/tables/FixedTableLayoutStrategy.cpp:86:31: error: incomplete type 'nsLayoutUtils' named in nested name specifier

I'm also removing the "DEBUG_TABLE_STRATEGY_off" definition from the contextual
section of moz.build, because that symbol is never used. (It's never mentioned
anywhere else in our codebase; it must have controlled some long-since-removed
code).

Differential Revision: https://phabricator.services.mozilla.com/D138217
2022-02-08 23:29:56 +00:00
Daniel Holbert 06c1963311 Bug 1754295 part 2: Fix non-unified build errors in layout/mathml, and mark it as safe to build in non-unified mode. r=TYLin
Build errors fixed here:

layout/mathml/nsMathMLmpaddedFrame.h:68:14: error: field has incomplete type 'nsCSSValue'

* Fixed by including this type's header.

[various files]: error: use of undeclared identifier 'nsLayoutUtils'

* Fixed by including the nsLayoutUtils header.

[various files]: error: member access into incomplete type 'mozilla::dom::Element'

* These are for calls to [something]->AsElement()->HasAttr() and SetAttr(). Fixed by including Element.h in all affected .cpp files.

[various files]: error: member access into incomplete type 'nsINode::Document' (aka 'mozilla::dom::Document')

* These are for calls to mContent->OwnerDoc()->WarnOnceAbout(). Fixed by including Document.h in all affected files.

Depends on D138202

Differential Revision: https://phabricator.services.mozilla.com/D138203
2022-02-08 23:29:56 +00:00
Daniel Holbert a3722677f9 Bug 1754295 part 1: Fix non-unified build errors in layout/forms, and mark it as safe to build in non-unified mode. r=TYLin
This fixes the following build errors:

layout/forms/nsRangeFrame.cpp:135:42: error: member access into incomplete type 'const nsIFrame::nsDisplayListSet' (aka 'const mozilla::nsDisplayListSet')

layout/forms/nsRangeFrame.cpp:363:19: error: incomplete type 'nsLayoutUtils' named in nested name specifier

Differential Revision: https://phabricator.services.mozilla.com/D138202
2022-02-08 23:29:55 +00:00
Narcis Beleuzu d69284d2d7 Bug 1754127 - Disable browser_browserGlue_upgradeDialog_trigger.js. r=aryx DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D138220
2022-02-08 23:25:54 +00:00
Randell Jesup b0e34149a0 Bug 1754215: Update process model documentation for webServiceWorkers r=nika
Differential Revision: https://phabricator.services.mozilla.com/D138147
2022-02-08 23:23:01 +00:00
Marian-Vasile Laza 973f8d97b9 Backed out changeset 9c6f30f619d7 (bug 1747149) for causing xpcshell failures on test_BrowserUtils.js. CLOSED TREE 2022-02-09 02:08:44 +02:00
Steve Fink c01a478a5c Bug 1752646 - Merge Idle and non-Idle markers for CCSlice and ForgetSkippable r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D137356
2022-02-08 23:22:30 +00:00
Steve Fink 127ac132a2 Bug 1752646 - Record whether a GC slice was triggered and budgeted for idle time r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D137355
2022-02-08 23:22:29 +00:00
Steve Fink c780e12c98 Bug 1752646 - Emit a marker when a GC interrupt is requested r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D137351
2022-02-08 23:22:29 +00:00
Steve Fink 9f6b747106 Bug 1751543 - Skip the "can I GC yet?" check entirely in the parent process r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D137353
2022-02-08 23:22:28 +00:00
Ed Lee d7bf05ab83 Bug 1754126 - Skip colorway theme test if it has already expired r=pdahiya
Silently ignore themes that are expired and can't be enabled.

Differential Revision: https://phabricator.services.mozilla.com/D138168
2022-02-08 22:58:52 +00:00
Ting-Yu Lin ae6fa4834c Bug 1752658 Part 7 - Generalize GenerateFlexLines to populate FlexLayoutResult. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D138101
2022-02-08 22:47:20 +00:00
Ting-Yu Lin 141dbba00c Bug 1752658 Part 6 - Pass FlexLayoutResult into ReflowChildren(). r=dholbert
Currently, we pass all the five fields in FlexLayoutResult separately into
ReflowChildren(), but we really should just pass FlexLayoutResult instead.

Differential Revision: https://phabricator.services.mozilla.com/D138100
2022-02-08 22:47:20 +00:00
Ting-Yu Lin 6191c0136b Bug 1752658 Part 5 - Pass flex container's tentative cross size into DoFlexLayout and others. r=dholbert
We've got the tentative cross size before calling DoFlexLayout() in Reflow(), so
we can just use that value in DoFlexLayout and a few other methods.

Also, add "ContentBox" to naming of the main size argument ComputeMainSize().

Differential Revision: https://phabricator.services.mozilla.com/D137365
2022-02-08 22:47:20 +00:00
Ting-Yu Lin 0db4093210 Bug 1752658 Part 4 - Aggregate DoFlexLayout's output data in a struct instead of output arguments. r=dholbert
I found in/out parameters confusing when reasoning the data flow. Aggregating
DoFlexLayout's output data in a struct also reduces DoFlexLayout's number of
arguments.

Differential Revision: https://phabricator.services.mozilla.com/D137364
2022-02-08 22:47:19 +00:00
Ting-Yu Lin f0a1413baf Bug 1752658 Part 3 - Reduce scope of the struts array in Reflow(). r=dholbert
The `struts` array is used only within DoFlexLayout, so we should move it into
`if (!GetPrevInFlow()) { ... }` branch.

Also, move `nsTArray<StrutInfo>&` argument on DoFlexLayout() to the second to
last place so that the output arguments are grouped together after applying Part
4.

Differential Revision: https://phabricator.services.mozilla.com/D137363
2022-02-08 22:47:19 +00:00
Ting-Yu Lin 2b61aa41a4 Bug 1752658 Part 2 - Remove aConsumedBSize from DoFlexLayout() and ComputeCrossSize(). r=dholbert
DoFlexLayout() and ComputeCrossSize() are only called in first-in-flow, so
aConsumedBSize are always 0.

Differential Revision: https://phabricator.services.mozilla.com/D137362
2022-02-08 22:47:19 +00:00
Ting-Yu Lin 6e68c19465 Bug 1752658 Part 1 - Compute gap sizes only in flex container's first-in-flow. r=dholbert
Move the assertion for unconstrained isize to the beginning of Reflow() because
we check it in all cases -- in GetMainSizeFromReflowInput when a flex container
is row-oriented, or in the old code computing gap size and ComputeCrossSize()
when a flex container is column-oriented.

Differential Revision: https://phabricator.services.mozilla.com/D137361
2022-02-08 22:47:18 +00:00
Sam Foster f7976e8cc8 Bug 1747423 - Remove the @buttonState* preprocessor %defines; remove vars from (macos only) .panel-buttons r=amy
Differential Revision: https://phabricator.services.mozilla.com/D137349
2022-02-08 22:35:11 +00:00
Sam Foster 17d105d1c2 Bug 1747423 - Remove the @buttonState* preprocessor vars from zoom controls in panelUI.inc.css. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D137348
2022-02-08 22:35:10 +00:00
Sam Foster e59d2ff969 Bug 1747423 - Remove the @buttonState* preprocessor vars from .subviewradio controls r=dao
Differential Revision: https://phabricator.services.mozilla.com/D137347
2022-02-08 22:35:10 +00:00
Sam Foster bc105ec94a Bug 1747423 - Remove the @buttonState* preprocessor vars from panel toolbarbuttons. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D137346
2022-02-08 22:35:10 +00:00
Tim Giles fe24b21452 Bug 1753517 - Remove unneeded logging. r=sgalich,dimi
Differential Revision: https://phabricator.services.mozilla.com/D138044
2022-02-08 22:23:08 +00:00
alwu 0d0788b018 Bug 1754274 - add more logs on ffmpeg video decoder. r=media-playback-reviewers,bryce
Differential Revision: https://phabricator.services.mozilla.com/D138186
2022-02-08 22:14:44 +00:00
Mitchell Hentges 90c289dfa4 Bug 1753769: "runcli.py" in tests should use explicit paths r=ahal
The new `mozlint` behaviour will always lean on the VCS
to only lint changed files.

However, in tests, the VCS is going to be slow and also provide
inconsistent data between tests. Additionally, in some contexts,
the VCS won't be available.

Resolve this by hardcoding a file to lint for each case.

Differential Revision: https://phabricator.services.mozilla.com/D138033
2022-02-08 22:06:59 +00:00