Closed Bug 215820 Opened 22 years ago Closed 7 years ago

javascript hangs after Reload button pressed

Categories

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

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: dhawk, Unassigned)

References

()

Details

(Whiteboard: DUPEME)

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) The example website works okay in netscape 3-6 and IE3-6. Problem occurs in netscape 7.0 and 7.1 Javascript console reports the following: Error: uncaught exception: Permission denied to get property Window.on_contents_frame_load A netscape7 specific workaround is to implement a frameset onload event which forces a reload of the contents frame (which in turn has an onload event which reinitializes the javascript). This is included (but commented out) in the example website (the commented out function is the last function in the newcm.htm file). It would be nice to not need a version specific patch for Netscape 8! Reproducible: Always Steps to Reproduce: 1.open website, note javascript cascading menu on left works okay 2.press browser Reload button Actual Results: javascript cascading menu no longer works Expected Results: Cascading menu should have worked same as before reload
---> DOM Level 0 Confirming bug using: Using Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.5b) Gecko/20030806 Note |on_contents_frame_load()| is a user-defined function: function on_contents_frame_load() { if (browser_supports_scroll) top.contents.scroll(0, (selected_line_no*20)-200); } Somehow the reload is denying the browser access to any function defined in global (that is, Window) scope. The functions are defined in a <script> element as follows: <html> <head> <script> .... global functions here ... </script> </head> <frameset onLoad="on_frame_load();"> <frame src="swn00002.htm" name="contents"> <frame src="main.htm" name="main"> </frameset> </html>
Assignee: rogerl → dom_bugs
Status: UNCONFIRMED → NEW
Component: JavaScript Engine → DOM Level 0
Ever confirmed: true
QA Contact: pschwartau → ashishbhatt
This is a duplicate of another bug on reload screwing up security contexts in frames...
Whiteboard: DUPEME
Assignee: general → nobody
QA Contact: ashshbhatt → general
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.