[Webkit-unassigned] [Bug 42566] New: [Qt] Resolving urls used in css fails.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 19 07:44:55 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=42566

           Summary: [Qt] Resolving urls used in css fails.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P3
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: karsten.heimrich at nokia.com
                CC: karsten.heimrich at nokia.com


Created an attachment (id=61951)
 --> (https://bugs.webkit.org/attachment.cgi?id=61951)
sample app to reproduce issu

In Assistant we use our own implementation of QNetworkAccessManager which simply owerwrites the createRequest(...) method. This has to be done to get the actual html file out of a qt compressed help file (sql database). For some reason everything works fine except files (png) that are referenced inside a css file. The path seems to be resolved in a wrong way.

For example an image inside the style.css is referenced like this: url(../images/header_bg.png).

The folder structure looks like this:
SomePath/html
    -index.html
    -style
        -style.css
    -images
        -header_bg.png

While looking at the url return from NetworkAccessManager::createRequest(Operation op, const QNetworkRequest &request, ...):
QUrl url = request.url();
url will show SomePath/images/header_bg.png while it should be SomePath/html/images/header_bg.png

Same can be reproduce with the attached example, here the the content is loaded from an resource file using QFile.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list