Closed Bug 300961 Opened 20 years ago Closed 16 years ago

Javascript loading error dialog intermittently when page with frames is reloaded

Categories

(Firefox :: General, defect)

1.0 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: u208856, Unassigned)

Details

(Whiteboard: closeme 2009-08-01)

Attachments

(2 files)

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050715 Firefox/1.0.6 An intermittent error dialog is displayed when reloading a page with frames and included Javascript files. The problem occurs more often than not while reloading the same page. Reproducible: Always Steps to Reproduce: 1.Start Firefox in Safe Mode 2.Enter URL http://www.bayarea.net/~doan/photogallery/sample_strip/index.html and Go. Notice that there is no error. 3. Press Reload current page. You might have to do that several times. Most of the time you get the error dialog box. 4. When you acknowledge the error by pressing OK, the page loads without problem and the Javascript file in question has been loaded correctly. Actual Results: Error dialog: Error message=Error loading script URL=... Line Number = 1 Expected Results: The error dialog should not display. This happens with freshly installed Firefox. I tested versions 1.0, 1.0.5, and 1.0.6 beta. I've done some analysis. This problem has nothing to do with the contents of the Javascript file. If I substitute it with a different script file that only initializes a variable, it flags that script. If the page of the content frame is loaded by itself, the error does not occur. So it appears that this has to do with frames and executing Javascript. Might be a timing-related issue.
Attached image Picture of error dialog
Picture of sample error dialog that is referenced in the description.
Unpack files into a new folder. Open index.html with Firefox (Save mode) --> error.
Created a minimal set of files from the original website that still reproduces the error. See attachment. What's interesting is that all CSS and JS files are empty. If any one of the remaining tokens in the HTML files for the two frames is removed, the error disappears. For example: - Comment out the .src statements for the images --> no error - Comment out the location.href statement --> no error - Comment out loading of external (empty!) script file initsubsets.js --> no error - Comment out window.onerror statement -> no error Hopefully this helps to track down the root cause of the problem.
The website that was originally supplied to demonstrate the error was changed to work around the Firefox problem. Please use the attached files instead.
The bug still exists in the released version 1.06. Build identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
do you still see this problem? please update the bug with comment and/or close as appropriate. (bug has no comment since 2007-01-01)
Whiteboard: closeme 2009-08-01
No reply, INCO. Please reopen if you are seeing this in Firefox 3.5.2 or later in Firefox safe mode and a new profile with the latest plugins. http://support.mozilla.com/kb/Safe+Mode http://support.mozilla.com/kb/Profiles
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INCOMPLETE
Version: unspecified → 1.0 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: