Closed Bug 65483 Opened 24 years ago Closed 21 years ago

Dynamically added iframe elements cause a repeat of URL in history [frame]

Categories

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

x86
Windows 2000
defect

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: pbwiz, Unassigned)

References

()

Details

(Keywords: dom1, testcase)

Attachments

(2 files)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; 0.7) Gecko/20010109
BuildID:    2001010901

Using DOM level 1 comands I am using the appendChild method to attach
an IFRAME element to the current document.  Every time this happens I
get another history of the current page added to the history list.  I
have also noticed that if you hit the refresh key multiple times then
the script is run again, but the document is not reloaded, just
another IFRAME element is added to the document.

Reproducible: Always
Steps to Reproduce:
Load the web page.  Use refresh to repeat the bug so it is more noticable.

Actual Results:  The web page is repetitivaly added to the history and at times
a second IFRAME is added to the web page when you use the refresh.

Expected Results:  The history should not have been modified, and the page
should only have one IFRAME element.

I first noticed this problem in Netscape 6.0.  This problem does not happen in
IE5.5.
*** Bug 65484 has been marked as a duplicate of this bug. ***
likely the same stuff bug 60946 is made of
Confirmed
Platform: PC
OS: Windows 98
Mozilla Build: 2001011604

I am going to go ahead and mark this NEW because bug 60496 doesn't include this.
Go ahead and mark as a duplicate if you feel I am offbase (which I may well be).
Status: UNCONFIRMED → NEW
Ever confirmed: true
Sounds like a iframe code problem, or possibly a session history problem.
Reassigning to pollmann for futher investigation.
Assignee: jst → pollmann
Keywords: dom1
Component: DOM Level 1 → DOM HTML
Setting milestone to future
Target Milestone: --- → Future
QA contact Update
QA Contact: janc → desale
Updating QA contact to Shivakiran Tummala.
QA Contact: desale → stummala
i  see the problem with the history.. the problem with refresh..i clicked on
refresh more than 20 times very fast to see the problem mentioned by the
reporter...the url provided by the reporter is not valid ...here is the testcase ..



<html>

<script type="text/javascript">

function create_iframe() 
{
	var x = document.createElement("IFRAME");
	x.setAttribute("name", "ant");
	x.setAttribute("src", "http://bugzilla.mozilla.org/ant.jpg");
	x.setAttribute("frameborder", "1");
	x.setAttribute("marginwidth" , "2");
	x.setAttribute("scrolling", "no");
	x.setAttribute("align", "center");
	x.setAttribute("width", "300");
	x.setAttribute("height", "110");
	document.body.appendChild(x);
}
</script>

<body>

<script>
create_iframe();
</script>
</body>
</html>
Bulk reassigning form bugs to Alex
Assignee: pollmann → alexsavulov
Summary: Dynamically added iframe elements cause a repeat of URL in history → Dynamically added iframe elements cause a repeat of URL in history [iframe]
Summary: Dynamically added iframe elements cause a repeat of URL in history [iframe] → Dynamically added iframe elements cause a repeat of URL in history [frame]
Keywords: testcase
Priority: -- → P4
*** Bug 111201 has been marked as a duplicate of this bug. ***
->
Assignee: alexsavulov → jst
Mass-reassigning bugs.
Assignee: jst → dom_bugs
Attached file Testcase
WFM Windows 2000, Mozilla 1.3. 
If this is identical to bug #148794, it just should have reappeared in 1.4 .
Dynamically added iframe elements appended during load of the document are not
added in the history list anymore, so the previous testcase is not working
anymore.
Using:
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6a) Gecko/20030929
Firebird/0.7+
This new attachment still shows the problem.
Sorry, bugspam!
It seems to be working fine now. I made some mistake, I guess.
Although I have a testcase which still shows the problem:
http://home.hccnet.nl/m.wargers/test/mozilla/xbl/link.htm
But I use xbl in this case, so this is probably a different bug. 
Should I file a new bug?

xbl-file:
http://home.hccnet.nl/m.wargers/test/mozilla/xbl/link.xml
http://home.hccnet.nl/m.wargers/test/mozilla/xbl/

Yes, please file a new bug on XBL on the XBL issue.  CC me.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: