Closed Bug 691187 Opened 13 years ago Closed 11 months ago

Prune zero-length line segments before stroking a path

Categories

(Core :: Graphics: Canvas2D, defect)

defect

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox-esr115 --- disabled
firefox115 --- fixed

People

(Reporter: Ms2ger, Assigned: aosmond)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

It would be nice if this was fixed. Here's the relevant blurb from the standard: "Zero-length line segments must be pruned before stroking a path. Empty subpaths must be ignored."

And a working example (since the URL above is 404):
http://jsfiddle.net/lannymcnie/wM975/2/

Note how a red dot (0 length path) is drawn in FF. This is not the case in other browsers.
Severity: normal → S3
Assignee: nobody → aosmond
Status: NEW → ASSIGNED
Duplicate of this bug: 1820608
Pushed by aosmond@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/50707b02bc59
Prune zero-length segments for canvas strokes. r=lsalzman
Regressions: 1836490

Backed out for causing mochitest failures in test_bug1567544.html

Wr failure log: https://treeherder.mozilla.org/logviewer?job_id=417918202&repo=autoland
Reftest failure log: https://treeherder.mozilla.org/logviewer?job_id=417918238&repo=autoland
Bc failure log: https://treeherder.mozilla.org/logviewer?job_id=417917269&repo=autoland
Another reftest failure: https://treeherder.mozilla.org/logviewer?job_id=417913639&repo=autoland
WD failures: https://treeherder.mozilla.org/logviewer?job_id=417915535&repo=autoland

Flags: needinfo?(aosmond)

I seem to have caused some test failures since my last push in my latest update, as these were passing before.

Flags: needinfo?(aosmond)

Silly typo when I made a change. Tests should pass now.

Pushed by aosmond@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e6e098584f0a
Prune zero-length segments for canvas strokes. r=lsalzman
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
Regressions: 1837729
Blocks: 1841322
Regressions: 1845290
Regressions: 1846079

The initial fix in bug 691187 has caused numerous regressions that have required
later fixups to address. Since only the initial version that caused all these
regressions made it into 115, it is safer to just back out the initial change rather
than try to uplift all the regression fixes. This at least reverts rendering to
the stable, tenable state it was in prior to 115 for ESR.

Comment on attachment 9347791 [details]
Bug 691187 - Backout changeset e6e098584f0ab (ESR 115 only). r?aosmond

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Several Canvas2D rendering regressions were introduced that did not exist prior to 115. We believe it is better to try to back out this potentially controversial change in rendering semantics for 115 rather than try to uplift all the regression fixes.
  • User impact if declined:
  • Fix Landed on Version: 116
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): All this does is back out the other patch in this bug.
Attachment #9347791 - Flags: approval-mozilla-esr115?

Comment on attachment 9347791 [details]
Bug 691187 - Backout changeset e6e098584f0ab (ESR 115 only). r?aosmond

This doesn't apply cleanly to ESR115.

Attachment #9347791 - Flags: approval-mozilla-esr115?

Comment on attachment 9347791 [details]
Bug 691187 - Backout changeset e6e098584f0ab (ESR 115 only). r?aosmond

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Several Canvas2D rendering regressions were introduced that did not exist prior to 115. We believe it is better to try to back out this potentially controversial change in rendering semantics for 115 rather than try to uplift all the regression fixes.
  • User impact if declined:
  • Fix Landed on Version: 116
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Backs out patches to bring us back to prior rendering status quo.
Attachment #9347791 - Flags: approval-mozilla-esr115?
Attachment #9336589 - Flags: approval-mozilla-esr115?

Comment on attachment 9347791 [details]
Bug 691187 - Backout changeset e6e098584f0ab (ESR 115 only). r?aosmond

Approved for 115.2esr with the updated patch.

Attachment #9347791 - Flags: approval-mozilla-esr115? → approval-mozilla-esr115+
Attachment #9336589 - Flags: approval-mozilla-esr115?
Regressions: 1848729
Blocks: 1837729
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: