Status: Unconfirmed Owner: [email protected] Labels: Type-Bug Pri-2 OS-All Area-Misc
New issue 6351 by t.broyer: Javascript alert() brings tab and window to front (and even un-minimize browser window if needed) http://code.google.com/p/chromium/issues/detail?id=6351 Chrome Version : 2.0.156.1 URLs (if applicable) : http://www.codetoad.com/javascript/miscellaneous/onload_event_eg.asp Other browsers tested: Add OK or FAIL after other browsers where you have tested this issue: Safari 3: Unfortunately same as Chrome Firefox 3: Idem IE 7: Tab showing the alert blinks to notify some kind of "activity"; the alert shows (and is then modal to the whole browser window :-( ) only when you switch to this tab. What steps will reproduce the problem? 1. middle-click the link above to open it in a new tab 2. Chrome switches to the tab as soon as the page is loaded (alert() is called from onload). 3. Same goes if you open in a new window: the window is bring to front (and un-minimized if needed). What is the expected result? The alert should only be shown when you switch to the tab where it belongs (tab blinking as in IE is IMO more distracting than useful). It should not cause the window to gain focus either. As an aside, of course, the alert shouldn't be modal to the window as it would prevent you from switching from tab to tab using Ctrl+Tab (you'd first have to dismiss the alert); but that's already covered by issue 456. What happens instead? Chrome switches to the tab automatically as soon as alert() is called; the window is given focus as a result (bringing it to front, un-minimizing it if needed) Please provide any additional information below. Attach a screenshot if possible. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ Automated mail from issue updates at http://crbug.com/ Subscription options: http://groups.google.com/group/chromium-bugs -~----------~----~----~----~------~----~------~--~---
