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•5 years ago
|
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Comment 1•5 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•5 years ago
|
||
Updated•5 years ago
|
Assignee | ||
Comment 3•5 years ago
|
||
Pushed by jmuizelaar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f69e1e9da360 Ensure calling createPattern with `new Image()` returns null. r=jrmuizel
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/18697 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Comment 7•5 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
Upstream PR was closed without merging
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Pushed by jmuizelaar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2c1a726f2190 Make createpattern return null instead of throw. r=jrmuizel
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Comment 11•5 years ago
|
||
Comment 12•5 years ago
|
||
Pushed by malexandru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5abd597f5d2d Mark some additional tests as passing. a=wpt-fix
Comment 13•5 years ago
|
||
Pushed by malexandru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/84e78280c066 Update expectation for 2d.pattern.image.incomplete.emptysrc.html a=wpt-fix
Comment 14•5 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
Upstream PR merged by moz-wptsync-bot
Updated•3 years ago
|
Description
•