[Webkit-unassigned] [Bug 12784] New: Allow loading file:// resources that have no referrer

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 15 20:25:05 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=12784

           Summary: Allow loading file:// resources that have no referrer
           Product: WebKit
           Version: 420+ (nightly)
          Platform: PC
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: kkowalczyk at gmail.com


Currently loading file:// resource that doesn't also have file:// referrer will
fail because FrameLoader::canLoad() returns false.

That means that unless special steps are taken in the upper layer to fake a
file:// referrer, loading a file:// resource given e.g. in a command-line or
entered directly in the url bar will fail. It certainly does in gdk build since
all it does is Frame::loader()::load(url) which ends up passing an empty string
as a referrer to FrameLoader::canLoad().

For gdk build it's a regression because it used to work. I tried to track down
the change that might have caused that but failed (too many changes to
FrameLoader.cpp).

The fix is to change FrameLoader::canLoad() to return true if url is a file and
referrer is an empty string.


-- 
Configure bugmail: http://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