Closed Bug 1497076 Opened 6 years ago Closed 6 years ago

Assertion failure: aMin <= aMax, at FontPropertyTypes.h:426

Categories

(Core :: DOM: CSS Object Model, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox-esr60 --- wontfix
firefox63 --- wontfix
firefox64 --- wontfix
firefox65 --- fixed

People

(Reporter: bc, Assigned: heycam)

References

()

Details

(Keywords: assertion, reproducible)

Attachments

(2 files)

Attached file windows log
1. https://www.shutterstock.com/editor/image/set-medisine-package-design-3dtemplate-vector-425275021?ref=image-photo&exit=/image-photo/425275021

2. Beta 63/Nightly 64, Windows/Linux at least. Doesn't crash opt.

Assertion failure: aMin <= aMax, at z:/build/build/src/obj-firefox/dist/include/mozilla/FontPropertyTypes.h:426
#01: mozilla::dom::FontFaceSet::UpdateRules(nsTArray<nsFontFaceRuleContainer> const &) [layout/style/FontFaceSet.cpp:767]
#02: nsIDocument::FlushUserFontSet() [dom/base/nsDocument.cpp:12578]
#03: nsIDocument::GetUserFontSet(bool) [dom/base/nsDocument.cpp:12534]
#04: mozilla::ServoStyleSet::PreTraverseSync() [layout/style/ServoStyleSet.cpp:428]
#05: mozilla::ServoStyleSet::ResolveStyleFor(mozilla::dom::Element *,mozilla::LazyComputeBehavior) [layout/style/ServoStyleSet.cpp:387]
#06: static class mozilla::dom::Element * GetPropagatedScrollStylesForViewport(class nsPresContext *, struct mozilla::ScrollStyles *) [layout/base/nsPresContext.cpp:1371]
#07: nsPresContext::UpdateViewportScrollStylesOverride() [layout/base/nsPresContext.cpp:1417]
#08: nsCSSFrameConstructor::ConstructDocElementFrame(mozilla::dom::Element *,nsILayoutHistoryState *) [layout/base/nsCSSFrameConstructor.cpp:2379]
#09: nsCSSFrameConstructor::ContentRangeInserted(nsIContent *,nsIContent *,nsILayoutHistoryState *,nsCSSFrameConstructor::InsertionKind) [layout/base/nsCSSFrameConstructor.cpp:7307]
#10: nsCSSFrameConstructor::ContentInserted(nsIContent *,nsILayoutHistoryState *,nsCSSFrameConstructor::InsertionKind) [layout/base/nsCSSFrameConstructor.cpp:7220]
I'm rewriting some of this code in bug 1496486, may be worth waiting for that.
Looks like this is still happening.
Priority: -- → P3
There's an @font-face { font-weight: normal 300; } descriptor, so I guess we're not correctly following "User agents must swap the computed value of the startpoint and endpoint of the range in order to forbid decreasing ranges." when there's a keyword in there.
Assignee: nobody → cam
Status: NEW → ASSIGNED
Actually we're not even copying with `font-weight: 400 300;`.
Pushed by cmccormack@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9536fe8330a8
Handle reversed ranges in @font-face descriptors r=jfkthame
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/13837 for changes under testing/web-platform/tests
https://hg.mozilla.org/mozilla-central/rev/9536fe8330a8
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Is there a user impact which justifies backport consideration here or can this fix ride the trains?
Flags: needinfo?(cam)
Flags: in-testsuite+
This can ride the trains, thanks for checking.
Flags: needinfo?(cam)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: