Closed
Bug 313411
Opened 20 years ago
Closed 20 years ago
using Function.prototype does not work within extension, works from console
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 300079
People
(Reporter: mamato, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051001 Firefox/1.0.7
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4
Function.prototype.foo = function() { alert("Wheee!") };
function Bar() {};
alert(Function.prototype.foo);
alert(Bar.foo);
the second alert is undefined.
works fine from console.
Reproducible: Always
Steps to Reproduce:
1.install the xpi
2.relaunch ffox
3.
same behavior with 1.5b2
Related to/duplicate of Core bug 300079?
Comment 2•20 years ago
|
||
*** This bug has been marked as a duplicate of 300079 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•