Inconsistent rendering of SVG data URIs that are invalid XML

NEW
Unassigned

Status

()

Core
SVG
7 years ago
7 years ago

People

(Reporter: dholbert, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

7 years ago
STR:
 1. Load this URI:
> data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><rect width="100" height="100"></rect>

 2. Reload ~20 times, and see if any of the reloads give different results.

ACTUAL BEHAVIOR:
 - 90% of the time, I get an XML parsing error
 - 10% of the time, I get a rendered black rect

EXPECTED RESULTS: Should _always_ get an XML parsing error.
(Reporter)

Comment 1

7 years ago
Mozilla/5.0 (X11; Linux x86_64; rv:9.0a1) Gecko/20110908 Firefox/9.0a1
(Reporter)

Comment 2

7 years ago
If I make the data URI longer, it's appears to increase the frequency of the non-error rendering.

e.g. this data URI renders closer to 50% error / 50% black-rect:
data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><rect width="100" height="100"></rect><!-- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -->
(Reporter)

Comment 3

7 years ago
(sorry for making bugzilla hugely wide with that last comment)

So, I'm guessing this is a race condition between "display what we've parsed so far" vs. "parser detected an XML error".
You need to log in before you can comment on or make changes to this bug.