Commit Graph

926664 Commits

Author SHA1 Message Date
Chris Peterson
e4c83ed7e3 Bug 1803234 - Remove gpsd support. r=emilio
Firefox's gpsd support is unmaintained and disabled by default.

Differential Revision: https://phabricator.services.mozilla.com/D218418
2024-08-05 16:04:08 +00:00
Peter Van der Beken
327f808e92 Bug 1906744 - Check if constructor is enabled before installing named property. r=mccr8,dom-storage-reviewers,janv,asuth,eemeli
Differential Revision: https://phabricator.services.mozilla.com/D216671
2024-08-05 15:58:56 +00:00
alexical
fe53748ed8 Bug 1906719 - Output native JS trace to the profiler r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D215933
2024-08-05 15:44:21 +00:00
alexical
f83c66cf5e Bug 1906719 - Implement a native backend for tracing JS execution r=arai
Basically the implementation we have with JS onEnterFrame callbacks and friends
is not sufficiently performant, and is a real pain to work with on large
complex websites. This implementation instead serializes all of the necessary
information to a ring buffer hanging off of the JSContext and outputs a JS
object containing that information when prompted.

There may be some subtle oddities in the design here, or more indirection in
some areas than you might expect. It should be kept in mind that this evolved
from a prototype which used a shmem to allow visualizing this trace live in the
parent process, which is a model we eventually want to return to, but this felt
like the safest first patch.

Differential Revision: https://phabricator.services.mozilla.com/D215932
2024-08-05 15:44:21 +00:00
Jan-Niklas Jaeschke
f65f5882ec Bug 1867249, part 2: Enable SelectionNodeCache for painting. r=sefeng,dom-core,emilio
Differential Revision: https://phabricator.services.mozilla.com/D217819
2024-08-05 15:43:27 +00:00
Jan-Niklas Jaeschke
2b98f8f36f Bug 1867249, part 1: Implemented new cache to determine selected nodes. r=sefeng,dom-core
Determining if a node is selected is a super-hot code path,
which at times introduces jank both in Reflow and Painting.
This is due to each node comparing its position to the range's start and end point,
which even happens several times (`nsINode::IsSelected()` and `Selection::LookupSelection()`).
In worst cases, this can lead to reflow which takes several minutes.

This patch introduces a cache which contains all fully selected nodes,
and lives throughout one `PresShell::DoReflow()` call.
Collecting all selected nodes of a selection is very fast.
The selected nodes are then stored in a hash set.
During reflow the check if a node is selected first checks the cache
if the node is fully selected, and otherwise goes through the existing
code to check if the node is partially selected.

Differential Revision: https://phabricator.services.mozilla.com/D217794
2024-08-05 15:43:27 +00:00
Jan-Niklas Jaeschke
c0149d59a0 Bug 1867249, part 0: Replaced hash set with array for performance reasons. r=sefeng,dom-core
In the given code, all selections of all common inclusive ancestors are collected.
Typically, this will be only one.
In this case, looking up if a Selection pointer is already in the array boils down to one pointer comparison, which is much faster than inserting the pointer into the hashtable.
Since this is very hot code, changing the hashtable to an array already has a relatively significant influence.

Differential Revision: https://phabricator.services.mozilla.com/D205681
2024-08-05 15:43:27 +00:00
Nicolas Chevobbe
b0ca6ed3c7 Bug 1909170 - [devtools] Don't trigger reflow in grid and flex highlighter update. r=devtools-reviewers,jdescottes.
The update function can be called a lot when scrolling/resizing the window.
The line where we were forcing the reflow were added in Bug 1312103, as a way
to fix a lag during scrolling.
Removing the reflow, I don't see any lag anymore (it might be because the
anonymous content implementation changed).
We take this as an opportunity to refactor things a bit, directly manipulating
the element we need to handle instead of going through the anonymous content API
(e.g. `setAttribute`, which was showing in profiles).

