Summary: | CanvasRenderingContext2D::createPattern() should return null, if non-decodable image argument | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jussi Kukkonen (jku) <jussi.kukkonen> |
Component: | Canvas | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Normal | CC: | bfulgham |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=250662 |
Description
Jussi Kukkonen (jku)
2012-08-07 01:07:51 PDT
to improve searchability: above comment relates to CanvasRenderingContext2D::createPattern() After some testing: 2d.pattern.image.incomplete.omitted: works after checking image->src().isValid()) before creating pattern 2d.pattern.image.broken: needs knowledge of whether image really is decodable 2d.pattern.image.incomplete.empty: the image url used in createPattern() ends up as the _page_ url because HTMLIMageElement does document().completeURL(). This would still work with knowledge of whether image really is decodable It looks like this was done as part of Bug 180718. |