Skip to content

Bug 2070171 - Clear last fallback properly when don't fit after fitting. r=#layout - #362

Closed
emilio wants to merge 1 commit into
mozilla-firefox:autolandfrom
emilio:position-try-loop
Closed

emilio wants to merge 1 commit into
mozilla-firefox:autolandfrom
emilio:position-try-loop

Conversation

@emilio

@emilio emilio commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

If a fallback used to fit, but after fallback none of the positions fit,
we end up in the base position, but we didn't clear the last index
properly, so the fallback reflow kept triggering.

Move the clear to after the loop, and add a test that repros with or
without overlay scrollbars. Add also the test as a crashtest.


Lando: link
Bugzilla: bug 2070171

🚫 This pull request has 1 blocker.

…ng. r=#layout

If a fallback used to fit, but after fallback none of the positions fit,
we end up in the base position, but we didn't clear the last index
properly, so the fallback reflow kept triggering.

Move the clear to after the loop, and add a test that repros with or
without overlay scrollbars. Add also the test as a crashtest.
@lando-web
lando-web Bot requested a review from a team September 9, 2026 12:44
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

View this pull request in Lando to land it once approved.

lando-worker Bot pushed a commit that referenced this pull request Sep 9, 2026
…ng. r=dshin

If a fallback used to fit, but after fallback none of the positions fit,
we end up in the base position, but we didn't clear the last index
properly, so the fallback reflow kept triggering.

Move the clear to after the loop, and add a test that repros with or
without overlay scrollbars. Add also the test as a crashtest.

Pull request: #362
@lando-worker

lando-worker Bot commented Sep 9, 2026

Copy link
Copy Markdown

Pull request closed by commit c70773c

@mozilla-code-review

Copy link
Copy Markdown

No new issues detected. This pull request is 🆗

moz-wptsync-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Sep 10, 2026
If a fallback used to fit, but after fallback none of the positions fit,
we end up in the base position, but we didn't clear the last index
properly, so the fallback reflow kept triggering.

Move the clear to after the loop, and add a test that repros with or
without overlay scrollbars. Add also the test as a crashtest.

Pull request: mozilla-firefox/firefox#362

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=2070171
gecko-commit: 5868bfa1a7ba3fb5628c88e7767f5557284d6251
gecko-commit-git: c70773c3342a4e27f57a4ce8c05f49eecc9b8bf1
gecko-reviewers: dshin
lando-worker Bot pushed a commit that referenced this pull request Sep 16, 2026
…ng. a=pascalc DONTBUILD

If a fallback used to fit, but after fallback none of the positions fit,
we end up in the base position, but we didn't clear the last index
properly, so the fallback reflow kept triggering.

Move the clear to after the loop, and add a test that repros with or
without overlay scrollbars. Add also the test as a crashtest.

Pull request: #362

Differential Revision: https://phabricator.services.mozilla.com/D324999
lando-worker Bot pushed a commit that referenced this pull request Sep 18, 2026
…ng. a=dmeehan DONTBUILD

If a fallback used to fit, but after fallback none of the positions fit,
we end up in the base position, but we didn't clear the last index
properly, so the fallback reflow kept triggering.

Move the clear to after the loop, and add a test that repros with or
without overlay scrollbars. Add also the test as a crashtest.

Pull request: #362

Differential Revision: https://phabricator.services.mozilla.com/D324890
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants