Closed Bug 1250793 Opened 8 years ago Closed 6 years ago

"Assertion failure: aContainer (Must have parent here)" with createShadowRoot

Categories

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

defect
Not set
critical

Tracking

()

RESOLVED INVALID
Tracking Status
firefox-esr52 --- wontfix
firefox56 --- wontfix
firefox57 --- wontfix
firefox58 --- wontfix
firefox59 --- ?

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: assertion, testcase)

Attachments

(2 files)

Attached file testcase
Assertion failure: aContainer (Must have parent here), at layout/base/nsCSSFrameConstructor.cpp:4857
Attached file stack
William, what do you think?
Flags: needinfo?(wchen)
Whiteboard: btpp-followup-2016-03-03
Whiteboard: btpp-followup-2016-03-03 → btpp-followup-2016-03-10
William will look at this after his patches for the new Shadow DOM API land.
Flags: needinfo?(wchen)
Tested with the webcomponents pref enabled and Stylo disabled.

Fix range:
INFO: First good revision: 08cec1c29418b33a27fc254c884494fb5cced0dd
INFO: Last bad revision: 846d96d2edb40886b016b3d1a478c3a7389c9c4d
INFO: Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=846d96d2edb40886b016b3d1a478c3a7389c9c4d&tochange=08cec1c29418b33a27fc254c884494fb5cced0dd

Fixed by bug 1331322. NI myself to land the test.
Assignee: nobody → bobbyholley
Status: NEW → RESOLVED
Has Regression Range: --- → no
Closed: 7 years ago
Depends on: 1331322
Flags: needinfo?(ryanvm)
Flags: in-testsuite?
Resolution: --- → FIXED
Whiteboard: btpp-followup-2016-03-10
Target Milestone: --- → mozilla54
Flags: needinfo?(ryanvm)
Flags: in-testsuite?
Flags: in-testsuite+
Backed out for failing own crashtest: 

https://hg.mozilla.org/integration/autoland/rev/07c86adc1b5f6775a37f4f1686c81426112c1a04

Push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=10ec88e1aa4e737f61b8199a34327bd8be4a1a76&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-resultStatus=usercancel&filter-resultStatus=runnable&filter-resultStatus=retry
Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=138487175&repo=autoland

Assertion failure: content->GetFlattenedTreeParentNodeForStyle() == &aContent, at z:/build/build/src/layout/base/ServoRestyleManager.cpp:1220
Assertion failure: !pd->minidump, at z:/build/build/src/toolkit/crashreporter/nsExceptionHandler.cpp:3430
TEST-UNEXPECTED-FAIL | file:///Z:/task_1508505456/build/tests/reftest/tests/layout/base/crashtests/1250793.html | application terminated with exit code 1
REFTEST PROCESS-CRASH | file:///Z:/task_1508505456/build/tests/reftest/tests/layout/base/crashtests/1250793.html | application crashed [@ mozilla::VerifyFlatTree]
REFTEST PROCESS-CRASH | file:///Z:/task_1508505456/build/tests/reftest/tests/layout/base/crashtests/1250793.html | application crashed [@ mozilla::VerifyFlatTree]
REFTEST PROCESS-CRASH | file:///Z:/task_1508505456/build/tests/reftest/tests/layout/base/crashtests/1250793.html | application crashed [@ CrashReporter::OnChildProcessDumpRequested]
Flags: needinfo?(ryanvm)
Well that's disappointing.
Assignee: bobbyholley → nobody
Status: RESOLVED → REOPENED
Flags: needinfo?(ryanvm)
Flags: in-testsuite?
Flags: in-testsuite+
Resolution: FIXED → ---
Target Milestone: mozilla54 → ---
Never ceases to amaze me too - I did 50 crashtest runs across every platform on Try before pushing this and didn't see this happen once.
Hah, that's because Emilio added that assert yesterday in bug 1409088!
Flags: needinfo?(emilio)
Well, glad it's catching bugs :)

This bug is because HTMLVideoElement also contains an XBL binding, I think, so we mess up the flattened tree somehow... probably we should just ban shadow root in HTMLVideoElement, or something like that...
Flags: needinfo?(emilio)
AttachShadow doesn't support <video>, and createShadowRoot is gone from the spec.
Status: REOPENED → RESOLVED
Closed: 7 years ago6 years ago
Resolution: --- → INVALID
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: