Closed
Bug 474957
Opened 16 years ago
Closed 11 years ago
Javascript in iframe
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 170799
People
(Reporter: laysoft, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
I insert an iframe to a div, with "Insert iframe!" button. Iframe contains a javascript function (only an alert), which i call with the "Test JS!" button. I press "Insert iframe!" more times, "Test JS!" working. But after this, if I press one more the "Insert iframe!", the "Test JS!" is not working anymore. "Test JS!" (after a "Insert iframe!") is working more times, but AFTER one alert function the following "Insert iframe!" still works, but the "Test JS!" is not.
It's only a FireFox issue, IE7 and Opera not affected.
Reproducible: Always
Steps to Reproduce:
1. Press "Insert iframe!"
2. Press "Test JS!", alert appears
3. Press "Insert iframe!" again
4. Press "Test JS!" again, alert not working anymore
Comment 1•16 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2a1pre) Gecko/20090122 Minefield/3.2a1pre
This fails indeed but works in latest Opera. This is not a (recent) regression.
Version: unspecified → Trunk
Comment 2•16 years ago
|
||
May be related to bug 473436.
Component: General → Document Navigation
Product: Firefox → Core
QA Contact: general → docshell
Comment 3•16 years ago
|
||
Not at all. It's related to the fact that window.iframename keeps pointing to the old frame.
Almost certainly a dup of bug 170799 (and _definitely_ in the wrong component).
Comment 4•11 years ago
|
||
I cannot reproduce the problem in Firefox22.0 and later.
Fixed window(m-i)
Bad:
http://hg.mozilla.org/integration/mozilla-inbound/rev/22b3fa2e22c1
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20130314 Firefox/22.0 ID:20130314223435
Fixed:
http://hg.mozilla.org/integration/mozilla-inbound/rev/cfa16b1c70a3
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20130314 Firefox/22.0 ID:20130314223935
Pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=22b3fa2e22c1&tochange=cfa16b1c70a3
This was fixed by Bug 850517
Updated•11 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•