Open
Bug 416163
Opened 17 years ago
Updated 3 years ago
FF 3.x XUL: iframe onload event fires multiple times, when document's favicon is changed dynamically
Categories
(Core :: XUL, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: telega, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b3) Gecko/2008020514 Firefox/3.0b3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b3) Gecko/2008020514 Firefox/3.0b3
Onload event for <iframe> element in XUL document fires multiple times, when favicon element is dynamically changed (removed and added back). This happens in FF 3.x only, FF 2.x works fine.
Reproducible: Always
Steps to Reproduce:
1.Open test.xul (listed below in Additional Information) document in FF 3.x and click "test" button.
Actual Results:
Iframe onload event fires each time favicon element is appended to the document.
Expected Results:
Iframe onload event should not fire.
test.xul:
---------
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window id="test"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<html:link id="favicon" rel="shortcut icon"/>
<iframe onload="alert('iframe onload');" style="background: white;"/>
<button label="test" oncommand="updateFavIcon();"/>
<script>
<![CDATA[
function updateFavIcon() {
var favicon = document.getElementById("favicon");
favicon.parentNode.removeChild(favicon);
document.documentElement.appendChild(favicon);
}
]]>
</script>
</window>
Updated•17 years ago
|
Component: General → XUL
Product: Firefox → Core
QA Contact: general → xptoolkit.widgets
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•