Closed Bug 1550961 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 16684 - Don't modify LayoutObjects about to be detached.

Categories

(Core :: DOM: Core & HTML, defect, P4)

defect

Tracking

()

RESOLVED FIXED
mozilla69
Tracking Status
firefox69 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Rune Lillesveen <futhark@chromium.org> wrote:

Don't modify LayoutObjects about to be detached.

After postponing DetachLayoutTree until the next lifecycle update for
cases where we synchronously detached from LazyReattachedIfAttached(),
there are DidRecalcStyle() callbacks accessing LayoutObjects which
previously did not have LayoutObjects. Check if they are about to be
detached/deleted before doing any updates on them.

In particular, this caused a crash for changing input type where there
was an inconsitency between the type attribute and the LayoutObject
type.

Bug: 958944
Change-Id: If00618b907fc627987bfcb88cc88199c98049314
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1594757
Commit-Queue: Rune Lillesveen \<futhark@chromium.org>
Reviewed-by: Morten Stenshorne \<mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#656772}

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Failed to get results from try push
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e0c0b56fdb68
[wpt PR 16684] - Don't modify LayoutObjects about to be detached., a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
You need to log in before you can comment on or make changes to this bug.