935976 Commits

Author SHA1 Message Date
Jonathan Kew
2b7c206fdf Bug 1921477 - Add a simple perf-reftest for reflow of Thai content. r=layout-reviewers,perftest-reviewers,emilio,TYLin,sparky
Differential Revision: https://phabricator.services.mozilla.com/D225499
2024-10-16 14:47:50 +00:00
Jonathan Kew
7413e4d960 Bug 1921477 - patch 2 - Cache results from ICU4X line-segmenter because it may be slow for complex writing systems. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D225461
2024-10-16 14:47:50 +00:00
Jonathan Kew
b5a9a91233 Bug 1921477 - patch 1 - Convert the line-break cache in ComplexBreaker from a pair of hashtables to MruCache, and expose as its own class. r=layout-reviewers,emilio
This does not change user-visible behavior, though the MruCache may perform slightly better
than the previous hashtable implementation. Primarily this is preparation for using the same
cache in conjunction with the new ICU4X-based line segmenter.

Differential Revision: https://phabricator.services.mozilla.com/D225460
2024-10-16 14:47:49 +00:00
Stephen Thompson
7cde7274ff Bug 1924566 - fix window leaks in tab group session store tests r=dao,jswinarton,sessionstore-reviewers
In 1908418 and 1915172 I attempted to make tab group sessionstore tests create new windows so that anything they did would be cleaned up. However, it looks like calling SessionStoreTestUtils.init on the newly created windows ended up having SessionStoreTestUtils holding onto a reference to the window. This patch creates and closes windows inside of each test.

Differential Revision: https://phabricator.services.mozilla.com/D225721
2024-10-16 14:35:14 +00:00
Neil Deakin
84f9b5725b Bug 1882480, add support for recognizing german style addresses where the street name appears first and the number appears after, this allows form fill into separate street and house number fields, r=credential-management-reviewers,dimi
Differential Revision: https://phabricator.services.mozilla.com/D223855
2024-10-16 14:23:13 +00:00
mcheang
37387040ec Bug 1923550 - Fix quick actions result list format. r=daleharvey,desktop-theme-reviewers,urlbar-reviewers,dao
This patch updates the CSS styling for quick action results shown when the user
has entered searchmode. It modifies the selector to specifically target
the dynamicType "actions."

Previously, without this specificity, the CSS was unintentionally applied to
non-action results during quick actions search preview mode.

Differential Revision: https://phabricator.services.mozilla.com/D225313
2024-10-16 14:13:42 +00:00
Arturo Mejia
0e543b6099 Bug 1915873 - Add a new item to the onboading experiment to allow to install add-ons r=android-reviewers,twhite
Differential Revision: https://phabricator.services.mozilla.com/D224615
2024-10-16 13:51:15 +00:00
Tiaan Louw
033ca998e8 Bug 1893966 - Tests for supporting currentcolor in relative color syntax r=emilio,layout-reviewers
This is an accumulation of all the changes to tests made by the patches
in this stack.

`color-invalid-relative-color.html.ini` tests that percentages are used
correctly inside `calc(..)` nodes. There are some edge cases we are not
passing. See: `https://bugzilla.mozilla.org/show_bug.cgi?id=1894263`

`relative-color-out-of-gamut.html.ini` does conversions from an out of
gamma color to the `rgb(..)` syntax. Relative colors should not use the
`rgb(..)` syntax any more, but the `color(srgb ..)` syntax instead. See:
`https://bugzilla.mozilla.org/show_bug.cgi?id=1921766`

`color-computed-relative-color.html.ini` has some errors where the
`none` keyword is not forwarded from the origin color to the final
color according to the spec.  It also has the same out of gamma tests
that is in `relative-color-out-of-gamut.html.ini`. See:
`https://bugzilla.mozilla.org/show_bug.cgi?id=1899009` which is
dependent on clarification of the spec here:
`https://github.com/w3c/csswg-drafts/issues/10360`

`color-valid-relative-color.html.ini` contains serialization
discrepencies where the `calc(..)` keyword is used if the origin values
were specified with `calc(..)`, but according to the color spec, the
`calc(..)` is not needed for color components. These tests are dependent
on the outcome of:
`https://github.com/web-platform-tests/wpt/issues/47921`

Differential Revision: https://phabricator.services.mozilla.com/D224117
2024-10-16 13:45:20 +00:00
Tiaan Louw
fbd6dd0fce Bug 1920496 - Make ColorFunction be stored in ComputedStyle r=emilio
We now fully support the full ColorFunction in the ComputedStyle struct
in layout.  This solves an issue where colors are copied on the C++
side.

Some structs had to be renamed to avoid name collisions in the generates
C++ code.

Some specified structs has the #[repr(C)] attribute now to include them
in the ComputedStyle struct.  This is not really correct as they are
specified values and only computed values should be there. Splitting all
the unit structs into specified and computed is a lot of changes so
there is a follow up bug here:
https://bugzilla.mozilla.org/show_bug.cgi?id=1924483

Differential Revision: https://phabricator.services.mozilla.com/D225080
2024-10-16 13:45:19 +00:00
Tiaan Louw
96526acd5c Bug 1920496 - Store ColorFunction inside a computed color r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D223136
2024-10-16 13:45:19 +00:00
Tiaan Louw
b729238b4a Bug 1920496 - Track omitted alpha values for relative colors. r=layout-reviewers,emilio
When an alpha component is omitted, instead of defaulting to opaque,
colors with an origin color used the alpha from there.

Differential Revision: https://phabricator.services.mozilla.com/D223134
2024-10-16 13:45:18 +00:00
Tiaan Louw
b74ee1215c Bug 1885912 - rgb() origin color must be in rgb() format. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D223133
2024-10-16 13:45:18 +00:00
Tiaan Louw
51a68a20d7 Bug 1885912 - Store a ColorFunction in a specified Color. r=layout-reviewers,emilio
When we have a color that can't be resolved at parse time (or should not
be resolved) then we store the data that was parsed as is to preserve
all the data for round tripping.

Differential Revision: https://phabricator.services.mozilla.com/D220268
2024-10-16 13:45:17 +00:00
Tiaan Louw
380f90df2c Bug 1914907 - Rustify NumberOr* enums r=layout-reviewers,emilio
More ergonomic to work with and not so verbose.

Differential Revision: https://phabricator.services.mozilla.com/D220267
2024-10-16 13:45:17 +00:00
Tiaan Louw
15796784ae Bug 1914907 - Store CalcNode inside a color component. r=layout-reviewers,emilio
Color components can now preserve parsed data, including calc nodes, if
required.

Some of the computed color tests fail, because we don't have the origin
color readily available to determine which color format to use. (e.g.
color instead of rgb). Fixes are in a follow up patch: D220268

Differential Revision: https://phabricator.services.mozilla.com/D220124
2024-10-16 13:45:16 +00:00
Valentin Gosu
93eac6333b Bug 1924631 - Fix Win MinGW build r=necko-reviewers,kershaw
Defines IN6_IS_ADDR_LINKLOCAL and IN6_IS_ADDR_LOOPBACK when the symbols
aren't known.

Differential Revision: https://phabricator.services.mozilla.com/D225630
2024-10-16 13:42:37 +00:00
Emilio Cobos Álvarez
f563b08d33 Bug 1886134 - Re-enable transform prefixes. r=webcompat-reviewers,twisniewski
We haven't seen significant fallout from bug 1901497, so this seems
worth trying, and avoids the weird "always enabled" JS APIs that we had
to add for zoom.

Differential Revision: https://phabricator.services.mozilla.com/D225784
2024-10-16 13:41:55 +00:00
Jonathan Sudiaman
154b958b38 Bug 1923946 - Update sidebar telemetry for resizing and panel toggling r=sidebar-reviewers,sclements
- Simplifies the resize tracking logic so that it hooks the splitter, rather than the browser. This removes the need to debounce and solves the issue of reporting automatic resizes.
- Rounds resize event data to the nearest integer.
- Records hide events whenever current panel is switched.

Differential Revision: https://phabricator.services.mozilla.com/D225435
2024-10-16 13:41:29 +00:00
AndiAJ
59a7c3b993 Bug 1807913 - Fix openLoginWebsiteInBrowserTest UI test r=ohorvath
The UI test failed yesterday on API 34 because the save logins prompt wasn't displayed.
As seen before, this might be caused by the fact that the autofill actions are performed to qucikly.
To overcome this problem, I've added a 1s wait between the autofilling actions.

The UI test successfully passed 200x on Firebase. 

Differential Revision: https://phabricator.services.mozilla.com/D225774
2024-10-16 13:16:21 +00:00
AndiAJ
5cc1bc7f2c Bug 1924987 - New set as default browser dialog UI test r=ohorvath
Created a new UI test that verifies the "Set as default browser" dialog items based on a high priority manual test from TestRail.

The UI test successfully passed 100x on both API 30 and 34. 

Differential Revision: https://phabricator.services.mozilla.com/D225772
2024-10-16 13:15:52 +00:00
Adi
cde9ef805b Backed out changeset 8d1d342fdb64 (bug 1920605) for causing xpcshell failures @ test_validate_strip_on_share_list.js. CLOSED TREE 2024-10-16 17:19:06 +03:00
Olli Pettay
651655bf7e Bug 1801586, bring back the old behavior when session-history-in-parent isn't enabled, r=peterv
bug 1717765 changed the behavior for non-SHIP too, and https://searchfox.org/mozilla-central/rev/d0c13bb2a9c3a9ab6f5eb5a23230161928b079d9/docshell/base/nsDocShell.cpp#6922
seems to rely on the old behavior. We need to have DocumentViewer always when restoring from bfcache, and non-SHIP doesn't deal with failure cases well.

No test for this (at least not yet).

Differential Revision: https://phabricator.services.mozilla.com/D225409
2024-10-16 13:14:50 +00:00
Jan-Erik Rediger
e707d6e582 Bug 1923885 - Test that the dau-reporting ping is sent along with baseline r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D225498
2024-10-16 13:12:36 +00:00
Adi
259ae08b09 Backed out changeset c03123359b41 (bug 1086524) for causing browser_persist_searchMode.js failures. CLOSED TREE 2024-10-16 16:54:55 +03:00
Adi
21915134df Backed out 3 changesets (bug 1921477) for causing Base-toolchains bustage.
Backed out changeset 77085e6f34d6 (bug 1921477)
Backed out changeset 409220c5c38e (bug 1921477)
Backed out changeset 78c35db99a38 (bug 1921477)
2024-10-16 16:33:35 +03:00
Adi
06d3fac4be Backed out changeset 543f6fbf6e4c (bug 1919741) for causing Gecko decision task failure. 2024-10-16 16:30:14 +03:00
James Graham
a427cb3765 Bug 1919741 - Allow specifying extra websockets handler directories, r=Sasha
This allows vendors to write their own websockets handlers for
non-shared tests.

Note that the handlers still all share the same namespace, so vendor
handlers must have a globally unique name, not just unique in the
vendor directory.

Differential Revision: https://phabricator.services.mozilla.com/D222758
2024-10-16 12:51:42 +00:00
Manuel Bucher
1824408902 Bug 1920605 - Strip more query parameters on Amazon with "Copy without site Tracking" r=anti-tracking-reviewers,pbz
Differential Revision: https://phabricator.services.mozilla.com/D225392
2024-10-16 12:43:15 +00:00
Alexandre Poirot
6d59474f40 Bug 1698068 - [devtools] Show a setting in Debugger's Source Tree to show/hide extension content scripts. r=devtools-reviewers,willdurand,bomsy
Up until this patch, the only way to show the content scripts was via `devtools.chrome.enabled` pref,
or via "Enable browser chrome and add-on debugging toolboxes" option.

This patch introduces a new settings menu, in the Debugger Source Tree component,
to help better control what is displayed in it.
We were already having a setting controlling the visibility of files hidden via Source Maps,
we can benefit from various settings to fine tune what is displayed in the debugger.

Users using about:config should migrate from `devtools.chrome.enabled` to `devtools.debugger.show-content-scripts`.

Differential Revision: https://phabricator.services.mozilla.com/D220949
2024-10-16 12:31:31 +00:00
Alexandre Poirot
c6df4a710b Bug 1924663 - [devtools] Track performance of tracing values in DAMP. r=devtools-reviewers,perftest-reviewers,bomsy,sparky
Enable recording JS values of function call arguments and returned values
for all the outputs.

Differential Revision: https://phabricator.services.mozilla.com/D225631
2024-10-16 12:28:52 +00:00
Jonathan Kew
61cb4f5c5a Bug 1921477 - Add a simple perf-reftest for reflow of Thai content. r=layout-reviewers,perftest-reviewers,emilio,TYLin,sparky
Differential Revision: https://phabricator.services.mozilla.com/D225499
2024-10-16 12:25:55 +00:00
Jonathan Kew
313366a44b Bug 1921477 - patch 2 - Cache results from ICU4X line-segmenter because it may be slow for complex writing systems. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D225461
2024-10-16 12:25:55 +00:00
Jonathan Kew
a08bcd5ea4 Bug 1921477 - patch 1 - Convert the line-break cache in ComplexBreaker from a pair of hashtables to MruCache, and expose as its own class. r=layout-reviewers,emilio
This does not change user-visible behavior, though the MruCache may perform slightly better
than the previous hashtable implementation. Primarily this is preparation for using the same
cache in conjunction with the new ICU4X-based line segmenter.

Differential Revision: https://phabricator.services.mozilla.com/D225460
2024-10-16 12:25:54 +00:00
Dão Gottwald
b4986bfa40 Bug 1924650 - Set text color on footer buttons. r=desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D225773
2024-10-16 12:16:12 +00:00
Emilio Cobos Álvarez
f42eddc8ca Bug 1922250 - Do not force-clear the nc-area after consuming the skeleton UI window. r=win-reviewers,rkraesig
Differential Revision: https://phabricator.services.mozilla.com/D224933
2024-10-16 12:13:53 +00:00
Emilio Cobos Álvarez
3805683b51 Bug 1922250 - Make skeleton UI special cases not modify mBounds incorrectly. r=win-reviewers,rkraesig
We're not resizing the window, so we shouldn't change mBounds.

These are all super-hacky btw, ideally we expose some code to
sessionrestore to do the right thing, then remove this.

But for now this would do.

Differential Revision: https://phabricator.services.mozilla.com/D225101
2024-10-16 12:13:53 +00:00
Alexandra Borovova
79c0c0f41d Bug 1924929 - Disable tests dependent on "network.cookie.CHIPS.enabled" pref on beta and stable. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D225765
2024-10-16 12:01:57 +00:00
William Durand
92d775e730 Bug 1924470 - Specify the version in /blocked-addon/ AMO URLs. r=amejiamarmol,geckoview-reviewers,android-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D225487
2024-10-16 12:00:03 +00:00
Paul Zuehlcke
c60d2dd75c Bug 1907390 - Add BounceTrackingProtection prefs to ETP Strict configuration. r=anti-tracking-reviewers,settings-reviewers,firefox-desktop-core-reviewers ,manuel
Differential Revision: https://phabricator.services.mozilla.com/D225681
2024-10-16 11:56:49 +00:00
Collin Richards
13b116cb50 Bug 1086524 - Focus window on Esc in address bar r=dao,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D218893
2024-10-16 11:47:11 +00:00
Dale Harvey
4200764055 Bug 1924661 - Remove contextual search from being enabled with ScotchBonnet. r=daisuke,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D225621
2024-10-16 11:46:55 +00:00
Issam Mani
5617f46888 Bug 1924862 - Override LoginHelper with an empty module in iOS. r=credential-management-reviewers,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D225711
2024-10-16 11:22:15 +00:00
Bastian Gruber
9446fd21c5 Bug 1923048 - [text], r=aryx
Fix the warnings for the topic-guide docs by removing the not needed sync-group: language

Differential Revision: https://phabricator.services.mozilla.com/D225636
2024-10-16 11:01:55 +00:00
Mirko Brodesser
599e480e5c Bug 1913339: part 4) Implement default-policy support for Element.innerHTML and Element.insertAdjacentHTML. r=peterv,smaug,sessionstore-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D219256
2024-10-16 10:32:39 +00:00
Mirko Brodesser
d801caf687 Bug 1913339: part 3) Make some sub-tests of <block-string-assignment-to-Element-insertAdjacentHTML.html> less dependent on each other. r=smaug
Allows to let them pass on Gecko too, given a Gecko-specific bug (see
the test). The text-to-HTML transformation, which is what the test is
supposed to test, is still tested.

Differential Revision: https://phabricator.services.mozilla.com/D219639
2024-10-16 10:32:38 +00:00
Mirko Brodesser
0421bd05ac Bug 1913339: part 2) Support default policies in TrustedTypePolicyFactory. r=peterv,smaug
The remaining support for default policies will be added in other
patches.

Differential Revision: https://phabricator.services.mozilla.com/D219424
2024-10-16 10:32:38 +00:00
Mirko Brodesser
1291357c11 Bug 1913339: part 1) Simplify existing WPT for the default-policy support of Element.insertAdjacentHTML. r=smaug
The additional parameter is not required.

Differential Revision: https://phabricator.services.mozilla.com/D219255
2024-10-16 10:32:38 +00:00
Mirko Brodesser
3fd3f78cd7 Bug 1914372: part 2) Add TrustedHTML to the interface of Element.innerHTML. r=smaug,peterv,farre
Differential Revision: https://phabricator.services.mozilla.com/D219876
2024-10-16 10:32:37 +00:00
Mirko Brodesser
fc100420a2 Bug 1914372: part 1) Move GetTrustedTypesCompliantString and related functions to TrustedTypeUtils. r=smaug
<Element.cpp> already contains around 5000 lines, it doesn't need more.
`GetTrustedTypeCompliantString` requires further extension which will be
implemented in a separate patch.

Differential Revision: https://phabricator.services.mozilla.com/D220239
2024-10-16 10:32:37 +00:00
Emilio Cobos Álvarez
a79a09ba6d Bug 1923505 - Simplify LinkedList -> nsTArray conversion. r=xpcom-reviewers,hiro,nika
Add a ToTArray version that works with LinkedList.

This is much like what we do for other containers, but without walking the list
twice.

Differential Revision: https://phabricator.services.mozilla.com/D225001
2024-10-16 10:32:01 +00:00