Closed Bug 55855 Opened 24 years ago Closed 24 years ago

mysterious exception enumerating win.scrollbars

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Windows 2000
defect

Tracking

()

VERIFIED DUPLICATE of bug 58539

People

(Reporter: bugzilla, Assigned: security-bugs)

References

()

Details

When you try to use the history object: http://gemal.dk/browserspy/showprop.html?window.history you get an: JavaScript error: line 0: uncaught exception: [Exception... "Security error" code: "1000" nsresu lt: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)" location: "http://gemal.dk/browser spy/showprop.html?window.history Line: 12"]
Seems like a more general bug since I can also reproduce this with the scrollbar object: http://gemal.dk/browserspy/showprop.html?window.scrollbars
Summary: "uncaught exception" when using the history object → "uncaught exception" when using objects
Mitchell, is this intentional or are the security constraints too narrow here?
Assignee: jst → mstoltz
The error when accessing history.current is valid - scripts cannot access window.history. I'm not sure about window.scrollbars; I'm seeing a Failure exception, which may or may not be security-related. Henrik, do you think this is a problem?
Status: NEW → ASSIGNED
Henrik, I'm not sure I'm getting the result you describe with window.scrollbars with your BrowserSpy. It's confusing as to what your script is actually doing. Can you send me a simpler testcase for this behavior?
The URL: http://gemal.dk/browserspy/showprop.html?window.scrollbars will run through the object "window.scrollbars" and show all property of that object. It' doing a "for a in window.scrollbars" ... This will work just fine in Netscape 4.75 but in Mozilla I'm getting a: JavaScript error: line 0: uncaught exception: [Exception... "Failure" code: "-2147467259" nsresu lt: "0x80004005 (NS_ERROR_FAILURE)" location: "http://gemal.dk/browserspy/showp rop.html?window.scrollbars Line: 12"]
Changing description.
Summary: "uncaught exception" when using objects → mysterious exception enumerating win.scrollbars
I don't see this when simply enumerating the properties of window.scrollbar (http://www.cs.hmc.edu/~jruderma/mozilla/proptree/), so you're probably getting the error because showprop.html tries to show the values of the enumerated properties in addition to their names. *** This bug has been marked as a duplicate of 58539 ***
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
verifying bugs... build 2001013020
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.