831345 Commits

Author SHA1 Message Date
Masayuki Nakano
fb45899c39 Bug 1815639 - part 5: Make WhiteSpaceVisibilityKeeper::ReplaceText stop touching Selection directly r=m_kato
Depends on D169750

Differential Revision: https://phabricator.services.mozilla.com/D169751
2023-02-21 09:41:11 +00:00
stransky
b2f02e0367 Bug 1813407 [Linux] Remove unused nsWindow::GetMozContainerSize() r=emilio
Depends on D169907

Differential Revision: https://phabricator.services.mozilla.com/D169908
2023-02-21 09:30:12 +00:00
stransky
d170405210 Bug 1813407 [Linux] Get window size from compositor widget if possible in WindowSurfaceWaylandMultiBuffer backend r=emilio
- We want to get window size from compositor widget as it matches window size used by parent RenderCompositorSWGL rendrer.
- For main thread rendering mCompositorWidget is not available so get window size directly from nsWindow.

Depends on D169906

Differential Revision: https://phabricator.services.mozilla.com/D169907
2023-02-21 09:30:11 +00:00
stransky
1b56bde4d2 Bug 1813407 [Linux] Allow to initialize WindowSurfaceProvider with GtkCompositorWidget for OMTC rendering r=emilio
Depends on D169905

Differential Revision: https://phabricator.services.mozilla.com/D169906
2023-02-21 09:30:10 +00:00
stransky
b429a675e0 Bug 1813407 Get widget size only once in RenderCompositorSWGL r=lsalzman
- Get widget size in RenderCompositorSWGL::BeginFrame() and save it for further use. That prevents flickering/artifacts if compositor widget size is changed during rendering.
- Request full screen update when widget size changes on Wayland.

Differential Revision: https://phabricator.services.mozilla.com/D169905
2023-02-21 09:30:10 +00:00
Masayuki Nakano
389decf989 Bug 1815639 - part 4: Make AutoDeleteRangesHandler::HandleDeleteAroundCollapsedRanges stop touching Selection directly r=m_kato
Depends on D169749

Differential Revision: https://phabricator.services.mozilla.com/D169750
2023-02-21 09:23:55 +00:00
Dimi
94e51f3b36 Bug 1817807 - Address telemetry event is not recorded r=credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D170359
2023-02-21 09:18:47 +00:00
Masayuki Nakano
e9ec95c8ea Bug 1815639 - part 3: Make WhiteSpaceVisibilityKeeper::MakeSureToKeepVisibleStateOfWhiteSpacesAroundDeletingRange stop touching Selection directly r=m_kato
Depends on D169748

Differential Revision: https://phabricator.services.mozilla.com/D169749
2023-02-21 09:18:26 +00:00
reynaa
611660bff9 Bug 1801057 - removed code referencing moz_items_annos in store.rs. r=mak,markh
Differential Revision: https://phabricator.services.mozilla.com/D169551
2023-02-21 09:14:21 +00:00
reynaa
c0c46757de Bug 1801057 - removed code referencing moz_items_annos. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D169550
2023-02-21 09:14:21 +00:00
reynaa
fd0fb964c9 Bug 1801057 - removed code as needed in Bookmarks.sys.mjs and PlacesDBUtils.sys.mjs and ran xpcshell tests. r=mak
All 250 tests were passed. Made changes to histograms.

Differential Revision: https://phabricator.services.mozilla.com/D169057
2023-02-21 09:14:20 +00:00
Emilio Cobos Álvarez
e56553284e Bug 1816915 - Tweak how we handle animation restyles on bind/unbind. r=hiro
Remove code on bind/unbind that requested a restyle on an unstyled
element, and that canceled that on an unbound element.

Instead, deal with detached nodes in EffectCompositor.

Tweak test restyles since we now expect one restyle as a result of the
initial composing of the animation that before happened eagerly.

Drive-by remove an unused test function in wpt (animationStartsRightNow
is not defined there anyways).

In practice, this makes it consistent with how we handle bind on
elements in shadow trees.

Differential Revision: https://phabricator.services.mozilla.com/D169932
2023-02-21 08:51:00 +00:00
Kershaw Chang
9e6f57cb94 Bug 1814947, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D169937
2023-02-21 08:44:33 +00:00
Mike Hommey
fac2583920 Bug 1817894 - Force-disable terminfo in clang. r=firefox-build-system-reviewers,andi
Bug 1805664 had the side effect of installing terminfo libraries on the
toolchain docker image, which led to clang gaining a dependency on
libtinfo, leading to multiple failures, like PGO run jobs failing with
llvm-profdata failing to load the new dependency, or tsan tests failing
because llvm-symbolizer doesn't work because of the new dependency not
being fulfilled, which in turn breaks TSAN suppressions.

Differential Revision: https://phabricator.services.mozilla.com/D170417
2023-02-21 08:32:33 +00:00
Masayuki Nakano
e03a3dbc90 Bug 1815639 - part 2: Make WhiteSpaceVisibilityKeeper::DeleteInvisibleASCIIWhiteSpaces stop touching Selection directly r=m_kato
Depends on D169747

Differential Revision: https://phabricator.services.mozilla.com/D169748
2023-02-21 08:29:48 +00:00
Stanca Serban
771d982cfc Backed out 9 changesets (bug 1817714, bug 1817722, bug 1817721, bug 1817719, bug 1817717, bug 1817720, bug 1817715, bug 1817716, bug 1817718) for causing bp-hybrid bustages in nsFind.cpp. CLOSED TREE
Backed out changeset 8acd5a2263f9 (bug 1817722)
Backed out changeset 299f412fa933 (bug 1817721)
Backed out changeset 345907a5a764 (bug 1817720)
Backed out changeset d710584cc1ee (bug 1817719)
Backed out changeset 7a581148ea00 (bug 1817718)
Backed out changeset 0b9d922e895a (bug 1817717)
Backed out changeset 2878e5488069 (bug 1817716)
Backed out changeset 97b49222483f (bug 1817715)
Backed out changeset a556e575cc13 (bug 1817714)
2023-02-21 11:06:43 +02:00
Marian-Vasile Laza
7ccec0b37b Backed out changeset 343daddee430 (bug 1817381) for mochitest failures on test_bug574663.html. CLOSED TREE 2023-02-21 10:41:53 +02:00
Masayuki Nakano
d99c927e45 Bug 1815639 - part 1: Make HTMLEditor::DeleteTextAndTextNodesWithTransaction stop touching Selection directly r=m_kato
Depends on D169746

Differential Revision: https://phabricator.services.mozilla.com/D169747
2023-02-21 08:19:56 +00:00
serge-sans-paille
5cbc64ad01 Bug 1817722 - Make toolkit/components/autocomplet buildable outside of a unified build environment r=andi
Depends on D170326

Differential Revision: https://phabricator.services.mozilla.com/D170327
2023-02-21 08:05:47 +00:00
serge-sans-paille
d8c1a73a01 Bug 1817721 - Make security/sandbox/linux/launch buildable outside of a unified build environment r=andi
Depends on D170325

Differential Revision: https://phabricator.services.mozilla.com/D170326
2023-02-21 08:05:47 +00:00
serge-sans-paille
4d9fd396cb Bug 1817720 - Make security/sandbox/linux/gtest buildable outside of a unified build environment r=andi
Depends on D170324

Differential Revision: https://phabricator.services.mozilla.com/D170325
2023-02-21 08:05:46 +00:00
serge-sans-paille
fa5fab194b Bug 1817719 - Make dom/promise buildable outside of a unified build environment r=andi
Depends on D170323

Differential Revision: https://phabricator.services.mozilla.com/D170324
2023-02-21 08:05:46 +00:00
serge-sans-paille
05fbddae67 Bug 1817718 - Make dom/media/webrtc/jsapi buildable outside of a unified build environment r=andi
Depends on D170322

Differential Revision: https://phabricator.services.mozilla.com/D170323
2023-02-21 08:05:45 +00:00
serge-sans-paille
a6e2f7dbce Bug 1817717 - Make toolkit/components/resistfingerprinting buildable outside of a unified build environment r=andi
Depends on D170321

Differential Revision: https://phabricator.services.mozilla.com/D170322
2023-02-21 08:05:45 +00:00
serge-sans-paille
94eb48d31d Bug 1817716 - Make intl/uconv buildable outside of a unified build environment r=andi
Depends on D170320

Differential Revision: https://phabricator.services.mozilla.com/D170321
2023-02-21 08:05:45 +00:00
serge-sans-paille
64e901c4b0 Bug 1817715 - Make toolkit/components/browser buildable outside of a unified build environment r=andi
Depends on D170319

Differential Revision: https://phabricator.services.mozilla.com/D170320
2023-02-21 08:05:44 +00:00
serge-sans-paille
43753d4f33 Bug 1817714 - Make toolkit/components/find buildable outside of a unified build environment r=andi
Differential Revision: https://phabricator.services.mozilla.com/D170319
2023-02-21 08:05:43 +00:00
Jonathan Kew
4594ae314a Bug 1815404 - Replace most uses of gfxContext::CreateOrNull with stack-allocated contexts. r=gfx-reviewers,lsalzman
Depends on D170370

Differential Revision: https://phabricator.services.mozilla.com/D170371
2023-02-21 07:28:25 +00:00
Jonathan Kew
5b9588f1aa Bug 1815404 - Eliminate gfxContext::CreatePreservingTransformOrNull, and replace callers with stack-allocated gfxContext. r=gfx-reviewers,lsalzman
Depends on D170369

Differential Revision: https://phabricator.services.mozilla.com/D170370
2023-02-21 07:28:24 +00:00
Jonathan Kew
1b3e69f8aa Bug 1815404 - Remove refcounting from gfxContext. r=gfx-reviewers,lsalzman
Depends on D170367

Differential Revision: https://phabricator.services.mozilla.com/D170369
2023-02-21 07:28:24 +00:00
Jonathan Kew
64fac83d98 Bug 1815404 - The drawTarget wrapped by a gfxContext never changes, so doesn't need to be stored in AzureState. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D170367
2023-02-21 07:28:23 +00:00
Mozilla Releng Treescript
d2bc3ab30b no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
cak -> a645f651c85a6f987323625e413cf512a137cc68
ia -> 01ee0d8661c09394d18ac0dea0b95af4cffcf14c
kab -> da46a7a2b41f5cee7bb481c3e4c31e7b75b12e50
ko -> 7ff734b3977aa0f68779117e78ce2bf7ecd0539c
oc -> c88c57901c69e2409a006912c8de768a5fb13a31
pa-IN -> 7b6423e31b999917461e2e050be634c31354b620
sv-SE -> 7fd2f4c1b23086063719c01549d84bf3462cae69
zh-CN -> 20713b2ed832c58ecfd71f492a9aedf965a9d43d
2023-02-21 06:59:24 +00:00
Emilio Cobos Álvarez
1f4a94702f Bug 1817381 - Remove DOMWindowUtils.fullZoom. r=jfkthame,layout-reviewers,extension-reviewers,rpl,geckoview-reviewers,m_kato
Callers just want the actual full zoom, not the one including the OS
text-scale.

Android doesn't have OS zoom to begin with, so this can't change
behavior, but the desktop caller passes the usual full zoom here[1], so
we're making the behavior match.

[1]: https://searchfox.org/mozilla-central/rev/9de332d5c8faac58dc1232b8a6383ce6cb1400f4/browser/components/extensions/parent/ext-tabs.js#1011

Depends on D170196

Differential Revision: https://phabricator.services.mozilla.com/D170197
2023-02-21 05:37:35 +00:00
Cosmin Sabou
720942a247 Backed out 3 changesets (bug 1815140) for causing wrapper related dt failures. CLOSED TREE
Backed out changeset 0380de95a301 (bug 1815140)
Backed out changeset dd7288d15da0 (bug 1815140)
Backed out changeset 7f50487ea10c (bug 1815140)
2023-02-21 07:15:20 +02:00
Itiel
5ee94b5a7d Bug 1817866 - Align the menu on about:logins with the menu button r=sgalich
Also use a var for the focus outline instead of hardcoding it.

Differential Revision: https://phabricator.services.mozilla.com/D170401
2023-02-21 04:56:52 +00:00
Brad Werth
e1fa765363 Bug 1815140 Part 3: Add a test of grid fragment equality across reflows. r=jdescottes
This also fixes the ordering of the tests in chrome.ini, which avoids an
eslint warning.

Differential Revision: https://phabricator.services.mozilla.com/D170096
2023-02-21 04:06:38 +00:00
Brad Werth
58d5d29387 Bug 1815140 Part 2: Make grid highlighter hasMoved directly compare the grid fragment objects. r=devtools-reviewers,jdescottes
The Grid objects will be regenerated whenever the grid is reflowed, which
is nearly the same to the old check of comparing the contents of the
grid structure. This approach is prone to false positives, which is
explained in a new comment.

Differential Revision: https://phabricator.services.mozilla.com/D169725
2023-02-21 04:06:37 +00:00
Brad Werth
79ab63aee9 Bug 1815140 Part 1: Make Grid dom object an idempotent property of its frame. r=emilio
This ensures that repeated calls to Element::GetGridFragments will return
an array of idempotent Grid objects for each fragment. This is
accomplished by making the Grid object hold a WeakFrame back to its
originating frame, and updating a property on construction and
destruction.

Differential Revision: https://phabricator.services.mozilla.com/D169724
2023-02-21 04:06:37 +00:00
Glenn Watson
f14e041e65 Bug 1817505 - Revert enable of tiled rendering path, for now r=gfx-reviewers,lsalzman
This patch exposes an unrelated issue that causes a performance regression.

For now, we'll revert this to get back to a normal baseline. Then, separately
fix the underlying code which regresses perf, then re-land this patch.

Revert "Bug 1811978 - Enable the new tiled rendering path, update test expectations r=gfx-reviewers,nical"

This reverts commit 7f3a2568aabf9fa2358fe0f7421042ba85a23442.

Differential Revision: https://phabricator.services.mozilla.com/D170399
2023-02-21 03:38:26 +00:00
sotaro
959d11a58a Bug 1817712 - Disable Feature::WEBRENDER_DCOMP_PRESENT when GPU process is disabled r=gfx-reviewers,nical
DirectComposition Device is not created when GPU process does not exist.

Differential Revision: https://phabricator.services.mozilla.com/D170315
2023-02-21 00:05:20 +00:00
Alexandre Poirot
8436152f72 Bug 1815888 - [devtools] Always use source-maps util module getOriginalLocation method. r=devtools-reviewers,bomsy
See previous changeset for the rationale of this change.

Differential Revision: https://phabricator.services.mozilla.com/D169329
2023-02-20 22:28:15 +00:00
Alexandre Poirot
0df99cad60 Bug 1815888 - [devtools] Always use source-maps util module getGeneratedLocation method. r=devtools-reviewers,bomsy
For now, the debugger frontend either directly query sourceMapLoader.getGeneratedLocation
or use the util's module helper.
We should unify before the utils module helper so that we can later append
the source object on the output of the sourceMapLoader.

Also simplified a bit various code passing both getState+sourceMapLoader
by handing over the thunkArgs.
The util's module helper requires state, so that this changes forces to
pass thunkArgs to some nested callsites of getGeneratedLocation.

Differential Revision: https://phabricator.services.mozilla.com/D169328
2023-02-20 22:28:15 +00:00
Florian Quèze
7567717c5e Bug 1817506 - Make accessible/tests/mochitest/tree/test_media.html wait for Fluent to update asynchronously the accessible value of the scrubber, r=Gijs.
Differential Revision: https://phabricator.services.mozilla.com/D170396
2023-02-20 22:16:19 +00:00
Mike Hommey
f511de3b25 Bug 1810223 - Make find_sdk_tool from msix repackaging use configure to find the Windows SDK. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D170172
2023-02-20 21:58:47 +00:00
Mike Hommey
4b06fce63f Bug 1810223 - Avoid relying on the preprocessor to check the WINVER_MAXVER value in the Windows SDK. r=firefox-build-system-reviewers,andi
We're going to (ab)use the configure scripts to get the right SDK
locations for msix repackaging, and it would be preferable to avoid
requiring the preprocessor for that.

Differential Revision: https://phabricator.services.mozilla.com/D170171
2023-02-20 21:58:47 +00:00
Itiel
2346ab0fa1 Bug 1817865 - Fill icons on the UEP with the current color r=willdurand,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D170400
2023-02-20 21:50:13 +00:00
Lee Salzman
b8beed3ae4 Bug 1817455 - Limit rect precision to avoid shader rounding diverging from path fallback. r=gfx-reviewers,aosmond
Rectangle with large floating-point values can start to lose mantissa bits when transformed directly
by the vertex shader, pushed through the viewport transform, and then clipped later. OTOH, the path
fallback (WGR/AA-Stroke or Skia) does not stress floating-point precision as much, so generally
returns more correct results in these cases. This becomes noticeable when the same rectangle is
filled and then subsequently stroked, since the fill may use the rect shader, while the the stroke
will fall back to using a path.

To avoid hitting this issue, this checks if a rect's coordinate are outside as certain reasonable
limit, and if so, falls back to relying on path geometry to handle transform and clipping safely.
If within the limit, the shader precision loss doesn't noticeably impact the results so it is still
safe to use the fast-path.

Differential Revision: https://phabricator.services.mozilla.com/D170270
2023-02-20 21:30:08 +00:00
Jan Grulich
563488a1b5 Bug 1817263 - fix OS picker behavior under Wayland r=ng,jib,stransky
Recent WebRTC backports and changes that are about to be backported from
upstream to Firefox breaks and will break how we work with PipWire based
desktop capturer. Currently when constructing device list, a fallback to
ScreenCapturerX11 is used, as we don't call set_allow_pipewire(), which
wouldn't make a difference anyway. In such case the only thing we need
is a placeholder for a screen that will request OS level prompt. We also
need a way to request both screens and windows in one xdg-desktop-portal
call as recent WebRTC made each type be called separately, therefore the
introduction of GenericCapturer. Lastly we need to make sure when there
is a MediaDevice requesting the OS prompt, that it will be checked as
first.

In order to use unmodified libwebrtc, Firefox would need to rework the
OS picker to request each type (screens and windows) separately so we
can just use regular ScreenCapturer and WindowCapturer. This should be
done ideally the way Chromium does it, where users can actually see
even the preview of what they picked over xdg-desktop-portal before it
is actually shared with requesting web page and they also have option
to make the request again in case they picked a wrong window or screen.

Differential Revision: https://phabricator.services.mozilla.com/D169627
2023-02-20 21:25:56 +00:00
Cosmin Sabou
df1206468f Backed out changeset 5c47ae2de529 (bug 1805664) for causing bug 1817894 and breaking clang 15. CLOSED TREE 2023-02-21 03:21:39 +02:00
Mike Hommey
6124c8c443 Bug 1817874 - Remove leftover of bug47258-extract-symbols-mbcs.patch. r=aryx CLOSED TREE
The patch was removed in bug 1815364 because we actually don't need it,
but there was some leftover.

Differential Revision: https://phabricator.services.mozilla.com/D170415
2023-02-21 00:01:54 +00:00