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

VERIFIED INVALID

Status

Camino Graveyard
General
VERIFIED INVALID
12 years ago
12 years ago

People

(Reporter: YvesTan, Assigned: Mike Pinkerton (not reading bugmail))

Tracking

Details

(Reporter)

Description

12 years ago
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

Comment 1

12 years ago
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?
(Reporter)

Comment 2

12 years ago
(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

Comment 3

12 years ago
Alright then. :)

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