Closed Bug 1743977 Opened 3 years ago Closed 3 years ago

The svg+xml image is not drawing in the Canvas(DrawImage())

Categories

(Core :: Graphics: Canvas2D, defect)

Firefox 94
defect

Tracking

()

RESOLVED DUPLICATE of bug 700533

People

(Reporter: rajnahom, Unassigned)

Details

Attachments

(1 file)

Attached file Test.html

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36

Steps to reproduce:

  1. Run the provided sample in Firefox browser
    2.Then click on Draw Image button, You can see the image is not drawn in the canvas.

Actual results:

The image is not drawn in the canvas and also no script error occurred.

Expected results:

The image should be drawn correctly in the canvas.

Note: It works fine in chrome and edge, It occurs only in Firefox browser.

Component: Untriaged → Canvas: 2D
Product: Firefox → Core

I wonder if there is something about the data uri that gets us confused, I get:

WARNING: 'NS_FAILED(rv)', file netwerk/base/nsSimpleURI.cpp:618

No, that wasn't it. The svg in the data uri does not have a width or height, if I give it a width and height then it draws. This sounds familar, Daniel do you know which bug this is? svg needs a width/height to work with drawImage

Flags: needinfo?(dholbert)

Looks like it's bug 700533.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Flags: needinfo?(dholbert)
Resolution: --- → DUPLICATE

Indeed. We should probably get around to fixing that.

I believe this closed bug is also related to the topic, but not directly linked beyond comment there: https://bugzilla.mozilla.org/show_bug.cgi?id=1328124

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: