Closed
Bug 399502
Opened 18 years ago
Closed 18 years ago
onload event handler does not fire for xmldocument created with document.implementation.createDocument
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: ellislau, Assigned: smaug)
References
Details
Attachments
(3 files)
|
43 bytes,
text/xml
|
Details | |
|
445 bytes,
text/html
|
Details | |
|
1.22 KB,
patch
|
sicking
:
review+
sicking
:
superreview+
sicking
:
approval1.9+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a8) Gecko/2007091216 GranParadiso/3.0a8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a8) Gecko/2007091216 GranParadiso/3.0a8
The onload handler doesn't fire in FF 3.0a8, but it works fine in FF 2
Test Code:
<script type="text/javascript">
function load()
{
var xmldoc = document.implementation.createDocument("", "", null);
xmldoc.onload = function(evt)
{
alert("loaded");
};
xmldoc.load("bar.html");
}
</script>
<body onload="load()">
</body>
Reproducible: Always
Steps to Reproduce:
1.Run test code in 3.0a8
2.
3.
Actual Results:
Nothing happens
Expected Results:
Alert box with message "loaded" should appear
| Assignee | ||
Comment 1•18 years ago
|
||
A minimal testcase attached using "Add an attachment" would be great.
And regression range even better.
| Assignee | ||
Comment 2•18 years ago
|
||
Are you trying to load an html document as xml?
| Assignee | ||
Comment 3•18 years ago
|
||
Testing locally showed some problems. ->NEW
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Assignee | ||
Comment 4•18 years ago
|
||
2007-07-27-04-trunk builds seem to be the first ones that have this bug.
| Assignee | ||
Comment 6•18 years ago
|
||
| Assignee | ||
Comment 7•18 years ago
|
||
| Assignee | ||
Updated•18 years ago
|
Flags: blocking1.9?
| Assignee | ||
Updated•18 years ago
|
Assignee: nobody → Olli.Pettay
| Assignee | ||
Comment 8•18 years ago
|
||
Bug 389508 added too strict and actually useless security check to nsJSEnvironment.cpp:
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/dom/src/base/nsJSEnvironment.cpp&rev=1.349&mark=1748-1758#1739
Attachment #284983 -
Flags: superreview?(jonas)
Attachment #284983 -
Flags: review?(jonas)
Attachment #284983 -
Flags: superreview?(jonas)
Attachment #284983 -
Flags: superreview+
Attachment #284983 -
Flags: review?(jonas)
Attachment #284983 -
Flags: review+
| Assignee | ||
Updated•18 years ago
|
Attachment #284983 -
Flags: approval1.9?
Attachment #284983 -
Flags: approval1.9? → approval1.9+
Keywords: checkin-needed
| Assignee | ||
Updated•18 years ago
|
Status: NEW → RESOLVED
Closed: 18 years ago
Flags: blocking1.9? → in-testsuite+
Resolution: --- → FIXED
Updated•18 years ago
|
Keywords: checkin-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•