Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does the 'window.resize' event fire when changing tabs in Chrome (6.0.472.55)?

I came across an interesting bug feature tonight when writing a handler for window.onresize in Chrome (the latest version 6.0.472.55). First open two tabs, then in the first tab open this jsFiddle.

Resize the window at will and the dialog box works as expected. Now, try switching to the 2nd tab -_-. Why is resize firing when the tab is changed? Could someone provide insight/more details if I need to file a bug?

like image 490
TheCloudlessSky Avatar asked Sep 15 '10 00:09

TheCloudlessSky


1 Answers

The bug has been filed with Google. For the time being, I've just ignored it since my actual onresize handler doesn't display alert boxes.

like image 64
TheCloudlessSky Avatar answered Sep 23 '22 21:09

TheCloudlessSky