Commit graph

868575 commits

Author SHA1 Message Date
Mark Banner
8129e63fd3 Bug 1872857 - Add json checking to the file-perms and file-whitespace linters. r=linter-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D197583
2024-01-04 15:50:31 +00:00
Jonathan Kew
4170df881e Bug 1871009 - Improve mapping of the CoreText font-weight trait to values for the CSS font-weight property. r=layout-reviewers,emilio
Checking the fonts in HelveticaNeue.ttc on macOS Sonoma, both HelveticaNeue-Medium and -MediumItalic have the same weight (500) in their OS/2 table, and return the same value (0.23) for their kCTFontWeightTrait. Back in bug 931426 when the weight override pref was added, we were getting different weights from appKit for these two "Medium" faces, but that no longer appears to be an issue.

This patch makes our CoreTextWeightToCSSWeight mapping a bit more sophisticated, with the added data point of CSS/OpenType weight 500 = CoreText weight 0.23, which we're seeing here in HelveticaNeue. With this refinement in the mapping, we can drop the old override for the HelveticaNeue-MediumItalic face.

Differential Revision: https://phabricator.services.mozilla.com/D197665
2024-01-04 15:46:47 +00:00
Nikki Sharpley
cd901e4e4f Bug 1864534 - remove firefox-view-next pref and update about AboutRedirector r=fxview-reviewers,Gijs
- removes `about:firefoxview-next` route
- `about:firefoxview` now points to `firefoxview-next.html` (until we rename)
- remove pref for `browser.tabs.firefox-view-next`
- preserve pref for `browser.tabs.firefox-view-newIcon` as part of firefoxViewNext feature manifest (until experiment is over)
- whitelist unreferenced files in `browser_all_files_referenced.js` as they will be removed in child Bug 1869833

Differential Revision: https://phabricator.services.mozilla.com/D196093
2024-01-04 15:40:22 +00:00
Hanna Jones
5c87cc2975 Bug 1845150 - Update notificationbox usage for heartbeat notifications r=reusable-components-reviewers,tgiles
Can be tested locally with this snippet:

```js
const { Heartbeat } = ChromeUtils.importESModule(
  "resource://normandy/lib/Heartbeat.sys.mjs"
);
new Heartbeat(window, {
    testing: true,
    flowId: "test",
    message: "This is a test message!",
    engagementButtonLabel: undefined,
    learnMoreMessage: "Learn More",
    learnMoreUrl: "https://example.org/learnmore",
});
```

Differential Revision: https://phabricator.services.mozilla.com/D194317
2024-01-04 15:31:14 +00:00
Hanna Jones
d2de50d679 Bug 1845150 - Update notificationbox usage for process hang notification r=reusable-components-reviewers,tgiles
Can be tested locally using this snippet (which I think I took from a test...):

```js
let addonId = "test";
let policy = new WebExtensionPolicy({
    name: "Scapegoat",
    id: addonId,
    mozExtensionHostname: Services.uuid.generateUUID().number.slice(1, -1),
    baseURL: "file:///",
    allowedOrigins: new MatchPatternSet([]),
    localizeCallback() {},
});
policy.active = true;
ProcessHangMonitor.showNotification(window, { addonId, scriptBrowser: { browsingContext: { watchedByDevTools: false }} });
```

Differential Revision: https://phabricator.services.mozilla.com/D194316
2024-01-04 15:31:14 +00:00
Hanna Jones
2a3fe3bdb4 Bug 1845150 - Update notificationbox usage for crash notifications r=reusable-components-reviewers,tgiles
I've been testing locally with these snippets in the browser toolbox:

```js
const { TabCrashHandler } = ChromeUtils.importESModule("resource:///modules/ContentCrashHandlers.sys.mjs");
TabCrashHandler.showSubFrameNotification(gBrowser.selectedBrowser, "foo", "bar");
```

```js
const { UnsubmittedCrashHandler } = ChromeUtils.importESModule("resource:///modules/ContentCrashHandlers.sys.mjs");
UnsubmittedCrashHandler.show({ notificationId: "foo", reportIDs: [], onAction: () => {}});
```

Differential Revision: https://phabricator.services.mozilla.com/D194315
2024-01-04 15:31:13 +00:00
Hanna Jones
7fcf629581 Bug 1845150 - Update notificationbox usage for captive portal notification r=reusable-components-reviewers,tgiles
Can be tested locally by running this code in the browser toolbox:

```js
gBrowser.selectedBrowser.ownerGlobal.CaptivePortalWatcher._showNotification();
```

Differential Revision: https://phabricator.services.mozilla.com/D194314
2024-01-04 15:31:13 +00:00
Hanna Jones
27f55473c2 Bug 1845150 - Update usage of notificationbox in InfoBar r=reusable-components-reviewers,tgiles
There are some tests you can run to see how this looks, but I've also been verifying things locally by running this snippet in the browser toolbox:

```js
const { InfoBar } = ChromeUtils.import(
  "resource://activity-stream/lib/InfoBar.jsm"
);
const { CFRMessageProvider } = ChromeUtils.importESModule(
  "resource://activity-stream/lib/CFRMessageProvider.sys.mjs"
);
let message = (await CFRMessageProvider.getMessages()).find(
	m => m.id === "INFOBAR_ACTION_86"
);
InfoBar.showInfoBarMessage(
    BrowserWindowTracker.getTopWindow().gBrowser.selectedBrowser,
    {
      ...message,
      content: {
        priority: window.gNotificationBox.PRIORITY_WARNING_HIGH,
        ...message.content,
      },
    },
    {}
);
```

Differential Revision: https://phabricator.services.mozilla.com/D194313
2024-01-04 15:31:13 +00:00
Hanna Jones
ba93129cb7 Bug 1845150 - Update notificationbox usage for search engine removal notification r=search-reviewers,fluent-reviewers,Standard8,bolsson
Notification can be triggered locally via this snippet:

```js
BrowserSearch.removalOfSearchEngineNotificationBox("Google", "Foogle")
```

Differential Revision: https://phabricator.services.mozilla.com/D194312
2024-01-04 15:31:12 +00:00
Hanna Jones
f78c584212 Bug 1845150 - Use moz-message-bar instead of message-bar in notificationbox.js r=webdriver-reviewers,desktop-theme-reviewers,media-playback-reviewers,reusable-components-reviewers,karlt,whimboo,tgiles,dao
This patch updates the `NotificationMessage` element in `notificationbox.js` so that it extends our newer `moz-message-bar` component instead of the deprecated `message-bar` component. Many of the changes are just dealing with the implications of making things async (so that we can ensure `moz-message-bar.mjs` gets imported). I tried to break out places where I modified related code and tests into separate patches to mitigate some of the review pain here.

This patch solves a longstanding issue where we were loading `in-content/common-shared.css` in the chrome since it gets used by the `message-bar` element. It also makes some small visual changes to our infobars (slight outline, icon colors, adds a bit of spacing).

Differential Revision: https://phabricator.services.mozilla.com/D189872
2024-01-04 15:31:12 +00:00
Issam Mani
0a18481f68 Bug 1865705 - Use nimbus flag to control address autofill. r=credential-management-reviewers,dimi
Differential Revision: https://phabricator.services.mozilla.com/D194149
2024-01-04 15:25:36 +00:00
Julian Descottes
9c509b8feb Bug 1872245 - [devtools] Sort worker and extension targets alphabetically in about:debugging r=devtools-reviewers,ochameau
The debug targets are currently displayed in the order from the server, which makes it hard to find specific targets.

Differential Revision: https://phabricator.services.mozilla.com/D197521
2024-01-04 15:14:30 +00:00
James Graham
16fab22608 Bug 1868768 - Fix wpt metadata for changes, r=whimboo
Differential Revision: https://phabricator.services.mozilla.com/D197651
2024-01-04 15:05:58 +00:00
James Graham
d0cb78b53b Bug 1868768 - Fix handling of action_handler AttributeError, r=whimboo
Differential Revision: https://phabricator.services.mozilla.com/D195791
2024-01-04 15:05:57 +00:00
serge-sans-paille
7ca6ae234d Bug 1872889 - Disable symbol ordering warning r=aryx
We only generate a single orderfile and use it for each linked object,
which results in some symbols being listed while not belonging to that
particular object.

