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

NEW
Unassigned

Status

()

Core
Event Handling
16 years ago
8 years ago

People

(Reporter: Tom Chiverton, Unassigned)

Tracking

({testcase})

Trunk
x86
Windows 2000
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

16 years ago
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.

Comment 1

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

Comment 2

16 years ago
Created attachment 75952 [details]
Example HTML to show bug
(Reporter)

Comment 3

16 years ago
> 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.
(Reporter)

Updated

16 years ago
Summary: <META http-equiv="Refresh" content="10"> causes browser window to steal focus → window.resize causes browser window to steal focus andn un-minimise

Comment 4

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

Updated

16 years ago
QA Contact: madhur → rakeshmishra

Updated

16 years ago
Blocks: 88810

Updated

15 years ago
QA Contact: rakeshmishra → trix

Comment 5

15 years ago
.
Assignee: joki → saari
QA Contact: trix → ian
Related to bug 111545?
(Reporter)

Comment 7

12 years ago
Doesn't look like a dup., no.

Any news on getting this fixed, Ian ?
Assignee: saari → nobody
QA Contact: ian → events

Comment 8

8 years ago
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.
You need to log in before you can comment on or make changes to this bug.