Closed Bug 328176 Opened 18 years ago Closed 18 years ago

javascript event focus() don't work. The window stay in background

Categories

(Camino Graveyard :: General, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED INVALID

People

(Reporter: yvestan+bugzilla, Assigned: mikepinkerton)

Details

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.1) Gecko/20060214 Camino/1.0 (MultiLang)
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.1) Gecko/20060214 Camino/1.0 (MultiLang)

(french user) I'm scripting this code or I try to other site, Popup stay in background. This code with focus() work fine with Firefox 1.5, Safari and IE 5.2 Mac :

		function ouvre_player(fichier) {
		    popup = window.open(fichier, 'Music', 'height=200, width=370, top=100, left=100, toolbar=no, menubar=no, location=no, resizable=yes, scrollbars=no, status=no');
		    if(popup.window.focus){
			   popup.window.focus();
		    }
		}

Reproducible: Always
Do you have "Prevent sites from changing, moving or resizing windows" checked under "Web Features" in the preferences? If not, is "dom.disable_window_flip" set to "true" in about:config?
(In reply to comment #1)
> Do you have "Prevent sites from changing, moving or resizing windows" checked
> under "Web Features" in the preferences? If not, is "dom.disable_window_flip"
> set to "true" in about:config?
> 

First, sorry for my (bad) english. Yes, it's true. This option was checked and my example code work fine if unchecked. Sorry for my false bug !

Are you sure that focus() as very obstrusive ? Maybe on the future version, it's possible to look like Firefox by difference between :

- moving and resizing (frequently obstrusive)
- focus

Thank to the camino team !

Yves

Alright then. :)

Closing invalid; maybe we can come to another consensus at some point about the window prefs.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.