Differential Revision: https://phabricator.services.mozilla.com/D197621
2024-01-04 14:23:12 +00:00
Jihye Hong
41a95ae9a3 Bug 1868364 - Revert content-visibility-with-popover-top-layer-005.html and content-visibility-with-top-layer-005.html which cause regression r=cathiechen
Differential Revision: https://phabricator.services.mozilla.com/D196403
2024-01-04 14:10:56 +00:00
David Shin
a331540bea Bug 1871508 - Paper over intermittent timeouts on Linux + no-fission for has-complexity. r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D197594
2024-01-04 13:27:48 +00:00
Eliot Jacobs
9946a93d7e Bug 1843720 - Fixed typo in comment: extension.webextensions.remote to extensions.webextensions.remote. r=smaug DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D196903
2024-01-04 12:38:00 +00:00
Cosmin Sabou
38c01bc67f Backed out changeset 6b4168ad85d9 (bug 1872245) for causing several aboutdebugging test failures. 2024-01-04 14:24:39 +02:00
ffxbld
1d3fc58376 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - r=release-managers,diannaS
Differential Revision: https://phabricator.services.mozilla.com/D197656
2024-01-04 12:01:31 +00:00
Jonathan Kew
7d379bc9bd Bug 1872545 - Hoist color-font palette cache out of TextRunDrawParams to the nsPresContext or CanvasRenderingContext2D, for greater effectiveness. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D197463
2024-01-04 11:07:44 +00:00
Yannis Juglaret
c1aac4f429 Bug 1851889 - Create the broker alive mutex during sandbox initialization. r=bobowen
The sandbox IPC client/server communication protocol relies on a mutex
that clients can use to check if the broker process is still alive; e.g.
when a response takes more than one second to come. This mutex is owned
by a thread of the broker process and will be marked as abandoned when
that thread dies.

Clients assume that the broker alive mutex being abandoned means that
the whole broker process crashed. Therefore it is necessary that the
thread that owns the broker alive mutex lives as long as the whole
broker process, since clients cannot distinguish between the death of
this thread and the death of the whole broker process.

In upstream code, the broker alive mutex gets created during the first
call to SpawnTarget, which means that it is implicitly required that
this call occurs from a thread that lives as long as the broker process
will. Since we call SpawnTarget from the IPC launcher thread, which dies
during XPCOM shutdown, we are breaking this implicit requirement.

Therefore, this patch makes us create the broker alive mutex from the
main thread, during sandbox initialization. This ensures that clients
will not get disturbed by the death of the IPC launcher thread anymore.

Differential Revision: https://phabricator.services.mozilla.com/D197423
2024-01-04 10:34:43 +00:00
Yannis Juglaret
d7c5cb35bc Bug 1851889 - Undo temporary diagnostics code for prespawn CIG. r=bobowen
This patch removes the temporary diagnostics code that was added
to the chromium sandbox in bug 1869805 to investigate bug 1851889.

Differential Revision: https://phabricator.services.mozilla.com/D197422
2024-01-04 10:34:43 +00:00
serge-sans-paille
fd7b78a368 Bug 1870395 - gfxAlphaRecovery - Neon version r=jrmuizel,gfx-reviewers
Depends on D196459

Differential Revision: https://phabricator.services.mozilla.com/D196860
2024-01-04 10:11:51 +00:00
serge-sans-paille
0e607b2b3f Bug 1870085 - Generalize gfxAlphaRecovery simd implementation r=jrmuizel,gfx-reviewers
Also get rid of unused code in the process.

