Make toDataURL robust with respect to allocation failures
It is not safe to assume that ImageData::create always returns a valid point. Internally it uses DOMUint8ClampedArray::createOrNull which returns null instead of crashing when allocation fails. This change adds the appropriate null pointer checks to take that into account. BUG=647824 NOTRY=true Review-Url: https://codereview.chromium.org/2361493003 Cr-Commit-Position: refs/heads/master@{#420625}
Showing
Please register or sign in to comment