[Webkit-unassigned] [Bug 21499] New: HTML content set by QWebView::setHtml can't access local files

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 9 02:48:20 PDT 2008


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

           Summary: HTML content set by QWebView::setHtml can't access local
                    files
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Qt
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: bero at arklinux.org


Loading images from the local filesystem (file:/ URLs) fails in current
snapshots if the HTML code has been set by QWebView::setHtml (e.g. HTML code
generated on the fly by a local application) as opposed to having been loaded
from a file:/ URL.

This is caused by current WebKit defaulting FrameLoader::localLoadPolicy to
AllowLocalLoadsForLocalOnly (as opposed to
AllowLocalLoadsForLocalAndSubstituteData), and the QtWebKit API not having the
functionality to override this.

There should be a way to set FrameLoader::localLoadPolicy through the QtWebKit
API
(QWebSettings::globalSettings()->setAttribute(QWebSettings::allowLocalLoads);
or something?).
For compatibility with some legacy applications, it may also make sense to have
the option to set localLoadPolicy to AllowLocalLoadsForAll, the way it used to
be in older WebKit versions.


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



More information about the webkit-unassigned mailing list