Commit Graph

824039 Commits

Author SHA1 Message Date
Jeff Muizelaar
c1d05774cc Bug 1804952. Translate rectangle PushClip() to PushClipRect() r=lsalzman
This helps out when clipping to rects with canvas2d. It reduces GPU
usage on the React-Stockcharts benchmark from ~70% down to ~45% on
a desktop gen9 Intel GPU.

It would be better to handle this in the D2D backend like we do in other
backends, but there's not an easy way to detect rectangle paths there.
This was the easiest place to slot it in and shouldn't have too high a
cost for the other places we use the recording backend.

Differential Revision: https://phabricator.services.mozilla.com/D164764
2022-12-16 04:04:39 +00:00
Barret Rennie
ab93697d52 Bug 1796878 - Port osfile.jsm usage to IOUtils in services/ r=markh
Differential Revision: https://phabricator.services.mozilla.com/D163410
2022-12-16 04:04:07 +00:00
Barret Rennie
e23c2fbace Bug 1805748 - Fix writing profiles in talos-powers API r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D164735
2022-12-16 03:19:22 +00:00
Drew Willcoxon
89bd2779a8 Bug 1804353 - Don't select buttons on mousedown in the urlbar view. r=dao
This stops selecting buttons on mousedown so that selection and the input remain
in a sensible state after clicking the block button while top sites are showing
(e.g., in the weather suggestion).

This turned out to be surprisingly complicated, so please see the bug and code
comments for details. I think our selection logic is pretty brittle or at least
convoluted and could stand to be simplified, but I didn't want to make large
changes here. Ideally we wouldn't treat buttons any differently on mousedown --
so we'd select them too -- and it may be possible to do that while avoiding the
problems I talk about in the bug, but I don't think it's at all worth the
complexity that seems to be required.

I added a new task to the test Daisuke created in D155812.

Differential Revision: https://phabricator.services.mozilla.com/D164018
2022-12-16 02:58:15 +00:00
Boris Chiou
bf23474980 Bug 1774505 - Move tests of printing documents into an independent folder. r=hiro
There is still a spec issue about printing for scroll animations,
https://github.com/w3c/csswg-drafts/issues/8226, so I think moving all of
them into a separate folder makes us easier to address.

Differential Revision: https://phabricator.services.mozilla.com/D164860
2022-12-16 02:28:02 +00:00
Boris Chiou
f856c08cc3 Bug 1774505 - Preserve the progress of null timeline for print. r=hiro
We always use the document timeline of the cloned document, and clone the
paused animation with the preserved progress, even if the original
timeline is null.

Differential Revision: https://phabricator.services.mozilla.com/D164712
2022-12-16 02:28:02 +00:00
sotaro
9df22d9664 Bug 1798245 - Enable video overlay without ZeroCopyNV12Texture with non-intel GPUs to release r=jrmuizel,gfx-reviewers
Bug 1798242 did not cause a regression. Then it seems OK to try to enable video overlay without ZeroCopyNV12Texture with non-intel GPUs to release.

Differential Revision: https://phabricator.services.mozilla.com/D164634
2022-12-16 00:54:14 +00:00
Barret Rennie
8b66c0797a Bug 1803182 - Port osfile.jsm usage to IOUtils in toolkit/components/terminator/ r=jstutte
Differential Revision: https://phabricator.services.mozilla.com/D163353
2022-12-16 00:48:38 +00:00
Barret Rennie
e6d1635f6e Bug 1772924 - Remove osfile.jsm usage in /security/sandbox/ r=haik
Differential Revision: https://phabricator.services.mozilla.com/D163404
2022-12-16 00:29:46 +00:00
James Teh
99882c7170 Bug 1805545 part 2: Don't query CSS on image map areas when querying LocalAccessible attributes. r=morgan
This fixes the same bug as part 1, but when the cache is disabled.
It is covered by the same test.

Differential Revision: https://phabricator.services.mozilla.com/D164784
2022-12-15 23:41:18 +00:00
James Teh
c5f38f94f1 Bug 1805545 part 1: Don't query the display style on image map areas when pushing the cache. r=morgan
See the code comments for an explanation.
This fixes assertions and crashes when pushing the cache when a page contains a map which is unslotted in a shadow host.

Differential Revision: https://phabricator.services.mozilla.com/D164783
2022-12-15 23:41:18 +00:00
James Teh
7a085dff19 Bug 1805876 part 2: Use GetAccessible instead of GetAccessibleOrContainer when building the viewport cache. r=morgan
Calling GetAccessibleOrContainer meant that if a particular content node didn't have an Accessible but did have a frame, we'd insert its container in its place.
There might have been other descendants of that container that did have Accessibles, though.
In that case, we would have put the container ahead of some of its descendants!
To fix this, use GetAccessible instead.
We'll still fall back to the container if the user hit tests a point in an inaccessible node, since it will appear later in the viewport cache.

Differential Revision: https://phabricator.services.mozilla.com/D164803
2022-12-15 23:35:51 +00:00
James Teh
c0b3a8201a Bug 1805876 part 1: Revert the RemoteAccessible hit testing changes in bug 1801756. r=morgan
That patch was always somewhat hacky, but we couldn't figure out the cause of the problem.
Now that I've figured it out, a more correct solution is forthcoming.

Differential Revision: https://phabricator.services.mozilla.com/D164802
2022-12-15 23:35:50 +00:00
Matthias Camenzind
c341905d11 Bug 1786048 - Part 4: Remove cross process SizeShellTo. r=emilio
Because the parent process lacks information about the current shell
size, the child has to send both the current and the new shell size to
the parent. The parent then applies the delta to the window size. This
can produce different results for calls with the same arguments,
whenever a previous call did not have enough time to update the child
with its new size.

The implementation is replaced by applying the delta in the child.

Differential Revision: https://phabricator.services.mozilla.com/D160261
2022-12-15 23:13:01 +00:00
Matthias Camenzind
c9300fab1e Bug 1786048 - Part 3: Merge nsIEmbeddingSiteWindow into nsIBaseWindow. r=emilio
Implementations of nsIEmbeddingSiteWindow and nsIBaseWindow largely
overlap, and where they don't, the nsIEmbeddingSiteWindow implementation
of the otherwise shared interface is primarily stubbed out with the
exception of Get/SetDimensions().

This patch moves a reimplementation of Get/SetDimensions() from
nsIEmbeddingSiteWindow to nsIBaseWindow. The other methods of
nsIEmbeddingSiteWindow remain covered by nsIBaseWindow.
Get/SetDimensions() can be implemented as part of nsIWebBrowserChrome
where nsIBaseWindow is not necessary. This removes the need for
nsIEmbeddingSiteWindow.

Blur() has also been moved to nsIWebBrowserChrome, as only
nsContentTreeOwner has an actual implementation which we in theory also
want to call from BrowserChild/Parent, but the spec suggests to
"selectively or uniformly ignore calls".

GetVisibility() had an implementation in BrowserChild that pretended to
always be visible. Instead of providing an interface for that,
nsDocShell now handles the not implemented case for tree owners.

nsIEmbeddingSiteWindow::GetSiteWindow() used to call through to
nsIBaseWindow::GetParentNativeWindow().

The Get/SetDimensions() implementation has been replaced with a strongly
typed setter, which is now also used directly from nsGlobalWindowOuter
to avoid problems that come with autodetecting unchanged dimensions,
when the current dimensions are outdated (e.g. immediately reverting a
change can be ignored).

Differential Revision: https://phabricator.services.mozilla.com/D160260
2022-12-15 23:13:00 +00:00
Matthias Camenzind
5ca3ed6b88 Bug 1786048 - Part 2: Use layout device pixels for AppWindow primary content size. r=emilio
The getter used to return CSS pixels, while the setter expected layout
device pixels. The nsIDocShellTreeOwner documentation used to suggest that
CSS pixels are used for getters and setters of the primary content and
the root shell size. Only the getter for the primary content size
happend to match that documentation.

Differential Revision: https://phabricator.services.mozilla.com/D161944
2022-12-15 23:13:00 +00:00
Matthias Camenzind
5d9dfb1656 Bug 1786048 - Part 1: AppWindow can't skip SetSize calls, HeadlessWidget has to notify when moved. r=emilio
Two minor changes that otherwise might go unnoticed in the following
parts:

- AppWindow can't skip SetSize calls that match the current size. On
  Linux a previous call might not have changed the size yet. If the
  current call is skipped, the previous call can ultimately dictate the
  resulting size.

- BrowserParent should not have to call UpdatePosition when receiving
  new dimensions from BrowserChild. But HeadlessWidget needs to call
  NotifyWindowMoved when moved.

Differential Revision: https://phabricator.services.mozilla.com/D160259
2022-12-15 23:12:59 +00:00
Mike Conley
df3f489652 Bug 1805619 - Check for MigrationUtils before calling into it in ResetProfile.sys.mjs. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D164705
2022-12-15 23:00:51 +00:00
Mark Hammond
8fd66feff0 Bug 1801295 (part 2) - vendor new application-services with the fix. r=skhamis
Depends on D164781

Differential Revision: https://phabricator.services.mozilla.com/D164782
2022-12-15 22:51:51 +00:00
Mark Hammond
efb859df84 Bug 1801295 (part 1) - add a test demonstrating how tabs aren't returned after a quickwrite. r=skhamis
Differential Revision: https://phabricator.services.mozilla.com/D164781
2022-12-15 22:51:50 +00:00
Florian Quèze
26a63b8815 Bug 1805646 - Add profiler markers showing the names of IPC messages triggered by scripts, r=nika,canaltinova.
Differential Revision: https://phabricator.services.mozilla.com/D164648
2022-12-15 22:30:14 +00:00
Calixte
ab967ec52a Bug 1805953 - Put pdfjs in metrics index at the right place r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D164847
2022-12-15 22:28:18 +00:00
Ting-Yu Lin
a45a1c2c20 Bug 1804997 Part 4 - Move SumOfChildrenBlockSizeProperty into a struct. r=dholbert
ReflowChildren() needs more bookkeeping data to correctly place tall flex items
being pushed from prev-in-flows during fragmentation. This is a preparation for
bug 1743890 that is going to add more fields to the struct.

This patch doesn't change behavior.

Differential Revision: https://phabricator.services.mozilla.com/D164399
2022-12-15 21:58:31 +00:00
Ting-Yu Lin
d5e1c77a20 Bug 1804997 Part 3 - When building a flex container's next-in-flows, carry forward its items' groupings into distinct FlexLines. r=dholbert
When I first implemented flexbox fragmentation, all the children in flex
container's next-in-flows are all put in one FlexLine, because we assume the
position of flex items won't shift in fragmentation. However, when we implement
more granular control of flexbox fragmentation such as pushing a tall flex item
to next page/column, we'll need the information of flex lines.

This patch doesn't change behavior.

Differential Revision: https://phabricator.services.mozilla.com/D164398
2022-12-15 21:58:31 +00:00
Ting-Yu Lin
66b246d165 Bug 1804997 Part 2 - Rename areChildrenComplete to anyChildIncomplete. r=dholbert
This is a follow-up of Bug 1622935 Part 1
https://hg.mozilla.org/mozilla-central/rev/78d4dfbda06a

The variable storing the return value of ReflowChildren should be renamed, too.

Differential Revision: https://phabricator.services.mozilla.com/D164397
2022-12-15 21:58:30 +00:00
Ting-Yu Lin
457f6eb83e Bug 1804997 Part 1 - Simplify GenerateFlexItemForChild(). r=dholbert
- Remove the return value since it is never used.
- Store the newly create flex item in a reference since EmplaceBack() returns
  NonNull<FlexItem*>.

Differential Revision: https://phabricator.services.mozilla.com/D164396
2022-12-15 21:58:30 +00:00
Emily McMinn
6974b9c7b1 Bug 1790387 - A11y improvements for the Feature Callout step indicator r=aminomancer,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D159629
2022-12-15 21:48:42 +00:00
Drew Willcoxon
da2063ac08 Bug 1805576 - Add back telemetry tests for improve_suggest_experience_checked = true. r=daleharvey
This adds checks to the main sponsored and nonsponsored tests to ensure we have
test cases where this value is both true and false. I think it's important to
have test cases for both sponsored and nonsponsored suggestions since these are
the two main types of Firefox Suggest suggestions. I don't think it's necessary
for other types of suggestions because they all use the same logic, so if these
checks pass for sponsored and nonsponsored suggestions, we can be reasonably
sure other suggestion types are handled correctly.

Differential Revision: https://phabricator.services.mozilla.com/D164617
2022-12-15 21:12:51 +00:00
Dan Mosedale
3ab309d3e4 Bug 1805471 - add ASRouter impression debug logging, r=emcminn
Adds impression debug logging to ASRouter .

Differential Revision: https://phabricator.services.mozilla.com/D164728
2022-12-15 21:11:31 +00:00
Narcis Beleuzu
6da804aed4 Backed out changeset 34ec63cced63 (bug 1575154) for causing wpt failures on idlharness.https.html . CLOSED TREE 2022-12-15 23:10:35 +02:00
Narcis Beleuzu
111b7634b3 Bug 1802704 - Fix skip test_proxy_info_results.js on Windows. r=kershaw DONTBUILD 2022-12-15 23:08:58 +02:00
Emily McDonough
a7d0e54361 Bug 1804798 - Explicitly set auto page name (and corresponding debug flag) when inserting frames in nsCSSFrameConstructor::ContentRangeInserted r=dholbert
Unfortunately, this can be called through both reflow and frame construction
much like nsCSSFrameConstructor::ContentAppended, so we can't just use a page-
name tracker.

Differential Revision: https://phabricator.services.mozilla.com/D164760
2022-12-15 20:30:29 +00:00
Ksenia Berezina
bd91080417 Bug 1805818 - Add additional tests for interventions r=twisniewski DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D164772
2022-12-15 20:30:01 +00:00
Denis Palmeiro
cb098267e2 Bug 1799727: Add redirection time, redirection count, http protocol, trr domain, and same site navigation boolean to the page load event r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D161643
2022-12-15 20:19:52 +00:00
Denis Palmeiro
335c4ba85b Bug 1799727: Migrate the page load event to a custom ping that strips client id r=chutten,smaug
Differential Revision: https://phabricator.services.mozilla.com/D162311
2022-12-15 20:19:51 +00:00
Denis Palmeiro
1d5a281c11 Bug 1799727: Replace redundant page load event struct with predefined glean struct r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D163771
2022-12-15 20:19:51 +00:00
Sebastian Hengst
af8d019488 Merge mozilla-central to autoland. CLOSED TREE 2022-12-15 21:02:01 +01:00
Nolan Ishii
2cff65853c Bug 1800923 Not able to import data from Opera/Vivaldi on first run migration. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D163982
2022-12-15 19:53:48 +00:00
Sebastian Hengst
9b8ebf0614 Merge autoland to mozilla-central. a=merge 2022-12-15 20:53:44 +01:00
Barret Rennie
72426540e4 Bug 1803178 - Port osfile.jsm usage to IOUtils in mobile/android/, pt 2 r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D163348
2022-12-15 19:50:37 +00:00
Barret Rennie
4ca3688497 Bug 1783100 - Remove osfile.jsm usage from DevToolsUtils.js r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D163500
2022-12-15 19:46:29 +00:00
Otto Länd
1df40cc794 Bug 1805931, 1805931: apply code formatting via Lando
# ignore-this-changeset
2022-12-15 19:51:16 +00:00
Andrew McCreight
ce28c41da0 Bug 1805931, part 2 - Automated removal of uses of ROOT and UNROOT CC macros. r=smaug
As of the prior patch, these are no longer needed. I removed
these with a script, then ran clang-format on the files, then
manually reverted a few unrelated changed from the formatter.

Differential Revision: https://phabricator.services.mozilla.com/D164829
2022-12-15 19:45:01 +00:00
Andrew McCreight
dec541b90a Bug 1805931, part 1 - Declare Root and Unroot inline to save on boilerplate. r=smaug
Bug 181137 made ContentIteratorBase no longer refcounted, but
it did not remove this bit of CC boilerplate. With the inline
root, using this macro in a non-refcounted class is an error.

ObjectModel.h and ClientWebGLContext.cpp used macros to define
root and unroot, but that is no longer needed.

Differential Revision: https://phabricator.services.mozilla.com/D164828
2022-12-15 19:45:00 +00:00
Tom Schuster
bf618bbc4a Bug 1774866 - Always allow cloning error stacks. r=nika,sfink,smaug
Differential Revision: https://phabricator.services.mozilla.com/D164577
2022-12-15 19:03:53 +00:00
Mozilla Releng Treescript
8172425dcc no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
be -> c9a4a87766bfda42bdf42e58b002c2c3a7f0d176
fur -> 4dd12467f339cf7878ef26ce47e9869ce3bab612
he -> b8ecafd106e6e4ce66c06e4e3bb78058e4e38f66
ia -> 92ff3faa1014399b42f315f50b38bd52111e1440
it -> 36793dd60782d599e52ae9863a7b37a8118880e3
kab -> 39c55585541b19a511571e5ecd82444487eaf527
kk -> cecde95350bfa0fa313d1df6ecf52e02e7494942
lo -> 1d5b2dcd31a2f4b4c6764373cb8d1b0d81637e5c
pa-IN -> 220dc6c90cc84ead0f39b6d5f74c8e17bcb6e5cd
th -> a5e83e9739b57190d248bc87e820dc61ad94a87a
2022-12-15 19:06:13 +00:00
Kelsey Gilbert
1ba34b2639 Bug 1805790 - In PWebGL, only IPC_FAIL for ipc errors, not errors over ipc. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D164746
2022-12-15 19:02:12 +00:00
Adam Vandolder
8a69b66390 Bug 1575154 - Add autofocus attribute to HTMLOrForeignElement. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D163753
2022-12-15 18:37:28 +00:00
Greg Mierzwinski
1ae77cb9a3 Bug 1805189 - Update performance testing mots entry. r=davehunt,zeid
This patch updates the mots document with Performance Testing component changes. There are some other changes which were pulled from Bugzilla during this update. The peers are updated to include other Mozilla employees from the #perftest review group (ordered alphabetically by their nickname). Furthermore, the paths are updated to include extra components that are covered by us, and the description is updated to point to our PerfDocs for a more detailed list of component owners and peers (in the future we may move this to the page this patch modifies).

Differential Revision: https://phabricator.services.mozilla.com/D164497
2022-12-15 18:22:30 +00:00
Jon Coppeard
d2b0166600 Bug 1805457 - Add TraceInstanceEdge to trace edges from GC things to wasm::Instances r=sfink
The previous attempt was still a data race because it read the object pointer
out of the Instance during compacting when it could be being updated on a
separate thread.

This skips tracing these edges in compacting and makes it clear that this is
unnecessary for edges to non-GC-thing Instance objects.

Differential Revision: https://phabricator.services.mozilla.com/D164835
2022-12-15 18:10:52 +00:00