[Webkit-unassigned] [Bug 16836] incorrect url generated by script

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 11 00:59:26 PST 2008


mrowe at apple.com changed:

           What    |Removed                     |Added
                 CC|                            |mrowe at apple.com
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1

------- Comment #1 from mrowe at apple.com  2008-01-11 00:59 PDT -------
I think the URL is being generated correctly.  The target of the link is:

The function is defined as follows:
function OpenAttachmentWithFullPath ( filePath ) {
   window.open ( "http:" + filePath ); 
} // end of function 

This results in
being loaded.

Another method of reproducing this bug is to go to http://webkit.org/blog/ and
javascript:window.location = 'http:/'

in the address bar and press enter.  In Safari this generates an error saying:
Safari can’t open the page “http:/” because it’s an invalid address.

In Firefox this loads http://webkit.org/.  What is interesting is that Firefox
gives a similar error to Safari if you enter "http:/" in the address bar.

I wonder what specifies the behaviour of a http:/path/to/file URL?

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