[webkit-dev] Qt4.6 + Webkit Trunk Javascript Default values issue
manish.5.gupta at nokia.com
manish.5.gupta at nokia.com
Wed Oct 28 08:00:42 PDT 2009
Hello there!
I am wondering if anyone (especially from the Qt team who ported the webkit to Qt4.6) has any pointers or idea about this issue I am seeing on QtLauncher. When a prompt is issued using Javascript and the user presses OK without entering anything in the text input box (leaving the default unchanged), then the following test should pass, it fails with Qt4.6 + webkit trunk using QtLauncher, but passes on safari 4.x.
-------------------
<script type="text/ecmascript">
var RESULTS = "ERROR";
var msg = "Accept this message without changing the default value:";
var retVal = prompt(msg);
if((retVal=="undefined")||(retVal=="")) RESULTS="SUCCESS" ;
</script>
-------------------
It seems like the encoding of "undefined" string in the JSValue object is incorrect and the IsUndefinedOrNull() check is failing.
Any pointers are greatly appreciated.
Thanks
Manish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20091028/d660362f/attachment.html>
More information about the webkit-dev
mailing list