[Webkit-unassigned] [Bug 39834] New: [Qt] JavaScript logical expressions
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 27 07:01:28 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=39834
Summary: [Qt] JavaScript logical expressions
Product: WebKit
Version: 528+ (Nightly build)
Platform: S60 Hardware
OS/Version: S60 3rd edition
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: jay.tucker at nokia.com
There seems to be a bug affecting JavaScript logical expressions which appears only on Symbian hardware. It occurs when a non-empty String variable is compared to a Boolean variable (which admittedly is not a good thing to do, but people do it nonetheless).
var str = "hello";
if (str == false) // Does this expression evaluate to true or false?
{
// do stuff here
}
On all the desktop browsers I tried as well as on Anomaly running on the Symbian emulator, the expression evaluated to false, so the stuff inside the if-block was not executed. However, on a Symbian device, the expression evaluated to true, so the stuff inside the if-block was executed.
I've attached a tiny HTML file that contains some test cases for these types of logical expressions.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list