Commit graph

911532 commits

Author SHA1 Message Date
Gabriel Luong
2e0e8a9446 Bug 1882465 - Update .hg-annotate-ignore-revs and .git-blame-ignore-revs to reflect firefox-android monorepo migration r=glandium,geckoview-reviewers,tthibaud
Differential Revision: https://phabricator.services.mozilla.com/D205678
2024-04-04 14:55:00 +00:00
Frédéric Wang
ce4b1e2302 Bug 1882548 - Enable "fetchpriority" feature by default in nightly. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D203011
2024-04-04 14:42:53 +00:00
Jan-Niklas Jaeschke
058828f027 Bug 1867939, part 6: Enabled tests for Text Fragments which pass now. r=dom-core,hsivonen
This test sets the pref `dom.text_fragments.enabled` to true for
web-platform tests in
- /scroll-to-text-fragment
- / css/css-pseudo (which contains various tests for `::target-text`

Differential Revision: https://phabricator.services.mozilla.com/D195690
2024-04-04 14:39:33 +00:00
Jan-Niklas Jaeschke
fda59c7c38 Bug 1867939, part 5: Integrate find-text-directive algorithm into Document load. r=peterv,farre,dom-core
This patch integrates the algorithm to find a text fragment range
into the document loading mechanism.
Unlike described in the spec, the fragment directive is not stripped
from the URL in the Session History Entry, instead it is stripped when
setting the URI into the Document using `Document::SetURI()`,
as well as when accessing the URL through `Location`.

The `PresShell` class is extended by a new method which sets the
ranges created from the text directives into the FrameSelection as
TargetText selection and scrolls it into view.

Security restrictions like force load at top and cross-origin iframes
are not yet considered in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D195688
2024-04-04 14:39:33 +00:00
Jan-Niklas Jaeschke
81f5e14057 Bug 1867939, part 4: Implemented the ::target-text CSS Pseudo Element. r=emilio,devtools-reviewers,nchevobbe
This patch implements the `::target-text` pseudo element.
Similarly to the Custom Highlight API, this is done implementing
a new Selection type.

Differential Revision: https://phabricator.services.mozilla.com/D195687
2024-04-04 14:39:32 +00:00
Jan-Niklas Jaeschke
f7a9b3080c Bug 1867939, part 3: Implement an algorithm to find text directives in a document. r=hsivonen,dom-core
Main part of this patch is an implementation of the algorithm defined
in the spec [0].
The algorithm takes an array of `TextDirective` (which is the result of
the fragment directive parser implemented in part 2 of this bug)
 and converts it into an array of `nsRange`s.

The algorithm is not optimized for performance yet.
Instead it follows the spec very closely.
Therefore, it may for now only be seen as a baseline to a faster `nsFind` based approach.
The algorithm differs from the spec, using a standard `nsString::Find()`
instead of the mentioned collator-based search, i.e.
performing a case-sensitive and locale-independent search.

[0]: https://wicg.github.io/scroll-to-text-fragment/

Differential Revision: https://phabricator.services.mozilla.com/D195686
2024-04-04 14:39:32 +00:00
Jan-Niklas Jaeschke
eca7db5dd9 Bug 1867939, part 2: Implement Fragment Directive parser. r=hsivonen,dom-core
This patch provides functions to extract the fragment directive from a url / a hash
into an array of `TextDirective`s
as well as to create a fragment directive string from given text directives.

The algorithms are implemented as a rust crate.
Interface functions and data structures which are accessible from C++
are provided in `lib.rs`.
The actual implementation (using pure rust types)
lives in `fragment_directive_impl.rs`, tests live in `test.rs`.

The implementation currently only supports text directives.
Other future directive types are not considered and will be ignored.

The main function, `parse_fragment_directive()` takes a url / a url hash
as parameter and returns (as out parameter) a struct which contains the stripped input url,
the fragment directive string, and an array of parsed text directive objects.

Additionally, there are functions that create a full fragment directive string
from a list of text directives as well as a function that creates
a single text directive string from a text directive.

The `TextDirective` class, which is shared with C++, contains four
string elements for the prefix, start, end and suffix elements.
These strings are percent-decoded and do not contain identifiers
(like the `-` that indicates it being a prefix or suffix).
All elements besides `start` can be empty.

The implemented algorithms are used in the following patches.

Differential Revision: https://phabricator.services.mozilla.com/D195685
2024-04-04 14:39:32 +00:00
Jan-Niklas Jaeschke
64a2d399d6 Bug 1867939, part 1: Add FragmentDirective webidl and pref. r=dom-core,webidl,emilio,hsivonen
This patch also adds the empty shell of the `FragmentDirective` class to the `Document`.

Differential Revision: https://phabricator.services.mozilla.com/D195684
2024-04-04 14:39:31 +00:00
Sean Feng
944e502dc8 Bug 1889477 - Make ContentSubtreeIterator to always go into the shadow tree (if there's one) for getting the deepest child r=smaug
This patch should only impact how `ContentSubtreeIterator` uses `ContentIteratorBase<NodeType>::GetDeepFirstChild`
because `IteratorHelpers::GetShadowRoot` can only return non-null with
ContentSubtreeIterator. Secondly, `ContentSubtreeIterator` only uses this
method with
`ContentSubtreeIterator::DetermineCandidateForFirstContent`, so we are
talking about getting the deepest first child for the first content candidate.

If the first content candidate is a shadow host with web exposed shadow
root, we should always use the first child of this shadow root rather than the
child of this content in light DOM.

Differential Revision: https://phabricator.services.mozilla.com/D206552
2024-04-04 14:32:04 +00:00
Valentin Gosu
e435d557c8 Bug 1885529 - Make sure HostRecordQueue::mPendingCount is accurate r=necko-reviewers,jesup
When calling MoveToAnotherPendig the record gets removed from the
pending queue, and InsertRecord is called. As InsertRecord again
increments mPendingCount, we need to decrement it when removing from
a pending queue to ensure it's accurate.

Depends on D206498

Differential Revision: https://phabricator.services.mozilla.com/D206503
2024-04-04 14:24:20 +00:00
Valentin Gosu
65941da2ae Bug 1885529 - Also update nsHostResolver::mActiveAnyThreadCount in CompleteLookupByTypeLocked when resolving via native DNS r=necko-reviewers,jesup
The issue here is only obvious on Windows, when network.dns.get-ttl=true
and network.dns.native_https_query=true.

GetTTL will cause another resolution to happen with a low priority,
but these don't get picked up unless
mActiveAnyThreadCount < MaxResolverThreadsAnyPriority()

This causes the DNS_NATIVE_QUEUING probe to increase since these
queries don't get picked up immediately.

Also decrementing mActiveAnyThreadCount for ByType records makes
sure it always has the correct value.

Differential Revision: https://phabricator.services.mozilla.com/D206498
2024-04-04 14:24:20 +00:00
edgul
c156bcda24 Bug 1878001 - Add bypass list for DefaultURI fallback r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D200323
2024-04-04 14:13:58 +00:00
Norisz Fay
d962f3b9a0 Backed out changeset 519aa7ff2ca6 (bug 1888905) for causing bc failures on browser_glean_telemetry_reenter.js CLOSED TREE 2024-04-04 18:37:26 +03:00
mcheang
80f8f38a35 Bug 1889242 - Change pc to partnerCode in search-config-v2-schema. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D206551
2024-04-04 14:13:13 +00:00
Karandeep
c63e3ae632 Bug 1888905 - Remove the start and discard notifications. r=mak,adw
Differential Revision: https://phabricator.services.mozilla.com/D206238
2024-04-04 14:06:23 +00:00
Roger Yang
8bd807dc38 Bug 1875111 - Show keyboard when acquiring focus in edit toolbar. r=mcarare,android-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D206558
2024-04-04 14:03:28 +00:00
Kagami Sascha Rosylight
e7f8e93613 Bug 1889432 - Part 3: Add getUniqueRequestID() r=hsingh
Differential Revision: https://phabricator.services.mozilla.com/D206620
2024-04-04 13:48:49 +00:00
Kagami Sascha Rosylight
04facf27f3 Bug 1889432 - Part 2: Remove unused returnNotifications parameters r=asuth
It has been unused since bug 1514844.

Differential Revision: https://phabricator.services.mozilla.com/D206537
2024-04-04 13:48:48 +00:00
Kagami Sascha Rosylight
0f83addb53 Bug 1889432 - Part 1: Make NotificationStorage an actual class r=hsingh,asuth
Differential Revision: https://phabricator.services.mozilla.com/D206536
2024-04-04 13:48:48 +00:00
Barret Rennie
4760f2a62a Bug 1887732 - Support JSON setPref variables in Nimbus r=chumphreys
There are isEarlyStartup features using JSON-typed variables, so we need to
setPref support for them.

Differential Revision: https://phabricator.services.mozilla.com/D205617
2024-04-04 13:44:27 +00:00
Rob Wu
635c3488d3 Bug 1888231 - Fix test_ext_contentscript_xorigin_frame with Android + Fission r=zombie
See https://bugzilla.mozilla.org/show_bug.cgi?id=1888231#c2

Differential Revision: https://phabricator.services.mozilla.com/D205910
2024-04-04 13:43:00 +00:00
jackyzy823
6ee9a27634 Bug 1888374 - Add tests for SvgIconDecoder. r=android-reviewers,twhite
Differential Revision: https://phabricator.services.mozilla.com/D205997
2024-04-04 13:34:32 +00:00
Jan de Mooij
a334c67b34 Bug 1888892 - Trace all fields in TraceWeakCacheIRStub. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D206481
2024-04-04 13:31:40 +00:00
Andrew McCreight
35f71d4d43 Bug 1889615 - Fix profiler label in nsFrameMessageManager::SendSyncMessage. r=Gijs DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D206626
2024-04-04 13:20:45 +00:00
Perry McManis
5c3cf2d4f7 Bug 1888703 - add a mach command to create a legacy event definition from a glean one r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D206281
2024-04-04 13:01:07 +00:00
serge-sans-paille
bd0eb2d02a Bug 1886167 - Parallelize webidl generation step r=peterv
Parallelization is process based, which implies a pickle-compatible IR,
thus the few code changes.

It is mandatory to serialize the IR only once per process for the
parallelization to be beneficial.

The parsing is still single-threaded.

Differential Revision: https://phabricator.services.mozilla.com/D205053
2024-04-04 12:58:18 +00:00
serge-sans-paille
2bcbdeff34 Bug 1889043 - Add missing closefd named argument to mocking of python open r=ahochheiden
Also reorder the named arguments in case they are not passed by keyword

Differential Revision: https://phabricator.services.mozilla.com/D206310
2024-04-04 12:58:18 +00:00
Jamie Nicol
3012aeb6c2 Bug 1886739 - Give position: sticky items their own picture cache slice r=gfx-reviewers,gw
position: sticky items scroll independently of their containing
content, resulting in large amounts of picture cache invalidation when
scrolling, causing poor performance. This patch attempts to give them
their own picture cache slice in order to avoid that invalidation.

Differential Revision: https://phabricator.services.mozilla.com/D206502
2024-04-04 12:57:00 +00:00
Updatebot
d58dd3a136 Bug 1889046 - Update libjxl to a5e4aa1fc1fe5bee252225a2616dccde7fd35da0 r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D206312
2024-04-04 12:53:30 +00:00
Emilio Cobos Álvarez
0b5fb7f1ea Bug 1887719 - Fix fuzzing build.
MANUAL PUSH: Trivial fixup CLOSED TREE
2024-04-04 15:44:04 +02:00
pstanciu
e06d92b109 Backed out 2 changesets (bug 1888861) for causing wpt failures in interactive-content.html CLOSED TREE
Backed out changeset 54761c698e87 (bug 1888861)
Backed out changeset ac3510c60f1e (bug 1888861)
2024-04-04 16:02:23 +03:00
Paul Adenot
57bea96ffa Bug 1885878 - Patch libaom to allow compiling with GCC 8. r=sergesanspaille
Missing were _mm_loadusi64, and _mm256_loadu2_m128i, reimplemented. It's all
below a layer of macros.

Differential Revision: https://phabricator.services.mozilla.com/D206524
2024-04-04 12:42:03 +00:00
Paul Adenot
6b0adafa0d Bug 1885878 - Update aom to new version 879d14159441796c92f3bbba7f8965e1bcf320ca. r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D205058
2024-04-04 12:42:02 +00:00
Paul Adenot
fdec62e9dd Bug 1885878 - Add a patch to libaom to include errno.h to unbreak MinGW. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D206521
2024-04-04 12:42:01 +00:00
Malte Juergens
18f2799f55 Bug 1889571 - Set Updatebot soft_timeout and increase max-run-time r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D206592
2024-04-04 12:31:46 +00:00
Andrew Creskey
d48f527b62 Bug 1816539 - Consider increasing the number of sockets available for speculative connect (currently 6) r=necko-reviewers,valentin
We know that we frequently hit this limit and so, based on observed performance improvements in sub-resource connection times, we are increasing it to 20.
Note that this is very conservative as on desktop we see no sign of overall socket pool exhaustion.
See https://bugzilla.mozilla.org/show_bug.cgi?id=1819556

Android changes will follow as we currently have a much smaller overall socket pool on that platform.

Differential Revision: https://phabricator.services.mozilla.com/D206406
2024-04-04 12:26:30 +00:00
James Teow
00cbde2fa6 Bug 1886095 - Store hashed domain to categories inside Sqlite - r=mak,scunnane
Differential Revision: https://phabricator.services.mozilla.com/D205025
2024-04-04 12:25:52 +00:00
ffxbld
efa323f10e No Bug, mozilla-central repo-update HSTS HPKP remote-settings - r=release-managers,dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D206616
2024-04-04 12:03:47 +00:00
Emilio Cobos Álvarez
e4ddf24147 Bug 1887719 - More consistently use UTF8String/nsCString for URLs. r=necko-reviewers,webidl,anti-tracking-reviewers,places-reviewers,jari,kershaw,janv,smaug,hsivonen
Sorry for the massive patch but I found it hard to split without
introducing a bunch of copies around...

This mostly makes necko and DOM agree on which strings to use, which
should result on less copies and conversions.

Differential Revision: https://phabricator.services.mozilla.com/D205601
2024-04-04 11:49:57 +00:00
Hsin-Yi Tsai
f4cc26bd0e Bug 1869838 - What needs my attention: update the reference icon in the doc. r=jwalker
Differential Revision: https://phabricator.services.mozilla.com/D206517
2024-04-04 11:26:10 +00:00
Butkovits Atila
4a357d20b6 Backed out 2 changesets (bug 1880362) for causing failures at line-breaking-013.html. CLOSED TREE
Backed out changeset 7ae70412fd03 (bug 1880362)
Backed out changeset 45b752a869b1 (bug 1880362)
2024-04-04 13:45:37 +03:00
RebecaTudor
f23ad46d67 Bug 1876719 - [a11y] Increasing contrast for collection's dialog buttons r=android-reviewers,cwzilla,007
Before the fix, Accessibility Scanner was showing the color contrast
between text color and the background color as insufficient.

With the modification made the accessibility scanner shows the
problem as fixed. The color that was used for the fix is the closest to
the one before that can satisfy the contrast required.

Before
{F6465923}

After
{F6465924}

Differential Revision: https://phabricator.services.mozilla.com/D206365
2024-04-04 10:34:39 +00:00
Emilio Cobos Álvarez
43665f4281 Bug 1889463 - Prevent flickering with the previous patch. r=dao,desktop-theme-reviewers
The toolbar height includes the top border now. It's not what we want
anyways:

 * In some cases its usage was completely redundant (we can use the
   default static position).

 * In other cases what we want is the urlbar-container height, which
   doesn't include that border. I confirmed this looks good in compact
   mode (which was the reason for introducing this in bug 1580248).

So simplify the code a tiny bit and fix the flickering that got the
original version reverted.

Differential Revision: https://phabricator.services.mozilla.com/D206596
2024-04-04 10:21:27 +00:00
Emilio Cobos Álvarez
9192756e3e Bug 1889463 - Re-land tabs-navbar-separator simplification, suppressing it completely if transparent. r=desktop-theme-reviewers,tabbrowser-reviewers,dao
This relands the simplification that was reverted in bug 1647356, which
made it so that the border takes space, with a key tweak.

The border taking space is generally good and simplified some code, but
it causes uneven spacing around the urlbar if we set the separator color
to transparent (like many even builtin themes do).

This is technically already an issue if a theme sets the
`chrome-content-separator-color` to transparent, but I think that's
really uncommon, and we don't want to encourage themes to suppress that
separator IMO... We might want to forbid that even somehow?

So for now only handle the tabs separator. Clean-up some adjacent code
while at it.

An alternative would be to keep the shadow, and add some comments as for
why it's a shadow and not a border, but that seems to subtly complicate
layout in other places (which were working around it before the
regressing bug).

Differential Revision: https://phabricator.services.mozilla.com/D206547
2024-04-04 10:21:27 +00:00
Jamie Nicol
72e0359fb9 Bug 1670267 - Enable now-passing verticalClippingSucceeds test. r=geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D206471
2024-04-04 09:41:51 +00:00
Norisz Fay
afbf5a07c9 Backed out changeset d5a2008c802b (bug 1886739) for causing failures on position-sticky-fractional-offset.html CLOSED TREE 2024-04-04 13:11:06 +03:00
Alexandre Poirot
6bdd32b82d Bug 1888899 - [devtools] Fix ESM imports from tab descriptor module. r=devtools-reviewers,nchevobbe
The test weren't spawning the DevToolsServer the same way as in production.
--start-debugger-server spawns the server in the distinct devtools global in order to be able to debug privileged compartment.

Differential Revision: https://phabricator.services.mozilla.com/D206497
2024-04-04 09:21:12 +00:00
Hsin-Yi Tsai
c789c80fb5 Bug 1889351 - Update bugzilla component mapping for wpt tests/clipboard-apis. r=dom-core,jjaschke
Differential Revision: https://phabricator.services.mozilla.com/D206593
2024-04-04 09:09:09 +00:00
Dão Gottwald
6abf92e396 Bug 1886761 - Make switchtab/remotetab/clipboard chiclets slimmer so that a mismatch in their top and bottom distances to the row's edges is less obvious. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D206013
2024-04-04 09:08:35 +00:00
Malte Juergens
43a468f3cd Bug 1835983 - Update tests in dom/base/test/fullscreen/ to work with https-first enabled r=freddyb,simonf
Differential Revision: https://phabricator.services.mozilla.com/D204497
2024-04-04 08:56:07 +00:00