Open Bug 133240 Opened 23 years ago Updated 2 years ago

window.resizeTo causes browser window to steal focus and un-minimise

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
Windows 2000
defect

Tracking

()

People

(Reporter: tom+bugzilla, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(1 file)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9) Gecko/20020311
BuildID:    2002031104

If you visit a page with:
<meta HTTP-EQUIV="Refresh" CONTENT="60">
in the <head> and minimise the page, when the page refreshs the minimised window
pops to the front and grabs focus.

Reproducible: Always
Steps to Reproduce:
1. go to page that uses meta refresh tag
2. minimise browser
3. wait for refresh

Actual Results:  window pops up, grabs focus

Expected Results:  nothing at all.
Can't reproduce this on W2K 2002032408.

Tom, is there a specific site that you get this with? It may be that the site
has something like <BODY onLoad="window.focus()"> which is causing it to grab focus.

Also, what is your setting for 'Preferences > Advanced > Scripts & Windows >
Raise or lower windows'? Does changing this make any difference?

If neither of these things apply, please could you try to reproduce this on a
recent build? (See ftp://ftp.mozilla.org/pub/mozilla/nightly/latest/)

This seems very similar to bug 105225 and related bugs. Please could you check
these and mark this as a duplicate if appropriate.

Resummarizing to make this easier to find, Severity -> Normal (it's irritating
but not serious).
Severity: major → normal
Summary: popup on refresh → <META http-equiv="Refresh" content="10"> causes browser window to steal focus
> window.focus
There is a window.resizeTo but thats it - HTML now attached.
Removing this resize stops the window pop-ing back up.

Doesn't seem to be a dup.
Summary: <META http-equiv="Refresh" content="10"> causes browser window to steal focus → window.resize causes browser window to steal focus andn un-minimise
I see this just below the BODY tag:
<script> window.resizeTo(450,400); </script>

With 'Preferences > Advanced > Scripts & Windows >
Move or resize existing windows' checked, this does indeed cause the window to
focus itself when it refreshed. Confirming, reassigning.
Assignee: sgehani → joki
Status: UNCONFIRMED → NEW
Component: XP Apps → Event Handling
Ever confirmed: true
Keywords: testcase
QA Contact: paw → madhur
Summary: window.resize causes browser window to steal focus andn un-minimise → window.resizeTo causes browser window to steal focus and un-minimise
QA Contact: madhur → rakeshmishra
Blocks: 88810
QA Contact: rakeshmishra → trix
.
Assignee: joki → saari
QA Contact: trix → ian
Related to bug 111545?
Doesn't look like a dup., no.

Any news on getting this fixed, Ian ?
Assignee: saari → nobody
QA Contact: ian → events
I can also confirm this bug, resizeTo still take the focus on Firefox 3.5.5 . It seems to be only on Windows versions (tested on XP and Seven), I don't see this bug on MacOSX Leopard with the same Firefox version.
Component: Event Handling → User events and focus handling
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: