Closed Bug 1518633 Opened 5 years ago Closed 5 years ago

Consider adding a profiler label for anchor node selection

Categories

(Core :: Layout: Scrolling and Overflow, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: rhunt, Assigned: rhunt)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Anchor node selection [1] is a pretty involved frame tree traversal. Scroll anchoring does its best to batch and defer this, but it's possible it could take a non-trivial amount of time on some pages.

It might make sense to have a profiler label here so we could identify when this is happening.

[1] https://drafts.csswg.org/css-scroll-anchoring-1/#anchor-node-selection

This mouse click seems superfluous, as window.focus() is called immediately after.

In addition, this click is somehow causing a page up scroll, as it's clicking
a slider frame. This causes the test to fail with scroll anchoring enabled,
for some reason. Removing this click seems to be the easiest solution, as it
doesn't seem intentional.
Pushed by rhunt@eqrion.net:
https://hg.mozilla.org/integration/mozilla-inbound/rev/ad851d4345c0
part 15 - Remove unneeded mouse click test_bug633762. r=mattwoodrow

Ugh, wrong bug number for that commit. It should be bug 1305957.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Priority: -- → P3

This shouldn't block release of scroll anchoring.

No longer blocks: scroll-anchoring-release
Pushed by rhunt@eqrion.net:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5f184a902803
Add profiler label for anchor node selection. r=mstange
Status: REOPENED → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → FIXED
Regressions: 1563999
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: