[Webkit-unassigned] [Bug 34553] New: arguments.callee.caller is null in JavaScript functions defined in top and called via fn.call() or fn.apply() from an iframe
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 3 18:52:31 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=34553
Summary: arguments.callee.caller is null in JavaScript
functions defined in top and called via fn.call() or
fn.apply() from an iframe
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh Intel
OS/Version: Mac OS X 10.6
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Frames
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: ceager at gmail.com
Created an attachment (id=48089)
--> (https://bugs.webkit.org/attachment.cgi?id=48089)
Test case
Steps to reproduce
---------------
1. Create an iframe.
2. Define a function ("topFunction") in top that accesses
arguments.callee.caller
3. Write a function that calls "topFunction":
* normally: top.topFunction()
* via call: top.topFunction.call()
* via apply: top.topFunction.apply(this, arguments)
Results
-------
arguments.callee.caller is defined only for the normal function call.
Expected
--------
arguments.callee.caller is defined in all cases
--
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