Closed
Bug 1247865
Opened 8 years ago
Closed 8 years ago
@font-face + table + :before/:after causes "ASSERTION: aElement should be the element and not the pseudo-element: 'pseudoType == nsCSSPseudoElements::ePseudo_NotPseudoElement || ...", e.g. at hellocasa.fr
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: dholbert, Assigned: dbaron)
References
()
Details
(Keywords: assertion)
Attachments
(3 files)
STR: 1. Visit https://hellocasa.fr/ in a debug build. ACTUAL RESULTS: Several instances of this assertion during pageload: { ###!!! ASSERTION: aElement should be the element and not the pseudo-element: 'pseudoType == nsCSSPseudoElements::ePseudo_NotPseudoElement || !elementForAnimation->GetPrimaryFrame() || elementForAnimation->GetPrimaryFrame()->StyleContext()-> GetPseudoType() == nsCSSPseudoElements::ePseudo_NotPseudoElement', file layout/style/nsStyleSet.cpp, line 1722 } This assertion was added here for bug 996796, FWIW: http://hg.mozilla.org/mozilla-central/diff/7ee0ebcf0602/layout/style/nsStyleSet.cpp#l1.48
Reporter | ||
Comment 1•8 years ago
|
||
Here's a reduced testcase that still triggers the assertion for me.
Reporter | ||
Updated•8 years ago
|
Summary: hellocasa.fr triggers "ASSERTION: aElement should be the element and not the pseudo-element: 'pseudoType == nsCSSPseudoElements::ePseudo_NotPseudoElement || ..." → @font-face + table + :before/:after causes "ASSERTION: aElement should be the element and not the pseudo-element: 'pseudoType == nsCSSPseudoElements::ePseudo_NotPseudoElement || ...", e.g. at hellocasa.fr
Assignee | ||
Comment 2•8 years ago
|
||
This is just a bug in the assertion expression; it needs to use nsLayoutUtils::GetStyleFrame to fix up table outer frames.
Assignee | ||
Comment 3•8 years ago
|
||
I confirmed locally that, without the following patch, the crashtest harness does detect the single assertion. Review commit: https://reviewboard.mozilla.org/r/34879/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/34879/
Attachment #8719087 -
Flags: review?(bbirtles)
Assignee | ||
Comment 4•8 years ago
|
||
I confirmed locally that this patch does fix the assertion in the crashtest. Review commit: https://reviewboard.mozilla.org/r/34881/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/34881/
Attachment #8719088 -
Flags: review?(bbirtles)
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → dbaron
Comment 5•8 years ago
|
||
Comment on attachment 8719087 [details] MozReview Request: Bug 1247865 - Add crashtest for assertion. r?birtles https://reviewboard.mozilla.org/r/34879/#review31489
Attachment #8719087 -
Flags: review?(bbirtles) → review+
Updated•8 years ago
|
Attachment #8719088 -
Flags: review?(bbirtles) → review+
Comment 6•8 years ago
|
||
Comment on attachment 8719088 [details] MozReview Request: Bug 1247865 - Fix assertion to handle restyling of a table::after. r?birtles https://reviewboard.mozilla.org/r/34881/#review31491
Assignee | ||
Comment 7•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/0b93057bf480eea8e6d425a82f2ef097d0745e30 Bug 1247865 - Add crashtest for assertion. r=birtles https://hg.mozilla.org/integration/mozilla-inbound/rev/d8db1845736b05a1d9714df55ac9ed76847d8899 Bug 1247865 - Fix assertion to handle restyling of a table::after. r=birtles
Comment 8•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0b93057bf480 https://hg.mozilla.org/mozilla-central/rev/d8db1845736b
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•