Commit Graph

823629 Commits

Author SHA1 Message Date
Csoregi Natalia
a94c9b3808 Backed out changeset 9a6e4fbe0be0 (bug 1772924) for failures on browser_content_sandbox_fs_xdg.js. CLOSED TREE 2022-12-15 05:29:28 +02:00
Barret Rennie
2b616f5008 Bug 1772924 - Remove osfile.jsm usage in /security/sandbox/ r=haik
Differential Revision: https://phabricator.services.mozilla.com/D163404
2022-12-15 02:47:48 +00:00
Barret Rennie
1d4cd81569 Bug 1783100 - Remove osfile.jsm usage from DevToolsUtils.js r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D163500
2022-12-15 02:35:36 +00:00
James Teh
a970a1087e Bug 1800736: Use HyperTextAccessible for <svg> and <g> elements. r=nlapre
These can contain <foreignobject>, which contains HTML but does not normally create its own Accessible.
This means that these Accessibles could have TextLeafAccessible children.
TextLeafAccessible children must always have a HyperTextAccessible as a parent.
Therefore, we must use HyperTextAccessible for <svg> and <g>.
As well as fixing assertions, this allows text formatting to be queried for <foreignobject> content, which was previously broken.

Differential Revision: https://phabricator.services.mozilla.com/D164636
2022-12-15 02:21:24 +00:00
Barret Rennie
961f932e8e Bug 1775849 - Import messages from messaging-system-inflight-assets as test cases for schema validation r=dmose
Differential Revision: https://phabricator.services.mozilla.com/D161629
2022-12-15 01:52:09 +00:00
Iulian Moraru
cc585bd1b0 Backed out 11 changesets (bug 1804903, bug 1804902, bug 1804900, bug 1804899, bug 1712329, bug 1804898, bug 1804894, bug 1804904, bug 1804896, bug 1804905) for breaking gecko decision task. CLOSED TREE
Backed out changeset 9e7813271e6b (bug 1712329)
Backed out changeset 29aa1d032dd3 (bug 1804903)
Backed out changeset 22ef0b00cc99 (bug 1804905)
Backed out changeset 8fad832a574e (bug 1804904)
Backed out changeset 60f185a3a485 (bug 1804902)
Backed out changeset 8b69824de6e2 (bug 1804900)
Backed out changeset 140f75f3f919 (bug 1804899)
Backed out changeset f4da44b1a219 (bug 1804898)
Backed out changeset 7cf946ae8295 (bug 1804896)
Backed out changeset 07d62af0767f (bug 1804894)
Backed out changeset 1e3e02cc3b1f (bug 1712329)
2022-12-15 03:16:41 +02:00
Ben Hearsum
7199446671 Bug 1712329: Enable mochitest-browser-chrome tests for msix variant r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D164087
2022-12-15 00:45:16 +00:00
Ben Hearsum
86ac13541c Bug 1804903: disable static string tests on MSIX package tests. r=flod
Technically we could still run these tests on the non-langpack parts of the MSIX package -- but ultimately these are the same files as in the win32 build, so it's probably not worth the effort.

Differential Revision: https://phabricator.services.mozilla.com/D164674
2022-12-15 00:45:16 +00:00
Ben Hearsum
0fb4a9c432 Bug 1804905: update browserglue telemetry test expectations for msix builds r=bytesized
Pinning, or even evaluating pinning status, is not supported in MSIX builds yet.

Differential Revision: https://phabricator.services.mozilla.com/D164673
2022-12-15 00:45:16 +00:00
Ben Hearsum
3d23d8b7c3 Bug 1804904: update about dialog tests with proper expectations for MSIX builds r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D164672
2022-12-15 00:45:15 +00:00
Ben Hearsum
4a94e17f98 Bug 1804902: adjust preferences test expectations for msix builds r=settings-reviewers,mconley
Our own updater is disabled when running out of an MSIX build, and we hide update related things from preferences because of that.

Differential Revision: https://phabricator.services.mozilla.com/D164671
2022-12-15 00:45:15 +00:00
Ben Hearsum
9940e5a1ee Bug 1804900: Update browser/components/uitour/test/browser_UITour.js expectations for MSIX builds r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D164670
2022-12-15 00:45:14 +00:00
Ben Hearsum
e55ef16578 Bug 1804899: browser/components/newtab/test/browser/browser_aboutwelcome_rtamo.js fails against MSIX packages r=pdahiya
Return-to-AMO is not supported in MSIX builds (yet, anyways) - and this test fails when run against them.

Differential Revision: https://phabricator.services.mozilla.com/D164669
2022-12-15 00:45:14 +00:00
Ben Hearsum
862e8cab8c Bug 1804898: update toolkit/components/normandy/test/browser/browser_ClientEnvironment.js expectations for MSIX builds r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D164668
2022-12-15 00:45:14 +00:00
Ben Hearsum
5cafb3c923 Bug 1804896: don't run update related tests against msix packages r=bytesized,application-update-reviewers
We don't use our updater in MSIX, no need to run the tests (which break various ways anyways).

Differential Revision: https://phabricator.services.mozilla.com/D164667
2022-12-15 00:45:13 +00:00
Ben Hearsum
4764cf4239 Bug 1804894: Don't write postSigningData in MSIX builds r=nalexander
This is only done by the Return-to-AMO flow, which is not supported in MSIX anyways.

Also, disable the RTAMO test for MSIX builds while we're here.

Differential Revision: https://phabricator.services.mozilla.com/D164666
2022-12-15 00:45:13 +00:00
Ben Hearsum
0d82195be6 Bug 1712329: Add support for not running tests by msix variant r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D164665
2022-12-15 00:45:12 +00:00
Timothy Nikkel
f9d4662dba Bug 1801397. Render questionable 1x1 gifs with no image data like other clients. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D162450
2022-12-15 00:41:56 +00:00
Emily McDonough
9d851b65c0 Bug 1804571 - Fix missing page-name trackers for Ruby frames r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D164622
2022-12-14 23:16:05 +00:00
Kelsey Gilbert
6d120d162b Bug 1805626 - Query vert attrib buffer binding directly. r=gfx-reviewers,lsalzman
Previously we were querying the current ARRAY_BUFFER_BINDING, which
would fail if you did:
```
BindBuffer(ARRAY_BUFFER, a)
VertexAttribPointer(...)
BindBuffer(ARRAY_BUFFER, b)
```
We would assume we should call VeretxAttribPointer again with `b` bound,
when we need to bind `a` instead.

Unfortunately, this is hard to test, and we only hit this on drivers
where we don't use VAOs, which are rare now.

Differential Revision: https://phabricator.services.mozilla.com/D164744
2022-12-14 23:08:41 +00:00
Csoregi Natalia
ffeed88c2a Backed out changeset e6becf16d643 (bug 1788306) for causing bustage on UniFFICallbacks.cpp. CLOSED TREE 2022-12-15 01:16:12 +02:00
William Durand
3da94170fc Bug 1437171 - Add Web MIDI support in navigator.permissions.query(). r=webidl,smaug,pbz
Differential Revision: https://phabricator.services.mozilla.com/D164036
2022-12-14 22:20:37 +00:00
M. Sirringhaus
db3704f6f6 Bug 1621377 - Return NotAllowedError instead of AbortError when user cancels WebAuthn operation from UI. r=jschanck
Differential Revision: https://phabricator.services.mozilla.com/D164645
2022-12-14 22:11:50 +00:00
Bobby Holley
fb573066c8 Bug 1805582 — Add message to console when silently denying MIDI access due to no detected devices. r=gsvelto
Our test infrastructure runs with midi.testing enabled, which generates
virtual devices. This is mostly what we want, but it does prevent us
from testing the "no devices detected" path in automation. I've tested
it locally.

Differential Revision: https://phabricator.services.mozilla.com/D164722
2022-12-14 22:04:33 +00:00
Bobby Holley
60846d8883 Bug 1805735 — When user clicks "Never Allow" for WebMIDI access, promise rejection should include randomized delay. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D164721
2022-12-14 22:04:33 +00:00
Iulian Moraru
9a68bda010 Backed out changeset 370f2bb05766 (bug 1800952) for causing mass build bustages on ServoCSSPropList.mako.py. CLOSED TREE 2022-12-15 00:43:58 +02:00
Jonathan Watt
c89f281f5e Bug 1805716 - Stop overwriting the print settings passed to nsIPrintDialogService::showPrintDialog with saved prefs. r=dholbert
Nowadays, only the frontend code should pre-populate the nsIPrintSettings
objects with saved prefs (before passing them those objects to platform code).
We removed the InitPrintSettingsFromPrefs calls from the Windows and Linux
native dialog code, but apparently not the macOS code.

Differential Revision: https://phabricator.services.mozilla.com/D164709
2022-12-14 21:58:17 +00:00
Ben Hearsum
bf4e48f79c Bug 1712329: improve manifestparser error messages r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D164743
2022-12-14 21:52:56 +00:00
Ben Dean-Kawamura
22d5d42244 Bug 1788306: UniFFI callback interfaces, r=nika
Started callback interface functionality to UniFFI.  Currently this only
supports the async fire-and-forget use case, where Rust queues a JS
function to run, but doesn't wait (or `await`) for the response.

The basic system is:

  - The JS code registers a callback interface handler with the C++
    code.  This handler is responsible for the specifics of invoking the
    callback.
  - The C++ code defines a function to call a JS handler.  Once the JS
    handler registers itself with C++, the C++ registers it's function
    with Rust.
  - The C++ code queues the call to the JS main thread.
  - Because of how UniFFI handles callback interfaces, the C++ code can
    be "dumb".  UniFFI sends a object id, method id, and RustBuffer
    encoding all arguments.  This means C++ doesn't need to care about
    the specific arguments, they get unpacked by JS.

I tried to keep the generated code as simple as possible by moving the
complexity to static code.  For JS this meant writing a generic
`UniFFICallbackHandler` class in the static code that the generated code
constructs.  For C++ this meant the generated code defines a
`UniFFIGetCallbackInterfaceInfo` function that returns a struct with all
the data specific to a callback interface (it's name, the UniFFI
scaffolding init function, etc).  The static code can then define a
generic `QueueCallback` function that looks up the callback interface
info using the interface ID and then makes the call.

Allow UniFFI functions to run on the main thread rather than always
being dispatched to a worker thread.  This allows us to test invoking
callback interfaces from the main thread thread. I don't think we will
use this much currently, since we don't want to block the main thread
for any significant amount of time. However, this will pair well with
the next step in the project which is async -- allowing async Rust
functions to call async JS functions. In that scenario, dispatching to
the worker thread is unnecessary.

Callback interface objects present a potential memory leak, since you
can easily create a cycle between a JS Callback object and a UniFFIed
Rust object, and the GC has no way of detecting it.  To try to detect
these there's some shutdown code that checks that there are no callbacks
registered during shutdown and prevents any future callbacks from being
registered.

Added a `config.toml` file and code to parse it.  This is needed to
specify which functions should run on the main thread.

Updated the git commits for the several UniFFI examples/fixtures.

Differential Revision: https://phabricator.services.mozilla.com/D156116
2022-12-14 21:50:23 +00:00
prathikshaprasadsuman
5bc6164795 Bug 1789533 - Improve title text (tooltips) experience in Firefox View. r=sclements
Differential Revision: https://phabricator.services.mozilla.com/D164460
2022-12-14 21:39:00 +00:00
Oriol Brufau
7f26be9e72 Bug 1800952 - Compute column-rule-width to 0 when column-rule-style is none. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D164549
2022-12-14 21:22:02 +00:00
Paul Zuehlcke
476777332b Bug 1797094 - Disable click result telemetry on linux. r=timhuang
Depends on D164111

Differential Revision: https://phabricator.services.mozilla.com/D164664
2022-12-14 20:58:16 +00:00
Paul Zuehlcke
0f4421f3ef Bug 1797094 - Clean up banner clicking telemetry state on failure. r=timhuang
This is to avoid failing subsequent tests in case of a test failure.

Differential Revision: https://phabricator.services.mozilla.com/D164111
2022-12-14 20:58:15 +00:00
Ting-Yu Lin
e99e67b0f7 Bug 1805522 - Construct SharedFlexData for incomplete flex containers, regardless of whether they have constrained BSize. r=dholbert
This reverts part of Bug 1803486 Part 1.

The crashtest was adapted from bug 1805522 comment 0. I use wpt printing test
since window.print() doesn't work in wpt crashtest.

Differential Revision: https://phabricator.services.mozilla.com/D164635
2022-12-14 20:51:59 +00:00
Mike Kaply
e59ef6ce5c Bug 1804897 - Switch distribution.js to use prefBranch directly. r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D164686
2022-12-14 19:41:58 +00:00
janvi01
59d285b010 Bug 1805154 - fix pip controls focus outline and tooltip after pressing enter r=kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D164638
2022-12-14 19:18:31 +00:00
Sergey Galich
af4a87427f Bug 702925 - stop deleting saved passwords when user runs History > Forget this site command r=fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D163903
2022-12-14 19:18:24 +00:00
Mike Conley
6b1a5484cc Bug 1805262 - Use sentence casing for the All Tabs panel. r=bigiri,flod,fluent-reviewers
As this is a capitalization change, it does not require a Fluent migration nor a
key bump for retranslation.

This patch also adds a test, and adjusts the existing test to be more flexible with
which panels it can inspect.

Differential Revision: https://phabricator.services.mozilla.com/D164480
2022-12-14 18:54:05 +00:00
Nick Alexander
8962ddabf4 Bug 1804988 - Determine toast notification tag from experiment:branch slug in backgroundTaskMessage experiments. r=barret
This commit uses a "pull" approach, where the experiment details are
fished at presentation-time and the content `tag` updated.

A few notes:

- With this approach, the update function is pushed down to the leaf
  node (the toast notification presentation layer).  It would be nice to
  do this at the experiment layer, but that layer doesn't resolve the
  presentation layer at this time, so it would perhaps violate the
  abstraction to lift the work higher.

- No effort has been made to mark `tag` as invalid in the messaging
  experiment schemas.  At this time, there's no provision for fields
  accepted at the presentation layer (`ToastNotification.schema.json`)
  but not at the experiment layer aggregating
  presentations (`BackgroundTaskMessagingExperiment.schema.json`,
  `MessagingExperiment.schema.json`).  It's likely possible to arrange
  this but not worth the effort at this time.

- The actual tag displayed is not captured in the message as it flows
  through ASRouter.  This is not likely to pose a problem.

- The actual tag displayed might be `optin-...`, potentially
  complicating data analysis.  Since it's essentially impossible for
  regular users to opt-in to _background task_ messages, that's not a
  pressing concern.

Differential Revision: https://phabricator.services.mozilla.com/D164508
2022-12-14 18:52:34 +00:00
Meg Viar
7b45aefbdd Bug 1804892 - Do not show the Firefox View tour Spotlight if CFRs are disabled r=hanna_a
Differential Revision: https://phabricator.services.mozilla.com/D164612
2022-12-14 18:37:48 +00:00
Jon Coppeard
05d4a67337 Bug 1805457 - Don't trace Wasm instance's object_ edge more than once r=sfink
Previously this traced wasm::Instance's object_ edge when it needed to trace
the WasmInstanceObject. That was kind of wrong but it worked except for the
fact that it meant that this edge could be traced from different threads at the
same time during compacting (and probably in parallel marking too).

It's clearer to get the object and trace that if that is what is required.

I removed the comment from Instance::tracePrivate because it makes it sound
like you can get away without tracing every edge if there's some justification.
This is potentially confusing. All edges must be traced.

Differential Revision: https://phabricator.services.mozilla.com/D164641
2022-12-14 18:30:51 +00:00
Jon Coppeard
00bb28d64e Bug 1805631 - Don't update array buffer view object's data pointer if it hasn't changed r=sfink
Along the same lines as recent changes, it is unnecessary to update this if it
hasn't changed and it can cause a data race when during parallel marking.

Differential Revision: https://phabricator.services.mozilla.com/D164647
2022-12-14 18:28:04 +00:00
Morgan Rae Reschenberg
9bb1925772 Bug 1802386: If we can't find a PresContext or the root PresContext, bail out of WillRefresh r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D164270
2022-12-14 18:26:19 +00:00
Tom Schuster
a93e3a2add Bug 960984 - Implement the list attribute for <input type=color>. r=emilio,geckoview-reviewers,m_kato
UI support on Windows and Linux. macOS and Android are not supported.

Differential Revision: https://phabricator.services.mozilla.com/D163796
2022-12-14 18:17:59 +00:00
Emilio Cobos Álvarez
d3e3ee5bb1 Bug 1776981 - Wait for content transforms in test_pseudoelement_state.html for xorigin tests. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D164563
2022-12-14 18:49:29 +00:00
Tomislav Jovanovic
8d08b80dcd Bug 1798695 - Use WebExtensionPolicy to get list of active extensions r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D162570
2022-12-14 17:56:29 +00:00
Csoregi Natalia
bfc8cd0834 Backed out changeset c92d26145221 (bug 1769635) for causing assertion failures HttpBaseChannel.h. CLOSED TREE 2022-12-14 22:35:20 +02:00
Iulian Moraru
4a67cb0362 Backed out changeset 088a627e5772 (bug 1805143) as per Alexandru Ionescu's request. CLOSED TREE 2022-12-14 20:38:58 +02:00
Mozilla Releng Treescript
7a5def08ee no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
be -> 09985a16295472fa60935eda166518ed9994610b
fr -> d7121f7877b9177fec4eb99504888196383d9fd4
fy-NL -> e19ce64f9d497fc5f28f475eaa20358d3fc29d76
hy-AM -> 5d389c4bff47a6f32e73cca43c59232db325fbae
it -> c9a1a267e78566a0369b677796b6f3d308f97ce8
ka -> fc75f807af83164d0f2dd1f95e50326db513c18e
lo -> 546483e7d814e0ce3150986670647457c48c3816
pt-PT -> 22fcddcd513ffa4107479fe2a949b96b9bbc9139
sl -> 63e10b234958230687e7b7456c13c3a4417632d7
2022-12-14 18:57:09 +00:00
Andrew Osmond
b8b20f1afe Bug 1798591. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D163295
2022-12-14 17:50:54 +00:00