Differential Revision: https://phabricator.services.mozilla.com/D218395
2024-08-05 15:41:07 +00:00
Nicolas Chevobbe
23a389fc18 Bug 1857006 - [devtools] Strike through unused light-dark parameter in Rules view. r=devtools-reviewers,ochameau.
This exposes `darkColorScheme` on rule entries as the color scheme depends on the
node to which the rule applies, and we might get inherited rules.
We also make sure to update the property editor if the color scheme changes,
for example if the user triggers color scheme simulation.

A test is added to ensure we cover the different cases.

Differential Revision: https://phabricator.services.mozilla.com/D211845
2024-08-05 15:40:49 +00:00
Nicolas Chevobbe
07c8be7a12 Bug 1857006 - [devtools] Parse light-dark() function in output-parser. r=devtools-reviewers,ochameau.
This patch adds a new `isDarkColorScheme` option to the OutputParser.
When passed, this will parse `light-dark` function to add an "unmatched" CSS
class to the param that isn't used: the first one when `isDarkColorsScheme` is
false, the second one when `isDarkColorScheme` is true.
Test cases are added in browser_outputparser.js to cover this.

Differential Revision: https://phabricator.services.mozilla.com/D217833
2024-08-05 15:40:48 +00:00
Nicolas Chevobbe
e823fe8aef Bug 1857006 - [devtools] Refactor OutputParser for parsing (color) functions. r=devtools-reviewers,bomsy.
This patch introduce a new #stack property on the parser, which hold the parenthesis
stack so we can handle nested functions.
We switch the existing `colorFunctions` array to this new stack as it's doing
something similar, but a bit more generic.

When there's at least an entry in the stack, we want to put the parsed parts,
text or nodes, into the `parts` stack entry property so it can be used later
when we handle the function being closed.

This parts get put into the "parent" stack entry, or into the main #parsed array
when the stack becomes empty.

We could go further, migrating `parseMatchingParens`/`parseVariable` to use the
stack and the `onCloseParenthesis` method. This might be done as part of Bug 1630950,
where we want to handle nested css variables.

Differential Revision: https://phabricator.services.mozilla.com/D218218
2024-08-05 15:40:47 +00:00
Temidayo
ade6951b93 Bug 1850682 - Add a base RootBiDiModule class r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D218482
2024-08-05 15:32:59 +00:00
Noemi Erli
39b81764ff Backed out 3 changesets (bug 1901769) for causing mochitest failures CLOSED TREE
Backed out changeset bf75c1b988a0 (bug 1901769)
Backed out changeset 2eeba3d06bf9 (bug 1901769)
Backed out changeset d5c4e504dfd6 (bug 1901769)
2024-08-05 18:41:58 +03:00
Alexandre Lissy
19f90da905 Bug 1901703 - Update 'release-flatpak-repackage' task for generated desktop file r=jlorenzo,releng-reviewers,jcristau,taskgraph-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D216374
2024-08-05 15:01:02 +00:00
Alexandre Lissy
b1eb8a5dea Bug 1901703 - Update 'repackage-snap' to generate desktop file r=sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D216373
2024-08-05 15:01:01 +00:00
Alexandre Lissy
5c0642c9bc Bug 1901703 - Update 'repackage-deb' to changes for generated desktop file r=gabriel
Differential Revision: https://phabricator.services.mozilla.com/D216372
2024-08-05 15:01:01 +00:00
Alexandre Lissy
1068005df1 Bug 1901703 - Introduce mach repackage desktop-file command r=jlorenzo
Differential Revision: https://phabricator.services.mozilla.com/D216386
2024-08-05 15:01:00 +00:00
Alexandre Lissy
80180993cf Bug 1901703 - Change desktop_file generator to allow more customization r=gabriel
Differential Revision: https://phabricator.services.mozilla.com/D215917
2024-08-05 15:01:00 +00:00
Alexandre Lissy
8875ea5e43 Bug 1901703 - Extract desktop file generation from deb repackage r=gabriel
Differential Revision: https://phabricator.services.mozilla.com/D216051
2024-08-05 15:00:59 +00:00
Noemi Erli
333a6c0ada Backed out changeset e5864b976c3b (bug 1454819) for causing build bustages in SharedMemory.cpp CLOSED TREE 2024-08-05 18:08:32 +03:00
Ben Dean-Kawamura
6d64814cdf Bug 1907685 - Fixup UniFFIPointer::GetParentObject, r=nika
Take the `dom::GlobalObject` that we get passed, convert it to
`nsCOMPtr<nsISupports>`, and pass that down through the call chain to
eventually store it in `UniFFIPointer::mGlobal`.

