Closed Bug 68145 Opened 24 years ago Closed 24 years ago

scrollbars.visible throws js exception on iframe

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 58539

People

(Reporter: cyril.elkaim, Assigned: pollmann)

Details

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 :-)
Could you please post a small testcase that reproduces this bug? This would help a lot. Also please provide us with your buildID.
*** This bug has been marked as a duplicate of 58539 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Summary: scrollbars.visible crashes on iframe → scrollbars.visible throws js exception on iframe
QA Contact update
QA Contact: petersen → amar
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
Product: Core → Core Graveyard
Component: Layout: HTML Frames → Layout: Images
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.