User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0 Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0 If a modal window closes window BEFORE onload event was fired, the opener window stops receiving DOMMouseScroll events. Reproducible: Always Steps to Reproduce: 1. install attached example extension 2. open a webpage that needs to scroll and make sure mouse wheel scrolls the page 3. press ALT+1 and try scroll with mouse wheel Actual Results: mouse wheel doesn't scroll page anymore Expected Results: mouse wheel should scroll page normally The only way to restore mouse wheel scroll is either switch tabs or focus on different window. The attached extension has several controls that you can test it with: ALT+1 executes alert() ALT+2 executes open() ALT+3 executes openDialog() ALT+4 switching mode between "don't close", "close before onload" and "close after unload" ALT+5 toggles modal This bug affects only one combination: modal = true mode = "close before onload" This seems to affect only Firefox v4, while v3.x is not affected.
Created attachment 522231 [details] Example of an extension that opens modal window The extension has
Just noticed if execute window.focus(); just before window.close(); the scroll will continue work just fine.
Confirmed on Build identifier: Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.