Open Bug 2089764 Opened 14 days ago Updated 21 hours ago

Assertion failure: aNewFrame->GetParent() == outOfFlowFrameList->mContainingBlock (Parent of the frame is not the containing block?), at checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:1093 (InspectorUtils forcing :fullscreen on an <svg:text>)

Categories

(Core :: CSS Parsing and Computation, defect, P3)

defect

Tracking

()

Tracking Status
firefox-esr115 --- unaffected
firefox-esr153 --- wontfix
firefox160 --- wontfix
firefox161 --- wontfix
firefox162 --- wontfix
firefox163 --- fix-optional

People

(Reporter: tsmith, Unassigned, NeedInfo)

References

(Blocks 1 open bug, Regression)

Details

(4 keywords, Whiteboard: [bugmon:bisected,confirmed])

Attachments

(1 file)

Attached file testcase.html —

Found while fuzzing m-c 20261102-61d640c1e032 (--enable-debug --enable-fuzzing)

To reproduce via Grizzly Replay:

$ pip install fuzzfetch grizzly-framework --upgrade
$ python -m fuzzfetch -d --fuzzing -n firefox
$ python -m grizzly.replay.bugzilla ./firefox/firefox <bugid>

Assertion failure: aNewFrame->GetParent() == outOfFlowFrameList->mContainingBlock (Parent of the frame is not the containing block?), at checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:1093

#0 0x7fffeb351735 in MOZ_CrashSequence /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:261:3
#1 0x7fffeb351735 in nsFrameConstructorState::AddChild(nsIFrame*, nsFrameList&, nsIContent*, nsContainerFrame*, bool, bool, bool, nsIFrame*) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:1092:5
#2 0x7fffeb35b8d0 in nsCSSFrameConstructor::ConstructBlock(nsFrameConstructorState&, nsIContent*, nsContainerFrame*, nsContainerFrame*, mozilla::ComputedStyle*, nsContainerFrame**, nsFrameList&, nsIFrame*) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:10024:10
#3 0x7fffeb35f5d0 in nsCSSFrameConstructor::ConstructNonScrollableBlock(nsFrameConstructorState&, nsCSSFrameConstructor::FrameConstructionItem&, nsContainerFrame*, nsStyleDisplay const*, nsFrameList&) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:4354:3
#4 0x7fffeb360836 in nsCSSFrameConstructor::ConstructFrameFromItemInternal(nsCSSFrameConstructor::FrameConstructionItem&, nsFrameConstructorState&, nsContainerFrame*, nsFrameList&) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:3675:16
#5 0x7fffeb36492f in nsCSSFrameConstructor::ConstructFramesFromItem(nsFrameConstructorState&, nsCSSFrameConstructor::FrameConstructionItemList::Iterator&, nsContainerFrame*, nsFrameList&) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:5306:3
#6 0x7fffeb356515 in nsCSSFrameConstructor::ConstructFramesFromItemList(nsFrameConstructorState&, nsCSSFrameConstructor::FrameConstructionItemList&, nsContainerFrame*, bool, nsFrameList&) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:8888:5
#7 0x7fffeb3579ff in nsCSSFrameConstructor::ProcessChildren(nsFrameConstructorState&, nsIContent*, mozilla::ComputedStyle*, nsContainerFrame*, bool, nsFrameList&, bool, nsIFrame*) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:9191:3
#8 0x7fffeb360cf4 in nsCSSFrameConstructor::ConstructFrameFromItemInternal(nsCSSFrameConstructor::FrameConstructionItem&, nsFrameConstructorState&, nsContainerFrame*, nsFrameList&) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:3772:9
#9 0x7fffeb36492f in nsCSSFrameConstructor::ConstructFramesFromItem(nsFrameConstructorState&, nsCSSFrameConstructor::FrameConstructionItemList::Iterator&, nsContainerFrame*, nsFrameList&) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:5306:3
#10 0x7fffeb356515 in nsCSSFrameConstructor::ConstructFramesFromItemList(nsFrameConstructorState&, nsCSSFrameConstructor::FrameConstructionItemList&, nsContainerFrame*, bool, nsFrameList&) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:8888:5
#11 0x7fffeb36823c in nsCSSFrameConstructor::ContentRangeInserted(nsIContent*, nsIContent*, nsCSSFrameConstructor::InsertionKind) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:6462:3
#12 0x7fffeb2385b4 in mozilla::RestyleManager::ProcessRestyledFrames(nsStyleChangeList&) /builds/worker/workspace/obj-build/layout/style/./../../../../checkouts/gecko/layout/style/RestyleManager.cpp:1746:25
#13 0x7fffeb23fb7d in mozilla::RestyleManager::DoProcessPendingRestyles(mozilla::ServoTraversalFlags) /builds/worker/workspace/obj-build/layout/style/./../../../../checkouts/gecko/layout/style/RestyleManager.cpp:3309:7
#14 0x7fffeb240381 in mozilla::RestyleManager::ProcessPendingRestyles() /builds/worker/workspace/obj-build/layout/style/./../../../../checkouts/gecko/layout/style/RestyleManager.cpp:3408:3
#15 0x7fffeb3114e9 in mozilla::PresShell::DoFlushPendingNotifications(mozilla::ChangesToFlush) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/PresShell.cpp:4675:37
#16 0x7fffe6fb35c8 in FlushPendingNotifications /builds/worker/workspace/obj-build/dist/include/mozilla/PresShell.h:1567:5
#17 0x7fffe6fb35c8 in mozilla::dom::Document::FlushPendingNotifications(mozilla::ChangesToFlush) /builds/worker/workspace/obj-build/dom/base/./../../../../checkouts/gecko/dom/base/Document.cpp:12133:16
#18 0x7fffe7000783 in FlushPendingNotifications /builds/worker/workspace/obj-build/dom/base/./../../../../checkouts/gecko/dom/base/Document.cpp:12070:3
#19 0x7fffe7000783 in nsIContent::GetPrimaryFrame(mozilla::FlushType) /builds/worker/workspace/obj-build/dom/base/./../../../../checkouts/gecko/dom/base/Element.cpp:282:10
#20 0x7fffeb6ce980 in mozilla::dom::InspectorUtils::GetGridContainerType(mozilla::dom::GlobalObject&, mozilla::dom::Element&) /builds/worker/workspace/obj-build/layout/inspector/./../../../../checkouts/gecko/layout/inspector/InspectorUtils.cpp:1375:16
#21 0x7fffe76240be in mozilla::dom::InspectorUtils_Binding::getGridContainerType(JSContext*, unsigned int, JS::Value*) /builds/worker/workspace/obj-build/dom/bindings/./InspectorUtilsBinding.cpp:6578:19
#22 0x7fffed4f02e6 in CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), js::CallReason, JS::CallArgs const&, bool) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:539:13
#23 0x7fffed4efb83 in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:637:12
#24 0x7fffeca5950c in js::jit::DoCallFallback(JSContext*, js::jit::BaselineFrame*, js::jit::ICFallbackStub*, unsigned int, JS::Value*, JS::MutableHandle<JS::Value>) /builds/worker/workspace/obj-build/js/src/jit/./../../../../../checkouts/gecko/js/src/jit/BaselineIC.cpp:1717:10
#25 0x3fabda1b63ee  ([anon:js-executable-memory]+0x1c3ee)
Flags: in-testsuite?

Verified bug as reproducible on mozilla-central 20261105205004-ab3ff1cb2d01.
The bug appears to have been introduced in the following build range:

Start: 5e2e0937d2b175d4c3d9c5f611f85c4ff957bc6b (20260210102756)
End: 012ebfd1eec96870acc52d551ca0adadd12f3e9b (20260210111333)
Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=5e2e0937d2b175d4c3d9c5f611f85c4ff957bc6b&tochange=012ebfd1eec96870acc52d551ca0adadd12f3e9b

Keywords: regression
Whiteboard: [bugmon:bisected,confirmed]
Regressed by: 2015488
See Also: → 2025058

Set release status flags based on info from the regressing bug 2015488

:emilio, since you are the author of the regressor, bug 2015488, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

I mean, sure. This is not really something that we should support tho. It's adding the :fullscreen pseudo-class to an element that can't get fullscreen'd.

This is wontfix, I think. We could special-case this API to throw in this case or so, but that seems a bit whack-a-mole-ish.

Maybe this API shouldn't be exposed to fuzzers?

Flags: needinfo?(emilio) → needinfo?(twsmith)
Summary: Assertion failure: aNewFrame->GetParent() == outOfFlowFrameList->mContainingBlock (Parent of the frame is not the containing block?), at checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:1093 → Assertion failure: aNewFrame->GetParent() == outOfFlowFrameList->mContainingBlock (Parent of the frame is not the containing block?), at checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:1093 (InspectorUtils forcing :fullscreen on an <svg:text>)
Severity: -- → S3
Priority: -- → P3

Set release status flags based on info from the regressing bug 2015488

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: