Calling createPattern with `new Image()` must return null
Categories
(Core :: Graphics: Canvas2D, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox71 | --- | fixed |
People
(Reporter: saschanaz, Assigned: ktaeleman)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
document.createElement("canvas").getContext("2d").createPattern(new Image(), "no-repeat")
Currently the code throws instead of returning null.
Updated•6 years ago
|
Updated•6 years ago
|
| Reporter | ||
Updated•6 years ago
|
| Reporter | ||
Comment 1•6 years ago
|
||
Relevant spec: https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-createpattern
It seems new Image() is immediately considered as broken 🤔
| Reporter | ||
Comment 2•6 years ago
|
||
Updated•6 years ago
|
| Assignee | ||
Comment 3•6 years ago
|
||
Comment 7•6 years ago
•
|
||
Backed out changeset f69e1e9da360 (Bug 1565991) for failing in test_createPattern_broken.html
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=263711762&repo=autoland&lineNumber=5871
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=263711537&repo=autoland&lineNumber=11248
Backout: https://hg.mozilla.org/integration/autoland/rev/812f0c821d05280423ec5ceef539f89d2ccac912
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/2c1a726f2190
https://hg.mozilla.org/mozilla-central/rev/5abd597f5d2d
https://hg.mozilla.org/mozilla-central/rev/84e78280c066
Updated•5 years ago
|
Description
•