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

816921 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 3a328a3ef8 Bug 1794040 - Simplify container-type implementation. r=dshin
It was made a bitfield so that we could include style. But then style
containment was removed and the bitfield keeps causing us to do wrong
check (since INLINE_SIZE intersects SIZE).

So just make it an enum. This causes a progression and a test that
failed now times out (which is a pre-existing issue, just like the
pseudo-elements test that times out).

Differential Revision: https://phabricator.services.mozilla.com/D160371
2022-10-26 16:56:07 +00:00
Chun-Min Chang 420ba200c7 Bug 1774302 - Ensure videoframe serialization is same-origin r=smaug
By using `--disable-e10s`, VideoFrame can be serialized in same process
but in different origins. To prevent the VideoFrame from being passed
across different origins, origins should be checked before constructing
a VideoFrame.

Depends on D160307

Differential Revision: https://phabricator.services.mozilla.com/D160155
2022-10-26 16:41:55 +00:00
Chun-Min Chang f122a37829 Bug 1774302 - Add a wpt passing VideoFrame between main and worker r=smaug
Depends on D159546

Differential Revision: https://phabricator.services.mozilla.com/D160307
2022-10-26 16:41:54 +00:00
Chun-Min Chang 4343b67583 Bug 1774302 - Add a wpt posting VideoFrame across agent cluster boundaries r=padenot,smaug
Depends on D153686

Differential Revision: https://phabricator.services.mozilla.com/D159546
2022-10-26 16:41:54 +00:00
Chun-Min Chang f9bcc8c6af Bug 1774302 - Implement [Serializable] for VideoFrame r=padenot,smaug
This patch implements `{Read, Write}StructuredClone` for `VideoFrame` so
`VideoFrame` can be *{de,}serialize*d.

Since VideoFrame serialization requires to serialize a member RefPtr
instance, the standard [Serializable] implementation is not possible.
The serialized data can be deserialized any number of times, including
zero. As a result, that RefPtr instance should be able to share its
reference and increase the ref-count any time it needs. Therefore, this
patch implements the [Serializable] functions in a custom fashion, which
storing the RefPtr instance in StructuredCloneHolder when serializing
the VideoFrame.

Depends on D153685

Differential Revision: https://phabricator.services.mozilla.com/D153686
2022-10-26 16:41:53 +00:00
Chun-Min Chang 9037731bf6 Bug 1774302 - Add [Serializable] to VideoFrame r=padenot,smaug
This patch add `Serializable` attribute to `VideoFrame` and add some
necessary changes to make this buildable.

Some expectations of *video-frame-serialization.any.is*'s wpts are
changed to `PASS` since they are implemented in bug 1774300.

The `Verify posting closed frames throws` is currently passed by luck so
the its expectation stays the same.

Depends on D159545

Differential Revision: https://phabricator.services.mozilla.com/D153685
2022-10-26 16:41:53 +00:00
Chun-Min Chang eba918d526 Bug 1774302 - Add missing thread-safety checks r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D159545
2022-10-26 16:41:52 +00:00
Nicolas B. Pierron 859240b35e Bug 1797312 - SharedSubResourceCacheLoadingValueBase use on accessors. r=emilio
`SharedSubResourceCacheLoadingValueBase` define the `mIsCancelled` field which
is overloaded by `SheetLoadData`. This patch moves all fields including
`mIsLoading` to `SheetLoadData` and add accessors to access these fields.

Differential Revision: https://phabricator.services.mozilla.com/D160226
2022-10-26 16:36:03 +00:00
Jonathan Kew 26aaa358c0 Bug 1797146 - Add a WPT test for serialization of font-variant. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D160110
2022-10-26 16:22:44 +00:00
Mike Kaply a41d181f55 Bug 1793905 - Disable HTTPS only preferences when locked. r=settings-reviewers,Gijs,mconley
Differential Revision: https://phabricator.services.mozilla.com/D160373
2022-10-26 16:01:19 +00:00
Jan Varga 8747eec0d4 Bug 1791725 - Add FixedBufferOutputStream; r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D157790
2022-10-26 15:56:38 +00:00
Michelle Goossens b70caf6522 Bug 1795994 - Migrate decision task over to GCP r=ahal,releng-reviewers,jcristau
Differential Revision: https://phabricator.services.mozilla.com/D159839
2022-10-26 15:55:18 +00:00
Emilio Cobos Álvarez bbed6df0c3 Bug 1797313 - Fix alert/confirm dialog layout after bug 1779695. r=Gijs
max-height percentages were not honored, which caused the infoRow to
collapse. With min-height: 0 the info row shrinks too much.

Differential Revision: https://phabricator.services.mozilla.com/D160227
2022-10-26 15:24:44 +00:00
Emilio Cobos Álvarez 2d02ebbcdf Bug 1797432 - Use a block rather than a vbox for the places tooltip box. r=aminomancer,mossop
Until popups and tooltips are migrated off xul layout this keeps the
desired behavior.

Differential Revision: https://phabricator.services.mozilla.com/D160336
2022-10-26 15:15:43 +00:00
Gijs Kruitbosch 105295825d Bug 1797466 - rename prefs module and add more peers, r=mossop,zeid
Differential Revision: https://phabricator.services.mozilla.com/D160340
2022-10-26 15:15:01 +00:00
Cosmin Sabou 927b0a80ea Bug 1796963 - Mark secure-connection-start-non-zero.https.html subtest as intermittent on android. r=aryx DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D160375
2022-10-26 15:11:51 +00:00
Ryan Hunt 70509cb3c2 Bug 1790626 - wasm: Use pointer to TypeDef instead of type index in PackedType. r=yury
This commit switches the representation of PackedType (and therefore ValType/FieldType)
to use a *TypeDef instead of type index.

There are several changes here:
  1. PackedTypeCode is always 64-bits now to pack the pointer. This penalizes 32-bit
     platforms, but we likely don't care about them enough to try to optimize this.
  2. RefType::TypeIndex is RefType::TypeRef
  3. RefType::typeIndex() is RefType::typeDef()
  4. TypeContext now stores a map from *TypeDef to original type index for printing errors
  5. Decoding a RefType now stores a *TypeDef instead of type index
  6. We now just transfer the SharedTypeContext from ModuleEnvironment to Metadata instead
     of copying definitions. This is needed for sharing the indexOf map.
  7. We now manually serialize/deserialize TypeContext
  8. TypeContext now stores SharedTypeDef in vector instead of TypeDef, this is needed so
     that *TypeDef is not invalidated across resizing the vector (asm.js does this)
  9. The initialization of TypeContext is refactored to keep the indexOf map in-sync
     with adding new types (asm.js needs this)
  10. We now manually serialize/deserialize PackedTypeCode using a new SerializedTypeCode
  11. Serialization now needs a TypeContext in order to get the index of type definitions
  12. Deserialization now constructs a TypeContext, and uses that when deserializing
      ValType/RefType/FieldType

Differential Revision: https://phabricator.services.mozilla.com/D157387
2022-10-26 14:48:08 +00:00
Ryan Hunt cfc3265f69 Bug 1790626 - wasm: Manually serialize/deserialize PackedType to prepare for it not being POD. r=yury
PackedType will store a pointer to *TypeDef in a later commit, making it
non-cacheable POD. We therefore need to specially handle it in serialization.
This commit starts preparing for that.

Differential Revision: https://phabricator.services.mozilla.com/D157386
2022-10-26 14:48:08 +00:00
Ryan Hunt e25c26d20a Bug 1790626 - wasm: Move 'immediate' type representation to FuncType and only use with call_indirect. r=yury
TypeIdDesc describes how to load the 'type id' for any type. Right now the
'type id' is an immediate integer for small function types, a *FuncType for
larger function types, and *RttValue for everything else.

The immediate integer case is an optimization for signature checks in
call_indirect. We can simplify our code by adding an 'immediateType_'
field to `FuncType` which stores an alternate representation of the
function type (if any) that can be used with call_indirect. Then
`TypeIdDesc`/`TypeDefWithId` are not needed during instantiation
anymore and we can just pass `TypeDefVector` from compilation to
runtime.

As a drive-by fix, some code for setting up the global data are of
Instance was simplified to allocate whole contiguous areas, instead
of looping, in some cases.

Some uses of TypeIdDesc still remain after this commit, but they are
only in codegen for figuring out how to emit signature checks. The
class is renamed and simplified to CallIndirectId to represent this.

Differential Revision: https://phabricator.services.mozilla.com/D157385
2022-10-26 14:48:07 +00:00
Ryan Hunt 5915126639 Bug 1790626 - wasm: Remove redundant isValid() checks on PackedType. r=yury
PackedType calls isValid() frequently before calling some accessor on
PackedTypeCode which then also calls isValid(). PT and PTC have slightly
different isValid() methods, with the only difference that PT will ensure
that the typeCode is valid for ValType or FieldType, and that PTC will
ensure that the typeCode has been initialized.

Because we check PT.isValid() when constructing a PT, any check that
PTC has been initialized should be equivalent to PT.isValid().

Differential Revision: https://phabricator.services.mozilla.com/D157384
2022-10-26 14:48:07 +00:00
Emilio Cobos Álvarez d9378b9fc5 Bug 1797146 - Remove system font support for various font longhands. r=jfkthame
We don't use them[1], and these are generally not properties that
authors would be able to set via the font shorthand anyways.

Let's simplify the code. This fixes the font-variant bug and also
unblocks further clean-ups of these properties in the future.

[1]: https://searchfox.org/mozilla-central/rev/59f0bf3c13dd455d9f5415b89178de701ea6b850/widget/LookAndFeelTypes.ipdlh#12-18

Differential Revision: https://phabricator.services.mozilla.com/D160352
2022-10-26 14:42:49 +00:00
Mike Conley b01ae33f91 Bug 1797156 - Refactor OverflowableToolbar and add documentation. r=sclements,cmkm
This patch does not aim to change the behaviour of OverflowableToolbar
at all. Instead, it:

1. Migrates off of old-school prototype class to a modern ES6 class
2. Uses actual private members and methods rather than underscore
   pseudo-private members and methods.
3. Tries to group the methods of OverflowableToolbar into groups like
   public methods, private methods, private event handlers, CUI widget
   listener methods and finally XPCOM interface implementations.
4. Tries to add JSDoc-style documentation where possible.

Differential Revision: https://phabricator.services.mozilla.com/D160106
2022-10-26 14:40:49 +00:00
Mike Conley 1a06860e38 Bug 1797156 - Add a tag to make it easier to run OverflowableToolbar tests on their own. r=sclements,cmkm
Differential Revision: https://phabricator.services.mozilla.com/D160105
2022-10-26 14:40:48 +00:00
Emilio Cobos Álvarez 3f55839fe0 Bug 1797407 - Don't propagate bits for children invalidated under display:none/not in the flat tree. r=boris,firefox-style-system-reviewers
Much like invalidated_descendants. This preserves our invariant that we
only visit elements with data in the post-traversal.

Differential Revision: https://phabricator.services.mozilla.com/D160338
2022-10-26 14:37:34 +00:00
Michael Comella 6b03f224f1 Bug 1797137 - document excluding build directories in VS Code. r=andi DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D160126
2022-10-26 14:34:50 +00:00
Sandor Molnar 7b506d69fd Backed out changeset 1c6ca8281c31 (bug 1797216) for causing jit-1-proc failures. CLOSED TREE 2022-10-26 17:03:21 +03:00
Andreas Pehrson 21e0d946f7 Bug 1795542 - Use default fps for tab capture. r=jib
This patch makes tab capture with an unset framerate constraint adhere to the
"media.navigator.video.default_fps" pref and its fallback constant
MediaEnginePrefs::DEFAULT_VIDEO_FPS.

Differential Revision: https://phabricator.services.mozilla.com/D159605
2022-10-26 13:53:09 +00:00
Andreas Pehrson 126709f597 Bug 1795542 - Allow capture requests to resolve while waiting for disconnect. r=mjf
Immediately shutting down the TaskQueue would result in assertion failures if
a request resolves before being disconnected from its handler.

Differential Revision: https://phabricator.services.mozilla.com/D159604
2022-10-26 13:53:08 +00:00
Andreas Pehrson c7b43afeaa Bug 1795542 - s/GetCurrentSerialEventTarget/GetMainThreadSerialEventTarget/ in CrossProcessPaint. r=tnikkel
This lets us set up CrossProcessPaint from a TaskQueue on top of main thread.

Prior to this patch if such a TaskQueue was shut down with a pending
CrossProcessPaint in flight, we'd fail MozPromise assertions because of the
failed dispatch when resolving the CrossProcessPaint::ResolvePromise.

Differential Revision: https://phabricator.services.mozilla.com/D159603
2022-10-26 13:53:08 +00:00
Andreas Pehrson 2b15715dd5 Bug 1795542 - Do not build up an unbounded buffer of tab capture requests. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D159602
2022-10-26 13:53:08 +00:00
Andreas Pehrson 19c5189a89 Bug 1795542 - In TabCapturerWebrtc do not dispatch any MozPromise Then handlers after shutting down the TaskQueue. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D159601
2022-10-26 13:53:07 +00:00
Geoff Brown 63d3ae8677 Bug 1797132 - Improve Android gtest crash reporting; r=jmaher
Do not wait for gtest process completion in mozdevice; instead, rely
on existing gtest support for waiting for process completion.
The mozdevice no-wait code was broken; fixed here.

Differential Revision: https://phabricator.services.mozilla.com/D160321
2022-10-26 13:39:17 +00:00
Francesco Lodolo (:flod) a1c067d502 Bug 1796396 - Extend intl.ui.browserLanguage probes to Firefox 122, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D160358
2022-10-26 13:32:58 +00:00
Alexandre Lissy c66cce0581 Bug 1792203 - Immediately resolve AsyncBlockers when no blocker are registered r=nika
Differential Revision: https://phabricator.services.mozilla.com/D158028
2022-10-26 13:11:43 +00:00
Alexandre Lissy 907f1a352b Bug 1792203 - Add gtest coverage for AsyncBlockers r=nika
Differential Revision: https://phabricator.services.mozilla.com/D158025
2022-10-26 13:11:42 +00:00
Chris H-C de3c85f1cf Bug 1797363 - Vendor Glean SDK v51.7.0 r=TravisLong,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D160269
2022-10-26 13:02:54 +00:00
Christian Holler cc58660577 Bug 1797479 - Disable two diagnostic asserts in IPC fuzzing. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D160357
2022-10-26 12:35:22 +00:00
Andreas Pehrson 816f86dfe1 Bug 1797445 - Let MockCubebStream::Start block until the background thread has grabbed the frozen start monitor. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D160346
2022-10-26 12:29:21 +00:00
Sandor Molnar cb84cda02c Backed out changeset 53ce60b1b515 (bug 1797050) for causing bc failures in browser/components/preferences/tests/browser_extension_controlled.js CLOSED TREE 2022-10-26 15:01:23 +03:00
Sandor Molnar 55c9f970f6 Backed out changeset 59151d6a9b0b (bug 1784202) for causing crashes @strlen + 0x30 2022-10-26 14:59:24 +03:00
Sandor Molnar 590f0de714 Backed out changeset b9a80242b74c (bug 1754746) for causing xpc failures in security/manager/ssl/tests/unit/test_ev_certs.js 2022-10-26 14:58:12 +03:00
stransky 3cc418b893 Bug 1796751 [Wayland] Apply negative coordinates workaround to GdkWindow too r=emilio
Depends on D160343

Differential Revision: https://phabricator.services.mozilla.com/D160344
2022-10-26 11:47:33 +00:00
stransky 5e9381b0ad Bug 1796751 [Wayland] Apply negative coordinates workaround to GDK_WINDOW_TEMP GdkWindow r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D160343
2022-10-26 11:47:33 +00:00
Luca Greco 0dab5c24b8 Bug 1796586 - Fix issue related to runtime.onStartup persistent listeners wrongly cleared on idle timeout. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D160119
2022-10-26 11:39:26 +00:00
Dragana Damjanovic cc9c5f0dd4 Bug 1796316 - Change the necko owner, update the peers' list, and update the list of the relevant necko team’s directories r=zeid,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D159784
2022-10-26 11:17:51 +00:00
William Durand 61e4eb1bab Bug 1797050 - Part 4 - Use `browser_specific_settings` instead of `applications` in remaining tests. r=rpl,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D160060
2022-10-26 11:15:12 +00:00
Emilio Cobos Álvarez 33f548e9da Bug 1797139 - Don't null out l10n from destructor(). r=dholbert,Gijs
destructor() should really clean-up after setup(), not the
constructor(), since setup() can be called multiple times.

Differential Revision: https://phabricator.services.mozilla.com/D160332
2022-10-26 11:10:38 +00:00
Jon Coppeard eb83c140a5 Bug 1796901 - Clear realm incremental marking state at the start of GC rather than at the end r=jandem
GC can be aborted in several states and zones GCRuntime::finishCollection
doesn't always get called. It's easier to clear this state in a signle place at
the start.

Differential Revision: https://phabricator.services.mozilla.com/D160056
2022-10-26 11:09:39 +00:00
stransky 6f3cbe6f22 Bug 1797470 Remove MOZ_GTK_DRAG_RESULT_* r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D160348
2022-10-26 11:00:01 +00:00
Matthew Gregan b9bd42891d Bug 1786797 - Enable AudioIPC in Nightly builds on macOS. r=cubeb-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D155457
2022-10-26 09:42:38 +00:00