Bug 1217031 - createPattern should not throw NS_ERROR_NOT_AVAILABLE if image usability check returns bad r=bz

MozReview-Commit-ID: 101uAYhcx3u

--HG--
extra : rebase_source : 1975f947176b61bb232348458ef7a0f485a0f479
This commit is contained in:
Michael Kohler 2016-05-03 17:41:02 -07:00
parent d9ad6dbb9e
commit 0793a8cbff
3 changed files with 1 additions and 7 deletions

View File

@ -2174,7 +2174,6 @@ CanvasRenderingContext2D::CreatePattern(const CanvasImageSource& aSource,
nsLayoutUtils::SFE_WANT_FIRST_FRAME, mTarget);
if (!res.GetSourceSurface()) {
aError.Throw(NS_ERROR_NOT_AVAILABLE);
return nullptr;
}

View File

@ -69,7 +69,7 @@ interface CanvasRenderingContext2D {
[NewObject, Throws]
CanvasGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1);
[NewObject, Throws]
CanvasPattern createPattern(CanvasImageSource image, [TreatNullAs=EmptyString] DOMString repetition);
CanvasPattern? createPattern(CanvasImageSource image, [TreatNullAs=EmptyString] DOMString repetition);
// shadows
[LenientFloat]

View File

@ -1,5 +0,0 @@
[2d.pattern.image.incomplete.immediate.html]
type: testharness
[Canvas test: 2d.pattern.image.incomplete.immediate]
expected: FAIL