Closed Bug 298723 Opened 20 years ago Closed 20 years ago

Adding a <img> element in a frame by javascript cause the browse in loading... mode forever

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: tser, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

In a multi-frame page, when one of the frame src is changed and then an <img> is
added to the innerHTML of an element, the browse will be in loading mode. The
icon  will keep spinning and the progress bar will be shown non-stop.

Reproducible: Always

Steps to Reproduce:
1. Create a frameset main.html
<html>

<frameset cols="220,780*" frameborder="No" border="0"  framespacing="0" rows="*"> 
  
  <frameset id="leftframe" rows="*,*" > 
    <frame name="Frame1" src="Test3.html"  />
    <frame name="Frame2" src="Test3.html" />
  </frameset>
  
  <frameset rows="100%" > 
    <frame name="Frame9" src="Test4.html"  />
  </frameset>

</frameset>
</html>

2. Create Test3.html
<script>

function image11()
  {
	parent.frames[1].location = "Test4.html";
	image1();

  }
function image1() {
   document.getElementById("switch").childNodes[0].innerHTML = "<img src='30.gif'>";
}

function image2() {
   document.getElementById("switch").childNodes[0].innerHTML = "<img src='26.gif'>";
}

</script>

<html>
<body bgcolor=yellow>
<table ><tr id="switch"><td><img src='30.gif'></td></tr></table>

<a href="javascript:image11();">Image 1</a>
<a href="javascript:image2();">Image 2</a>
</body>
</html>


3. Create Test4.html

4. Pick any gif to replace 26.gif and 30.gif 

5. Open main.html

6. Click Image1

7. Click Image2


Actual Results:  
The browser icon will keep spinning.

Expected Results:  
The browser icon should stop spinning.

Note that if you lick Image2 first, the problem will not happen
Please test this with the latest nightly trunk build.
http://ftp.scarlet.be/pub/mozilla.org/firefox/nightly/latest-trunk/
It should be fixed with that build.
Confirmed that the problem has been solved in the lastest night build on Jun 
27,2005
Ok, marking WFM then.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.