Note: There are a few cases of duplicates in user autocompletion which are being worked on.

stylo: Assert that we have computed style in Servo_ResolveStyle when lazy computation is forbidden

RESOLVED FIXED in Firefox 55

Status

()

Core
CSS Parsing and Computation
P1
normal
RESOLVED FIXED
5 months ago
3 months ago

People

(Reporter: bholley, Assigned: heycam)

Tracking

(Blocks: 2 bugs)

unspecified
mozilla55
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox55 fixed)

Details

MozReview Requests

()

Submitter Diff Changes Open Issues Last Updated
Loading...
Error loading review requests:

Attachments

(1 attachment)

Right now we just spinelessly return the default computed values in this case.

Turning this into an assertion would probably reveal a number of bugs, which might otherwise be harder to track down.
Over to heycam. If this trips a lot, prioritize diagnosing the issues and filing bugs. First priority is finding out how much work is hidden under this one.
Assignee: nobody → cam
(Assignee)

Comment 2

4 months ago
Looks like there are around 40 tests that trigger that assertion in Servo_ResolveStyle:

https://treeherder.mozilla.org/#/jobs?repo=try&revision=204196e5f095a5eefa24188e130334b67feed300&group_state=expanded

If I make Servo_ResolvePseudoStyle also assert, I get a bunch more, but I'm not sure whether it's right to assert there.  (Is it possible we're probing for pseudo styles before we resolve styles for the element?)

https://treeherder.mozilla.org/#/jobs?repo=try&revision=afefbf844d947d8a4ba161467e90edc632b41437&group_state=expanded
Let's scope this issue to non-pseudos and file a followup for the pseudo stuff, since it's still a bit busted until I get time to land bug 1331047.
(Assignee)

Updated

4 months ago
Depends on: 1348746
(Assignee)

Updated

4 months ago
Depends on: 1349134
(Assignee)

Updated

4 months ago
Depends on: 1349457
(Assignee)

Updated

4 months ago
Depends on: 1349487
(Assignee)

Updated

4 months ago
Depends on: 1350671
(Assignee)

Updated

4 months ago
Depends on: 1351535
(Assignee)

Updated

4 months ago
Depends on: 1352785
(Assignee)

Updated

4 months ago
Depends on: 1353317
Blocks: 1243581
Comment hidden (mozreview-request)
(Reporter)

Comment 5

3 months ago
mozreview-review
Comment on attachment 8856433 [details]
Bug 1345695 - stylo: Assert that we have computed style in Servo_ResolveStyle when lazy computation is forbidden.

https://reviewboard.mozilla.org/r/128388/#review131222

\o/
Attachment #8856433 - Flags: review?(bobbyholley) → review+

Comment 6

3 months ago
Pushed by cmccormack@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f00f1ad996f7
stylo: Assert that we have computed style in Servo_ResolveStyle when lazy computation is forbidden. r=bholley

Comment 7

3 months ago
Backout by gszorc@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f04cf6bbeb74
Backed out changeset f00f1ad996f7 for touching servo/
Comment hidden (mozreview-request)

Comment 9

3 months ago
Pushed by cmccormack@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b5066979a41e
stylo: Assert that we have computed style in Servo_ResolveStyle when lazy computation is forbidden. r=bholley

Comment 10

3 months ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/b5066979a41e
Status: NEW → RESOLVED
Last Resolved: 3 months ago
status-firefox55: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.