If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

mysterious exception enumerating win.scrollbars

VERIFIED DUPLICATE of bug 58539

Status

()

Core
DOM: Core & HTML
P3
normal
VERIFIED DUPLICATE of bug 58539
17 years ago
17 years ago

People

(Reporter: Henrik Gemal, Assigned: Mitchell Stoltz (not reading bugmail))

Tracking

Trunk
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

17 years ago
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

17 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
Mitchell, is this intentional or are the security constraints too narrow here?
Assignee: jst → mstoltz
(Assignee)

Comment 3

17 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

17 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

17 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

17 years ago
Changing description.
Summary: "uncaught exception" when using objects → mysterious exception enumerating win.scrollbars

Comment 7

17 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
Last Resolved: 17 years ago
Resolution: --- → DUPLICATE
(Reporter)

Comment 8

17 years ago
verifying bugs...
build 2001013020
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.