Closed Bug 1603339 Opened 6 years ago Closed 4 years ago

ImageBitmapRenderingContext.webidl does not define canvas attribute

Categories

(Core :: Graphics: Canvas2D, defect, P3)

73 Branch
defect

Tracking

()

RESOLVED FIXED
97 Branch
Tracking Status
firefox97 --- fixed

People

(Reporter: guest271314, Assigned: aosmond)

References

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/80.0.3983.2 Chrome/80.0.3983.2 Safari/537.36

Steps to reproduce:

At about:config set gfx.offscreen.enabled to true.

Create HTML canvas element and OffscreenCanvas instances.

For canvas execute transferControlToOffscreen(). Set OffscreenCanvas context to ImageBitmapRenderingContext.

Actual results:

ImageBitmapRenderingContext canvas attribute is undefined at Firefox 70, Nightly 73.

Expected results:

ImageBitmapRenderingContext should have canvas attribute set to HTMLCanvasElement or OffscreenCanvas.

https://html.spec.whatwg.org/multipage/canvas.html#imagebitmaprenderingcontext

interface ImageBitmapRenderingContext {
readonly attribute (HTMLCanvasElement or OffscreenCanvas) canvas;
void transferFromImageBitmap(ImageBitmap? bitmap);
};

Component: Untriaged → Canvas: 2D
Product: Firefox → Core
Priority: -- → P3
Assignee: nobody → aosmond
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: normal → S3
Pushed by aosmond@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/568a3395967b Add canvas attribute to ImageBitmapRenderingContext. r=lsalzman,emilio
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: