Граф коммитов

795384 Коммитов

Автор SHA1 Сообщение Дата
Hubert Boma Manilla 9743602245 Bug 1765817 - [devtools] Add getLocationSource selector to fetch source for a location r=nchevobbe
This cleanup helps support the subsequent work for breakpoints per url.

Depends on D146426

Differential Revision: https://phabricator.services.mozilla.com/D146427
2022-05-17 11:10:21 +00:00
Makoto Kato cad300b928 Bug 1758800 - Watch the modification of child nodes in <select> element. r=agi,ohall
This is a kind of bug 1263887 for GeckoView.

We should update the prompt when child nodes in `<select>` element is modified.

I add `PromptInstanceDelegate.onPromptUpdate` to update the prompt's content.
Browser application should implement it if <select> element is updated during
showing the prompt.

Differential Revision: https://phabricator.services.mozilla.com/D144538
2022-05-17 10:55:45 +00:00
Nicolas B. Pierron 5c2c48273b Bug 1756003 part 3 - Add JS shell command line option to set default delazification. r=arai
This instrumentation is used to build test cases and help with fuzzing, by
selecting a custom delazification type as the default mode for the top-level.

Differential Revision: https://phabricator.services.mozilla.com/D145993
2022-05-17 10:53:04 +00:00
Nicolas B. Pierron 4d3d87d56e Bug 1756003 part 2 - Compare concurrent and on-demand delazification. r=arai
Adds a delazification mode, which spawn a concurrent depth-first delazification
of all function to fill the stencil cache, to later compare cached results with
stencils produced by on-demand delazification.

The delazification mode also works when being used from a main-thread top-level
compilation, in which case the delazification tasks are created and potentially
blocking the main thread, while the delazification is happening.

This way of doing help comparing on-demand delazification, based on instantiated
stencils with concurrent delazification, based on stencils. Which is a good
mode for fuzzing purposes.

Differential Revision: https://phabricator.services.mozilla.com/D145992
2022-05-17 10:53:04 +00:00
Nicolas B. Pierron 2d9181d1da Bug 1756003 part 1 - ScriptSource carry the delazification mode. r=arai
Previously, we only had a single mode of delazification, then we added the
concurrent delazification, which could be mixed with on-demand delazification,
by always checking for cached entries.

Now, with the addition of a third mode which attempt to compare the outputs of
on-demand delazification with concurrent delazification, we need to distinguish
and carry this difference to the function responsible for running the
delazification. However, this information is only available when we first run
the delazification.

This patch adds the JS::DelazificationOption (uint8_t) to the ScriptSource
class, such that we can communicate the selected mode to the functions in charge
of the delazification.

Differential Revision: https://phabricator.services.mozilla.com/D145991
2022-05-17 10:53:03 +00:00
Paul Zuehlcke e1a09f57de Bug 1763660 - Tests for query parameter stripping in Private Browsing Mode. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D143761
2022-05-17 10:42:16 +00:00
Paul Zuehlcke ff73626bba Bug 1763660 - Enable query parameter stripping in Private Browsing Mode. r=anti-tracking-reviewers,necko-reviewers,timhuang,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D143760
2022-05-17 10:42:16 +00:00
Paul Zuehlcke ced22621e7 Bug 1763660 - Add query parameter stripping pref to ETP strict. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D143513
2022-05-17 10:42:16 +00:00
Sebastian Hengst 193f47029e Bug 1769724 - correct indentation in backfill cron task definition.
backfill-all-browsertime cron task had been added in bug 1766433.

Differential Revision: https://phabricator.services.mozilla.com/D146557
2022-05-17 10:41:54 +00:00
Bogdan Szekely 1e42da6d61 Merge mozilla-central to autoland. CLOSED TREE 2022-05-17 12:29:28 +03:00
Bogdan Szekely 4ef183d00f Merge autoland to mozilla-central. a=merge 2022-05-17 12:26:46 +03:00
Jan de Mooij 49ccaf05d8 Bug 1769410 - Use computed offset to read float register contents in MachineState::read. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D146424
2022-05-17 09:18:16 +00:00
Alex Ionescu 93637541c8 Bug 1766433 Create a daily cron job for triggering backfill-all-browsertime r=jmaher,ahal
This patch adds a cron job that runs daily and triggers the backfill-all-browsertime action task for the revisions containing commits that were reviewed by #perftest for the daay before the job is running.

Differential Revision: https://phabricator.services.mozilla.com/D144713
2022-05-17 09:15:20 +00:00
Nicolas Silva 4cf6bc5964 Bug 1768641 - Mark reftest 621918-2.svg fuzzy on Android 8.0 Pixel2 AArch64. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D145981
2022-05-17 08:56:13 +00:00
Bogdan Szekely d3caa78cb9 Bug 1769695 - Set delay-load-event-2.html as intermittent on linux asan. r=aryx DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D146538
2022-05-17 08:42:05 +00:00
Mike Hommey ad7af8cc29 Bug 1769680 - Use download.py instead of git cinnabar download. r=firefox-build-system-reviewers,andi
Future releases of git cinnabar may not have a "git cinnabar" command
running out of the box, and the future-proof way to download the
cinnabar helper is to use download.py.

Differential Revision: https://phabricator.services.mozilla.com/D146526
2022-05-17 08:40:56 +00:00
Ryan VanderMeulen 827ad40284 Bug 1759310 - Add webdriver LSan suppressions to the mozilla directory. r=aryx,webdriver-reviewers,whimboo DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D146494
2022-05-17 08:21:04 +00:00
Edgar Chen c5976ae945 Bug 1768597 - Part 3: Use utility function to convert IPCDataTransferItem into nsIVariant; r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D145947
2022-05-17 08:12:04 +00:00
Edgar Chen 076d44606d Bug 1768597 - Part 2: Use nsContentUtils::IPCTransferableToTransferable to convert IPCDataTransfer into nsITransferable; r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D145941
2022-05-17 08:12:03 +00:00
Edgar Chen ef5dcbe26d Bug 1768597 - Part 1: Ensure all Shmem data is deallocated in nsContentUtils::IPCTransferableToTransferable; r=NeilDeakin
If a IPCDataTransferItem fails to be converted, the subsequent IPCDataTransferItems
will be ignored, and the data in Shmem won't be deallocated properly if any.

Differential Revision: https://phabricator.services.mozilla.com/D145940
2022-05-17 08:12:03 +00:00
Alexandra Borovova c0b8074405 Bug 1763127 - Add support for hash changes for browsingContext.navigate. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D146108
2022-05-17 07:58:23 +00:00
Maciej S. Szmigiero e5e9aa833e Bug 1769664 - Enable Geoclue2 geolocation provider by default. r=emilio
Enable Geoclue2 geolocation provider by default.

This provider will actually only be considered if Geoclue is available on
D-Bus.
Then it is preferred over particular single location sources (like GPSD)
since its location is based on an aggregation of them, and, additionally,
will be consistent with other applications in the system that are using
the location service.

Differential Revision: https://phabricator.services.mozilla.com/D146519
2022-05-17 07:05:41 +00:00
Julian Descottes e91cbfb2f4 Bug 1767759 - [devtools] Wait for toolbox-ready in browser_about-devtools-toolbox_reload.js r=devtools-reviewers,nchevobbe
The test was only waiting for addTab to resolve, waiting for the proper toolbox-ready event could reduce intermittent issues.

Differential Revision: https://phabricator.services.mozilla.com/D146530
2022-05-17 07:01:10 +00:00
Mozilla Releng Treescript 5416ab37fb no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
it -> 981dc08543d2aa49aad8a0a8f9bbc180af1fb413
2022-05-17 06:59:33 +00:00
James Teh 592446771c Bug 1768219: Don't walk ancestors on all Accessibles to find an action when serialising the IPC tree. r=eeejay
This was causing a performance regression.
We now only do this for text leaf and image Accessibles, which gets us back to where we were before bug 1395181.
This means we can't support "click ancestor" on ATK.
There weren't requests for this on ATK anyway.
In future, we can probably support this using the information in the cache.

Differential Revision: https://phabricator.services.mozilla.com/D146528
2022-05-17 06:31:45 +00:00
Hiroyuki Ikezoe 3ead02cee1 Bug 1769517 - Skip multiplying to calculate iteration start time when the current iteration count is zero. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D146514
2022-05-17 06:06:38 +00:00
Nico Grunbaum 92c833260c Bug 1760843 - P1 - add WPT for gDM frameRate:max;r=jib
Depends on D141937

Differential Revision: https://phabricator.services.mozilla.com/D142323
2022-05-17 06:06:05 +00:00
Nico Grunbaum f1908f161d Bug 1760843 - P0 - fix desktop capture frame timing;r=jib
A previous patch introduced an inner loop within the desktop capture run
loop. The PlatformUIThread always does a single execution of the run
loop before it goes into its alertable sleep -> dispatch -> repeat
cycle. We should not be looping within the desktop capture impl and
should allow the platform UI thread to repeated dispatch to the capture
impl instead. Additionally the startup code was racy with the shutdown
code. Fixing the former caused lock ups durring shutdown while startup
was still happening. Static analysis guards were added in this patch
to help reduce the fragility of this code.

Differential Revision: https://phabricator.services.mozilla.com/D141937
2022-05-17 06:06:05 +00:00
Julian Descottes e4e4e73bb9 Bug 1768475 - [devtools] WalkerActor watchRootNode should not check isDocumentReady r=devtools-reviewers,nchevobbe
If the walker actor was initialized, we assume the document is ready enough and a root node can be returned if available.

A new test was added for a slow loading document.

Differential Revision: https://phabricator.services.mozilla.com/D146464
2022-05-17 06:04:47 +00:00
Daniel Holbert b637180d67 Bug 1769335: Update our in-tree sccache to version 0.3.0. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D146357
2022-05-17 04:22:54 +00:00
Chris Peterson cc0d5b9c63 Bug 1769484 - Replace std::memory_order::memory_order_XYZ with std::memory_order_XYZ. r=padenot
C++20 renamed the `std::memory_order` enum's enumerators from `std::memory_order::memory_order_XYZ` to `std::memory_order::XYZ`. To maintain source compatibility with both C++17 and C++20, use `std::memory_order_XYZ`.

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0439r0.html

https://en.cppreference.com/w/cpp/atomic/memory_order

Differential Revision: https://phabricator.services.mozilla.com/D146395
2022-05-17 03:24:09 +00:00
Jim Blandy 6ca282be89 Bug 1769633: Update wgpu to b51fd851. r=jgilbert
Fix Firefox for compute_pass_dispatch functions renamed upstream.

Remove set_index_buffer ffi functions; they're now in wgpu.

Differential Revision: https://phabricator.services.mozilla.com/D146509
2022-05-17 03:09:07 +00:00
Jim Blandy da6683f8de Bug 1769633: Update vendored autocfg to 1.1.0, and re-apply local fixes. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D146488
2022-05-17 03:09:06 +00:00
Glenn Watson b96ac34916 Bug 1765525 - Fix gecko DL creation for backdrop-filters with clips r=gfx-reviewers,miko
Change to derive from nsDisplayEffectsBase, since the backdrop-filter
can still have a visual bounds (and effect) even if the child
stacking context has no items. Also use the same approach to get
the bounding rect and implement GetBounds as nsDisplayFilters uses.

Differential Revision: https://phabricator.services.mozilla.com/D145295
2022-05-17 01:53:33 +00:00
Agi Sferro e652bcab53 Bug 1754607 - Make sure autofill session is reset after navigation. r=owlish
With Fission, `pageshow` and `pagehide` are not guaranteed to happen in order,
e.g. we might get the following order of events:

pageshow -- navigate to example.org
pageshow -- navigate to google.com
pagehide -- example.org is now hidden

which would break the previous assumption that we could rely on the order of
show and hide events.

To handle that, we keep track of the most-recent-added session and we assume
that that is the session bening displayed.

In the future, we might consider keeping state of all sessions until a
`pagehide` event for the specific session arrives.

Differential Revision: https://phabricator.services.mozilla.com/D143961
2022-05-17 01:34:44 +00:00
Agi Sferro 6f503072d7 Bug 1755094 - Make autofill tree immutable. r=owlish
Before this patch, the autofill tree was mutable, which makes it hard to follow
updates and reason about state.

This change makes the autofill tree immutable and adds a separate `HashMap` to
track mutable values like `value`, `callback`.

This change also modifies the way we track nodes internally, using exclusevely
the UUID of the node rather then the int autofill ID which is now only used at
the boundary of the Autofill API.

We also simplify the API by only providing the necessary information about the
node rather than the entire tree structure.

Differential Revision: https://phabricator.services.mozilla.com/D143960
2022-05-17 01:34:44 +00:00
Agi Sferro 7ca6de9006 Bug 1755094 - Use separate methods instead of onAutofill. r=owlish
This is a minor API fix wherby we call `onSessionStart`, `onNodeAdd` instead of
having a single `onAutofill` call that passes in the type of call. This aligns
the API with all our other delegates.

Note that because this API is normally implemented inside GeckoView itself,
we dont expect any action on embedders for this change.

Differential Revision: https://phabricator.services.mozilla.com/D143959
2022-05-17 01:34:43 +00:00
Agi Sferro 73a9c55b36 Bug 1756049 - Don't load GeckoViewWebExtension in child process. r=jonalmeida
I believe this was a mistake and never needed in the first place.

Differential Revision: https://phabricator.services.mozilla.com/D141976
2022-05-17 01:34:43 +00:00
Agi Sferro 8a9ef6fe70 Bug 1756049 - Migrate GeckoViewPrompter.jsm to actor. r=ohall,owlish
Differential Revision: https://phabricator.services.mozilla.com/D141973
2022-05-17 01:34:42 +00:00
Agi Sferro a2706c8d0a Bug 1756245 - Migrate GeckoViewMedia to actor. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D141688
2022-05-17 01:34:42 +00:00
Agi Sferro b1001aa17f Bug 1754607 - Adjust GeckoViewAutoFillChild for ActorDispatcher r=owlish
The test failure in the bug is failing because the eventDispatcher in the actor
was previously only available in the top-level-frame.

In addition to adjusting for ActorDispatcher, this patch also makes every actor
handle its own frame (rather than handling all the in-process children) which
simplifies the code a bit.

We also modify the test to use a third-party iframe so that the OOP iframe case
is covered.

Differential Revision: https://phabricator.services.mozilla.com/D141647
2022-05-17 01:34:42 +00:00
Agi Sferro 1eb595d476 Bug 1755541 - Migrate GeckoViewPermission to Actor. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D141646
2022-05-17 01:34:41 +00:00
Agi Sferro 9075fce1a8 Bug 1755094 - Adjust SelectionActionDelegate for ActorDispatcher. r=owlish
ActorDispatcher does not support receiving multiple callbacks for one message
so we need to change the strategy a little bit.

We need to centralize handling actions are each sequential ID is incremented
independently for each child, so it won't work for iframes.

To avoid this problem in the future, the sequential ID is no just a
randomly-generated UUID.

We also do all the checking on the parent process, so we don't need to check in
the child again whether we got a message that was out-of-date.

Differential Revision: https://phabricator.services.mozilla.com/D141645
2022-05-17 01:34:41 +00:00
Agi Sferro 6eae8d32fa Bug 1755094 - Implement ChildActorDispatcher. r=calu
The existing EventDispatcher messaging infrastracture uses cpmm (content
process message manager) which is deprecated and will be removed for Fission.

The current behavior with fission is that cpmm is available only on in-frame
frames, so on any oop frame we're not able to send or receive eventDispatcher
messages.

To allow OOP frames actors to send messages, this patch implements a new type
of dispatcher, called ChildActorDispatcher which routes messages through the
actor messaging system.

We then catch these messages on the parent actor side and send them to Java.

To be able to reroute messages from the Parent actor we need to make sure that
each actor that we define extends GeckoViewActorParent, so we define an actor
parent for each missing child actor.

In the future we could consider moving GeckoViewActorParent to a native
implementation for performance reasons.

Differential Revision: https://phabricator.services.mozilla.com/D139073
2022-05-17 01:34:40 +00:00
Molnar Sandor 416e516586 Backed out 7 changesets (bug 1730442) for causing reftest failures in editor/reftests/inline-table-editor-position-after-updating-table-size-from-input-event-listener.html. CLOSED TREE
Backed out changeset f6d7f162e57a (bug 1730442)
Backed out changeset e5d1671b3bbc (bug 1730442)
Backed out changeset e60a5cd69184 (bug 1730442)
Backed out changeset 943d4e4b0770 (bug 1730442)
Backed out changeset bd3324b635f4 (bug 1730442)
Backed out changeset ada0dda5bcde (bug 1730442)
Backed out changeset b67c4035c12f (bug 1730442)
2022-05-17 04:23:36 +03:00
Ryan VanderMeulen b1015d9c01 Bug 1766085 - Replace some uses of distutils.version with packaging.version. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D145806
2022-05-17 01:04:17 +00:00
Molnar Sandor 8713e0bf9c Backed out changeset db25bd6ef77e (bug 1689834) for causing build bustages in webgpu/Buffer.cpp. CLOSED TREE 2022-05-17 03:58:25 +03:00
Glenn Watson b7ed696237 Bug 1769464 - Fix backdrop-filter invalidation r=gfx-reviewers,lsalzman
Since primitives are not passed through the backdrop-filter chain
they may be part of during update_prim_dependencies, they may not
expand their coverage rect to the entire coverage rect of the
backdrop-filter primitive that they affect.

In rare cases, this can result in incorrect invalidation where the
edges of a blurred primitive may not invalidate a (partial) tile
when the primitive no longer intersects with that tile.

To handle this correctly, we defer checks on the backdrop filter
validity until we've calculated the dirty rects for all tiles
that are affected by that filter. Then, if any of those regions
are dirty, we invalidate the backdrop-filter primitive region.

In future, it may be better to pass the primitive through both
its standard surface chain, and also the surface chain of the
backdrop-filter. However, this would be quite an involved change
to make, and it's not clear right now if it would be better than
just deferring and invalidating the backdrop-filter prim.

Differential Revision: https://phabricator.services.mozilla.com/D146388
2022-05-17 00:56:12 +00:00
Molnar Sandor f4c40b82c0 Backed out 2 changesets (bug 1769633) for causing build bustages in jimb/rust/wgpu/wgpu-core. CLOSED TREE
Backed out changeset d7b9bac2ace5 (bug 1769633)
Backed out changeset 82d7d8a51cdd (bug 1769633)
2022-05-17 03:39:06 +03:00
Andrew Osmond 2fd8458561 Bug 1689834. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D146102
2022-05-17 00:34:13 +00:00