Closed Bug 1951797 Opened 1 year ago Closed 1 year ago

[css-view-transitions] Behavior of calling `document.startViewTransition` synchronously more than once

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: mozilla-apprentice, Assigned: boris)

References

(Blocks 1 open bug)

Details

(Whiteboard: [viewtransitions:m1])

Attachments

(2 files)

A resolution was made for csswg-drafts/#11292.

[css-view-transitions] Behavior of calling `document.startViewTransition` synchronously more than once

  • RESOLVED: When starting a new view transition, have the previous active transition do all its cancelation behaviours before the new transition does any of its capturing.

Discussion.

This is a spec change recently. In setup the view transition, the step 2 is Flush the update callback queue now.

This mean we may have to flush the update callback before capturing the old state in Setup().

The testcase is in the spec issue, or Chromium may add one in https://issues.chromium.org/issues/379422729.

Type: defect → task
Whiteboard: [viewtransitions:triage]
Whiteboard: [viewtransitions:triage] → [viewtransitions:m1]
Blocks: 1952366

I notice the test case in Bug 1952366 crashes when calling getKeyframes(). The test will be added together with this spec update from Chromium side, so I'm trying to figure out why we got crashes and perhaps fix this bug together.

Assignee: nobody → boris.chiou
Status: NEW → ASSIGNED

Now we flush the update callback queue before scheduling the new
callback in Setup() to make sure the previous update callbacks get
invoked before we do capturing.

The test case is
css/css-view-transitions/start-view-transtion-skips-active.html, which
is not merged into Gecko yet, so I only can verify this locally with
this test.

Attachment #9471559 - Attachment description: Bug 1951797 - Fix the typo that we should set height into the proper declartion. → Bug 1951797 - Fix the typo that we should set height value into the proper declartion.
Attachment #9471596 - Attachment description: Bug 1951797 - Update the scheduling of flushing the pending update callbacks to match the spec. → Bug 1951797 - Flush the pending update callbacks before capturing the old state.
Pushed by bchiou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/20d6fcfc4372 Fix the typo that we should set height value into the proper declartion. r=view-transitions-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/97f0dc799a56 Flush the pending update callbacks before capturing the old state. r=view-transitions-reviewers,emilio

Backed out for causing wpt failures on start-view-transtion-skips-active.html

Backout link

Push with failures

Failure log

Flags: needinfo?(boris.chiou)

Looks like start-view-transtion-skips-active.html also got merged in the same day. :)

Flags: needinfo?(boris.chiou)
Pushed by bchiou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f747d43d12ee Fix the typo that we should set height value into the proper declartion. r=view-transitions-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/2dbcd0f2826c Flush the pending update callbacks before capturing the old state. r=view-transitions-reviewers,emilio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
Duplicate of this bug: 1952366
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: