[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


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


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:
javascript:OpenAttachmentWithFullPath('/lawlink/Coroners_Court/ll_coroners.nsf/vwFiles/InquestFAQs.doc/$file/InquestFAQs.doc')

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

This results in
http:/lawlink/Coroners_Court/ll_coroners.nsf/vwFiles/InquestFAQs.doc/$file/InquestFAQs.doc
being loaded.

Another method of reproducing this bug is to go to http://webkit.org/blog/ and
enter:
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