Closed Bug 372791 Opened 17 years ago Closed 17 years ago

SVG not recognized by Firefox when embedded using embed tag inside ASPX

Categories

(Core :: SVG, enhancement)

1.8 Branch
x86
Windows XP
enhancement
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: parvind_15, Unassigned)

Details

(Keywords: testcase)

User-Agent:       Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2

I get a prompt to save the file. 

The same error had a workaround with IE (though i used Adobe SVG viewer)
http://support.microsoft.com/default.aspx/kb/916442

Reproducible: Always

Steps to Reproduce:
1. On the sample aspx page, use the following 

<embed type="image/svg+xml"   src="http://upload.wikimedia.org/wikipedia/commons/1/15/Svg.svg"
                name="svgObj" width="600" height="650">
                </embed>
2. Open in IE or Firefox, page does not display SVG
3. change embed info like  (add ?svg to the end of url)
<embed type="image/svg+xml"   src="http://upload.wikimedia.org/wikipedia/commons/1/15/Svg.svg?svg"
                name="owMain" width="600" height="650">
                </embed>
4. Load page in IE and Firefox, IE loads SVG while firefox still doesnt show. 


Expected Results:  
Expected Firefox to load SVG even when embedded in aspx
Assignee: nobody → general
Component: File Handling → SVG
Product: Firefox → Core
QA Contact: file.handling → ian
Version: unspecified → 1.8 Branch
WFM, Mac trunk.
Keywords: testcase
I have found a work around. While IE expects something after the extension, like ?svg as mentioned in MS KB, adding text like "?anything.svg" fixes both IE and Firefox to show the SVG image.

so in essence, even an aspx or ashx can be told to render the svg xml, but only thing is that they have to have a suffix tag of  "example.ashx?.svg" inorder to be recognized as a SVG file. 
Are you using Adobe's SVG viewer in Firefox by any chance?
We don't support Adobe's SVG Viewer, so marking invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.