2.91 KB, text/html
Confirmed, moving the mouse over and out on the link while pressing F5 consistently triggered an error for me. This doesn't make much sense, the script inside the onmouseover HTML event handler shouldn't be able to run before the script itself has been rendered. Perhaps this happens while the page is unloading, with the script functions being removed before the bound event handlers?
WFM, Mac trunk.
Component: Error Console → General
This is confirmed. I have noticed on several sites.
I have added some random text to increase the download time of the page. This helps to demonstrate the problem. It appears as though the function is not available until the end of the document. This shows up regularly on bigger pages. The more content the page contains the worse the problem becomes. Hope this helps, Andy
Severity: normal → major
Version: unspecified → 2.0 Branch
We think this is the same bug as reported for the Prototype.js framework: http://dev.rubyonrails.org/ticket/5393
I've confirmed this bug first occurring in Firefox version 18.104.22.168rc1. However, this is obviously more related to the core changes at the time (which seem to be related to 1.8.1). I haven't been able to find an immediately-suspicious ticket. If there's any topic that this relates to, in particular, it's the execution of DOM events (either they're occurring too early, or their global context isn't being set properly). Although, I don't see any tickets that deal with that specific issue (for that particular release), so some hunting will still have to occur.
Component: General → General
Product: Firefox → Core
QA Contact: general → general
Version: 2.0 Branch → Trunk
Created attachment 294656 [details] Test showing event handlers called with missing window scope Attaching a revised version of the original test that uses mousemove events instead of mouse over, which makes reproducing the problem easier. (I usually 2-3 "customFunction is not defined" errors.) This test demonstrates that event handlers are getting triggered without the scope-chain properly configured. In this case, the 'window' object does not appear to be in the scope chain, which is why "customFunction()" causes a ReferenceError, but "window.customFunction()" doesn't.
DUP of Bug 252542 (Reload case)? Test case is very similar to this bug's one. See also Bug 199430 (load of new URL by FORM case).
The testcase works for me, and these symptoms were fixed, as bugs cited in comment 8 say. Resolving.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.