Commit Graph

823649 Commits

Author SHA1 Message Date
Masayuki Nakano
077fe4f24c Bug 1789574 - part 0: Add WPT to check which inline style should be preserved r=m_kato
This patch removes some traditional behavior check in the mochitest and
port it into expected results which match with the behavior of Chrome.

Almost all the new tests pass in Chrome, but some fails due to odd result in
Chrome. E.g., Chrome sometimes append `style` attribute with empty value.
Therefore, the expectations in this patch must be what Chrome developers
expected at implementing it.

Depends on D164004

Differential Revision: https://phabricator.services.mozilla.com/D164519
2022-12-15 09:11:47 +00:00
Marco Bonardo
4a9e98461a Bug 1805702 - Log engagement event regardless of recording being enabled. r=daisuke
Logs engagement telemetry for debug purposes, regardless of it being reported
upstream.
Also changes a couple other logs to make browser.urlbar.logLevel = "Info"
more readable and usable.

Differential Revision: https://phabricator.services.mozilla.com/D164701
2022-12-15 08:59:22 +00:00
Paul Adenot
4d93fe9a58 Bug 1805721 - Update libcubeb to revision dbc60333. r=cubeb-reviewers,kinetik
Differential Revision: https://phabricator.services.mozilla.com/D164710
2022-12-15 08:59:19 +00:00
Sandor Molnar
cc504d5847 Merge mozilla-central to autoland. a=merge CLOSED TREE 2022-12-15 11:51:40 +02:00
Sandor Molnar
b4de9fa6fe Merge autoland to mozilla-central. a=merge 2022-12-15 11:18:37 +02:00
Frederic Wang
43a06a1f37 Bug 1586574 - apply horizontal writing mode to mathml elements. r=emilio CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D48279
2022-12-15 09:11:48 +00:00
Stanca Serban
fb105d2048 Backed out changeset 32522f6f6750 (bug 1586574) for causing wpt unexpected passes on reset-and-logicial-property.html. CLOSED TREE 2022-12-15 11:45:38 +02:00
Alexandra Borovova
aff45ced0f Bug 1805661 - [wdspec] Fix wdspec tests for script module for exceptions for platform objects of type Node. r=webdriver-reviewers,jdescottes,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D164685
2022-12-15 08:24:44 +00:00
Frederic Wang
241ec05d64 Bug 1586574 - apply horizontal writing mode to mathml elements. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D48279
2022-12-15 08:23:15 +00:00
stransky
c2672dc4b0 Bug 1804973 [Wayland] Check size for valid EGLWindows only r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D164651
2022-12-15 08:09:22 +00:00
Andi-Bogdan Postelnicu
fb9dd37fa2 Bug 1801271 - reference in our source tree doc the Releng Team page on how to add tests for a new config. r=jmaher
With time this will have to be completely moved in tree.

Differential Revision: https://phabricator.services.mozilla.com/D164633
2022-12-15 08:07:32 +00:00
Mozilla Releng Treescript
86090a320d no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
es-MX -> 3587768eaddf04bbef07ae2aff4a4e67ee55baf8
ka -> 6db257625abc8b00e01d4e65662b5314235147ec
pa-IN -> 14fd75ccb19a49b544b5a4212aef0481c35b198c
pt-PT -> 1ce0dbf51f59c99c7183b5b7123f150b3edcb53e
sc -> 43b3a3e6cefeef07a7017e77c0c5369988178ed3
sl -> c1941eaf06efde5ee0494254d0288005e78a815d
2022-12-15 06:58:01 +00:00
Lee Salzman
0ebc2df843 Bug 1805757 - Move SkConvolver into the tree. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D164732
2022-12-15 05:53:16 +00:00
Mike Hommey
a8631ad250 Bug 1805813 - Update clang patch to upstream changes on trunk. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D164777
2022-12-15 05:32:03 +00:00
Jan Varga
650c726cb3 Bug 1803062 - GetCurrentSerialEventTarget should return the nested event target when a sync loop is running; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D163841
2022-12-15 05:15:31 +00:00
Iulian Moraru
b94311c726 Backed out changeset af7353099e41 (bug 1783100) for causing dt failures on browser_dbg-features-source-text-content.js. CLOSED TREE 2022-12-15 06:14:25 +02:00
Iulian Moraru
747186542b Backed out changeset 51b2a95943c0 (bug 1437171) for causing wpt failures on all-permissions.html related to query "midi" permission. 2022-12-15 06:10:01 +02:00
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
Emilio Cobos Álvarez
a14c746228 Bug 1805415 - Use activateItem() rather than click() to activate menuitems. r=Gijs,extension-reviewers,pip-reviewers,search-reviewers
Bug 1805414 will move menu event handling to the DOM.

With that change the current synthetic click behavior of XUL menuitems
breaks. On current central, we rely on nsMenuFrame::HandleEvent not
getting called at all for synthetic clicks, and instead we just fire a
command event synchronously here:

  https://searchfox.org/mozilla-central/rev/a0d4f8f112c5c792ae272bf6ce50763ddd23ffa2/dom/xul/nsXULElement.cpp#1071

After my patch the command event is fired properly (potentially
asynchronously too) by the regular menu activation machinery, which is
preferable.

 * They fire a command event synchronously (even though on some
   platforms like macOS activating a context menu item is async).

 * They use a totally different codepath from what a user does.

 * They don't deal with native menus, etc.

We have a proper API for this (activateItem) which takes a much more
closer codepath to what users do, requires that the menu is shown, etc.
Use that API instead for testing.

As a benefit, tests now do not need to close the context menu manually
when clicking on a menu item (because we trigger the same code path as
users clicking the menu).

Differential Revision: https://phabricator.services.mozilla.com/D164567
2022-12-15 03:11:55 +00:00
Chris Martin
cfcb9fcb81 Bug 1799470 - Merge old embedding logic into ContentChild r=nika
Differential Revision: https://phabricator.services.mozilla.com/D164596
2022-12-15 03:06:22 +00:00
Chris Martin
9f2950c821 Bug 1799470 - Remove dead startup code r=nika
Differential Revision: https://phabricator.services.mozilla.com/D164595
2022-12-15 03:06:22 +00: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