Commit Graph

801816 Commits

Author SHA1 Message Date
Stephen A Pohl
a945096f93 Bug 1773752: Remove more workarounds for old macOS SDKs. r=mstange,media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D151532
2022-07-18 17:08:59 +00:00
Dan Robertson
8559c5bb57 Bug 1780018 - Fix the link for reftests docs in APZ docs. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D152030
2022-07-18 16:57:32 +00:00
Jon Coppeard
0c73ddaece Bug 1779833 - Part 3: Testcase to trace store buffer entries that point to freed memory r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D152039
2022-07-18 16:05:11 +00:00
Jon Coppeard
ae06d1f167 Bug 1779833 - Part 2: Fix places were post barriers were still applied to nursery allocated Map objects r=jandem
The problem was that we did not apply post barriers uniformly. For nursery
objects, bug 1779733 removed post barriers from set operations and the
finalizer. However they could still fire when the table was resized by a
removal. This could push store buffer entries that pointed into hash table
storage and which were not removed when the storage was resized again by a set.
This lead to use after free.

The patch improves things by adding nurseryTable and tenuredTable methods which
return a pointer to the table with the appropraite barriers depending on
whether the map object itself is tenured or not. The getData method remains and
returns a const pointer, so can't invoke any write barriers.

Operations that can mutate the map have to handle both nursery and tenured maps.

Differential Revision: https://phabricator.services.mozilla.com/D152035
2022-07-18 16:05:11 +00:00
Jon Coppeard
d1a87820d3 Bug 1779833 - Part 1: Split ordered hash table iteration into two classes to allow iteration of const tables r=jandem
This adds MutableRange and moves methods that can mutate the table into it. It
then allows us to create Range iterators for const tables. The range classes
still hold a non-const pointer to the table internally.

Differential Revision: https://phabricator.services.mozilla.com/D152034
2022-07-18 16:05:10 +00:00
Marco Bonardo
d9b7269a4a Bug 1743263 - Disable browser_download_spam_protection.js again on Linux 64. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D152032
2022-07-18 16:04:52 +00:00
Morgan Reschenberg
e8b96a564c Bug 1778550: Trim whitespace on mozAcc titles, prune empty mozTextLeafAccs from tree r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D151328
2022-07-18 15:48:17 +00:00
smolnar
dbaa55f2e3 Backed out 4 changesets (bug 1756057) for causing xpc failures in toolkit/components/glean/tests/xpcshell/test_FOGInit.js CLOSED TREE
Backed out changeset 9a0c99591eb4 (bug 1756057)
Backed out changeset 414e2fb866f2 (bug 1756057)
Backed out changeset f56dc6857da7 (bug 1756057)
Backed out changeset 76096ec38942 (bug 1756057)
2022-07-18 18:51:20 +03:00
Julian Descottes
cc08062262 Bug 1779972 - [devtools] Remove duplicated and unused ids in the Edit and Resend panel r=nchevobbe
Depends on D152008

Spotted a few HTML ids which were used in loops or shared components, and ended up duplicated

Differential Revision: https://phabricator.services.mozilla.com/D152060
2022-07-18 15:12:30 +00:00
Julian Descottes
2e66a46043 Bug 1779972 - [devtools] Add a tooltip for Edit and Resend names and values r=nchevobbe
Depends on D152006

Forcing name and values to one line, we should add a tooltip to show the whole content

Differential Revision: https://phabricator.services.mozilla.com/D152008
2022-07-18 15:12:29 +00:00
Julian Descottes
439f8332a1 Bug 1779972 - [devtools] Force edit and resend panel lines on a single line when not editing r=bomsy,nchevobbe
Each line of the edit and resend panel should no longer grow when resizing the panel
But when editing, we fallback to multiline

Differential Revision: https://phabricator.services.mozilla.com/D152006
2022-07-18 15:12:29 +00:00
André Bargull
74b0626d93 Bug 1779997 - Part 2: Move js_fputs to the file of its single caller. r=mgaudet
`js_fputs` is only used in "UbiNodeShortestPaths.cpp". Let's move it into that
file, so we can remove the `<stdio.h>` include from "Text.h".

Drive-by change:
- Remove the unused `AutoSuppressGC` using declaration from "Text.cpp".

Depends on D152015

Differential Revision: https://phabricator.services.mozilla.com/D152016
2022-07-18 15:02:39 +00:00
André Bargull
50f41fc47a Bug 1779997 - Part 1: Remove no longer used functions after TraceLogger removal. r=mgaudet
`FileEscapedString` was only used by TraceLogger. The `EscapedStringPrinter` function
accepting `const char*` was only used by `FileEscapedString`.

After the removal of `FileEscapedString`, "util/Text.h" no longer needs to include
"vm/Printer.h" and instead can use a forward declaration for `GenericPrinter`.

Also remove the unused fwd declaration of `StringBuffer` and then add the missing
fwd declaration in "StringType.h".

Differential Revision: https://phabricator.services.mozilla.com/D152015
2022-07-18 15:02:39 +00:00
Thomas Wisniewski
e190911e47 Bug 1771783 - tweak the SmartBlock Firebase shim to work around issues introduced after bug 1776109 and to also support zone.js as needed in bug 1778993; r=ksenia,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151986
2022-07-18 15:02:14 +00:00
Brad Werth
6736828278 Bug 1778187: Explicitly store tile cache background color and backdrop rect. r=gw
This patch solves a performance problem and a semantic problem introduced
in Bug 1773109. That Bug changed the term tile cache 'backdrop' to mean
two distinct things:

1) An opaque region spanning the entire tiling area (the sole original
meaning).
2) An opaque region spanning the visible area.

Presently the code tries and fails to maintain both of those meanings in the
BackdropInfo structure. The problem arises when the tiling backdrop is one
color and the visible backdrop is a different color. There's only one color in
the structure! The existing code attempts to circumvent this by setting the
tile cache background_color for the tiling color, and that's slow. Even if it
wasn't slow, the opaque_rect is set for the tiling area instead of the actual
backdrop area, which is semantically confusing, and could lead to incorrect
draw on platforms that support native color layers.

This patch addresses these issues by adding a spanning_opaque_color to the
BackdropInfo structure, which will only be set when there is a backdrop that
covers the tiling area. That color can be used as a clear color for the slice
tiles, when set. This patch also adds a backdrop_rect which indicates the area
of the actual backdrop, if set. This backdrop_rect is used to size the native
color layers, if supported by the compositor.

Differential Revision: https://phabricator.services.mozilla.com/D151942
2022-07-18 15:00:27 +00:00
Alexandre Poirot
890956dcd2 Bug 1619296 - [devtools] Make the TargetCommand populate its own redux store. r=nchevobbe
This allows to pull out target management code out from toolbox back to TargetCommand.
And then allows to more easily share this store in the context of the browser console,
where there is no toolbox.

This is also an interesting example on how commands may populate redux store directly
so that we avoid having each panel translate commands's event into actions.

An alternative here, would be to introduce some generic layer between commands and redux.
Which would be the glue between a command and populating a store.

Differential Revision: https://phabricator.services.mozilla.com/D151493
2022-07-18 14:54:43 +00:00
pmcmanis
564d06ab60 Bug 1696388 - Add tests for labled metric accessors including custom accessors for JS style accessors r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D151922
2022-07-18 14:53:19 +00:00
Andrew Osmond
01f1eb1a66 Bug 1779935 - Ensure GradientCache lookup and insertion are atomic. r=gfx-reviewers,lsalzman
There are potential races between insertion of the same gradient into
the cache on different threads, as well as acquiring a strong reference
to the GradientStops object racing with the expiration timer.

Differential Revision: https://phabricator.services.mozilla.com/D151981
2022-07-18 14:43:16 +00:00
Jonathan Watt
20f83ae7db Bug 1749598 p2 - Stop synchronizing the print_printer preference to content processes. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D150099
2022-07-18 14:34:27 +00:00
Jonathan Watt
c0ea877a65 Bug 1749598 p1 - Stop reading the last used printer name in content processes. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D150098
2022-07-18 14:34:27 +00:00
Chris H-C
7b2f38b3b3 Bug 1756057 - Write a rust-in-gtest instrumentation test for FOG r=janerik
Now that we're no longer testing FOG init instrumentation via rust-in-gtest, we
need a new thing to test in this manner or we'll delete this code and (in my
case) completely forget how we used to do this.

So let's replace the real instrumentation test with a boring one that doesn't
actually require all the boilerplate, but isn't harmed by it either.

Depends on D147450

Differential Revision: https://phabricator.services.mozilla.com/D147451
2022-07-18 14:24:33 +00:00
Chris H-C
e11473aa2e Bug 1756057 - For GTest create FOGFixture for ensuring FOG is properly set up for your test case r=janerik
Depends on D147449

Differential Revision: https://phabricator.services.mozilla.com/D147450
2022-07-18 14:24:33 +00:00
Chris H-C
b4a877fed5 Bug 1756057 - In GTest have FOG init when the runner runs, instead of in some random test r=janerik
Depends on D147448

Differential Revision: https://phabricator.services.mozilla.com/D147449
2022-07-18 14:24:32 +00:00
Chris H-C
41067177bd Bug 1756057 - Move FOG init instrumentation test to xpcshell. r=janerik
This instrumentation test has been disabled since bug 1763474 because delaying
init to this test meant that the preinit queue would overflow.

Because GoogleTest runs all at once and in its own decided order, we shouldn't
write any test that depends on FOG init happening at a specific time unless we
make it happen before the test suite even runs.

...and if we do that, the test resets that we perform in between will
obliterate the value in the init instrumentation, meaning we can't test it
anyway.

Note also that we skip-OK this test near local 4AM in case a properly-but-
inconveniently-timed "metrics" ping clears the value between FOG init and the
test run.

Now I thought we could put this in mochi, but it turns out that we reuse
browsers between test files. This means previous files' init of FOG and wiping
of all data causes the test to permafail when not run in isolation.

So here we are in xpcshell where we control init ourselves.

Differential Revision: https://phabricator.services.mozilla.com/D147448
2022-07-18 14:24:32 +00:00
Antonin LOUBIERE
fa71140041 Bug 1766669 - When closing last tabs of multiple windows, don't restore them on restart. r=Gijs
After closing last tabs of multiple windows, only if we don't use session restore we restore them.

Differential Revision: https://phabricator.services.mozilla.com/D145112
2022-07-18 14:00:01 +00:00
Tom Ritter
e9d102607b Bug 1778629: Add zstandard to the updatebot image r=jewilde
Depends on D151844

Differential Revision: https://phabricator.services.mozilla.com/D151845
2022-07-18 13:50:54 +00:00
smolnar
91de7431d2 Merge mozilla-central to autoland. a=merge 2022-07-18 16:36:52 +03:00
Benjamin VanderSloot
a432484b69 Bug 1779881 - Turn on APS for TCP tests, even when the browser config disables it, r=anti-tracking-reviewers,timhuang
This is necessary because we haven't enabled APS in Beta yet and browser_partitionedIndexDB.js relies upon APS.
We want to clear up this "central as beta" breakage before the next Beta release.

Differential Revision: https://phabricator.services.mozilla.com/D152020
2022-07-18 13:34:14 +00:00
smolnar
f6a2ef2f02 Backed out changeset 491e6ce8da15 (bug 1777604) for causing bug 1779968. CLOSED TREE 2022-07-18 16:27:31 +03:00
Gijs Kruitbosch
e00e722239 Bug 1773520 - add vscode build backend by default if vscode is installed, r=firefox-build-system-reviewers,nalexander,glandium
Differential Revision: https://phabricator.services.mozilla.com/D150147
2022-07-18 13:14:23 +00:00
ffxbld
5c3ca70147 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=diannaS
Differential Revision: https://phabricator.services.mozilla.com/D152019
2022-07-18 13:01:12 +00:00
Tiaan Louw
ba1631e81a Bug 1546612 - caretPositionFromPoint does not take iframe transformation into account r=emilio
Using nsLayoutUtils::TransformPoint instead of going through the widget takes the iframe's
transformations into account.

Differential Revision: https://phabricator.services.mozilla.com/D151995
2022-07-18 12:57:40 +00:00
Butkovits Atila
214396c0b6 Bug 1775753 - disable browser_openImport.js on macOS for frequent failures. r=jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D151429
2022-07-18 12:37:12 +00:00
smolnar
aad7ba8a33 Backed out 2 changesets (bug 1777198) for causing leakcheck failures. CLOSED TREE
Backed out changeset 1bf944a0828d (bug 1777198)
Backed out changeset 05afbf32acea (bug 1777198)
2022-07-18 15:54:46 +03:00
smolnar
1888800945 Bug 1767358 - Fix lint failure in uriloader/exthandler/tests/unit/test_handlerService.js r=emilio 2022-07-18 15:52:22 +03:00
Nicolas Chevobbe
378245e250 Bug 1779043 - [devtools] Fix jumping to media query in inline sheets. r=jdescottes.
We directly pass the editor stylesheet in the `location` parameter that is passed
to `jumpToLocation`.

`jumpToLocation` wasn't covered in any test, so we modify `browser_styleeditor_media_sidebar.js`
to add coverage for it.
This is also testing Bug 1779180 which is in the same stack.

Differential Revision: https://phabricator.services.mozilla.com/D151597
2022-07-18 12:13:56 +00:00
Nicolas Chevobbe
1e5e7186d7 Bug 1779180 - [devtools] Replace usages of InspectorUtils.getRuleLine with InspectorUtils.getRelativeRuleLine. r=jdescottes.
For <style> elements, `getRelativeRuleLine` gives us the position of the rule
inside a stylesheet, when `getRuleLine` gives the position of the rule relatively
to the whole HTML source.
The former is more accurate for us when we want to display such line number in
DevTools UI (for example in the StyleEditor media query sidebar).

Test will be added in next patch of this queue.

Differential Revision: https://phabricator.services.mozilla.com/D151596
2022-07-18 12:13:55 +00:00
Emilio Cobos Álvarez
780d0666b4 Bug 1767358 - Change pref rather than environment in test_handlerService.
MANUAL PUSH: Trivial test fix CLOSED TREE
2022-07-18 14:20:18 +02:00
Emilio Cobos Álvarez
7c1ba7092c Bug 1767358 - Cache mime/mailcap file location. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D151919
2022-07-18 11:35:34 +00:00
Myeongjun Go
ff40390107 Bug 1770152 - Enable perfstats for windows Browsertime essential tests r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151624
2022-07-18 11:23:49 +00:00
Bernard Igiri
c41b225781 Bug 1779210 - Block outdated Colorways from showing in Firefox View r=Gijs
Added check to block outdated Colorways from showing in Firefox View.

Differential Revision: https://phabricator.services.mozilla.com/D151970
2022-07-18 11:21:56 +00:00
André Bargull
91f0cd47d6 Bug 1773266: Correctly handle zero count when inlining slice for inline arguments. r=iain
Don't assume non-zero number of actual arguments means `count` must be larger than zero.

Differential Revision: https://phabricator.services.mozilla.com/D148649
2022-07-18 11:13:07 +00:00
Jens Stutte
416238d1b5 Bug 1777198 - Cancel content JS execution on quit-application-granted or on normal content process shutdown. r=smaug
We want to signal content processes to cancel content JS unconditionally on shutdown.
In the case of parent shutdown this has to happen as early as "quit-application-granted", given that both extensions and session storage shutdown rely on the possibility to interact with content processes (which is not possible when they are inside long running JS).
In addition in the case of a normal child shutdown we cancel content JS execution, too.
For now we put this behind the pref "dom.abort_script_on_child_shutdown" which remains default off.

Depends on D150539

Differential Revision: https://phabricator.services.mozilla.com/D150598
2022-07-18 10:56:41 +00:00
Jens Stutte
033351d249 Bug 1777198 - Have a long running content JS shutdown hang test. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D150539
2022-07-18 10:56:40 +00:00
Hubert Boma Manilla
15ba96c004 Bug 1764349 - [devtools] Add clear functionality for network resources r=ochameau
Enable clearing of network resources on all layers(frontend, resource layer, server) when the
user click the clear button.

Differential Revision: https://phabricator.services.mozilla.com/D148694
2022-07-18 10:13:58 +00:00
Emilio Cobos Álvarez
b3e37c1628 Bug 1767358 - Clean-up logging in uriloader/exthandler. r=Gijs
This allows logging in static functions. Also add missing includes.

Differential Revision: https://phabricator.services.mozilla.com/D151920
2022-07-18 10:07:02 +00:00
Gijs Kruitbosch
2660d2c8a6 Bug 1768671 - force append '.pdf' for pdf blob downloads displayed inline if it's missing, r=marco
Differential Revision: https://phabricator.services.mozilla.com/D151890
2022-07-18 09:53:31 +00:00
Tooru Fujisawa
9948edffdf Bug 1779927 - Reuse existing ChromeUtils.defineESModuleGetters when converting lazy getters. r=Standard8
When converting lazy getter calls, if the previous/next statement is
`ChromeUtils.defineESModuleGetters`, add properties into it, instead of
converting the lazy getter call into `ChromeUtils.defineESModuleGetters`
or creating new `ChromeUtils.defineESModuleGetters` call.

Differential Revision: https://phabricator.services.mozilla.com/D151980
2022-07-18 09:22:39 +00:00
Jari Jalkanen
e354e38307 Bug 1759152 - Expose file system to workers. r=dom-storage-reviewers,jesup,janv
Depends on D149983

Differential Revision: https://phabricator.services.mozilla.com/D140862
2022-07-18 09:18:27 +00:00
smolnar
21276b3980 Backed out changeset a137e696f06a (bug 1779935) for causing wpt failures in html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.interpolate.alpha.worker.html CLOSED TREE 2022-07-18 11:11:06 +03:00