canvas.drawImage() should throw an exception when ImageBitmap is closed according to spec

UNCONFIRMED
Unassigned

Status

()

P3
normal
UNCONFIRMED
3 years ago
a year ago

People

(Reporter: xidachen, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [gfx-noted])

Attachments

(1 attachment)

(Reporter)

Description

3 years ago
Created attachment 8744410 [details]
imagebitmap-close.html

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36

Steps to reproduce:

Using the Firefox nightly build to open the attached webpage, press F12 to observe console output.


Actual results:

ctx.drawImage() didn't throw an error even the source ImageBitmap is closed.


Expected results:

There is a recently change to spec here:
https://github.com/whatwg/html/commit/7c9ba543a60a150e50ce6c10877fe330aabb95cc

states that drawImage() should throw an InvalidStateError when the source is closed.
(Reporter)

Updated

3 years ago
Component: Activity Streams: General → Canvas: 2D
Product: Firefox → Core

Updated

3 years ago
Summary: canvas.drawImage() should throw an exception when ImageBitmap is closed → canvas.drawImage() should throw an exception when ImageBitmap is closed according to spec
Whiteboard: [gfx-noted]
You need to log in before you can comment on or make changes to this bug.