Commit Graph

858594 Commits

Author SHA1 Message Date
Edgar Chen
3b1a417bd3 Bug 1854747 - Stop exposing the image data as file to clipboard; r=evilpie
Differential Revision: https://phabricator.services.mozilla.com/D189242
2023-10-06 13:17:52 +00:00
Sandor Molnar
1b033bae69 Backed out changeset 7c84c5fc7d00 (bug 1791079) for causing mochitest process crashes at @ RefPtr<mozilla::dom::WindowContext>::operator-> CLOSED TREE 2023-10-06 16:18:00 +03:00
fidelius
d0883d0dec Bug 1856287 - Do not use PROCESS_MODE_BACKGROUND_BEGIN to run the minidum-analyzer in the background on Windows r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D190259
2023-10-06 12:49:27 +00:00
Luca Greco
390d0b6377 Bug 1841444 - Return earlier from AddonRepository.backgroundUpdateCheck and reject AddonRepository._fetchPaged if application shutdown was already initiated. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D189236
2023-10-06 12:43:33 +00:00
serge-sans-paille
77302ddcae Bug 1854490 - get rid of dtlsidentity global constructor r=webrtc-reviewers,ng
Use nsLiteralCstring to store the default instead of an std::string, and
update interface appropriately.

We could go one step further and only use literal string to represent
algorithm instead of storing it in a nsCString at some point, but that
would slightly reduce the flexibility of current interface.

Differential Revision: https://phabricator.services.mozilla.com/D188888
2023-10-06 12:40:19 +00:00
Karandeep
76eb0e17eb Bug 1853910 - Remove Legacy Event Telemetry Dependencies. r=mak,extension-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D189558
2023-10-06 12:33:14 +00:00
Karandeep
b5b7981be6 Bug 1853910 - Remove Legacy Event Telemetry. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D188721
2023-10-06 12:33:14 +00:00
Timothy Nikkel
f4c2a9511e Bug 1857394. Enable layout/reftests/bugs/1743533-1.html 1743533-2.html with fuzz. r=emilio
This should be good enough to catch regressions. The main thing is we paint something in the fragments of the iframe on the second and following pages and this should catch it if we fail to.

Fuzz amounts are from an all reftests try run.

Differential Revision: https://phabricator.services.mozilla.com/D190246
2023-10-06 12:26:11 +00:00
Emilio Cobos Álvarez
d159aa561d Bug 1856755 - Implement an internal zoom: document value that forces effective zoom to 1. r=jfkthame
The name matches the value that webkit (but not blink) exposes to the
web. We don't expose it.

Filed https://github.com/w3c/csswg-drafts/issues/9435 for this.

Differential Revision: https://phabricator.services.mozilla.com/D190025
2023-10-06 12:20:20 +00:00
Emilio Cobos Álvarez
bb6ca40e99 Bug 1856755 - Add faster multiplication and division for fixed-point values. r=jfkthame,layout-reviewers
Even though I ended up not using the division code, it seems useful.

Differential Revision: https://phabricator.services.mozilla.com/D190024
2023-10-06 12:20:20 +00:00
CanadaHonk
953794b454 Bug 1791079 - Implement User Activation API r=dom-core,webidl,saschanaz,edgar
Rewrote internal user activation tree (spreading state to other elements)
logic to match HTML spec:
https://html.spec.whatwg.org/multipage/interaction.html#user-activation-processing-model

Added navigator.userActivation API to expose internal user activation.

Also fixed a WPT test to conform to spec (siblings are not activated),
see also spec issue: https://github.com/whatwg/html/issues/9831

Co-authored-by: Tom Schuster <evilpies@gmail.com>

Differential Revision: https://phabricator.services.mozilla.com/D185348
2023-10-06 12:16:17 +00:00
Robert Longson
a21d68d939 Bug 1402013 - stop calculating position for SVG elements that aren't governed by the CSS box model r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D190222
2023-10-06 12:04:14 +00:00
Frederic Wang
17a7c14d6e Bug 1855946 - Handle invalid at computed-value time custom properties. r=emilio
This patch improves handling of invalid at computed-value time custom
properties [1], properly using the initial or inherited values for
registered properties with a non-universal syntax. Existing tests at
registered-properties-inheritance.html are extended to cover more
situations mentioned in the specifications [1] [2].

[1] https://drafts.csswg.org/css-variables-2/#invalid-at-computed-value-time
[2] https://drafts.css-houdini.org/css-properties-values-api-1

Differential Revision: https://phabricator.services.mozilla.com/D189651
2023-10-06 12:03:17 +00:00
Frederic Wang
138e00de8e Bug 1855629 - Handling of custom properties when enumerating getComputedStyle(). r=emilio
After bug 1840478, non-inherited custom properties using their initial
values are represented as absent from `ComputedCustomProperties` in
order to save memory. Wherever the values of such properties are
requested, it is necessary to fallback to any registered initial value.
However, this makes difficult to properly enumerate custom properties
for exposure via the `CSSStyleDeclaration.item()` API and indeed our
current implementation only exposes the properties actually present in
`ComputedCustomProperties`.

Additionally, such a representation conflicts with pre-existent
representation of guaranteed-invalid values as absent values, causing
some issues e.g. bad handling of invalid at computed-value time [1] [2].

This patch changes `ComputedCustomProperties` so that registered initial
values are always stored in the `non_inherited` map, immediately fixing
the issue with `CSSStyleDeclaration.item()` and preparing follow-up
work on guaranteed-invalid values.

To avoid excessive increase of memory usage, the `non_inherited` map
becomes ref-counted. The associated Stylist contains an up-to-date
ComputedCustomProperties with registered custom properties that have
initial values, and the `non_inherited` map can generally just be
shallow-cloned from it.

A new test `get-computed-style-enumeration.html` is added to make sure
custom properties are correctly exposed when enumerating
`CSSStyleDeclaration` as a list. A similar but more restricted version
already exists: `cssstyledeclaration-registered-custom-properties.html`.
Two test cases are also added to `determine-registration.html` in order
to cover some issue previously detected during the review of
`get_custom_property_initial_values`.

[1] https://drafts.csswg.org/css-variables-2/#invalid-at-computed-value-time
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1855946

Differential Revision: https://phabricator.services.mozilla.com/D189999
2023-10-06 12:03:16 +00:00
Julien Cristau
61781e9abe Bug 1855152 - part 2: add macosx64-aarch64/debug build in CI. r=firefox-build-system-reviewers,taskgraph-reviewers,releng-reviewers,jmaher,glandium,ahal
Differential Revision: https://phabricator.services.mozilla.com/D189195
2023-10-06 11:52:21 +00:00
Julien Cristau
6b6a8e3657 Bug 1855152 - part 1: change treeherder platform/symbol for macos aarch64 builds. r=taskgraph-reviewers,jmaher
Use the platform to differentiate x64 and aarch64 builds, not the
symbol.  This makes add-on-devel and fuzzing builds match what we're
already doing for shippable and devedition.

Differential Revision: https://phabricator.services.mozilla.com/D190042
2023-10-06 11:52:20 +00:00
Jan de Mooij
7988d54778 Bug 1857237 - Use the external string cache also for the inline string path. r=jonco
In `NewMaybeExternalString` we have a fast path for short Latin1 strings. This case is
very common.

Changing the cache to handle these too is very effective: the `lookupInline` method
has a hit rate of at least 90% on Speedometer 3.

Differential Revision: https://phabricator.services.mozilla.com/D190206
2023-10-06 11:27:49 +00:00
Henrik Skupin
46bceb0b87 Bug 1785377 - [wdspec] Expect test "test_no_parent_browsing_context" to intermittently fail for slow running builds. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D190267
2023-10-06 11:18:59 +00:00
Olli Pettay
455b5d83ea Bug 1856545 - Try to utilize idle time more, r=farre
We can go through quite a few more timers these days, since timers are stored now in an array and iterating through that is fast.
Also, relying on timer value for another thread or low priority timers does prevent idle tasks to run in some cases, and now that more timers
are iterated through, that behavior can be tweaked.

For RefreshDriver this is taking the simple approach and just let idle tasks to run if RefreshDriver isn't ticking. We do start RefreshDriverTimer pretty
much always when something in DOM or layout is changing.

Differential Revision: https://phabricator.services.mozilla.com/D189909
2023-10-06 11:04:04 +00:00
Emilio Cobos Álvarez
fed4a076d6 Bug 1857340 - Fix GVariant reference confusion. r=stransky
Another bug caused by GObject floating references :')

The GVariant returned by builder_end() is floating, and the way
g_variant_builder_add_value works is that it _only_ takes a reference if
floating.

So basically if you have a RefPtr<GVariant> with a floating reference,
then pass it to g_variant_builder_add_value, the reference is "stolen",
but RefPtr doesn't know about it.

It really sucks.

Differential Revision: https://phabricator.services.mozilla.com/D190240
2023-10-06 10:51:36 +00:00
Sandor Molnar
b7c3f9f2cc Backed out changeset f0458ed00feb (bug 1854490) for causing build bustages on dom/media/webrtc/sdp/SdpAttribute.h CLOSED TREE 2023-10-06 13:16:52 +03:00
serge-sans-paille
7a61acd22b Bug 1854490 - get rid of dtlsidentity global constructor r=webrtc-reviewers,ng
Use nsLiteralCstring to store the default instead of an std::string, and
update interface appropriately.

We could go one step further and only use literal string to represent
algorithm instead of storing it in a nsCString at some point, but that
would slightly reduce the flexibility of current interface.

Differential Revision: https://phabricator.services.mozilla.com/D188888
2023-10-06 09:55:59 +00:00
anonymous0000007
e32fc64068 Bug 1856243 - Scheduling.cpp: using mozilla::TimeStamp; r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D190086
2023-10-06 09:17:06 +00:00
Jon Coppeard
334315689d Bug 1857218 - Part 6: Remove owner fields from individual store buffers r=sfink
We can refactor this so we don't need to store a back pointer to the owning
StoreBuffer in all the individual buffers.

Differential Revision: https://phabricator.services.mozilla.com/D190194
2023-10-06 08:36:55 +00:00
Jon Coppeard
fcfa1a036f Bug 1857218 - Part 5: Change NurseryChunk::poisonRange to take end offset rather than size r=sfink
In every caller it's simpler to pass in the end offset rather than the size.

Differential Revision: https://phabricator.services.mozilla.com/D190193
2023-10-06 08:36:55 +00:00
Jon Coppeard
ea4585ae48 Bug 1857218 - Part 4: Rename Nursery::setCurrentChunk() r=sfink
This renames setCurrentChunk to moveToStartOfChunk to make it clearer what's happening.

Differential Revision: https://phabricator.services.mozilla.com/D190192
2023-10-06 08:36:54 +00:00
Jon Coppeard
34ef5d5f01 Bug 1857218 - Part 3: Rename Nursery::setStartPosition() r=sfink
Reading this code I found I did not know what the position the start was being
set to. The patch renames this to make it clear that it's being set to the
current position.

Differential Revision: https://phabricator.services.mozilla.com/D190191
2023-10-06 08:36:54 +00:00
Jon Coppeard
551493433a Bug 1857218 - Part 2: Remove Nursery::spaceToEnd() r=sfink
This is only used by Nursery::committed() which can be simplified by
implementing it another way.

Differential Revision: https://phabricator.services.mozilla.com/D190190
2023-10-06 08:36:53 +00:00
Jon Coppeard
65f97c15d8 Bug 1857218 - Part 1: Rename Nursery::currentStartChunk_ and currentStartPosition_ r=sfink
These members specify the start of the nursery (usually they are zero, but can
be different in generational zeal mode). They are constant between collections.

Calling them 'current' implies that they change often and this could lead to
confusion with currentChunk, which does change between collections. It's
simpler to remove the 'current'.

Differential Revision: https://phabricator.services.mozilla.com/D190189
2023-10-06 08:36:53 +00:00
Ziran Sun
08eca17319 Bug 1838450 - Refine attribute handling. r=emilio
https://github.com/whatwg/dom/pull/1176
https://dom.spec.whatwg.org/#concept-element-attributes-change-ext
"attribute change steps"  at https://html.spec.whatwg.org/multipage/popover.html#attr-popover

Differential Revision: https://phabricator.services.mozilla.com/D181880
2023-10-06 08:06:54 +00:00
Nicolas Chevobbe
a9138ad00c Bug 1844062 - [devtools] Properly handle aria-pressed attribute on selector highlighter icon. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D189916
2023-10-06 07:52:29 +00:00
Sylvestre Ledru
cfcaf0ad1f Bug 1856795 - Enable readability-redundant-member-init r=linter-reviewers,ahal DONTBUILD
Depends on D190002

Differential Revision: https://phabricator.services.mozilla.com/D190008
2023-10-06 07:46:43 +00:00
anonymous0000007
47f944ce16 Bug 1855952 - nss_secutil.c: Resource leak: input r=andi
Differential Revision: https://phabricator.services.mozilla.com/D190110
2023-10-06 07:45:55 +00:00
James Graham
78f7639d4d Bug 1571426 - Read geckodriver port on startup for all wdspec tests, r=webdriver-reviewers,jdescottes
Instead of using get_free_port(), pass in 0 as the port number and
allow geckodriver to select a free port. Then read the port from the
geckodriver output at startup. This should prevent rare race
conditions where we happen to select a port that later turns out to be
used.

Differential Revision: https://phabricator.services.mozilla.com/D189927
2023-10-06 07:35:43 +00:00
James Graham
17743ef552 Bug 1571426 - Read geckodriver port number in fixture, r=webdriver-reviewers,jdescottes
Instead of passing in a port selected in the fixture, pass in 0 as the
port, allowing geckodriver to select the port, and then read the port
number from the utput in stdout.

This should prevent us trying to reuse an already bound port in
a race-free way.

Differential Revision: https://phabricator.services.mozilla.com/D189926
2023-10-06 07:35:43 +00:00
James Graham
1164415e99 Bug 1857193 - Make passing --port=0 select a free port, r=webdriver-reviewers,jdescottes
Previously this bound to a free port, but we weren't allowing
connections because we checked the Host header against the specified
port (i.e. 0) rather than the bound port.

Differential Revision: https://phabricator.services.mozilla.com/D189925
2023-10-06 07:35:43 +00:00
Mozilla Releng Treescript
15b53f5429 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
tr -> 27e692a7b872f933e787ec025c82e227300a7959
2023-10-06 06:58:52 +00:00
Henrik Skupin
25a9eb239b Bug 1852243 - [wpt] Enable async touch and wheel events for wpt but not wdspec tests. r=jgraham,hiro
Differential Revision: https://phabricator.services.mozilla.com/D188297
2023-10-06 06:13:19 +00:00
Henrik Skupin
27f9813b59 Bug 1852243 - [dom] Add specific preferences for all available async event types. r=hiro
The preference "test.events.async.enabled" controls the usage of
widget events in general, but Marionette doesn't support all of
them yet. To get widget events enabled for web-platform tests
those unsupported event types need to still synthesize the event.

Differential Revision: https://phabricator.services.mozilla.com/D188296
2023-10-06 06:13:18 +00:00
Sandor Molnar
4a38308864 Backed out 2 changesets (bug 243797, bug 1273551) for causing mochitest failures on browser/modules/test/browser/browser_ProcessHangNotifications.js CLOSED TREE
Backed out changeset d6264637680c (bug 243797)
Backed out changeset 059192553e9b (bug 1273551)
2023-10-06 08:49:10 +03:00
Natalia Csoregi
8af8a2427c Backed out 2 changesets (bug 1816992) for causing repackage bustage. CLOSED TREE
Backed out changeset c06f8d8a7bdc (bug 1816992)
Backed out changeset 63af389f8fe2 (bug 1816992)
2023-10-06 07:46:51 +03:00
Drew Willcoxon
d32ee1ec14 Bug 1857137 - Convert addon suggestions from dynamic to standard results. r=daisuke,desktop-theme-reviewers,dao
This converts addon suggestions from dynamic to standard results and removes
support for review stars. Other things worth noting:

* I removed `suggestion.is_top_pick` support because addons should always be top
  picks. This lets us simplify the code and tests.
* This changes the overall icon box size for addons from 60px to 52px, since it
  combines the icon rules for Pocket and addons. I checked with Josh, and he
  says that's fine ([Slack](https://mozilla.slack.com/archives/C03LYL79G82/p1696471328852089?thread_ts=1696446640.986769&cid=C03LYL79G82))
* Currently the default `-webkit-line-clamp` is 3 and MDN and Pocket rows
  override it by setting it to 2. I think the opposite makes more sense, i.e.
  the default should be 2, since there are no row types that need it to be 3.
  This lets me avoid adding a rule for addon rows. (`-webkit-line-clamp` was
  added in D185247)

Depends on D190138

Differential Revision: https://phabricator.services.mozilla.com/D190145
2023-10-06 04:21:31 +00:00
sotaro
cf875ad584 Bug 1857195 - Keep TextureHostWrapperD3D11 alive during updating Texture r=gfx-reviewers,lsalzman
Counted ref of TextureHostWrapperD3D11 is added to GpuProcessD3D11TextureMap::UpdatingTextureHolder. Then  TextureHostWrapperD3D11 remains alive during updating Texture.

TextureCheck is added to TextureHostWrapperD3D11::~TextureHostWrapperD3D11(). It is for preventing the crash by null pointer deref.

NotifyNotUsed() call to wrapped TextureHost is removed, since TextureHostWrapperD3D11 holds compositable ref of wrapped TextureHost and the NotifyNotUsed() is called when compositable ref becomes 0. Then NotifyNotUsed() call to wrapped TextureHost is not necessary.

Differential Revision: https://phabricator.services.mozilla.com/D190243
2023-10-06 03:59:58 +00:00
Drew Willcoxon
6ba98906a7 Bug 1857108 - Set has-url on dynamic-result-type rows when they contain a URL. r=dao
This sets `has-url` on dynamic-result-type rows when their view template
contains a `.urlbarView-url` element. This fixes the missing separator in both
addon and weather rows.

This does not address one remaining problem: When `wrap` is set, the separator
is still missing in addon rows because they don't handle wrapping. Prior to
bug 1855639, they just always showed their title separator, and since they don't
wrap their URL, that was fine. I'd like to handle that separately by converting
addon rows from dynamic to standard. I filed bug 1857137 for that.

Differential Revision: https://phabricator.services.mozilla.com/D190144
2023-10-06 03:28:12 +00:00
Mike Conley
083c3d91a5 Bug 1818237 - MockFilePicker should be able to return the nsIFile for a selected directory. r=Gijs
Depends on D189840

Differential Revision: https://phabricator.services.mozilla.com/D189841
2023-10-06 02:56:45 +00:00
Natalia Csoregi
8c4703e3b7 Backed out changeset 04750ca05094 (bug 1845407) for causing failures on mozapps/update/*. CLOSED TREE 2023-10-06 06:55:04 +03:00
Drew Willcoxon
d4195691e7 Bug 1857114 - Update the icon in addon rows. r=daisuke,desktop-theme-reviewers,dao
These rules are similar to [the Pocket ones](https://searchfox.org/mozilla-central/rev/1f5d04fed3631f97a84b589429419b83342d7c9a/browser/themes/shared/urlbarView.css#789-793) because the UI is similar: A 24x24px
icon inside a larger gray box.

Differential Revision: https://phabricator.services.mozilla.com/D190138
2023-10-06 02:47:14 +00:00
alwu
ea0fd9af2e Bug 1857380 - return type should be HRESULT. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D190244
2023-10-06 02:10:02 +00:00
alwu
1808a9d2e3 Bug 1856785 - make reporting telemetry async. r=sotaro
As we will need to re-initialize the wmf decoder module, which takes
longer time sometime resulting IPC timeout. Therefore, make it async in
order to not interfere IPC response.

Differential Revision: https://phabricator.services.mozilla.com/D190224
2023-10-06 01:38:54 +00:00
Heitor Neiva
8067bbe451 Bug 1816992 - Add attribution job for DMGs r=taskgraph-reviewers,releng-reviewers,bhearsum
Depends on D189404

Differential Revision: https://phabricator.services.mozilla.com/D189405
2023-10-06 01:30:29 +00:00