Commit Graph

800862 Commits

Author SHA1 Message Date
Dimi
d31f3e431d Bug 1728871 - P4. Check 'Version' in the remote setting record r=leplatrem
Depends on D136107

Differential Revision: https://phabricator.services.mozilla.com/D148650
2022-07-07 15:01:09 +00:00
Dimi
1c580a02a2 Bug 1728871 - P3. Add the URLCLASSIFIER_UPDATE_REMOTE_SETTING_RESULT telemetry r=gcp
We can use this telemetry to track the statistics of using
RemoteSettings to serve Safe Browsing data.
The can help us understand if we can roll out this feature to more users.

Depends on D135990

Differential Revision: https://phabricator.services.mozilla.com/D136107
2022-07-07 15:01:09 +00:00
Dimi
a181785400 Bug 1728871 - P2. Add UrlClassifierRemoteSettingsService testcases r=gcp
Depends on D135989

Differential Revision: https://phabricator.services.mozilla.com/D135990
2022-07-07 15:01:09 +00:00
Dimi
42eafaedd0 Bug 1728871 - P1. Add UrlClassifierRemoteSettingsService to serve update data over RemoteSettings r=gcp,leplatrem
This patch implements UrlClassifierRemoteSettingsService to get SafeBrowsing data (protocol v2)
from RemoteSettings instead of from the Shavar server. This is only used
by data provided by Mozilla.

To distinguish if the data should be coming from RemoteSettings or
Shavar, We added a custom scheme "moz-sbrs" to denote that the data should be
retrieved from Remote Setting. This is done by changing the value of pref
"browser.safebrowsing.provider.mozilla.updateURL" to something like
"moz-sbrf://tracking-protection-list". (Note that the hostname is not
used at this point).

The goal of this patch is to make the new architecture compatible with
the original Safe Browsing design. So we don't notify Safe Browsing
there is new data available (via "sync" event of RemoteSettings). We still follow
how Safe Browsing periodically checks whether there is a newer version of list.

Note.
This patch changes the flow comparing with how we usualy receive SafeBrowsing response from Shavar.
In Shavar case, the list data response usually comes with
"n:21600\ni:listname1\nu:redirectURL1\ni:listname2\nu:redirectURL2 ..." first.
And then we fetch the data again from the redirectURL for each list.

But in the current implementation, responses don't contain
redirectURL anymore (since we already have the data). So the mocked response
will contain all the data needed in one response.
For example:
"n:21600\ni:listname1\n:chunkdata1\ni:listname2\n:chunkdata2...".

Differential Revision: https://phabricator.services.mozilla.com/D135989
2022-07-07 15:01:08 +00:00
Thomas Wisniewski
ef66fca875 Bug 1777699 - Have the SmartBlock iasPET shim send a default parameter to all callbacks; r=ksenia,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151181
2022-07-07 14:55:04 +00:00
Cristian Tuns
d4e4ae35a5 Backed out 2 changesets (bug 1750576) for causing lint failures and build bustages. CLOSED TREE
Backed out changeset 21ede22c4113 (bug 1750576)
Backed out changeset be7493c6f3cb (bug 1750576)
2022-07-07 10:51:38 -04:00
James Graham
51e8eb3c8f Bug 1778083 - Enforce a single result per subtest for pytest results, r=webdriver-reviewers,jdescottes
Previously, if we got a test failure and an error during teardown, we'd end up with
multiple results for the same test. This just picks the final result for the test.

Differential Revision: https://phabricator.services.mozilla.com/D151007
2022-07-07 14:38:38 +00:00
Nicolas Silva
c2f7c229ec Bug 1750576 - Avoid passing raw strings in a couple of wgpu bindings entry points. r=emilio
Inspired by emilio's suggestion in the shader module API patch. This tries to be the most straightforward way to go from the strings coming from IPC to the ones consumed by wgpu.

Differential Revision: https://phabricator.services.mozilla.com/D151024
2022-07-07 14:35:29 +00:00
Nicolas Silva
8b76f3e498 Bug 1750576 - WebGPU shader module asynchronous CompilationInfo API. r=aosmond,emilio
This patch is a lot of plumbing for not that much functionality. The goal is to align CreateShaderModule's error reporting with the spec.
Creating a shader module is now a dedicated async IPDL message returning the compilation info so that it can be exposed as a promise by the WebGPU API.

Differential Revision: https://phabricator.services.mozilla.com/D146817
2022-07-07 14:35:28 +00:00
ffxbld
7863aace6c No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=diannaS
Differential Revision: https://phabricator.services.mozilla.com/D151241
2022-07-07 14:24:35 +00:00
Ted Campbell
c52ecadcf0 Bug 1776930 - Remove GC probes from telemetry n_buckets allowlists r=chutten
After Bug 1247260, the allow-list code was fixed to handle n_buckets == 100
which means the allowlist entries are no longer needed for a number of GC
metrics.

Depends on D150652

Differential Revision: https://phabricator.services.mozilla.com/D150653
2022-07-07 13:45:57 +00:00
Ted Campbell
f46f956405 Bug 1776930 - Add missing bug_numbers data for GC telemetry histograms r=jonco,chutten
Many SpiderMonkey GC telemetry metrics are old enough that the bug_numbers
metadata was not recorded in tree, so fix that finally.

Depends on D150651

Differential Revision: https://phabricator.services.mozilla.com/D150652
2022-07-07 13:45:57 +00:00
Ted Campbell
982740c274 Bug 1776930 - Remove deprecated fennec product from GC histogram telemetry r=chutten
Remove the unused product targets for SpiderMonkey telemetry to avoid avoid
confusion.

Differential Revision: https://phabricator.services.mozilla.com/D150651
2022-07-07 13:45:57 +00:00
Julian Descottes
d6eac88099 Bug 1778432 - [devtools] Guard against missing Services.profiler in Actor:_sendEvent r=nchevobbe
The Services object is replaced by a mock in the worker loader so Services.profiler might be undefined.

Differential Revision: https://phabricator.services.mozilla.com/D151211
2022-07-07 13:43:56 +00:00
Julian Descottes
c5f7c7111f Bug 1777296 - [devtools] Bail out of getAddonIdForWindowGlobal for geckoview windowglobals missing principal r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D151177
2022-07-07 13:34:30 +00:00
Bernard Igiri
f2a37376ae Bug 1776682 - Localize Colorway CTA in Firefox View r=dao,fluent-reviewers,flod
Applied Colorway localization from Bug 1770030 to Colorway CTA in Firefox View.

Differential Revision: https://phabricator.services.mozilla.com/D150862
2022-07-07 12:30:17 +00:00
Tooru Fujisawa
cdedb463df Bug 1778314 - Support system ESM in devtools loader. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D151212
2022-07-07 11:54:06 +00:00
Emilio Cobos Álvarez
2c2f20586e Bug 1778396 - Add color-mix to DevTools autocomplete. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D151180
2022-07-07 10:29:59 +00:00
Karl Tomlinson
54571ce8b0 Bug 1777902 don't change the size of system fonts when ui.textScaleFactor is set r=emilio
Depends on D150930

Differential Revision: https://phabricator.services.mozilla.com/D151111
2022-07-07 10:22:32 +00:00
Karl Tomlinson
e632bec9e0 Bug 1777902 update layout.css.devPixelsPerPx doc for text scale factor changes r=emilio
as of https://hg.mozilla.org/integration/autoland/rev/6e1cbabce0af

Differential Revision: https://phabricator.services.mozilla.com/D150930
2022-07-07 10:22:32 +00:00
Emilio Cobos Álvarez
d6817e2c7f Bug 1778281 - Don't override effective color-scheme if there's no theme. r=jdescottes
In the browser toolbox window, we include common.css, but we don't
apply the theme-dark/theme-light classes, so we end up overriding the
color-scheme to light.

Instead, only override color-scheme for theme-light/theme-dark, so that
context menus and so have the right appearance.

Differential Revision: https://phabricator.services.mozilla.com/D151131
2022-07-07 10:11:19 +00:00
Tooru Fujisawa
2cd557c226 Bug 1778336 - Support ChromeUtils.importESModule in newtab karma test. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D151143
2022-07-07 09:33:17 +00:00
Bogdan Szekely
01ec2c5a29 Backed out changeset 92e8dc7f36bd (bug 1775069) as requested by pbz CLOSED TREE 2022-07-07 12:48:16 +03:00
Bogdan Szekely
77ea4f6c1c Merge mozilla-central to autoland. CLOSED TREE 2022-07-07 12:44:46 +03:00
Cristian Tuns
a1f583dfe6 Merge autoland to mozilla-central. a=merge 2022-07-07 05:36:43 -04:00
Randell Jesup
7960ef17d7 Bug 1768050: Test request handler. r=jesup
Depends on D147273

Differential Revision: https://phabricator.services.mozilla.com/D149983
2022-07-07 09:08:58 +00:00
Randell Jesup
44a231d591 Bug 1768050: Move OPFS operations off PBackground r=janv,nika
Depends on D149260

Differential Revision: https://phabricator.services.mozilla.com/D147273
2022-07-07 09:08:57 +00:00
Marco Bonardo
927db0dcb3 Bug 1743263 - intermittent failure in browser_download_spam_protection.js. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D151085
2022-07-07 09:05:37 +00:00
Jan de Mooij
24e85929d6 Bug 1778304 part 2 - Remove JitExitOffsets. r=rhunt
Depends on D151125

Differential Revision: https://phabricator.services.mozilla.com/D151126
2022-07-07 08:27:50 +00:00
Jan de Mooij
5be93f3723 Bug 1778304 part 1 - Remove unnecessary code to restore frame pointer in GenerateImportJitExit. r=rhunt
The JIT ABI now preserves it.

Differential Revision: https://phabricator.services.mozilla.com/D151125
2022-07-07 08:27:50 +00:00
Jamie Nicol
0cffcc7253 Bug 1777952 - Namespace SurfaceTexture handles by the process they were allocated in. r=gfx-reviewers,geckoview-reviewers,aosmond,calu
When Surfaces/SurfaceTextures are allocated they are given a handle,
which is a monotonically increasing 32-bit integer. To render
Surfaces, we typically pass the Surface handle to the compositor,
which then looks it up in a map to find the corresponding
SurfaceTexture.

Following a GPU process restart, content may be left with stale
handles referencing SurfaceTextures which no longer exist. Once new
SurfaceTextures are allocated, these stale handles may reference new
SurfaceTextures with no relation to the old handle. This can lead to
rendering the wrong texture. Additionally, we may crash when
allocating "sync" SurfaceTextures, as the previous sync texture for a
certain handle may not have been released yet.

To fix this, this patch combines the existing handle with a new ID
uniquely identifying the process in which the SurfaceTexture was
allocated (or 0 for the parent process). We use a monotonically
increasing value rather than the pid to guard against the new GPU
process possibly having the same pid as the previous instance. We
combine these two 32-bit integers and use the resulting 64-bit integer
as the Surface handle.

Differential Revision: https://phabricator.services.mozilla.com/D150963
2022-07-07 08:12:55 +00:00
Jan de Mooij
423773ff84 Bug 1778077 part 4 - Call WasmSharedArrayRawBuffer's destructor to ensure the mutex is destroyed. r=sfink
This fixes a pre-existing issue: `Mutex` has a destructor so we should call it.

Depends on D151010

Differential Revision: https://phabricator.services.mozilla.com/D151016
2022-07-07 07:28:27 +00:00
Jan de Mooij
e83b79317b Bug 1778077 part 3 - Optimize non-Wasm SharedArrayBuffers. r=sfink
The Wasm-specific fields are moved from `SharedArrayRawBuffer` into a new derived class,
`WasmSharedArrayRawBuffer`. This is similar to how non-shared buffers use `WasmArrayRawBuffer`.

The non-Wasm allocation code now uses `calloc` instead of `mmap`. This is also more like
how non-shared buffers work.

These changes make the non-Wasm SABs a lot more lightweight. This will help fix bug 1777231
and similar issues.

Differential Revision: https://phabricator.services.mozilla.com/D151010
2022-07-07 07:28:27 +00:00
Jan de Mooij
bd87407a05 Bug 1778077 part 2 - Move dropReference call into dropRawBuffer. r=sfink
This ensures the buffer can still be used in dropRawBuffer before dropping the reference.

Depends on D151008

Differential Revision: https://phabricator.services.mozilla.com/D151009
2022-07-07 07:28:26 +00:00
Jan de Mooij
feafc9cbd2 Bug 1778077 part 1 - Inline SharedArrayRawBuffer::AllocateInternal into the two callers. r=sfink
This forks the non-Wasm and Wasm code paths, which will make it easier to simplify
the non-Wasm code in a later patch.

