зеркало из https://github.com/mozilla/pjs.git
Bug 664107 - Calling drawImage with non-finite arguments should not throw; r=smaug
This commit is contained in:
Родитель
5761c595ab
Коммит
20c3bec521
|
@ -3388,7 +3388,7 @@ nsCanvasRenderingContext2D::DrawImage(nsIDOMElement *imgElt, float a1,
|
|||
// (!FloatValidate(sx, sy, sw, sh) || !FloatValidate(dx, dy, dw, dh))
|
||||
// but we would also need to validate some sums for overflow (e.g. sx + sw).
|
||||
if (!FloatValidate(sx + sw, sy + sh, dx + dw, dy + dh)) {
|
||||
return NS_ERROR_DOM_SYNTAX_ERR;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// Handle negative sw, sh, dw and dh by flipping the rectangle over in the
|
||||
|
|
|
@ -3452,7 +3452,7 @@ isPixel(ctx, 50,25, 0,255,0,255, 0);
|
|||
} catch (e) {
|
||||
_thrown_outer = true;
|
||||
}
|
||||
todo(!_thrown_outer, 'should not throw exception');
|
||||
ok(!_thrown_outer, 'should not throw exception');
|
||||
|
||||
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче