Commit Graph

858673 Commits

Author SHA1 Message Date
Connor Sheehan
70860dc50e Bug 1856960: validate the Lando access token expiration manually r=zeid
The token verification code path checks the ID token is valid and not expired,
however the ID token and the access token have different expirations, causing
pushes to be rejected by Lando after local verification succeeds. Since
`auth0-python` doesn't provide an access token verification, we decode the
access token and manually verify the token is not about to expire.

Differential Revision: https://phabricator.services.mozilla.com/D190296
2023-10-06 17:06:52 +00:00
Mark Banner
15fe9558c2 Bug 1855697 - Enable ESLint rule no-debugger for all of dom/. r=dom-worker-reviewers,smaug
Depends on D189497

Differential Revision: https://phabricator.services.mozilla.com/D189498
2023-10-06 16:45:54 +00:00
Mark Banner
3a2f5a75d2 Bug 1855697 - Enable ESLint rule no-implied-eval for all of dom/. r=dom-core,edgar
Depends on D189496

Differential Revision: https://phabricator.services.mozilla.com/D189497
2023-10-06 16:45:53 +00:00
Mark Banner
c7ac816c46 Bug 1855697 - Enable ESLint rule no-eval for all of dom/. r=dom-core,mccr8
Depends on D189495

Differential Revision: https://phabricator.services.mozilla.com/D189496
2023-10-06 16:45:53 +00:00
Mark Banner
dc4be5fe1d Bug 1855697 - Enable ESLint rules mozilla/no-define-cc-etc and mozilla/use-cc-etc over all of dom/. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D189495
2023-10-06 16:45:52 +00:00
Kagami Sascha Rosylight
6571a41583 Bug 1857542 - Remove LockManagerChild cycle collection setup r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D190301
2023-10-06 16:34:25 +00:00
Logan Rosen
2df8cb1208 Bug 1852645 - fix mach try chooser regression r=ahal,jgraham
With the fix to Bug 1786490, we are now using Werkzeug 2.1.2, which removed the shutdown function that the chooser was relying on to shut down the Flask server after selecting tasks. To remedy this, I followed the instructions [here](https://werkzeug.palletsprojects.com/en/2.3.x/serving/#shutting-down-the-server) for shutting down the server using multiprocessing instead.

Since multiprocessing needs to pickle the objects with the spawn method (fork is not available on Windows and is not used by default on macOS), I needed to make ReadOnlyDict picklable by adding a `__reduce__` method like what is implemented [here](https://github.com/Marco-Sulla/python-frozendict/blob/master/src/frozendict/core.py#L142), as it is used in the task object that's passed to the Flask app.

***

Differential Revision: https://phabricator.services.mozilla.com/D187952
2023-10-06 16:30:47 +00:00
Olli Pettay
62f8fe2f07 Bug 1857529 - Use longer timer value for AsyncFreeSnowWhite, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D190295
2023-10-06 16:17:12 +00:00
negin
5c931ebd14 Bug 1850509 - Fixes overflow of panel-list by providing a max height and ensuring topOffset is never negative r=omc-reviewers,mconley,reusable-components-reviewers,aminomancer,hjones
Differential Revision: https://phabricator.services.mozilla.com/D188837
2023-10-06 16:10:48 +00:00
edgul
5a5248a0c2 Bug 1851426 - Add pref to reland protocol setter to be more restrictive. r=twisniewski,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D188762
2023-10-06 16:04:32 +00:00
edgul
ca97748eb9 Bug 1851426 - Relanding URL: protocol setter needs to be more restrictive around file (bug 1347459). r=kershaw,twisniewski,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D188518
2023-10-06 16:04:31 +00:00
Issam Mani
38aac00bdc Bug 1823943 - P3. Add stories for input field components. r=mtigley,credential-management-reviewers
Depends on D186159

Differential Revision: https://phabricator.services.mozilla.com/D186160
2023-10-06 15:34:57 +00:00
Issam Mani
604f1ec06f Bug 1823943 - P2. Extract input specific styles from login-item.css. r=mtigley,desktop-theme-reviewers,credential-management-reviewers,emilio
Depends on D186158

Differential Revision: https://phabricator.services.mozilla.com/D186159
2023-10-06 15:34:57 +00:00
Issam Mani
36675ef1ec Bug 1823943 - P1. Create components for login item input fields. r=mtigley,credential-management-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D186158
2023-10-06 15:34:57 +00:00
Nipun Shukla
8a377b9b77 Bug 1849252 - Added UI components and notification for Firefox launch on Windows login r=settings-reviewers,nalexander,omc-reviewers,flod,aminomancer
Depends on D184437

Differential Revision: https://phabricator.services.mozilla.com/D186510
2023-10-06 15:30:24 +00:00
Nipun Shukla
0bb5d4e327 Bug 1843202 - Added Nimbus experiment to Windows autostart on login r=nalexander,mconley
Depends on D183504

Differential Revision: https://phabricator.services.mozilla.com/D184437
2023-10-06 15:30:23 +00:00
Nipun Shukla
b15137b324 Bug 1843202 - Added automatic launch on Windows login based on registry key r=nalexander,settings-reviewers,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D183504
2023-10-06 15:30:23 +00:00
Jamie Nicol
836b0d935c Bug 1857447 - Avoid redundant UniformData calls in DrawTargetWebgl. r=lsalzman
Calling ClientWebGLContext::UniformData() many times causes the
command buffer to fill up and we spend a fair amount of time flushing
the old buffer and allocating a new one, as well as serializing the
values.

The uniforms themselves are very small but they add up over a large
number of calls. We already have some code to track whether the
uniform values are dirty to avoid some redundancy, but a) this doesn't
cover every uniform, and b) we invalidate them all when switching
program.

This patch makes us track the value of every uniform that gets set
dynamically, and tracks the values separately for each program
used. It then uses these to avoid calling UniformData redundantly.

Differential Revision: https://phabricator.services.mozilla.com/D190269
2023-10-06 15:12:48 +00:00
Dão Gottwald
9b40b3e022 Bug 1857532 - Hand over Session Restore ownership to Sarah and Sam. r=zeid DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D190297
2023-10-06 15:06:36 +00:00
Paul Adenot
7ab577b56e Bug 1841432 - Adjust expectations after fixing resource-selection-source-media-env-change.html
Differential Revision: https://phabricator.services.mozilla.com/D190261
2023-10-06 15:05:50 +00:00
scottjehl
393a8fa24b Bug 1841432 - change test setup to rely on promises that the child iframe will resolve and also use a supported and playable video source so that source selection sticks. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D190066
2023-10-06 15:05:50 +00:00
Dão Gottwald
5c0670cbff Bug 1857520 - Add jules as Desktop Theme peer. r=zeid
Differential Revision: https://phabricator.services.mozilla.com/D190292
2023-10-06 14:45:25 +00:00
Emilio Cobos Álvarez
9f40cb86e5 Bug 1857260 - More explicitly use custom colors for the toolbox. r=dao,desktop-theme-reviewers,win-reviewers,mhowell
Right now we were relying on the OS colors
(-moz-dialog/-moz-dialogtext/ActiveCaption/CaptionText).

The titlebar ones did the right thing but -moz-dialog and co didn't.

This caused two issues:

 * With the titlebar checkbox on, we'd use the system colors even
   without prefers-contrast. This is specially noticeable on macOS.

 * With prefers-contrast. We used -moz-dialog for the background and the
   toolbar on macOS. This caused little contrast.

Support the -moz-headerbar colors in all desktop platforms, and use
those on Linux + HCM, and use browser-custom-colors on Windows / macOS
to override the toolbox background explicitly to fix it.

This setup is a little bit more consistent with all other colors.

Differential Revision: https://phabricator.services.mozilla.com/D190200
2023-10-06 14:40:15 +00:00
Greg Mierzwinski
17880c19ef Bug 1851811 - Add chromedrivers for v118. r=perftest-reviewers,taskgraph-reviewers,AlexandruIonescu,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D190039
2023-10-06 13:53:56 +00:00
Emilio Cobos Álvarez
bc6cf30d16 Bug 1857455 - Deal with BrowsingContext not being yet attached in nsSubDocumentFrame::Init. r=hsivonen
For initial about:blank, nsSubDocumentFrame::Init might not have an
extant browsing context yet. Some code did deal with that properly
(MaybeUpdateEmbeddedColorScheme for example), but some other didn't.

Consistently propagate data to our browsing context after ShowViewer to
fix this.

Differential Revision: https://phabricator.services.mozilla.com/D190275
2023-10-06 13:44:13 +00:00
Emilio Cobos Álvarez
8c04b502db Bug 1857208 - Tweak dark hover/active colors to be background-dependent. r=dao,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D190207
2023-10-06 13:37:52 +00:00
Jan Varga
39b44622e6 Bug 1808294 - Extend nsIQuotaOriginUsageResult to match UsageInfo; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D166173
2023-10-06 13:33:13 +00:00
Robert Longson
850b5077f8 Bug 627594 - flush layout when working with percentage units r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D190270
2023-10-06 13:30:41 +00:00
Paul Zuehlcke
d99400b65e Bug 1855495 - Add telemetry about querySelector calls in CookieBannerChild. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D189844
2023-10-06 13:27:38 +00:00
Edgar Chen
3b1a417bd3 Bug 1854747 - Stop exposing the image data as file to clipboard; r=evilpie
Differential Revision: https://phabricator.services.mozilla.com/D189242
2023-10-06 13:17:52 +00:00
Sandor Molnar
1b033bae69 Backed out changeset 7c84c5fc7d00 (bug 1791079) for causing mochitest process crashes at @ RefPtr<mozilla::dom::WindowContext>::operator-> CLOSED TREE 2023-10-06 16:18:00 +03:00
fidelius
d0883d0dec Bug 1856287 - Do not use PROCESS_MODE_BACKGROUND_BEGIN to run the minidum-analyzer in the background on Windows r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D190259
2023-10-06 12:49:27 +00:00
Luca Greco
390d0b6377 Bug 1841444 - Return earlier from AddonRepository.backgroundUpdateCheck and reject AddonRepository._fetchPaged if application shutdown was already initiated. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D189236
2023-10-06 12:43:33 +00:00
serge-sans-paille
77302ddcae Bug 1854490 - get rid of dtlsidentity global constructor r=webrtc-reviewers,ng
Use nsLiteralCstring to store the default instead of an std::string, and
update interface appropriately.

We could go one step further and only use literal string to represent
algorithm instead of storing it in a nsCString at some point, but that
would slightly reduce the flexibility of current interface.

Differential Revision: https://phabricator.services.mozilla.com/D188888
2023-10-06 12:40:19 +00:00
Karandeep
76eb0e17eb Bug 1853910 - Remove Legacy Event Telemetry Dependencies. r=mak,extension-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D189558
2023-10-06 12:33:14 +00:00
Karandeep
b5b7981be6 Bug 1853910 - Remove Legacy Event Telemetry. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D188721
2023-10-06 12:33:14 +00:00
Timothy Nikkel
f4c2a9511e Bug 1857394. Enable layout/reftests/bugs/1743533-1.html 1743533-2.html with fuzz. r=emilio
This should be good enough to catch regressions. The main thing is we paint something in the fragments of the iframe on the second and following pages and this should catch it if we fail to.

Fuzz amounts are from an all reftests try run.

Differential Revision: https://phabricator.services.mozilla.com/D190246
2023-10-06 12:26:11 +00:00
Emilio Cobos Álvarez
d159aa561d Bug 1856755 - Implement an internal zoom: document value that forces effective zoom to 1. r=jfkthame
The name matches the value that webkit (but not blink) exposes to the
web. We don't expose it.

Filed https://github.com/w3c/csswg-drafts/issues/9435 for this.

Differential Revision: https://phabricator.services.mozilla.com/D190025
2023-10-06 12:20:20 +00:00
Emilio Cobos Álvarez
bb6ca40e99 Bug 1856755 - Add faster multiplication and division for fixed-point values. r=jfkthame,layout-reviewers
Even though I ended up not using the division code, it seems useful.

Differential Revision: https://phabricator.services.mozilla.com/D190024
2023-10-06 12:20:20 +00:00
CanadaHonk
953794b454 Bug 1791079 - Implement User Activation API r=dom-core,webidl,saschanaz,edgar
Rewrote internal user activation tree (spreading state to other elements)
logic to match HTML spec:
https://html.spec.whatwg.org/multipage/interaction.html#user-activation-processing-model

Added navigator.userActivation API to expose internal user activation.

Also fixed a WPT test to conform to spec (siblings are not activated),
see also spec issue: https://github.com/whatwg/html/issues/9831

Co-authored-by: Tom Schuster <evilpies@gmail.com>

Differential Revision: https://phabricator.services.mozilla.com/D185348
2023-10-06 12:16:17 +00:00
Robert Longson
a21d68d939 Bug 1402013 - stop calculating position for SVG elements that aren't governed by the CSS box model r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D190222
2023-10-06 12:04:14 +00:00
Frederic Wang
17a7c14d6e Bug 1855946 - Handle invalid at computed-value time custom properties. r=emilio
This patch improves handling of invalid at computed-value time custom
properties [1], properly using the initial or inherited values for
registered properties with a non-universal syntax. Existing tests at
registered-properties-inheritance.html are extended to cover more
situations mentioned in the specifications [1] [2].

[1] https://drafts.csswg.org/css-variables-2/#invalid-at-computed-value-time
[2] https://drafts.css-houdini.org/css-properties-values-api-1

Differential Revision: https://phabricator.services.mozilla.com/D189651
2023-10-06 12:03:17 +00:00
Frederic Wang
138e00de8e Bug 1855629 - Handling of custom properties when enumerating getComputedStyle(). r=emilio
After bug 1840478, non-inherited custom properties using their initial
values are represented as absent from `ComputedCustomProperties` in
order to save memory. Wherever the values of such properties are
requested, it is necessary to fallback to any registered initial value.
However, this makes difficult to properly enumerate custom properties
for exposure via the `CSSStyleDeclaration.item()` API and indeed our
current implementation only exposes the properties actually present in
`ComputedCustomProperties`.

Additionally, such a representation conflicts with pre-existent
representation of guaranteed-invalid values as absent values, causing
some issues e.g. bad handling of invalid at computed-value time [1] [2].

This patch changes `ComputedCustomProperties` so that registered initial
values are always stored in the `non_inherited` map, immediately fixing
the issue with `CSSStyleDeclaration.item()` and preparing follow-up
work on guaranteed-invalid values.

To avoid excessive increase of memory usage, the `non_inherited` map
becomes ref-counted. The associated Stylist contains an up-to-date
ComputedCustomProperties with registered custom properties that have
initial values, and the `non_inherited` map can generally just be
shallow-cloned from it.

A new test `get-computed-style-enumeration.html` is added to make sure
custom properties are correctly exposed when enumerating
`CSSStyleDeclaration` as a list. A similar but more restricted version
already exists: `cssstyledeclaration-registered-custom-properties.html`.
Two test cases are also added to `determine-registration.html` in order
to cover some issue previously detected during the review of
`get_custom_property_initial_values`.

[1] https://drafts.csswg.org/css-variables-2/#invalid-at-computed-value-time
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1855946

Differential Revision: https://phabricator.services.mozilla.com/D189999
2023-10-06 12:03:16 +00:00
Julien Cristau
61781e9abe Bug 1855152 - part 2: add macosx64-aarch64/debug build in CI. r=firefox-build-system-reviewers,taskgraph-reviewers,releng-reviewers,jmaher,glandium,ahal
Differential Revision: https://phabricator.services.mozilla.com/D189195
2023-10-06 11:52:21 +00:00
Julien Cristau
6b6a8e3657 Bug 1855152 - part 1: change treeherder platform/symbol for macos aarch64 builds. r=taskgraph-reviewers,jmaher
Use the platform to differentiate x64 and aarch64 builds, not the
symbol.  This makes add-on-devel and fuzzing builds match what we're
already doing for shippable and devedition.

Differential Revision: https://phabricator.services.mozilla.com/D190042
2023-10-06 11:52:20 +00:00
Jan de Mooij
7988d54778 Bug 1857237 - Use the external string cache also for the inline string path. r=jonco
In `NewMaybeExternalString` we have a fast path for short Latin1 strings. This case is
very common.

Changing the cache to handle these too is very effective: the `lookupInline` method
has a hit rate of at least 90% on Speedometer 3.

Differential Revision: https://phabricator.services.mozilla.com/D190206
2023-10-06 11:27:49 +00:00
Henrik Skupin
46bceb0b87 Bug 1785377 - [wdspec] Expect test "test_no_parent_browsing_context" to intermittently fail for slow running builds. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D190267
2023-10-06 11:18:59 +00:00
Olli Pettay
455b5d83ea Bug 1856545 - Try to utilize idle time more, r=farre
We can go through quite a few more timers these days, since timers are stored now in an array and iterating through that is fast.
Also, relying on timer value for another thread or low priority timers does prevent idle tasks to run in some cases, and now that more timers
are iterated through, that behavior can be tweaked.

For RefreshDriver this is taking the simple approach and just let idle tasks to run if RefreshDriver isn't ticking. We do start RefreshDriverTimer pretty
much always when something in DOM or layout is changing.

Differential Revision: https://phabricator.services.mozilla.com/D189909
2023-10-06 11:04:04 +00:00
Emilio Cobos Álvarez
fed4a076d6 Bug 1857340 - Fix GVariant reference confusion. r=stransky
Another bug caused by GObject floating references :')

The GVariant returned by builder_end() is floating, and the way
g_variant_builder_add_value works is that it _only_ takes a reference if
floating.

So basically if you have a RefPtr<GVariant> with a floating reference,
then pass it to g_variant_builder_add_value, the reference is "stolen",
but RefPtr doesn't know about it.

It really sucks.

Differential Revision: https://phabricator.services.mozilla.com/D190240
2023-10-06 10:51:36 +00:00
Sandor Molnar
b7c3f9f2cc Backed out changeset f0458ed00feb (bug 1854490) for causing build bustages on dom/media/webrtc/sdp/SdpAttribute.h CLOSED TREE 2023-10-06 13:16:52 +03:00