[Webkit-unassigned] [Bug 24695] New: URI passed in to acceptNavigationRequest get modified

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 18 21:46:57 PDT 2009


           Summary: URI passed in to acceptNavigationRequest get modified
           Product: WebKit
           Version: 525.x (Safari 3.2)
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Minor
          Priority: P5
         Component: WebKit Qt
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: callum at lindenlab.com

A C++ application that embeds WebKit using Qt utilizes HTML content with a
bespoke URI scheme that is intercepted and processed separately.

The URI in the content is of the form myscheme:///blah.blah.blah but when the
user clicks on an anchor tag with this HREF value, the url passed in via the
QNetworkRequest parameter in the overridden acceptNavigationRequest function
appears as myscheme:/blah.blah.blah (i.e. 2 of the 3 slashes are removed).

To test, create a page with the following fragment of HTML:

<a href="myscheme:///blah.blah.blah">External link</a>

and in your application:

bool MyWebPage::acceptNavigationRequest(QWebFrame* frame, const
QNetworkRequest& request, NavigationType type)

note that the request.url() is "myscheme:/blah.blah.blah" and not
"myscheme:///blah.blah.blah" as expected.

Only able to try this on Windows XP with an open source build of WebKit 4.5.0.

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