Closed
Bug 38610
Opened 24 years ago
Closed 24 years ago
unexpected js component interface error
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
VERIFIED
FIXED
M16
People
(Reporter: sean, Assigned: jst)
Details
(Keywords: testcase, Whiteboard: [nsbeta2+][ETA 7/11])
Attachments
(1 file)
851 bytes,
text/html
|
Details |
Loading the attached html file generates a js error: Exception... "Component does not have requested interface" code: "-2147467262" nsresult: "0x80004002 (NS_NOINTERFACE)" It appears that mozilla considers 'complete' an interface of an image object?
Reporter | ||
Updated•24 years ago
|
Reporter | ||
Comment 1•24 years ago
|
||
Reporter | ||
Comment 2•24 years ago
|
||
d'oh - actual js code: <script LANGUAGE=JavaScript> diceFrame = new Array (); totalFrames = 6; allMediaLoaded = true; for (var frameNo = 1; frameNo <= totalFrames; frameNo++) { diceFrame [frameNo] = new Image (90,90); diceFrame [frameNo].src = 'frame' + frameNo + '.gif'; } for (var frameNo = 1; frameNo <= totalFrames && allMediaLoaded; frameNo++) allMediaLoaded = allMediaLoaded && diceFrame [frameNo].complete; // problem alert(diceFrame [frameNo].complete); </script>
Comment 3•24 years ago
|
||
Actually, it's saying that the interface doesn't have this property. I assume it needs to be implemented. --> Dom Level 0 jst/desale <script LANGUAGE=JavaScript> var foo = new Image (90,90); foo.src = 'whatever.gif'; var bar = foo.complete; // problem alert(bar); </script>
Assignee: rogerl → jst
Component: Javascript Engine → DOM Level 0
QA Contact: pschwartau → desale
Assignee | ||
Comment 4•24 years ago
|
||
This should IMO be fixed for beta2, adding keyword.
Keywords: nsbeta2
Assignee | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 6•24 years ago
|
||
Almost works in my tree, still needs some work but it's getting close.
OS: Windows 2000 → All
Hardware: PC → All
Whiteboard: [nsbeta2+] → [nsbeta2+][jst]
Target Milestone: --- → M16
M16 has been out for a while now, these bugs target milestones need to be updated.
Assignee | ||
Comment 9•24 years ago
|
||
While I do have an almost functioning fix for the img.complete on images created in JS problems I don't feel comfortable with checking that in at this point, in stead I'll fix the incorrect exception now and leave the img.complete problem to bug 28277...
Assignee | ||
Updated•24 years ago
|
Whiteboard: [nsbeta2+][jst] → [nsbeta2+][ETA 7/11]
Assignee | ||
Comment 10•24 years ago
|
||
The fix for the exception is checked in, marking FIXED.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•