Differential Revision: https://phabricator.services.mozilla.com/D151008
2022-07-07 07:28:26 +00:00
Mozilla Releng Treescript
8d74ccc426 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
en-CA -> 9df2110bb7a53a54661c3ad7034efe7f2d79e819
es-CL -> adbe6ccdd34a8a56fd58b52d2ddf8b5d9b5df09f
et -> f3a0853f70719e3a6c355fe7ed08c6ec4c0089ae
ko -> 428a9236152ccb2523d5e9275c611c02c0e96e3d
nl -> 73586f60f2e17f3e1da321eb21f72bf779212ed1
2022-07-07 06:58:25 +00:00
Mike Hommey
7394482703 Bug 1778250 - Remove Remove-FlushViewOfFile-when-unmaping-gcda-files-clang-15.patch. r=firefox-build-system-reviewers,andi
The patch was applied upstream.

Differential Revision: https://phabricator.services.mozilla.com/D151097
2022-07-07 02:43:17 +00:00
scott
9101bb237c Bug 1778183 - Pocket newtab fixing utm params r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D151045
2022-07-07 01:27:48 +00:00
scott
647261e33a Bug 1776237 - Pocket newtab recent saves hide last item if on last row. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D150809
2022-07-07 01:27:33 +00:00
Butkovits Atila
da2b7986d0 Backed out changeset 8cc6f6f552a3 (bug 1772124) for causing failures at browser_103_preload.js. CLOSED TREE 2022-07-07 03:56:04 +03:00
Masayuki Nakano
b96601e6a0 Bug 1777903 - Add tentative WPT of handling line breaks in inline editing host r=m_kato
Browsers shouldn't insert `<div>` and `<p>` elements into inline elements such
as `<span>` even when it's `display` value creates a block format context since
it's invalid structure from point of view of HTML.  However, some browsers do
it.  Therefore, this test should make them fail.

The reason why this patch touches `editor-test-utils.js` is, it scans the
following `<script>` element's text with a bug.  So the change makes it does
not scan outside the editing host.

Differential Revision: https://phabricator.services.mozilla.com/D150991
2022-07-07 00:28:30 +00:00
Dão Gottwald
bcadb2ef4b Bug 1778280 - [Colorway Closet] Adjust sizing and positioning of various elements to better match the spec. r=amy
Differential Revision: https://phabricator.services.mozilla.com/D151115
2022-07-07 00:09:57 +00:00
Florian Quèze
d936ea3ff8 Bug 1778315 - Make power counter names more user friendly, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D151128
2022-07-06 23:36:46 +00:00
mleclair
2ff75f9613 Bug 1772124 - Added Glean metrics to track different type of resources for Early Hints r=dragana,mbucher,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D148741
2022-07-06 23:16:41 +00:00
Butkovits Atila
41fa540cb7 Bug 1771934 - Lint fix. a=fix. CLOSED TREE 2022-07-07 02:07:45 +03:00
Eitan Isaacson
1916ea7d90 Bug 1771934 - Unregister all SessionAccessibility accessibles when top doc is shut down. r=Jamie
The associated PresShell of the root doc can be used for retrieving the
SessionAccessibility. If the PresShell is about to go away, we should
unregister all the accessibles.

Differential Revision: https://phabricator.services.mozilla.com/D150661
2022-07-06 22:26:08 +00:00
Butkovits Atila
c12865c623 Backed out changeset c48a6a27843f (bug 1776841) for causing xpcshell failures at test_ext_web_accessible_resources_matches.js. CLOSED TREE 2022-07-07 01:47:08 +03:00
Dale Harvey
25e10844c0 Bug 1778327 - Ensure QuickActions show when entering Actions mode. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D151171
2022-07-06 21:59:10 +00:00
Hubert Boma Manilla
5f3826ec54 Bug 1778113 - Use thicker icons for Watch expressions and breakpoints r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D151023
2022-07-06 21:57:31 +00:00
Hubert Boma Manilla
53f8a54f71 Bug 1742774 - [devtools] Add button to remove all XHR Breakpoints r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D150351
2022-07-06 21:57:30 +00:00