Closed
Bug 736805
Opened 12 years ago
Closed 6 years ago
"new X instanceof X" fails in Web Console
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
INACTIVE
People
(Reporter: emk, Unassigned)
References
Details
Steps to reproduce: 1. Press Ctrl+K to open Web Console. 2. Type "new MozBlobBuilder().getBlob() instanceof Blob" (without quote) and press Enter. Actual result: false Expected result: true It works as expected in Web pages. It also works if I reverted <https://hg.mozilla.org/mozilla-central/rev/95a8eba120fe>.
Reporter | ||
Comment 1•12 years ago
|
||
This bug was not specific to Blob. "new MozBlobBuilder instanceof MozBlobBuilder" also returns false in Web Console. OTOH, "new Array instanceof Array" returns true.
Keywords: regression
Summary: "instanceof Blob" fails in Web Console → "new X instanceof X" fails in Web Console
Comment 2•12 years ago
|
||
This may be related to bug 690529.
Reporter | ||
Comment 3•12 years ago
|
||
a = new window.Array [] a instanceof Array false a instanceof window.Array true bb = new window.MozBlobBuilder [object MozBlobBuilder] bb instanceof window.MozBlobBuilder false At least it should return consistent results.
Comment 4•12 years ago
|
||
This has nothing to do with the DOM per se; there are various security wrappers and whatnot all over here.
Component: DOM → XPConnect
QA Contact: general → xpconnect
Reporter | ||
Comment 5•12 years ago
|
||
Works for me now, leaving open to track adding a regression test.
Comment 6•6 years ago
|
||
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in
before you can comment on or make changes to this bug.
Description
•