Summary: | REGRESSION: window.onload event is not fired when page is revisited in the same session | ||
---|---|---|---|
Product: | WebKit | Reporter: | Holger Latzel <hlatzel> |
Component: | Page Loading | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WORKSFORME | ||
Severity: | Major | CC: | ap, mihnea |
Priority: | P1 | Keywords: | InRadar, NeedsReduction, Regression |
Version: | 528+ (Nightly build) | ||
Hardware: | Mac (Intel) | ||
OS: | OS X 10.5 | ||
URL: | http://www.hueber.de/tell-me-more/ |
Description
Holger Latzel
2008-09-30 00:59:12 PDT
Why is this a bug? Going back to a page does not normally reload it, but returns one to a suspended version of it. Firing onload for a second time would be wrong. If one returns to a page by clicking on links that don't use history functions but contain URIs, then it is a bug. I now had some time to spend on further testing this by creating two small test pages under http://www.hlm.de/webkit/ that do the exact same thing. A first page with a small intro animation and a second page for linking back and forth. Surprisingly, these two pages don't replicate the bug at the moment, at least not for me. The onload event is fired correctly every time I return to the first page by clicking on the link on the second page. Since these two dummy pages contain nothing more than simple text in div boxes I will continue to do some more testing with added complexity (graphics, more javascripts). Hope to get back with the results later today or tomorrow. Sorry, my mistake - I somehow thought this was about using Back button, event though you specifically wrote it was not. No problem. I now have made html copies of two pages from the Tell Me More infoservice and saved them under http://www.hlm.de/webkit3/ to isolate them from the content management system on Hueber.de. There, the bug is not reproducible any longer by simply clicking twice ... it definitely needs a lot more clicking before it occurs. I try to be more specific the next time but it may take some time because I have to return to my regular work for the next several days ;) Feel free to add any comment or contact me directly if there are any questions in the meantime. And, for the time being, the page at http://www.hueber.de/tell-me-more/ will remain unchanged and there the bug is still reproducable. Bug is not reproducible in Mac Webkit 38707 any longer. Loading of the page and event firing working perfectly. Thanks for this marvelous browser, folks!! |