scrollbars.visible throws js exception on iframe

VERIFIED DUPLICATE of bug 58539

Status

()

Core
Layout: HTML Frames
VERIFIED DUPLICATE of bug 58539
17 years ago
17 years ago

People

(Reporter: Cyril Elkaim, Assigned: Eric Pollmann)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

17 years ago
Once security and privileges are enabled
the following code fragment throws an exception:

// enabling privileges. SEEMS to work OK
// I'm using signed.applets.... in the prefs.js file.
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");

// the two following cause exception:
top.frames["myframe"].scrollbars.visible=false;
// OR 
alert(top.frames["myframe"].scrollbars.visible);


Exception is -2147467259 nsresult 0x80004005 (NS_ERROR_FAILURE)

In general it seems that there are problems with scrollbars in skins for example
But you know for sure :-)

Comment 1

17 years ago
Could you please post a small testcase that reproduces this bug? This would help
a lot. Also please provide us with your buildID.

Comment 2

17 years ago

*** This bug has been marked as a duplicate of 58539 ***
Status: UNCONFIRMED → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → DUPLICATE
Summary: scrollbars.visible crashes on iframe → scrollbars.visible throws js exception on iframe

Comment 3

17 years ago
QA Contact update
QA Contact: petersen → amar
(Reporter)

Comment 4

17 years ago
Tried with the 2001062021 build with the new xpconnect.
Apparently that works now. No more exceptions. BTW it's possible to have an
IFRAME with the SCROLLING="NO" parameter and be able to scroll with JavaScript.
Don't know if that's "legally" correct but, please, keep this behavior :-) as it
simplifies the code.

So for me this bug is VERIFIED

Thanks for the good work guys!
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.