Bug 148343 - [testcase] SVG images in HTML pages served via HTTP are cut off
Summary: [testcase] SVG images in HTML pages served via HTTP are cut off
Status: RESOLVED NOT A BUG
Alias: None
Product: konqueror
Classification: Applications
Component: khtml renderer (show other bugs)
Version: 3.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-29 22:55 UTC by Sascha Silbe
Modified: 2011-06-26 16:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
HTML page embedding the SVG image (2.51 KB, text/html)
2007-07-29 22:56 UTC, Sascha Silbe
Details
SVG image (837 bytes, image/svg+xml)
2007-07-29 22:56 UTC, Sascha Silbe
Details
PNG image as fallback for browsers without SVG support (1.16 KB, image/png)
2007-07-29 22:57 UTC, Sascha Silbe
Details
Screenshot of Konqueror when viewing these files served via HTTP (64.64 KB, image/png)
2007-07-29 22:59 UTC, Sascha Silbe
Details
Screenshot of Konqueror when viewing these files stored locally (65.96 KB, image/png)
2007-07-29 23:00 UTC, Sascha Silbe
Details
Stripped-down testcase (271 bytes, text/html)
2007-07-29 23:46 UTC, Sascha Silbe
Details
Screenshot of Konqueror (incorrectly) rendering the test case (35.29 KB, image/png)
2007-07-29 23:47 UTC, Sascha Silbe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Silbe 2007-07-29 22:55:21 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Ubuntu Packages
Compiler:          gcc (GCC) 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5) 
OS:                Linux

Konqueror cuts off SVG images if they are served via HTTP. Exactly the same set of files (fetched via wget) get displayed properly.
The Content-Types given by the server are "text/html; charset=utf-8" for index.html, "image/svg+xml" for img.svg and "image/png" for img.png.
The only additional headers are "Content-Style-Type: text/css" for index.html, "Pragma: no-cache" and Content-Length (with correct values) for img.*.
Comment 1 Sascha Silbe 2007-07-29 22:56:22 UTC
Created attachment 21289 [details]
HTML page embedding the SVG image
Comment 2 Sascha Silbe 2007-07-29 22:56:57 UTC
Created attachment 21290 [details]
SVG image
Comment 3 Sascha Silbe 2007-07-29 22:57:54 UTC
Created attachment 21291 [details]
PNG image as fallback for browsers without SVG support
Comment 4 Sascha Silbe 2007-07-29 22:59:18 UTC
Created attachment 21292 [details]
Screenshot of Konqueror when viewing these files served via HTTP
Comment 5 Sascha Silbe 2007-07-29 23:00:33 UTC
Created attachment 21293 [details]
Screenshot of Konqueror when viewing these files stored locally
Comment 6 Sascha Silbe 2007-07-29 23:45:21 UTC
The reason the behaviour was different was that plugins are globally disabled and only enabled for localhost. Apparently this does not include local files. Since SVG is handled by a plugin, the PNG image (that is an on-server rendering of the SVG image and such looks identical) is shown instead.
So the real bug is that the SVG image is cut off. This might be a reoccurence of the (supposedly fixed) bug 33903.
I'll attach a stripped-down version of the test case that shows the problem.
Unfortunately, I cannot adjust the summary of this bug myself.

Comment 7 Sascha Silbe 2007-07-29 23:46:20 UTC
Created attachment 21294 [details]
Stripped-down testcase
Comment 8 Sascha Silbe 2007-07-29 23:47:49 UTC
Created attachment 21295 [details]
Screenshot of Konqueror (incorrectly) rendering the test case
Comment 9 Kevin Funk 2008-04-20 14:29:53 UTC
Still valid, Sascha? Cant test via http.
Comment 10 Martin Koller 2011-06-26 16:25:58 UTC
no response. can' test.
If you can reproduce with current KDE (>= 4.6.4), please reopen.