Closed Bug 861214 Opened 12 years ago Closed 12 years ago

window.resize event is called multiple times on orientation change

Categories

(Firefox for Android Graveyard :: General, defect)

21 Branch
x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 748495

People

(Reporter: donrhummy, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0 Build ID: 20130326150557 Steps to reproduce: Ran the below code in Firefox Beta for Android on a Nexus 4: [code] <!DOCTYPE html> <html> <head> <script> function myFunction() { alert( window.outerWidth ); } </script> </head> <body onresize="myFunction()"> This will cause 2-3 alerts per orientation change </body> </html> [/code] Actual results: Every rotation caused 2-3 alerts to pop up. Expected results: Just one alert should pop up per rotation change.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.