diff --git a/content/canvas/src/nsCanvasRenderingContext2D.cpp b/content/canvas/src/nsCanvasRenderingContext2D.cpp index 37c3830bfeb..8b0f2ea9ba3 100644 --- a/content/canvas/src/nsCanvasRenderingContext2D.cpp +++ b/content/canvas/src/nsCanvasRenderingContext2D.cpp @@ -2145,7 +2145,7 @@ nsCanvasRenderingContext2D::CairoSurfaceFromElement(nsIDOMElement *imgElt, PRUint32 status; imgRequest->GetImageStatus(&status); - if (status != imgIRequest::STATUS_LOAD_COMPLETE) + if ((status & imgIRequest::STATUS_LOAD_COMPLETE) == 0) return NS_ERROR_NOT_AVAILABLE; nsCOMPtr uri;