Closed Bug 356646 Opened 18 years ago Closed 18 years ago

window.blur() in a popup window has no effect

Categories

(Firefox :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 351013

People

(Reporter: net, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-GB; rv:1.8.1) Gecko/20061003 Firefox/2.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-GB; rv:1.8.1) Gecko/20061003 Firefox/2.0

Calling window.blur() in a popup window no longer sends it behind other windows.

Reproducible: Always

Steps to Reproduce:
1. Include the following script on a page:
function go(){
	var w=window.open('','x','resizable=1,width=400,height=400');
	w.document.write('<body><button onclick=\'self.blur()\'>blur!</button></body>');
	w.document.close();
}
2. Launch it and click blur! on the resulting popup.

Actual Results:  
None.

Expected Results:  
Should place popup behind main/other window(s).

Works properly in v1.5.0.7 and not in 2.0 RC2.
Makes no difference if popup content is an html file rather than dynamically generated.
What is the value of
Tools/Options.../Content tab/Javascript Advanced button/Raise or lower existing windows

Is it checked or unchecked?



I didn't even remember that option because it was 'on' by default in previous versions. If I check the box, behaviour is as usual, thanks. Do you know if version 2.0+ is intended to ship with this setting, or is it an error that needs reporting?
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
> I didn't even remember that option because it was 'on' by default in previous
> versions. 

Are you sure it was "on" by default in previous versions? Bug 318535 clearly suggests that users had to turn it "on".

> is it an error that
> needs reporting?

Bug 351013

Reopening to resolve as duplicate of that bug.


Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Resolving more appropriately

*** This bug has been marked as a duplicate of 351013 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → DUPLICATE
> Are you sure it was "on" by default in previous versions?

I confirm it is "on" in clean install of Firefox 1.0 and 1.5 on Windows.
I agree with that. I have used Firefox since version 0.x and never before had to tweak preferences to get a script to work.
You need to log in before you can comment on or make changes to this bug.