Closed Bug 1816108 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 38446 - Set the "previous" page name when setting up the fragment builder.

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 38446 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/38446
Details from upstream follow.

Morten Stenshorne <mstensho@chromium.org> wrote:

Set the "previous" page name when setting up the fragment builder.

Every in-flow child, when adding its fragment to the builder, will
propagate its page name to the builder, so that the builder can keep
track of the previous (or current) page name.

The decision whether to break before a child due to a page name change
is made by essentially comparing the page name of the fragment (that
we're considering to add to the builder) with the previous page name
stored in the builder. Normally this check won't be performed on the
first in-flow child, since there's usually no break opportunity there -
breaks are inserted between siblings, not between a parent and its
child.

However, if there's a class C breakpoint before the first in-flow child,
due to a float, we're going to perform this check at the first, and then
it's important that the builder knows the page name. Without this fix,
we'd detect a page name change (from nothing to "foo" - see the test
included), and insert a break before the first in-flow child.

Bug: 1414718
Change-Id: If7d85f7b0e611f5a5d570de586126b0534478c4b
Reviewed-on: https://chromium-review.googlesource.com/4238838
WPT-Export-Revision: d92a182a32e41eaea908d3f2279a673d0f6d285a

Component: web-platform-tests → Layout
Product: Testing → Core

CI Results

Ran 6 Firefox configurations based on mozilla-central, and Firefox, and Chrome on GitHub CI

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/daf35fbb763c [wpt PR 38446] - Set the "previous" page name when setting up the fragment builder., a=testonly
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8408472dbb2e [wpt PR 38446] - Set the "previous" page name when setting up the fragment builder., a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.