Closed
Bug 736805
Opened 13 years ago
Closed 7 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•13 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•13 years ago
|
||
This may be related to bug 690529.
| Reporter | ||
Comment 3•13 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•13 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•13 years ago
|
||
Works for me now, leaving open to track adding a regression test.
Comment 6•7 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: 7 years ago
Resolution: --- → INACTIVE
You need to log in
before you can comment on or make changes to this bug.
Description
•