Re: DummyParserRequest and XML
Boris Zbarsky <[email protected]> Fri, 30 Jun 2006 12:23:45 -0500
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Message-ID | <[email protected]> |
Henri Sivonen wrote: > Is the fix for > https://bugzilla.mozilla.org/show_bug.cgi?id=293818 > already taking care of everything on the XML side that > DummyParserRequest takes care of on the HTML side? That fix provides the ability to take care of it. It doesn't actually do anything in the parser so far. We could replace adding/removing the dummy parser request with BlockOnload()/UnblockOnload() if we handle the Cancel() issue I mention in bug 294115. I do find it odd that just using DummyParserRequest didn't work, though... That makes me suspect that the other solution would have the same issues, frankly. If you want to check, you could ignore the Cancel() thing for now and just see whether you can BlockOnload()/UnblockOnload() and whether that works. > Which events are at stake? OnLoad? Others? Just onload. > How should I proceed investigating whether I break something? Create an HTML page such that the parser would get interrupted after all the data has been received from the network but before it's been parsed (simplest way is to interrupt very often, probably). Then see whether onload fires too early (e.g. by having an inline <script> at the end of the document and an onload handler and seeing which one runs first). -Boris