Closed
Bug 55855
Opened 24 years ago
Closed 24 years ago
mysterious exception enumerating win.scrollbars
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
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"]
Reporter | ||
Comment 1•24 years ago
|
||
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
Comment 2•24 years ago
|
||
Mitchell, is this intentional or are the security constraints too narrow here?
Assignee: jst → mstoltz
Assignee | ||
Comment 3•24 years ago
|
||
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
Assignee | ||
Comment 4•24 years ago
|
||
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?
Reporter | ||
Comment 5•24 years ago
|
||
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"]
Assignee | ||
Comment 6•24 years ago
|
||
Changing description.
Summary: "uncaught exception" when using objects → mysterious exception enumerating win.scrollbars
Comment 7•24 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•