[webkit-dev] Passing null or undefined object as input url for XMLHttpRequest open()

Pozdnyakov, Mikhail mikhail.pozdnyakov at intel.com
Tue Sep 4 07:43:58 PDT 2012

Hi all,

Currently for the following JS code:

req = new XMLHttpRequest();
req.open("GET", null);

the implementation of XMLHttpRequest  will try to open URL:
"<base URL>/null". The similar behaviour is with an undefined object given
as input url (will try to open "<base URL>/undefined").

It does not seem to be correct behaviour and I would raise SYNTAX_ERR exception
in such cases, but I would like to hear other opinions on that before creating bug and uploading patch.

Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki 
Business Identity Code: 0357606 - 4 
Domiciled in Helsinki 

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20120904/7cc99e8b/attachment.html>

More information about the webkit-dev mailing list