[Webkit-unassigned] [Bug 126680] New: Incorrect this value for callbacks (like requestAnimationFrame)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 8 21:59:29 PST 2014
https://bugs.webkit.org/show_bug.cgi?id=126680
Summary: Incorrect this value for callbacks (like
requestAnimationFrame)
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
URL: http://jsfiddle.net/3BLzU/2/
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: bzbarsky at mit.edu
Steps to reproduce: Load this testcase:
<script>
function f() { "use strict"; alert(this + ""); }
requestAnimationFrame(f);
</script>
Expected result: Alert saying either "null" or "undefined", preferably the latter.
Actual result: Alert saying 'function f() { "use strict"; alert(this + ""); }'
Additional information:
Per WebIDL spec, the callback this value is set to null, by default, though it should probably be undefined instead (see <https://www.w3.org/Bugs/Public/show_bug.cgi?id=24248>). The requestAnimationFrame specification doesn't say to pass any special this value. So in this case the this value should be undefined, or at worst null, not the function object being called.
--
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