Differential Revision: https://phabricator.services.mozilla.com/D196459
2024-01-04 10:11:51 +00:00
Karandeep
0dccdeeb70 Bug 1852048 - Move address bar to search preferences. r=dao,fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D194895
2024-01-04 09:11:22 +00:00
James Graham
4626a0e9de Bug 1871425 - Ignore errors when cleaning up old wpt virtualenv, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D197578
2024-01-04 09:01:36 +00:00
James Graham
c8599d8da5 Bug 1871425 - Log non-JSON output from wpt lint, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D197577
2024-01-04 09:01:36 +00:00
André Bargull
bb8b503e8d Bug 1843824: Add test case. r=iain
Depends on D183714

Differential Revision: https://phabricator.services.mozilla.com/D183715
2024-01-04 08:59:38 +00:00
Julian Descottes
2bcea0365d Bug 1872245 - [devtools] Sort worker and extension targets alphabetically in about:debugging r=devtools-reviewers,ochameau
The debug targets are currently displayed in the order from the server, which makes it hard to find specific targets.

Differential Revision: https://phabricator.services.mozilla.com/D197521
2024-01-04 08:34:43 +00:00
Jan de Mooij
4387a3b625 Bug 1872666 - Remove OrderedDict code from YAML file loading. r=iain,profiler-reviewers,canaltinova
`mach` requires Python 3.7+ since bug 1734402, and Python 3.7 made preserving
dictionary insertion order an official part of the language.

