Closed Bug 1219771 Opened 9 years ago Closed 9 years ago

can't copy svg image as data: URL

Categories

(DevTools :: Netmonitor, defect)

defect
Not set
normal

Tracking

(firefox45 fixed)

RESOLVED FIXED
Firefox 45
Tracking Status
firefox45 --- fixed

People

(Reporter: tromey, Assigned: tromey)

Details

Attachments

(1 file)

This came out of discussion in bug 937586.

Open the network monitor and then visit
https://developer.cdn.mozilla.net/static/img/logo_sprite.7d36c4a1422b.svg

Notice that the svg doesn't display as a thumbnail.
Now copy the svg as a data: URL.

I get (truncated for your sanity):
data:image/svg+xml;undefined,<svg xmlns="http://www.w3.org/2000/svg" ...

That "undefined" comes from:

https://dxr.mozilla.org/mozilla-central/source/devtools/shared/webconsole/network-monitor.js#385

The thumbnail code should probably base64-encode this itself when the
encoding is not set.
Assignee: nobody → ttromey
Status: NEW → ASSIGNED
Attachment #8680829 - Flags: review?(vporof)
Attachment #8680829 - Flags: review?(vporof) → review+
https://hg.mozilla.org/mozilla-central/rev/97ae7d9c994c
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 45
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: