Commit Graph

820682 Commits

Author SHA1 Message Date
Nicolas Silva
ed0908ee88 Bug 1797975 - Simplify the pending frame count tracking code. r=gfx-reviewers,bradwerth
Only transactions that contain the generate_frame flag are tracked by the pending frame and frame build counters.
This patch attempts to make this clearer with two small adjustments:

Firstly by putting the IncPendingFrameCount call right next to Transaction::GenerateFrame.

Secondly, undoing the hack in wr_notifier_wake_up. The latter is called outside of normal rendered/tracked frames and was calling HandleFrameOneDoc which decrements the rendered frame counter. To compensate it had to manually increment both counters via IncPendingFrameCount and manually decrement the built frame counter via DecPendingFrameBuildCount. Instead this patch introduces the aTrackedFrame argument so that HandleFrameOneDoc only fiddles with the counters when needed and wake_up does not have to hack around it.

Differential Revision: https://phabricator.services.mozilla.com/D162298
2022-11-21 14:10:29 +00:00
Nicolas Silva
102d7f184c Bug 1797975 - Reset mSkippedComposite when a composite is sucessfully scheduled. r=gfx-reviewers,bradwerth
mSkippedComposite's purpose is to keep track of the fact that the window is not up to date because the previous composite was skipped. This informs RetrySkippedComposite that a new frame is needed to get the latest changes rendered. As soon as we successfully schedule a composite know that the latest changes are en route to be rendered so we don't need RetrySkippedComposite to push an additional frame later.

Differential Revision: https://phabricator.services.mozilla.com/D162297
2022-11-21 14:10:29 +00:00
Nicolas Silva
af16db6234 Bug 1797975 - Remove outdated comments about mIsRendering. r=gfx-reviewers,bradwerth
mIsRendering does not appear to exist (anymore).

Differential Revision: https://phabricator.services.mozilla.com/D162296
2022-11-21 14:10:28 +00:00
Nicolas Silva
5a18024f2b Bug 1797975 - Rename CompositeIfNeeded into RetrySkippedComposite. r=gfx-reviewers,bradwerth
The previous name could have related to any situation where a composite is needed such as when animating or receiving transactions, but the function is actually specifically about scheduling a new composite if the previous one was skipped.

Differential Revision: https://phabricator.services.mozilla.com/D162295
2022-11-21 14:10:28 +00:00
Nicolas Silva
6352b3770e Bug 1797975 - Simplify the compositor throttling logic. r=gfx-reviewers,bradwerth
- Ensure that the pending frame count is decremented by HandleFrameOneDoc even after some of the rare early-outs.
- Always check TooManyPendingFrames in CompositeToTarget.

It is unclear that these will actually catch (all of) the extraneous skipped frames. If anything, the simplification will make further investigation easier.

Differential Revision: https://phabricator.services.mozilla.com/D162294
2022-11-21 14:10:27 +00:00
ffxbld
70b662d1ff No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D162552
2022-11-21 14:06:35 +00:00
Butkovits Atila
d5517a6ff7 Backed out 5 changesets (bug 1790163, bug 1473911) for causing build bustage at nsIDNService.cpp. CLOSED TREE
Backed out changeset 7b91b96b9f37 (bug 1473911)
Backed out changeset e33697d1250c (bug 1790163)
Backed out changeset ac5db69fee7a (bug 1790163)
Backed out changeset b2ae8efefc8c (bug 1790163)
Backed out changeset 51d20d84a0ea (bug 1790163)
2022-11-21 15:34:52 +02:00
Jens Stutte
205017e2b5 Bug 1801525 - Check for the existence of the encoding attribute of an io.BytesIO stream. r=davehunt
Differential Revision: https://phabricator.services.mozilla.com/D162539
2022-11-21 12:36:48 +00:00
Norisz Fay
017a1c7706 Backed out changeset f8ee92c050f2 (bug 1801492) for causing bc failures on browser_unknownContentType_blob.js CLOSED TREE 2022-11-21 15:15:25 +02:00
Valentin Gosu
ad96d489c5 Bug 1473911 - Fix URL spoofing combining dot + ijk r=necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D161783
2022-11-21 12:01:25 +00:00
Valentin Gosu
f3c76f65ca Bug 1790163 - Fix IDN spoofing 30FC r=necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D161782
2022-11-21 12:01:25 +00:00
Valentin Gosu
89cd50219a Bug 1790163 - Disable tests that don't pass r=necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D161781
2022-11-21 12:01:24 +00:00
Valentin Gosu
059d445ce8 Bug 1790163 - Import chrome spoofing test cases r=necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D161780
2022-11-21 12:01:23 +00:00
Valentin Gosu
f260999dcd Bug 1790163 - Modernize illegalScriptCombo with enum r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D161779
2022-11-21 12:01:22 +00:00
Tim Chevalier
e9a927a85d Bug 1789315 - Eliminate jsapi.h dependency from vm/Iteration.cpp r=anba
A missing #include of jsapi.h was causing a build failure when building the
entire browser with ENABLE_RECORD_TUPLE set. Removed dependencies on this
header file.

Differential Revision: https://phabricator.services.mozilla.com/D156494
2022-11-21 10:58:49 +00:00
Butkovits Atila
887a77ba5f Backed out 13 changesets (bug 1794070) for causing failures at browser_test_swipe_gesture.js. CLOSED TREE
Backed out changeset afe487b23e1c (bug 1794070)
Backed out changeset b119052f690d (bug 1794070)
Backed out changeset 733188f6b7ca (bug 1794070)
Backed out changeset 53273c86140a (bug 1794070)
Backed out changeset e2e39e61efbe (bug 1794070)
Backed out changeset 93b240feb781 (bug 1794070)
Backed out changeset 78aea5c32e14 (bug 1794070)
Backed out changeset 158008a6363b (bug 1794070)
Backed out changeset 3c3e76c8bf49 (bug 1794070)
Backed out changeset 39beb7abc321 (bug 1794070)
Backed out changeset 0ded01fbbd9e (bug 1794070)
Backed out changeset cf4552e5e11b (bug 1794070)
Backed out changeset 317ee240609d (bug 1794070)
2022-11-21 13:41:34 +02:00
Makoto Kato
6ea7dfc3db Bug 1785759 - Part 2. Make BasicSelecitonDelegate fission compatible. r=geckoview-reviewers,calu
`SelectionActionDelegate.Selection.clientRect` isn't fission compatible. It is
better to use screen coordinate for selection data, instead of client
coordinate since it has no easy way to calculate client coordinate with
fission.

If we can have `screenRect`, `mTempMatrix` and `mTempRect` are unnecessary, so
we should be marked as deprecated too.

Differential Revision: https://phabricator.services.mozilla.com/D161416
2022-11-21 10:40:40 +00:00
Makoto Kato
faa9f8d163 Bug 1785759 - Part 1. Add LayoutUtils.rectToScreenRect. r=emilio
I would like screen coordinate version by screen pixel for
`getElementBoundingScreenRect` for GeckoView to support fission since it
returns CSS pixel.

Differential Revision: https://phabricator.services.mozilla.com/D161415
2022-11-21 10:40:40 +00:00
Emilio Cobos Álvarez
78d3105a42 Bug 1801492 - Reset download status descriptions properly. r=dao
Bug 1801492 changed the behavior here in a way that

  <description value="foo">bar</description>

Shows both "foo" and "bar". This code has multiple l10n ids that do a
mix of innerText vs. value attribute, see:

  https://searchfox.org/mozilla-central/rev/3d01e045479a6e5237958bd9aa8eb64306e1f48a/browser/locales/en-US/browser/downloads.ftl#162-168

That's all a bit sketchy over-all, but in order to support all of them
as is, reset them properly.

Differential Revision: https://phabricator.services.mozilla.com/D162464
2022-11-21 10:37:21 +00:00
Emilio Cobos Álvarez
d287e218e1 Bug 1801500 - Partially back out bug 1795890. r=dao
As per comments there.

Differential Revision: https://phabricator.services.mozilla.com/D162470
2022-11-21 10:30:53 +00:00
Tom Schuster
c1cdfabc87 Bug 1799156 - Filter unknown DataTransferItem flavors. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D161487
2022-11-21 10:18:38 +00:00
Jonathan Kew
5c7ab9c2eb Bug 1801248 - Fix up pointer arithmetic. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D162496
2022-11-21 10:07:03 +00:00
Emilio Cobos Álvarez
905441daab Bug 1801123 - Enable container queries on nightly. r=dshin
There's only one worrying timeout
(css/css-contain/container-queries/inline-size-bfc-floats.html), but it
isn't a "hard" hang, but an invalidation loop.

Let's enable this by default on nightly to get some feedback while we
work on it and the remaining issues that block enabling them by default.

Differential Revision: https://phabricator.services.mozilla.com/D162292
2022-11-21 10:04:31 +00:00
Emilio Cobos Álvarez
f83b2bcaad Bug 1798396 - Move win-exclude-glass region handling to work with non-xul-box frames. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D162534
2022-11-21 10:02:16 +00:00
Julian Seward
0412850ea8 Bug 1797933, part 1 - rename {M,L}WasmLoadObjectField et al. r=rhunt.
Naming of MIR and LIR nodes WasmLoadObjectField et al is somewhat confusing:

* It is inconsistent which of the fields point to the base of the memory area
  to access, and which if any are the keepalive-object pointer, eg:
  - WasmLoadObjectField: `obj` is the base pointer
  - WasmLoadObjectDataField: `data` is the base pointer, `obj` is the keepalive

* having `Data` in the name doesn't really convey the meaning "also carries a
  keepalive pointer"

They are renamed thusly:

  WasmLoadObjectField         -> WasmLoadField
  WasmLoadObjectDataField     -> WasmLoadFieldKA
  WasmStoreObjectDataField    -> WasmStoreFieldKA
  WasmStoreObjectDataRefField -> WasmStoreFieldRefKA

Changes:
* change `Data` in the name to `KA` at the end, to indicate that the node also
  takes a keepalive operand
* consistently use `ka` as the name of the keepalive MIR/LIR node
* consistently use `obj` as the name of the base pointer MIR/LIR node

Differential Revision: https://phabricator.services.mozilla.com/D161252
2022-11-21 09:59:49 +00:00
James Graham
d385e7d379 Bug 1801587 - Disable crashing test on windows debug, r=aryx,tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D162533
2022-11-21 09:56:06 +00:00
Brian Birtles
fef2d448e2 Bug 1789776: Add indexed getter and length property to CSSKeyframesRule; r=emilio
Implements spec change 354c40d988

Differential Revision: https://phabricator.services.mozilla.com/D162526
2022-11-21 09:41:51 +00:00
William Durand
d9d3f37d7e Bug 1801048 - Use unified-extensions-item CSS class everywhere. r=Itiel,desktop-theme-reviewers
Depends on D162271

Differential Revision: https://phabricator.services.mozilla.com/D162272
2022-11-21 09:12:19 +00:00
Norisz Fay
7ff0fdcf68 Backed out changeset 4867880b2d80 (bug 1801123) for causing xpcshell failures on test_css-properties-db.js CLOSED TREE 2022-11-21 11:13:18 +02:00
Tom Schuster
37a54bd417 Bug 1801086 - Annotate passing tests in Beta/Release using the Reporting API. r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D162400
2022-11-21 08:44:14 +00:00
Emilio Cobos Álvarez
9d9d8869e5 Bug 1799952 - Add rust-analyzer scip index for Searchfox. r=asuth,glandium
Package rust-analyzer in the rust repack, and use it to generate a scip index.

Differential Revision: https://phabricator.services.mozilla.com/D161716
2022-11-21 08:07:27 +00:00
Emilio Cobos Álvarez
d38d7fc847 Bug 1801517 - Remove nsPresContext::IsRootContentDocument(). r=hiro
The Element caller only cares about avoiding a flush and can use the
observable parent layout stuff.

The scrollframe one clearly wants the cross-process version according to
the comment.

Differential Revision: https://phabricator.services.mozilla.com/D162477
2022-11-21 08:04:58 +00:00
Emilio Cobos Álvarez
01fe22445e Bug 1801123 - Enable container queries on nightly. r=dshin
There's only one worrying timeout
(css/css-contain/container-queries/inline-size-bfc-floats.html), but it
isn't a "hard" hang, but an invalidation loop.

Let's enable this by default on nightly to get some feedback while we
work on it and the remaining issues that block enabling them by default.

Differential Revision: https://phabricator.services.mozilla.com/D162292
2022-11-21 08:01:11 +00:00
Tiaan Louw
650c19c965 Bug 1799111 - Don't apply auto min sizing when spanning flexible tracks. r=emilio
This is the first part of the bug.  A clarification in the spec states
that a grid item spanning multiple tracks, which include a flexible
track, should not participate in auto min sizing calculation and should
have a width of 0.

https://w3c.github.io/csswg-drafts/css-grid-1/#min-size-auto

For the reftest, the previous overrides are removed as the correct
behaviour is now implemented.

Differential Revision: https://phabricator.services.mozilla.com/D160900
2022-11-21 07:21:17 +00:00
Mozilla Releng Treescript
47a95b3048 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
de -> 1b1677f28c8c583a39e0988949c4cf0875b1954d
es-ES -> 108740df5eb717ae705ffa4f14d7d8f6d224bb12
th -> 9af5ff9aba74750adefd97a5cc7fa84843329c6f
2022-11-21 06:59:55 +00:00
sotaro
1ba0c7b034 Bug 1782219 - Protect sVideoBridgeFromProcess by StaticDataMutex r=jrmuizel
sVideoBridgeFromProcess is accessed from some threads.

Differential Revision: https://phabricator.services.mozilla.com/D159356
2022-11-21 05:18:36 +00:00
Hiroyuki Ikezoe
024f31065c Bug 1794070 - Make a pan start event wait for the browser gesture code response. r=botond
So that APZ can wait to handle the event to do overscrolling until the browser
responds that the event wasn't used for gestures.

Differential Revision: https://phabricator.services.mozilla.com/D160438
2022-11-21 03:10:08 +00:00
Hiroyuki Ikezoe
ff188b2a0c Bug 1794070 - Ignore overscrollable check in CanScrollTargetHorizontally. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D162362
2022-11-21 03:10:08 +00:00
Hiroyuki Ikezoe
5a42df888d Bug 1794070 - Introduce PanGestureInput::AllowsSwipe(). r=botond
Differential Revision: https://phabricator.services.mozilla.com/D160437
2022-11-21 03:10:08 +00:00
Hiroyuki Ikezoe
5b39846aeb Bug 1794070 - Refer mRequiresContentResponseIfCannotScrollHorizontallyInStartDirection flag instead of calling SwipeTrackker::CanTriggerSwipe(). r=botond
And rename mRequiresContentResponseIfCannotScrollHorizontallyInStartDirection to
mMayTriggerSwipe.

So basically once after the flag is set, we should use it.

Differential Revision: https://phabricator.services.mozilla.com/D160436
2022-11-21 03:10:07 +00:00
Hiroyuki Ikezoe
ae5bdfff82 Bug 1794070 - Make mRequiresContentResponseIfCannotScrollHorizontallyInStartDirection private. r=botond
And initialized it only in ctors so that in the next change we can use it to
tell whether this pan event may trigger swipe or not without calling
SwipeTracker::CanTriggerSwipe every time.

There's an unintuitive change in a GTest sending a horizontal pan-start event.
With this changeset, all incomming pan-start events on desktop platforms
basically set mRequiresContentResponseIfCannotScrollHorizontallyInStartDirection
to true even if the event is generated in GTests. So the pan start event runs
into the short circuit path for swipe-to-navigation. This is a good thing because
it means the GTest replicates what our browser does properly.

Differential Revision: https://phabricator.services.mozilla.com/D160435
2022-11-21 03:10:07 +00:00
Hiroyuki Ikezoe
3fb8018d34 Bug 1794070 - Check mOverscrollBehaviorAllowsSwipe whether we do the short circuit for swipe. r=botond
Though this isn't a real bug at all since later we check the flag in
nsBaseWidget::MayStartSwipeForAPZ [1], this change includes a browser
mochitest to make sure `overscroll-behavior: contain` prevents swipe
navigations.


[1] https://searchfox.org/mozilla-central/rev/c5c002f81f08a73e04868e0c2bf0eb113f200b03/widget/nsBaseWidget.cpp#2294

Differential Revision: https://phabricator.services.mozilla.com/D160434
2022-11-21 03:10:06 +00:00
Hiroyuki Ikezoe
df505b470b Bug 1794070 - Run the test case listening "wheel" event at the last in browser_test_swipe_gesture.js. r=botond
There's a bug (bug 1800022) that wheel event listeners in the browser process
badly interact with overscroll even so we'd avoid the bug here.

Differential Revision: https://phabricator.services.mozilla.com/D161752
2022-11-21 03:10:06 +00:00
Hiroyuki Ikezoe
23934b8a4d Bug 1794070 - Use await SpecialPowers.popPrefEnv() explicitly at the end of each test. r=tnikkel
Otherwise prefs set in the previous test case will persist. In fact
some of test cases were lacking "browser.swipe.navigation-icon-move-distance".

Differential Revision: https://phabricator.services.mozilla.com/D161751
2022-11-21 03:10:06 +00:00
Hiroyuki Ikezoe
b317e88da3 Bug 1794070 - Fix preference name typos in browser_test_swipe_gesture.js. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D161750
2022-11-21 03:10:05 +00:00
Hiroyuki Ikezoe
7ad2ff3232 Bug 1794070 - Add "overscrolled" state in APZTestData.additionalData. r=botond
We'd like to use this for testing overscroll state in mochitests.

Differential Revision: https://phabricator.services.mozilla.com/D160433
2022-11-21 03:10:05 +00:00
Hiroyuki Ikezoe
4b63d269b4 Bug 1794070 - Do the stuff for short circuit of swipe-to-navigation after calling MaybeRequestContentResponse. r=botond
The stuff calls PanGestureBlockState::SetNeedsToWaitForContentResponse which sets
mWaitingForContentResponse flag, but the flag will clobbered in
MaybeRequestContentResponse().

Differential Revision: https://phabricator.services.mozilla.com/D160432
2022-11-21 03:10:04 +00:00
Hiroyuki Ikezoe
0ddb04728f Bug 1794070 - Remove APZEventStat::ProcessClusterHit declaration. r=botond
The implementation got removed in bug 1618545.
https://hg.mozilla.org/mozilla-central/rev/3de8fd99080d63f47da911afe39f489de5864e9e

Differential Revision: https://phabricator.services.mozilla.com/D160431
2022-11-21 03:10:04 +00:00
Hiroyuki Ikezoe
7b3134f7c1 Bug 1794070 - Drop "OS X" or macOS in comments about swipe-to-navigation. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D160430
2022-11-21 03:10:04 +00:00
moz-wptsync-bot
60e69287be Bug 1801556 - [wpt-sync] Update web-platform-tests to e89b6eb4952b217c1a7b6540b0fe2613b0b09c54, a=testonly
MANUAL PUSH: wpt sync bot

wpt-head: e89b6eb4952b217c1a7b6540b0fe2613b0b09c54
wpt-type: landing
2022-11-21 02:54:09 +00:00