Closed
Bug 321231
Opened 19 years ago
Closed 19 years ago
instanceof results for "literal" functions changed in FF 1.5
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 300079
People
(Reporter: bebabo, Unassigned)
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 Not sure if this is a bug or a feature, fact is that instanceof for literal functions has changed in FF 1.5 in xul-windows/scripts (this does not affect html documents/scripts) Using: function iof(o,c){alert(o instanceof c)} iof(function(){},Object) old yields "true" xul1.5 "false" iof(function(){},Function) old yields "true" xul1.5 "false" (old here is mozilla 1.7.12 - html & xul - or ff 1.5-html, xul1.5 is ff 1.5-xul) Note that js console behaves like 1.5-html Reproducible: Always Steps to Reproduce: 1. load xul and / or html testcases 2. click "test instanceof" button 3. compare alerts between xul / html, resp. versions of moz / ff Actual Results: As mentioned above Expected Results: Same behaviour in ff-1.5-xul as everywhere else, literal functions are Object's as well as Function's even in xul...
Reporter | ||
Comment 1•19 years ago
|
||
Reporter | ||
Comment 2•19 years ago
|
||
Comment 3•19 years ago
|
||
I can confirm the results that Thomas described. I don't think this is the JS Engine, but is XUL related. Moving there and confirming for now.
Component: JavaScript Engine → XP Toolkit/Widgets: XUL
Updated•19 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 4•19 years ago
|
||
*** This bug has been marked as a duplicate of 300079 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: general → xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•