Differential Revision: https://phabricator.services.mozilla.com/D218357
2024-08-05 14:18:49 +00:00
Sanchaai Mathiyarasan
80619c7874 Bug 1911362 - Dismissing the "Share" sheet doesn’t dismiss the Tools menu. r=gl,android-reviewers
The menu should close when the share dialog opens.

Differential Revision: https://phabricator.services.mozilla.com/D218473
2024-08-05 14:13:16 +00:00
John Oberhauser
a9ce228954 Bug 1899129 - Fixing text wrapping issues on multiple settings screens to handle large text sizes r=android-reviewers,gl
Fixing text wrapping issues on multiple settings screens to handle large text sizes.

Images of what the screens looked like before can be found in attachments on the bugzilla ticket.

Here are images of the after:

{F7477613}

{F7477614}

{F7477615}

{F7477616}

{F7477617}

{F7477618}

{F7477619}

{F7477620}

Differential Revision: https://phabricator.services.mozilla.com/D218257
2024-08-05 14:06:44 +00:00
Tom Marble
497f73ed35 Bug 1909512 - Update taskgraph to support reftest in the decision task r=jmaher,taskgraph-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D218379
2024-08-05 14:01:43 +00:00
Lee Salzman
4284000fe4 Bug 1910868 - Copy Path state if DrawTarget backend type does not match. r=aosmond
When we fallback from accelerated canvases to non-accelerated canvases, there may
be a stale PathRecording left around that DrawTargetSkia can't use. In this case,
we need to create a PathSkia with the PathRecording's contents.

Differential Revision: https://phabricator.services.mozilla.com/D218512
2024-08-05 13:54:28 +00:00
t-p-white
8ae91d78ee Bug 1907879 - Removed the toolbar top divider when the microsurvey prompt is displayed r=android-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D216929
2024-08-05 13:44:34 +00:00
Emilio Cobos Álvarez
895089ad75 Bug 1076583 - Extend and annotate image-decode-with-quick-attach.html r=fix CLOSED TREE
The test fails only on Android right now because it was testing the
cached image codepath elsewhere. Extend it so it fails everywhere
consistently, and so it also tests srcset.

Bug 1911605 tracks fixing this properly.
2024-08-05 17:30:39 +03:00
Emilio Cobos Álvarez
d38b2da8c8 Bug 1901769 - Make browser_test_clipboard_contextmenu.js work with native macOS context menus. r=fix 2024-08-05 17:24:48 +03:00
Emilio Cobos Álvarez
71c181f755 Bug 1901769 - Fix RTL offsets to be logical. r=fix
MANUAL PUSH: Orange fix CLOSED TREE
2024-08-05 17:24:29 +03:00
Alex Franchuk
0a72f7d63c Bug 1454819 - Simplify SharedMemory classes r=ipc-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D217487
2024-08-05 13:01:33 +00:00
ffxbld
c7bd40d8e1 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - r=release-managers,dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D218524
2024-08-05 12:33:29 +00:00
Emilio Cobos Álvarez
9276a2c7e0 Bug 1076583 - Test the current request timing more precisely. r=smaug
This test matches the spec to the letter, but chrome fails the last
assertion (they seem to have some delay in setting the current request
or something).

Differential Revision: https://phabricator.services.mozilla.com/D218421
2024-08-05 12:23:45 +00:00
Emilio Cobos Álvarez
cce3bd162f Bug 1076583 - Fix CSP tests regression from the previous patches. r=smaug
Add a way to override the JS calling location temporarily, and use it to
propagate it to the image load task.

Differential Revision: https://phabricator.services.mozilla.com/D218416
2024-08-05 12:23:45 +00:00
Emilio Cobos Álvarez
64ca3f2d61 Bug 1076583 - Make src attribute not load sync. r=smaug,extension-reviewers,devtools-reviewers,robwu,nchevobbe
This fixes src loads to be consistent with srcset/picture loads, modulo
the special synchronous case in the spec
(https://html.spec.whatwg.org/#update-the-image-data step 7), which
requires src loads to be sync if the image is available.

We now avoid triggering the load from the parser consistently for src /
srcset / picture, and unify the codepath with BindToTree. That should
avoid some useless task allocations.

Only the sync load code-path needs a script runner (mostly to deal with
anonymous content like the video poster <img> and such, but it also
helps not trigger sync loads at unexpected times like on adoption).

About the HTMLImageElement::Complete() getter change, we need to also
return false if there's an existing load task. That is the proposal in
https://github.com/whatwg/html/issues/4884, and prevents some failures
in the-img-element/{update-src-complete,img.complete}.html WPTs. It
technically changes our behavior on .srcset changes, but it makes it
consistent with .src changes and other browsers, so seems fine.

There are a couple regressions in CSP tests and the networkEvent stubs,
but these are really a pre-existing issue. What happens is that, since
the loads are now async, CSP can't figure out the script that triggered
the load anymore. I need to look if there's an easy way to propagate
that information in the image load tasks, but this is trivially
reproducible by changing these tests to use srcset rather than src.

The rest of the test changes are as expected: either new passes, or
expected test changes from this.

Differential Revision: https://phabricator.services.mozilla.com/D215519
2024-08-05 12:23:44 +00:00
Emilio Cobos Álvarez
ee1732e4ff Bug 1901769 - Make nsMenuPopupFrame offset handling simpler. r=edgar,NeilDeakin,TYLin
* Make mXPos/mYPos work in terms of margin (mExtraMargin).
 * When we have no anchor, explicitly upgrade them to anchored-to-point.

Differential Revision: https://phabricator.services.mozilla.com/D215444
2024-08-05 12:22:06 +00:00
Emilio Cobos Álvarez
467b70eda8 Bug 1911448 - Remove DOMContentFlushed. r=smaug,perftest-reviewers,sparky
As per comments in bug 1910411's patches and others, it's not a useful
metric, specially now that we have LCP and so on.

Actually there doesn't seem to be any consumer of it since bug 1892001.

Differential Revision: https://phabricator.services.mozilla.com/D218489
2024-08-05 12:20:43 +00:00
Dimi
4dd2648bb4 Bug 1908369 - Create formLike right before using it in processDOMPossibleUsernameInputAddedEvent r=credential-management-reviewers,joschmidt
Differential Revision: https://phabricator.services.mozilla.com/D218517
2024-08-05 11:39:57 +00:00
kycn
04faf99e4d Bug 1909108 - Add human readable description of process' death to the app_exit_info.process_exited telemetry. r=android-reviewers,petru
Differential Revision: https://phabricator.services.mozilla.com/D217211
2024-08-05 10:15:01 +00:00
Kershaw Chang
03789a7473 Bug 1908658 - Don't fallback to H2 for NSS errors, r=mxinden
Differential Revision: https://phabricator.services.mozilla.com/D217798
2024-08-05 09:52:44 +00:00
Dão Gottwald
542523f78e Bug 1908412 - add API for adding tabs to a group. r=dao,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D218204
2024-08-05 09:25:19 +00:00
DJ
54a9e4d709 Bug 1908566 - enable tab hover preview by default. r=settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D218420
2024-08-05 09:22:39 +00:00
Alexandre Lissy
60cc1f1560 Bug 1907883 - Enable ForkServer except for PGO, CCOV, ASAN, TSAN, MSAN and UBSAN r=perftest-reviewers,glandium,sparky
Differential Revision: https://phabricator.services.mozilla.com/D216998
2024-08-05 08:11:46 +00:00
Gian-Carlo Pascutto
d4d4098efb Bug 1874689 - Enable forkserver by default in Nightly. r=jld
Differential Revision: https://phabricator.services.mozilla.com/D198533
2024-08-05 08:11:46 +00:00
Alexandre Lissy
a03d3e4c15 Bug 1909125 - Fix FDs situation to ensure prefs map will not collide r=nika
Differential Revision: https://phabricator.services.mozilla.com/D218181
2024-08-05 08:11:45 +00:00
moz-wptsync-bot
47bb8bf4f2 Bug 1911233 - [wpt-sync] Update web-platform-tests to de630ec9b180b2cd5df6febc317caa2b51b1013b, a=testonly
MANUAL PUSH: wpt sync bot

wpt-head: de630ec9b180b2cd5df6febc317caa2b51b1013b
wpt-type: landing
2024-08-05 07:59:13 +00:00
moz-wptsync-bot
0a9d956c3b Bug 1911221 [wpt PR 47428] - Update wpt metadata, a=testonly
wpt-pr: 47428
wpt-type: metadata
2024-08-05 07:59:12 +00:00
Nikos Mouchtaris
2b2362563d Bug 1911221 [wpt PR 47428] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=262014, a=testonly
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=262014 (#47428)

--

wpt-commits: de630ec9b180b2cd5df6febc317caa2b51b1013b
wpt-pr: 47428
2024-08-05 07:59:11 +00:00
Austin Sullivan
cbf133e35c Bug 1911207 [wpt PR 47424] - webnn: Throw TypeError if MLBuffer type is not supported by backend, a=testonly
Automatic update from web-platform-tests
webnn: Throw TypeError if MLBuffer type is not supported by backend

Previously threw NotSupportedError. This now matches the errors thrown
by MLGraphBuilder operand builders methods and moves the checks to the
renderer

Bug: 333392274
Change-Id: Ic2b73ae6c95d9326fe034725076f8dc7f6e1d0b6
Cq-Include-Trybots: luci.chromium.try​:mac14-blink-rel,mac14.arm64-blink-rel
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5753043
Reviewed-by: Phillis Tang <phillis@chromium.org>
Commit-Queue: Austin Sullivan <asully@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1336357}

--

wpt-commits: 2505f1cb2f6d01d720a357957a7216b683ecb7db
wpt-pr: 47424
2024-08-05 07:59:10 +00:00
Vitor Roriz
5957a36a8f Bug 1911217 [wpt PR 47426] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=255768, a=testonly
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=255768 (#47426)

--

wpt-commits: ad5817aaf870bccbf6b8fbaf509cc6434b27419b
wpt-pr: 47426
2024-08-05 07:59:09 +00:00
Rune Lillesveen
8c75afbf8f Bug 1911199 [wpt PR 47418] - Deflake color-mix currentcolor tests, a=testonly
Automatic update from web-platform-tests
Deflake color-mix currentcolor tests

Add an extra rAF() to make sure the tests are painted before the
currentcolor change.

Bug: 354513209
Change-Id: Id856a4c66c1d0aebf17a5578f913d261625fdc50
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5756784
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1336305}

--

wpt-commits: 5bd8ccb7009cdba6adab2bcab84ddbb7cebf9043
wpt-pr: 47418
2024-08-05 07:59:08 +00:00