Also use `safe_load` instead of `load` because it doesn't require a loader argument
and is safer (although it doesn't really matter for this use case).

Differential Revision: https://phabricator.services.mozilla.com/D197497
2024-01-04 08:28:17 +00:00
James Teow
cdab453613 Bug 1872158 - Refactor test code to adapt to the default categorization pref value - r=scunnane
Differential Revision: https://phabricator.services.mozilla.com/D197438
2024-01-04 07:14:55 +00:00
Mozilla Releng Treescript
6effd37401 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
es-MX -> 9ec4f4d865778bf4567b1428cbd87d9c659035e3
fy-NL -> 70f8912961ab057248075413291f645ba2216d16
nb-NO -> 5c3cfbfed797b24484dcb7950a900b2035665c37
pa-IN -> 33df765bfc986b1c94d49f4cb332269f71269b6b
sq -> 8f8d243d26e42ddde6a9af5db7659c9d646191df
tr -> 8ab65666b9308c3fbebc52bbc35c8b05efbc047c
2024-01-04 07:03:36 +00:00
Natalia Csoregi
6321fb8f75 Backed out changeset 199b3c24b8b4 (bug 1861445) for causing failures on browser_ext_slow_script.js CLOSED TREE 2024-01-04 07:53:21 +02:00
Kershaw Chang
22c76d88c3 Bug 1871134 - Skip test_https_record_override on windows and android, r=kershaw
This is the reason why this test failed on windows and android.
https://searchfox.org/mozilla-central/rev/05178ae3d8ed27d47b340094de52bd3f572a5e1d/netwerk/dns/nsHostResolver.cpp#238,241
Since this code is platform independent, I think it's fine to skip it on those two platforms.

Differential Revision: https://phabricator.services.mozilla.com/D197145
2023-12-22 09:57:04 +00:00
Jason Prickett
d2c463a5ae Bug 1868911 - Fix condprof failures by disabling message in tests r=omc-reviewers,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D197638
2024-01-04 05:02:37 +00:00
Dave Vandyke
407ec21c6d Bug 1861445 - Add the runtime.onPerformanceWarning WebExtension event r=zombie
When an extension's content script is very slow and causes a webpage
to hang noticeably, a warning banner is displayed to the user. It
would be useful to also notify the extension developer when that
happens, so that they can address the issue.

Let's add a new event runtime.onPerformanceWarning that can be
dispatched when the browser needs to warn an extension of runtime
performance issues. For now, let's just dispatch that event when the
slow extension warning banner is displayed to the user.

See also https://github.com/w3c/webextensions/issues/456

Differential Revision: https://phabricator.services.mozilla.com/D194708
2024-01-04 04:18:27 +00:00
alwu
6a1da274be Bug 1825142 - part9 : fix string leaking in testing. r=media-playback-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D197404
2024-01-04 04:13:05 +00:00
alwu
d5a1d5c67a Bug 1825142 - part8 : print error message. r=media-playback-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D197403
2024-01-04 04:13:05 +00:00
alwu
9974639220 Bug 1825142 - part7 : modify log messages. r=media-playback-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D197000
2024-01-04 04:13:04 +00:00
alwu
a071b55793 Bug 1825142 - part6 : enable the pref 'media.eme.playready.istypesupportedex'. r=media-playback-reviewers,jolin
The reason of introducing this pref was to fix the test failure in bug
1851914 where the PlayReady CDM did not return correct type support on
CI.

In D196509, we already changed our test to make it rely on our mock CDM
so that we don't need to worry about that failure. Therefore, we want to
re-enable this pref in order to get correct type support for PlayReady.

Differential Revision: https://phabricator.services.mozilla.com/D196510
2024-01-04 04:13:04 +00:00
alwu
07c9d08e7e Bug 1825142 - part5 : use mock CDM (clearkey) to test all supported key systems. r=jolin
Adding a test to test whether we can generate request via the MFCDM for
all supported key systems.

Differential Revision: https://phabricator.services.mozilla.com/D196509
2024-01-04 04:13:03 +00:00
alwu
7434df899e Bug 1825142 - part4 : load clearkey dll. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D196240
2024-01-04 04:13:03 +00:00
alwu
ee4631623c Bug 1825142 - part3 : implement Media Foundation ClearKey CDM in an external dll. r=jolin
This patch implements most functionalities for Media Foundation ClearKey
CDM, except the decryption part which will be implemented in bug 1870722
because there are still some unknown crashes happening during EME
playback we need to address.

Having this clearkey CDM allows us to start testing EME playback for the
media engine. Currently we only have very limited test coverage for
that.

Differential Revision: https://phabricator.services.mozilla.com/D174991
2024-01-04 04:13:03 +00:00
alwu
617b217e4d Bug 1825142 - part2 : use RelaxedAtomicBool for the pref 'media.clearkey.test-key-systems.enabled'. r=media-playback-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D174988
2024-01-04 04:13:02 +00:00
alwu
08fbf00e60 Bug 1825142 - part1 : use Media Foundation Clearkey CDM when the pref is on. r=jolin
If the pref is on, we would use Clearkey CDM in the MFCDM process, not
the one in the GMP process. That is only used for testing.

Differential Revision: https://phabricator.services.mozilla.com/D174986
2024-01-04 04:13:02 +00:00
alwu
35fe5d5edc Bug 1828018 - move clearkey implementation out from the gmp-clear folder for the reusing purpose. r=aosmond
We're going to implement a Media Foundation based ClearKey CDM which
also needs to have same ability of our currnet GMP ClearyKey. In order
to avoid code duplication, this patch move the Clearkey implementation
out from the gmp-clearkey folder, and make them a library for the reuse
purpose.

Differential Revision: https://phabricator.services.mozilla.com/D175434
2024-01-04 04:13:01 +00:00
Andrew Osmond
209acda515 Bug 1872956 - Avoid copying document URI in nsLayoutUtils::PaintFrame unless logging. r=layout-reviewers,tnikkel
Most of the time, we don't need to call Document::GetDocumentURI in
nsLayoutUtils::PaintFrame, as it is only used when we are logging or
dumping to the console. We should avoid calling it because this might be
quite large in the case of data URIs and result in OOM crashes. This is
most commonly observed with rasterizing SVG images.

Differential Revision: https://phabricator.services.mozilla.com/D197637
2024-01-04 02:54:49 +00:00
Tomislav Jovanovic
11996c6f38 Bug 1871991 - Required arguments after optional are not supported r=jesup
I reviewed all js callsites, and they always use all arguments,
so this should  be no-op.

Differential Revision: https://phabricator.services.mozilla.com/D197300
2024-01-04 02:06:08 +00:00
Joel Maher
5c9731796e Bug 1872765 - Fix label to s/cppunit/cppunittest/. r=taskgraph-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D197549
2024-01-04 01:39:13 +00:00