Commit Graph

800838 Commits

Author SHA1 Message Date
Mozilla Releng Treescript
f78290e336 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
da -> 2e7f937e2f8409ba8525986b7a08798aaf0e0b27
fi -> 433270def265c15f1c0c082148ccf20fc2113384
hu -> d6795607a4a80bf666b34cc18c72562423303ae8
it -> 81b12d188498fa459307bc06a9124f476381f3ee
kk -> 730a8e96f01684eedce7db0995a0cdd18b8e2314
nl -> d530826100a72d7a7ef622903ea5e3a3fa880e9c
tg -> 87925c0e1a4133b5c1070057a5513a8c33ca7174
tr -> 24179e96c206916f15ee475e7de00a26257ff63a
2022-07-07 19:05:34 +00:00
Ting-Yu Lin
dc7ac912b3 Bug 1323517 Part 7 - Fix the placement of an orthogonal float with an auto block-size. r=jfkthame
The old code in AddFloat() used to call nsBlockFrame::ComputeFloatISize() to
compute a float's inline-size, compare it with current line's available
inline-size, and determine whether FlowAndPlaceFloat() should be called.
However, it doesn't handle an orthogonal float with an auto block-size.

Luckily, FlowAndPlaceFloat() already has logic dealing with orthogonal
floats (bug 1141867), so this patch defers the decision to place a float below
the current line until the float's margin inline-size is computed in
FlowAndPlaceFloat().

Differential Revision: https://phabricator.services.mozilla.com/D151209
2022-07-07 19:01:56 +00:00
Ting-Yu Lin
b9cb8817f5 Bug 1323517 Part 6 - Change FlowAndPlaceFloat()'s return value to a tri-state enum. r=jfkthame
This patch is a preparation for the next part, and doesn't change the behavior
yet.

FlowAndPlaceFloat() is used to return true and false. This patch changes its
return value `true` to `PlaceFloatResult::Placed` and `false` to
`PlaceFloatResult::ShouldPlaceInNextContinuation`.

In the next part, we'll move the logic dealing with "below the current line
floats" into FlowAndPlaceFloat(), and make it return
`PlaceFloatResult::ShouldPlaceBelowCurrentLine`.

Differential Revision: https://phabricator.services.mozilla.com/D151208
2022-07-07 19:01:56 +00:00
Ting-Yu Lin
48a466967c Bug 1323517 Part 5 - Improve the available size computation for reflowing a float. r=jfkthame
First of all, `nsBlockFrame::AdjustFloatAvailableSpace()` is misleading. It
doesn't adjust the argument `aFloatAvailableSpace` at all, nor does it use any
fields in nsBlockFrame. It simply returns the available space in the parent
block's content area. Thus, I move it into BlockReflowState, and have it return
the available size rather than a rect because a size is sufficient for reflowing
a float.

Also, nsBlockFrame::ReflowFloat() only cares about the available size, but not
the position of the available space, so it is sufficient to pass a LogicalSize
computed by the new method ComputeAvailableSizeForFloat().

In FlowAndPlaceFloat(), there is a loop searching for a wide enough band to
place the float. We don't need to adjust availSize every time mBCoord is changed
in the loop. We can just call ComputeAvailableSizeForFloat() to get a new
available size before reflowing the float in the `!earlyFloatReflow` branch.

This patch shouldn't change the behavior.

Differential Revision: https://phabricator.services.mozilla.com/D151207
2022-07-07 19:01:56 +00:00
Ting-Yu Lin
70e03e7368 Bug 1323517 Part 4 - Pass a dummy rect into ReflowBlock() when reflowing a float. r=jfkthame
This is a preparation for the next part.

Differential Revision: https://phabricator.services.mozilla.com/D151206
2022-07-07 19:01:55 +00:00
Ting-Yu Lin
9727d0b740 Bug 1323517 Part 3 - Rename GetLowestFloatTop to LowestFloatBStart. r=jfkthame
Both the method's documentation and implementation already use logical
coordinate.

Differential Revision: https://phabricator.services.mozilla.com/D151205
2022-07-07 19:01:55 +00:00
Ting-Yu Lin
0b0c4753f9 Bug 1323517 Part 2 - Remove float debug log that requires manual #define. r=jfkthame
These are small printf statements that are not build by CI, which increase
maintenance burden.

Differential Revision: https://phabricator.services.mozilla.com/D151204
2022-07-07 19:01:54 +00:00
Ting-Yu Lin
ed00bfdbb9 Bug 1323517 Part 1 - Remove a duplicate assertion, and assert a fresh reflow status in ReflowFloat(). r=jfkthame
In FlowAndPlaceFloat(), condense two identical assertions about float frame
parent into one.

FlowAndPlaceFloat() calls ReflowFloat() only once, either an early reflow (when
`earlyFloatReflow` is `true`) or a late reflow (when `earlyFloatReflow` is
`false`), so the reflow status is always fresh.

Differential Revision: https://phabricator.services.mozilla.com/D151203
2022-07-07 19:01:54 +00:00
Luca Greco
c2e2ac2e01 Bug 1777487 - Only query active StreamFilters if webRequestBlocking permission is granted and prevent race with extension shutdown. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D150753
2022-07-07 18:55:38 +00:00
Neil Deakin
307cdb4029 Bug 1773894, special-case some extensions when downloading them, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D150386
2022-07-07 18:51:09 +00:00
Tom Ritter
b66abd2909 Bug 1778505: Remove the temporary pref sanitization prefs r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D151289
2022-07-07 18:40:59 +00:00
Boris Chiou
74f6246cda Bug 1775327 - Part 3: Do normalization for NormalizedTiming(). r=firefox-animation-reviewers,birtles
This implements the normalization of the specified time, defined in
[web-animations-2]:
https://drafts.csswg.org/web-animations-2/#normalize-specified-timing.
However, it is possible to update this, based on the spec issue:
https://github.com/w3c/csswg-drafts/issues/4862.

For now, we just do normalization for delay, end delay, and
iteration duration based on the end time. And make sure the end time is
equal to the timeline duration.

Differential Revision: https://phabricator.services.mozilla.com/D149685
2022-07-07 18:33:42 +00:00
Boris Chiou
db1b58d707 Bug 1775327 - Part 2: Fix playing finished scroll animation on reversing scrolling. r=firefox-animation-reviewers,birtles
We have to make sure the scroll animations is still responsive at
boundaries even if it's playstate is finished.

This patch includes the update of UpdateFinishedState() to match the
spec, and make sure we still tick scroll animations at finished play state.

Getting a finished state might be strange for scroll animations, and this
might be a spec issue. However, for consistency with JS-generated animations,
we'd like to align the behaviors with other browsers, and make sure we are
still match the definition of finished state in the spec.

Besides, we have to use EndTime() on the compositor so
animation-iteration-count works properly.

Tests are in the last patch.

Differential Revision: https://phabricator.services.mozilla.com/D149940
2022-07-07 18:33:41 +00:00
Boris Chiou
ee025d7686 Bug 1775327 - Part 1: Make sure the scroll animation is still in active phase at boundaries. r=firefox-animation-reviewers,birtles
We have to introduce "at progress timeline boundary" which is defined in
web-animations-2 [1]. We need this to make sure the scroll animations
do not go into before phase or after phase.

The test of fill-mode should be together with delay, so I'd like to add the
tests in the last patch.

[1] https://drafts.csswg.org/web-animations-2/#at-progress-timeline-boundary

Differential Revision: https://phabricator.services.mozilla.com/D149684
2022-07-07 18:33:41 +00:00
David Shin
309272c871 Bug 1778533 - Remove accidental *.orig commits. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D151296
2022-07-07 17:48:38 +00:00
Meg Viar
e228beb9db Bug 1778525 - Remove progress bar styling from AboutWelcome defaults r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D151290
2022-07-07 17:18:19 +00:00
Harveer Singh
24871b6adf Bug 1774467: Fixed bug where premature shutdown of dedicated worker could lead to browser crash. r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D151288
2022-07-07 17:13:56 +00:00
Jan de Mooij
710fefa5e0 Bug 1754699 - Don't use the watchtower testing callback for swap. r=iain
Swapping objects is complicated and calling arbitrary JS adds a lot of additional
complexity.

Differential Revision: https://phabricator.services.mozilla.com/D151269
2022-07-07 16:40:22 +00:00
Jamie Nicol
75236a237a Bug 1778150 - Override UV rect for cs_scale when source is external texture. r=gfx-reviewers,nical
In webrender, external textures provide an override UV rect which is
not known until during rendering when the texture is actually
resolved. For brush shaders this value is automatically read from the
GPU cache, but for other shaders the UVs are passed as instance
attributes. Currently we use the overridden UV rect correctly for the
composite shader, but not the cs_scale shader.

On Android devices which do not support the
GL_OES_EGL_image_external_essl3 extension, the cs_scale shader is used
to render video in some cases. Because we were not handling the
texture's UV rect correctly, video was being rendered upside down on
some websites as a result.

This patch makes us manually override the scale shader's instance
data's source_rects when the source is an external
texture. Additionally, the cs_scale shader needs adapted to handle the
case where the UV rect is inverted.

Differential Revision: https://phabricator.services.mozilla.com/D151233
2022-07-07 16:38:21 +00:00
Robert Longson
1c3f01bcb5 Bug 1738701 - Fix getNumberOfChars for tspan and textPath elements r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D151164
2022-07-07 16:38:20 +00:00
Jon Coppeard
ec32b38edb Bug 1778439 - Don't assert whether an evaluation error has been set in the shell's ModuleObject.evaluationError getter r=arai
This makes this return undefined if there has been no error set, in line with
the other shell getters.

Differential Revision: https://phabricator.services.mozilla.com/D151227
2022-07-07 16:31:03 +00:00
Emilio Cobos Álvarez
51ac1d4fce Bug 1676952 - Fix HTMLImageElement.x/y to match the spec. r=emilio
Per https://drafts.csswg.org/cssom-view/#extensions-to-the-htmlimageelement-interface:

> The x attribute, on getting, must return the x-coordinate of the left
> border edge of the first CSS layout box associated with the element,
> relative to the initial containing block origin, ignoring any
> transforms that apply to the element and its ancestors, or zero if
> there is no CSS layout box.

But we were using GetClosestLayer which stops at the first abspos
containing block or scroll frame.

Differential Revision: https://phabricator.services.mozilla.com/D151263
2022-07-07 16:28:51 +00:00
Jan de Mooij
5437fd0ca6 Bug 1778301 - Replace bogus assertion. r=jonco
The object can have sparse elements because `key.isInt()` only checks for
integers up to `INT32_MAX`. Replace it with a check for dense-elements.

Differential Revision: https://phabricator.services.mozilla.com/D151265
2022-07-07 16:24:15 +00:00
Sarah Clements
ecf05718bb Bug 1774168 - Add empty list placeholder and collapsible container to Tab Pickup r=sfoster,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D150738
2022-07-07 16:08:07 +00:00
Tom Ritter
e9549322b8 Bug 1700396: Bump updatebot to get the blocking bug fix r=jewilde
Differential Revision: https://phabricator.services.mozilla.com/D151148
2022-07-07 15:37:39 +00:00
Geoff Brown
e94eea3418 Bug 1677557 - Remove gecko_migration.py; r=jlorenzo
Remove unused mozharness script. See the discussion in
https://phabricator.services.mozilla.com/D97200
I can find no in-tree references to gecko_migration.py, but
'mach try release' still uses some of the merge_day configs,
https://searchfox.org/mozilla-central/rev/3e1a721bce1da3ae04675539b39a4e95b25a046d/tools/tryselect/selectors/release.py#130
I removed the configs not matching the choices at
https://searchfox.org/mozilla-central/rev/3e1a721bce1da3ae04675539b39a4e95b25a046d/tools/tryselect/selectors/release.py#44

Differential Revision: https://phabricator.services.mozilla.com/D151154
2022-07-07 15:11:07 +00:00
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