Commit Graph

982472 Commits

Author SHA1 Message Date
Ben Dean-Kawamura
827a745d82 Bug 1989840 - vendor app-services fix, a=RyanVM
- Updated `Cargo.toml` to point to the app-services commit with the fix
- Reverted my default rust to `1.86.0`
- Ran `./mach configure` and `./mach vendor rust`

Differential Revision: https://phabricator.services.mozilla.com/D266197
2025-09-26 04:24:20 +00:00
Andrew McCreight
a8ffb60fd2 Bug 1987806 - Null check compartmentPrivate in FindSameOriginCompartment. a=RyanVM
We're hitting some null crashes in CompartmentOriginInfo::IsSameOrigin,
so maybe this is due to a null compartment private? We're iterating
over all compartments in a zone during SetNewDocument so maybe there's
something weird to stumble over.

Original Revision: https://phabricator.services.mozilla.com/D264335

Differential Revision: https://phabricator.services.mozilla.com/D266166
2025-09-26 04:15:26 +00:00
alwu
5467b82c15 Bug 1989734 - use the index to find the first SPS. r=media-playback-reviewers,karlt a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D265908
2025-09-26 03:23:56 +00:00
Lee Salzman
1d97d5f6f4 Bug 1989517 - Ensure DrawTarget removed from RecordedTextureDestruction playback. r=aosmond, a=RyanVM
CanvasTranslator::RemoveTexture delayed the call to RemoveDrawTarget till all keepalives are
gone. However, this may take place long after RecordedTextureDestruction actually called
RemoveTexture. This gives time for subsequent DrawTargets with the same ReferencePtr to be
created, causing the wrong DrawTargets to be removed.

This patch ensures that when RemoveTexture is called from a RecordedTextureDestruction event
that the DrawTarget is always removed then and there, rather than waiting.

Differential Revision: https://phabricator.services.mozilla.com/D265867
2025-09-26 03:23:53 +00:00
Lee Salzman
509a406228 Bug 1988114. r=gfx-reviewers,ahale,aosmond a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D266194
2025-09-26 03:23:51 +00:00
Mike Hommey
94e68b81a7 Bug 1982003 - Apply allocator-api2 upstream fix to build with rust 1.89. a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D264362

Differential Revision: https://phabricator.services.mozilla.com/D264537
2025-09-26 02:57:19 +00:00
Mike Hommey
40dc24686f Bug 1982003 - Upgrade allocator-api2 to 0.2.21. a=RyanVM
The issue that made us fork the crate locally was actually fixed
upstream in 0.2.21.

Original Revision: https://phabricator.services.mozilla.com/D264361

Differential Revision: https://phabricator.services.mozilla.com/D264536
2025-09-26 02:57:16 +00:00
DonalMe
713f5caf2d Revert "Bug 1988114. r=ahale a=dmeehan" for causing build failues
This reverts commit 35523c86dc.
2025-09-25 13:39:19 +00:00
DonalMe
a76aca3306 Revert "Bug 1989517 - Ensure DrawTarget removed from RecordedTextureDestruction playback. r=aosmond, a=dmeehan" for causing build failures
This reverts commit 7ea9fd74e4.
2025-09-25 13:39:16 +00:00
Lee Salzman
ce0b8a6e42 Bug 1989945. r=ahale a=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D265664
2025-09-25 13:05:41 +00:00
Lee Salzman
7ea9fd74e4 Bug 1989517 - Ensure DrawTarget removed from RecordedTextureDestruction playback. r=aosmond, a=dmeehan
CanvasTranslator::RemoveTexture delayed the call to RemoveDrawTarget till all keepalives are
gone. However, this may take place long after RecordedTextureDestruction actually called
RemoveTexture. This gives time for subsequent DrawTargets with the same ReferencePtr to be
created, causing the wrong DrawTargets to be removed.

This patch ensures that when RemoveTexture is called from a RecordedTextureDestruction event
that the DrawTarget is always removed then and there, rather than waiting.

Differential Revision: https://phabricator.services.mozilla.com/D265867
2025-09-25 13:05:38 +00:00
Lee Salzman
35523c86dc Bug 1988114. r=ahale a=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D264683
2025-09-25 13:05:35 +00:00
William Durand
6f08eaa188 Bug 1989205 - Update recommended.xpi file to fix a test (permafailure) for ESR. r=robwu a=dmeehan DONTBUILD
The new XPI file has been generated from this PR [1], and signed by the
AMO -dev instance (which uses the nonprod cert). FTR since this add-on
needs a recommendation state, we must add the add-on to the "By Firefox"
promoted group via the AMO admin before getting the version signed.

Before:

```
$ xpidump old.xpi
MANIFEST:
  ID        : N/A
  Version   : 2.0
  Enterprise: No

RECOMMENDATION:
  [Line]

SIGNATURES:
  PKCS7:
    └── PRESENT / PRODUCTION / SHA-1 / REGULAR ADD-ON
    └── Certificates:
	└── Common Name         (CN): signingca1.addons.mozilla.org
	    Organizational Unit (OU): Mozilla AMO Production Signing Service
	    End Date                : 2025-04-04T00:00:00Z
	└── Common Name         (CN): {811d77f1-f306-4187-9251-b4ff99bad60b}
	    Organizational Unit (OU): Production
	    End Date                : 2030-09-15T16:50:45Z
  COSE:
    └── PRESENT / PRODUCTION / ES256 / REGULAR ADD-ON
    └── Certificates:
	└── Common Name         (CN): signingca1.addons.mozilla.org
	    Organizational Unit (OU): Mozilla AMO Production Signing Service
	    End Date                : 2025-04-04T00:00:00Z
	└── Common Name         (CN): {811d77f1-f306-4187-9251-b4ff99bad60b}
	    Organizational Unit (OU): Production
	    End Date                : 2030-09-15T16:50:45Z
```

After:

```
$ xpidump new.xpi
MANIFEST:
  ID        : recommended-line@test.mozilla.org
  Version   : 3.0
  Enterprise: No

RECOMMENDATION:
  [Line]

SIGNATURES:
  PKCS7:
    └── PRESENT / STAGING / SHA-256 / REGULAR ADD-ON
    └── Certificates:
	└── Common Name         (CN): cas-intermediate-amo-ca-staging
	    Organizational Unit (OU): Mozilla Staging Signing Service
	    End Date                : 2050-12-31T00:00:00Z
	└── Common Name         (CN): recommended-line@test.mozilla.org
	    Organizational Unit (OU): Production
	    End Date                : 2035-09-17T07:29:49Z
  COSE:
    └── PRESENT / STAGING / ES256 / REGULAR ADD-ON
    └── Certificates:
	└── Common Name         (CN): cas-intermediate-amo-ca-staging
	    Organizational Unit (OU): Mozilla Staging Signing Service
	    End Date                : 2050-12-31T00:00:00Z
	└── Common Name         (CN): recommended-line@test.mozilla.org
	    Organizational Unit (OU): Production
	    End Date                : 2035-09-17T07:29:49Z
```

[1]: https://github.com/mozilla/mozilla-central-test-xpis/pull/15

Differential Revision: https://phabricator.services.mozilla.com/D265576
2025-09-25 13:00:32 +00:00
Karl Tomlinson
11829818fa Bug 1988931 use GetInstanceIfExists() from MediaTrackGraphImpl::GetInstance() a=dmeehan DONTBUILD
Original Revision: https://phabricator.services.mozilla.com/D265213

Differential Revision: https://phabricator.services.mozilla.com/D265876
2025-09-25 12:47:39 +00:00
ffxbld
4728bcf71e No Bug, mozilla-esr140 repo-update HSTS HPKP remote-settings tld-suffixes ct-logs - a=dmeehan DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D266146
2025-09-25 12:46:58 +00:00
Tom Schuster
27b976ad7f Bug 1979536 - Align <object> type attribute behavior closer with other browsers. a=dmeehan
Original Revision: https://phabricator.services.mozilla.com/D262791

Differential Revision: https://phabricator.services.mozilla.com/D265625
2025-09-23 14:55:41 +00:00
Henri Sivonen
8c188f23b4 Bug 1967381 - Optimize Document::RecomputeLanguageFromCharset. a=dmeehan DONTBUILD
Original Revision: https://phabricator.services.mozilla.com/D251598

Differential Revision: https://phabricator.services.mozilla.com/D264905
2025-09-23 14:51:55 +00:00
Kershaw Chang
35da1c77c5 Bug 1980812 - Avoid setting explicit h2 ALPN for connections, a=dmeehan
Original Revision: https://phabricator.services.mozilla.com/D265491

Differential Revision: https://phabricator.services.mozilla.com/D265492
2025-09-22 16:25:41 +00:00
Lee Salzman
bfac3b3d31 Bug 1989127. r=ahale a=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D265372
2025-09-22 14:15:49 +00:00
Lee Salzman
ac301ae584 Bug 1988912. r=ahale a=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D265351
2025-09-22 14:15:47 +00:00
Andrew McCreight
309c387fc9 Bug 1987428 - Make CallArgs::operator[] consistent with ::get. a=dmeehan DONTBUILD
Original Revision: https://phabricator.services.mozilla.com/D264095

Differential Revision: https://phabricator.services.mozilla.com/D265484
2025-09-22 14:09:37 +00:00
Andrew McCreight
b16b2d8711 Bug 1987780 - Add release asserts to mozilla::Queue. a=dmeehan DONTBUILD
Original Revision: https://phabricator.services.mozilla.com/D264319

Differential Revision: https://phabricator.services.mozilla.com/D265480
2025-09-22 14:09:14 +00:00
Jan de Mooij
92b634843b Bug 1987227 part 2 - Emit correct instructions for cmp8 with byte registers on x64. a=dmeehan DONTBUILD
Use `oneByteOp8` to emit the `REX` prefix for byte registers if needed. This fixes an
issue with our code for `LStringToLowerCase` for certain register combinations/values.

With patches for bug 1986983 this was caught by jit-tests on Win64-debug builds.

Original Revision: https://phabricator.services.mozilla.com/D263972

Differential Revision: https://phabricator.services.mozilla.com/D264208
2025-09-22 14:05:47 +00:00
Jan de Mooij
21ba16fd52 Bug 1987227 part 1 - Add test for cmp8 with byte registers on x64. a=dmeehan DONTBUILD
This uses the Zydis disassembler to check the generated code is what we expect.

Original Revision: https://phabricator.services.mozilla.com/D264054

Differential Revision: https://phabricator.services.mozilla.com/D264207
2025-09-22 14:05:44 +00:00
Ryan Hunt
fdb7d96e3c Bug 1987624 - wasm: Refactor GetBufferSource. a=dmeehan DONTBUILD
Original Revision: https://phabricator.services.mozilla.com/D264478

Differential Revision: https://phabricator.services.mozilla.com/D265497
2025-09-22 14:03:58 +00:00
ffxbld
869bc13cbd No Bug, mozilla-esr140 repo-update HSTS HPKP remote-settings tld-suffixes ct-logs - a=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D265594
2025-09-22 12:02:02 +00:00
Rob Wu
f031088fb4 Bug 1984724 - Account for missing data_collection field (ESR140 port) a=dmeehan
extensions.json can miss the data_collection field when it was generated
by a Firefox version that did not support it. The implementation did not
account for this, and prevented extensions from updating due to a
runtime error.

This patch fixes the issue by adding a null check, and unit tests for
background updates. The unit test does not exercise the code path of the
"manual update" scenario from the bug, because of complexity and the
fact that its implementation is going to be replaced with the same logic
of the background update check (bug 1974732).

This patch also includes smaller fixups related to this bug and patch:
- https://phabricator.services.mozilla.com/D263925
- https://phabricator.services.mozilla.com/D264372

Original Revision: https://phabricator.services.mozilla.com/D264155

Differential Revision: https://phabricator.services.mozilla.com/D264618
2025-09-19 17:01:49 +00:00
Valentin Gosu
ccbc5e6940 Bug 1895277 - Update nsAuthSSPI to check certificate hash algorithm a=dmeehan DONTBUILD
Original Revision: https://phabricator.services.mozilla.com/D262779

Differential Revision: https://phabricator.services.mozilla.com/D265280
2025-09-19 16:57:19 +00:00
Kershaw Chang
654ec70bfc Bug 1987350 - Keep mInputFrameDataStream alive in Http2Session::RecvWindowUpdate, a=dmeehan DONTBUILD
Original Revision: https://phabricator.services.mozilla.com/D264183

Differential Revision: https://phabricator.services.mozilla.com/D264577
2025-09-19 16:56:03 +00:00
Luca Greco
82394c910e Bug 1983869 - Fix 'extensions settings' link click handling in post-install popup to preventing it to break customize mode. a=dmeehan
Original Revision: https://phabricator.services.mozilla.com/D264085

Differential Revision: https://phabricator.services.mozilla.com/D264286
2025-09-19 03:03:01 +00:00
Gabriele Svelto
a2e0149356 Bug 1975979 - Remove the crash helper listener socket on Linux and macOS a=dmeehan
Original Revision: https://phabricator.services.mozilla.com/D262410

Differential Revision: https://phabricator.services.mozilla.com/D263340
2025-09-19 02:56:19 +00:00
Julien Cristau
d6674b563e Bug 1989122 - update cron-bouncer-check config for esr140 as current ESR. a=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D265229
2025-09-18 11:54:56 +00:00
ffxbld
40a96d47f3 No Bug, mozilla-esr140 repo-update HSTS HPKP remote-settings tld-suffixes ct-logs - a=dmeehan DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D265258
2025-09-18 11:51:45 +00:00
Release Engineering Landoscript
786cf32bb6 No Bug - Update configs after merge day operations a=release
IGNORE BROKEN CHANGESETS
CLOSED TREE
2025-09-15 12:39:18 +00:00
Release Engineering Landoscript
c5298ef7c6 Automatic version bump NO BUG a=release CLOSED TREE 2025-09-15 12:39:13 +00:00
Tom Schuster
2ea021b947 Bug 1973900 - Remove support for the codebase attribute from <object>. r=farre,dom-core a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D254958
2025-09-08 18:24:16 +00:00
Jonathan Kew
da94da9a91 Bug 1986417 - Try to ensure regional flags (encoded with WAVING BLACK FLAG + tag letters) render properly. a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D263906
2025-09-08 15:49:38 +00:00
ffxbld
228d3bd24d No Bug, mozilla-esr140 repo-update HSTS HPKP remote-settings tld-suffixes ct-logs - a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D264058
2025-09-08 12:10:39 +00:00
Ryan VanderMeulen
b5c40204b0 Bug 1986539 - Update l10n-changesets on ESR140. a=RyanVM DONTBUILD 2025-09-08 12:07:00 +00:00
Fatih Kilic
bc7689a036 Bug 1986031 - Use GetAncestorWindow instead of GetWindow in OffscreenCanvasPromptRunnable to allow prompting from nested workers. r=tjr a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D263136
2025-09-05 21:00:44 +00:00
Fatih Kilic
c674f99b18 Bug 1985073 - Fix the thread-safety issues with canvas permission prompting. a=RyanVM
Previously, as seen, I wrote some horrible code. This patch intends to fix the thread safety issue in the permission prompt code for OffscreenCanvas.

For context, with privacy.fingerprintingProtection=True and privacy.fingerprintingProtection.overrides="+CanvasImageExtractionPrompt", when a canvas is read, we randomize the data, and return the randomized data. At the same time, we show a permission prompt asking the user if they want to allow the website to read the canvas data without randomization. It is a non-blocking prompt (i.e. we allow further canvas reads, it just keeps adding the randomization).

We have two types of canvases. HTMLCanvasElement and OffscreenCanvas. The former is used in the main thread, the latter can be used in both the main thread and worker threads.

To ask for permission, we need to communicate with the parent process with the correct window. However, accessing window from a worker thread is not thread safe. We need to dispatch to the main thread to access the window.

Original Revision: https://phabricator.services.mozilla.com/D262475

Differential Revision: https://phabricator.services.mozilla.com/D263138
2025-09-05 21:00:42 +00:00
Timothy Nikkel
a6603c3ef3 Bug 1986191. Work around a null mScrollContainerFrame in an active scrolled root. a=RyanVM
We should not have a null mScrollContainerFrame in an asr that is in use, but we are getting crashes in bug 1764863 that show that this is happening at volume. We have not been successful over a long period of time of finding a testcase or some way to reproduce. We have a landed patch in bug 1984898 (based on a pernosco of one instance of this from a few years back) that we hope fixes some or most of these. The patch in bug 1984898 is a little bit big, and we have no evidence that it fixes the problem. So I am proposing this patch as something we can uplift that should work around the problem. We still want to fix any instances of that this we come across so the MOZ_DIAGNOSTIC_ASSERT will fire in nightly and early beta builds. The gfxCriticalNoteOnce will alert us if this is having negative consequences later on.

By returning false we will abort the partial display list update and delete the retained display list that contains an asr that has a null mScrollContainerFrame and we will do a full rebuild. This should avoid the problem and be much better than crashing.

Original Revision: https://phabricator.services.mozilla.com/D263224

Differential Revision: https://phabricator.services.mozilla.com/D263820
2025-09-05 01:46:09 +00:00
Steven Michaud
1c0eec2481 Bug 1986701 - Link mChildView only after mNativeLayerRoot is initialized. a=RyanVM DONTBUILD
Original Revision: https://phabricator.services.mozilla.com/D263616

Differential Revision: https://phabricator.services.mozilla.com/D263736
2025-09-05 01:45:57 +00:00
Joel Maher
dbbe73f5d7 Bug 1983773 - Do not collect full test info data on branches other than try/central. a=RyanVM DONTBUILD
not sure this should be reviewed, it is supposed to be https://phabricator.services.mozilla.com/D263609

Differential Revision: https://phabricator.services.mozilla.com/D263775
2025-09-04 17:33:20 +00:00
ffxbld
424180bd8b No Bug, mozilla-esr140 repo-update HSTS HPKP remote-settings tld-suffixes ct-logs - a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D263710
2025-09-04 13:42:53 +00:00
Daniel Holbert
59758e6b1d Bug 1985652: Use triggeringPrincipal rather than loadingPrincipal for CORS checks, if triggeringPrincipal is from an extension. a=RyanVM
This allows extensions to access their own content from scripts that they
injected into web pages, without that requested content being automatically
blocked due to failing CORS checks (since the Origin of the request is
the web page).

We have an existing pref 'extensions.content_web_accessible.enabled' whose
'false' value is meant to allow MV2 extensions to access their own resources
from their content-scripts (even if those resources aren't web-exposed). A
recent CORS strictness patch broke this use-case; so this patch relaxes the
strictness, specifically for extensions and specifically when that pref has
the permissive 'false' value.

While we're at it, this patch extends the related xpcshell test cover the case
where the pref is in its default/permissive 'false' configuration (to test the
regression being addressed by this patch), and to test that MV3 is strict under
that configuration. This patch also clarifies the other relevant pref for CORS
principal-selection to avoid implying that it's relevant to WebExtensions
(since it's not anymore).

Original Revision: https://phabricator.services.mozilla.com/D262863

Differential Revision: https://phabricator.services.mozilla.com/D263613
2025-09-04 03:38:52 +00:00
Daniel Holbert
b75ffdc7ab Bug 1970490: Use loading principal (rather than triggering principal) for CORS checks, by default. a=RyanVM
This is essentially a backout of bug 1496505, putting its change behind a new
off-by-default about:config pref[1] for now, in case there are use cases that
require it.

[1] content.cors.use_triggering_principal

Original Revision: https://phabricator.services.mozilla.com/D252611

Differential Revision: https://phabricator.services.mozilla.com/D263611
2025-09-04 03:38:50 +00:00
Mark Striemer
cd516e806e Bug 1976006 - Fix moz- input labels when localisation changes a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D258995

Differential Revision: https://phabricator.services.mozilla.com/D263495
2025-09-03 23:59:38 +00:00
Dão Gottwald
b6ae9b266e Bug 1985747 - Allow toolbarspring to shrink to 1px in the nav-bar again. a=RyanVM DONTBUILD
Original Revision: https://phabricator.services.mozilla.com/D262927

Differential Revision: https://phabricator.services.mozilla.com/D263573
2025-09-03 23:59:07 +00:00
Lee Salzman
c07482a24d Bug 1986185. r=aosmond a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D263287
2025-09-02 22:34:28 +00:00