Closed
Bug 179777
Opened 22 years ago
Closed 22 years ago
Access to arguments.callee.caller from top level silenty stops script execution
Categories
(Core :: Security: CAPS, defect)
Core
Security: CAPS
Tracking
()
RESOLVED
DUPLICATE
of bug 158592
People
(Reporter: crsng1, Assigned: security-bugs)
Details
Attachments
(1 file)
1.06 KB,
text/html
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20021016
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20021016
The arguments.callee.caller property in not accessible from top level functions
and event handlers. For these the property should be null but instead its access
silently stops the script execution, no JavaScript errors, not possible to trap.
On IE6 the property is null.
Problem confirmed on Mozilla 1.2b (2002101612) in Win32 and Linux.
Reproducible: Always
Steps to Reproduce:
Reporter | ||
Comment 1•22 years ago
|
||
This test case to show the bug in these 3 contexts:
1- Access to arguments.callee.caller from the body onload handler
2- Access to arguments.callee.caller in a try/catch from a top level function
3- Access to arguments.callee.caller from a onclick handler
Normally, the body onload handler should display an alert showing
arguments.callee.caller. The top level function invokes an alert in both the
try and catch, and after the try/catch. Finally, the onlick handler should
display an alert showing arguments.callee.caller.
Comment 2•22 years ago
|
||
Colin: good catch. This is actually not a JS Engine problem,
but turns out to be caused by security code in the browser.
See bug 158592 "Stack Trace code causes process thread to die.";
in particular, bug 158592 comment #5.
Reassigning to Security:CAPS -
Assignee: rogerl → mstoltz
Status: UNCONFIRMED → NEW
Component: JavaScript Engine → Security: CAPS
Ever confirmed: true
QA Contact: pschwartau → bsharma
Comment 3•22 years ago
|
||
Colin: thank you for this report. You have been cc'ed on bug 158592
so you can follow progress on this. Please reopen that bug if the
fix for it does not cure what you have observed here -
*** This bug has been marked as a duplicate of 158592 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•