Math.atan2(Infinity, Infinity) produces wrong result

Bug #1380121 reported by alawatthe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Midori Web Browser
New
Undecided
Unassigned

Bug Description

The following function calls all produce NaN:

Math.atan2(Infinity, Infinity)
Math.atan2(Infinity, -Infinity)
Math.atan2(-Infinity, Infinity)
Math.atan2(-Infinity, -Infinity)

But they should give the results
+π/4
+3π/4
−π/4
−3π/4

See for example: https://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.atan2

The about:version information:
Command line C:\Program Files\Midori\bin\midori.exe
Midori 0.5.8 ((null)) Midori.exe
GTK+ 3.6.4 (3.6.4) Glib 2.34.3 (2.34.3)
WebKitGTK+ 1.10.2 (1.10.2) libSoup 2.40.3
cairo 1.12.10 (1.12.10) libnotify No
gcr No granite No
Platform Windows NT 6.2
Identification Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.6 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/537.6 Midori/0.5
Video Formats H264 [x] Ogg Theora [x] WebM [x]

Revision history for this message
gue5t gue5t (gue5t) wrote :

Generally you would want to report this upstream to the WebkitGTK+ developers (at webkitgtk.org), but I believe this is fixed in later versions of webkit; I see the non-NaN answers you list with WebkitGTK+ 2.4.6.

I'm not sure what the status is w/r/t distributing a Windows build with a more recent version of webkit.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.