Bug 15126 - reopen auto refresh page of inactive tab becomes active tab
Summary: reopen auto refresh page of inactive tab becomes active tab
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-31 21:15 PDT by jason hu
Modified: 2008-02-27 13:26 PST (History)
1 user (show)

See Also:


Attachments
Test case (135 bytes, text/html)
2007-09-01 07:13 PDT, David Kilzer (:ddkilzer)
no flags Details
javascript js file (82.59 KB, text/plain)
2008-02-27 13:25 PST, jason hu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description jason hu 2007-08-31 21:15:06 PDT
when I open a page A  with auto refresh, if I open another page B  in another tab, whenever page A refreshes in the background, it takes focus, so my tab will get switched back to A again.

the reason I encountered this is I need to monitor some server status, the monitoring page automatically refreshes, i usually place the page in the background and open another to do other things, but whenever th monitoring page refreshes, my tab got switched.
Comment 1 Alexey Proskuryakov 2007-09-01 00:44:21 PDT
This bug doesn't meet P1 criteria <http://webkit.org/quality/bugpriorities.html>, downgrading to P2.

I should also mention that I never saw such behavior myself with auto-refreshing pages. We will probably need more information to work on this issue. Could you please attach the source of this page?
Comment 2 jason hu 2007-09-01 06:47:30 PDT
basically, the page uses the http refresh header: such as 

<META HTTP-EQUIV="refresh" content="10">
Comment 3 David Kilzer (:ddkilzer) 2007-09-01 07:13:10 PDT
Created attachment 16173 [details]
Test case

Test case per Comment #2.

After opening this bug, command-click on this attachment to open it in a background tab.  If the bug is present, that tab should become the active tab in about 10 seconds.
Comment 4 David Kilzer (:ddkilzer) 2007-09-01 07:14:54 PDT
(In reply to comment #3)
> After opening this bug, command-click on this attachment to open it in a
> background tab.  If the bug is present, that tab should become the active tab
> in about 10 seconds.

This doesn't exhibit the buggy behavior for me.  Do you have a real web site that behaves this way?  Are you sure there isn't JavaScript involved?

Comment 5 David Kilzer (:ddkilzer) 2007-09-01 07:17:53 PDT
(In reply to comment #4)
> This doesn't exhibit the buggy behavior for me.  Do you have a real web site
> that behaves this way?  Are you sure there isn't JavaScript involved?

I'm using a local debug build of WebKit r25341 with Safari 3 Public Beta v. 3.0.3 (522.12.1) on Mac OS X 10.4.10 (8R218).

Comment 6 Robert Blaut 2008-02-27 13:01:24 PST
(In reply to comment #4)

> This doesn't exhibit the buggy behavior for me.  

Nor for me. So WORKSFORME.
Comment 7 Robert Blaut 2008-02-27 13:02:40 PST
jason, feel free to reopen the bug if you provide step by step procedure to reproduce the problem.
Comment 8 jason hu 2008-02-27 13:17:37 PST
this happens on oracle's application server 's console page. i tried to look at the page's source code, but I was not able to find anything suspious.

this not only happens to tab, but also the window too. I mean if i have the refresh page open in the back ground window, it will become active and come to top of the other windows.

if possible, you can download the oracle's application server windows version and install it, and go to its console's home page and choose auto refresh, it will demonstrate the result.... it is super annoying to me, if i open several windows, i will see the windows shuffle by itself,, 

i will try my best to find the source code of the web page and submit...
Comment 9 jason hu 2008-02-27 13:25:05 PST
Created attachment 19406 [details]
javascript js file

this js file contains the javascript which used to refresh the page and dictate the window or tab to become active
Comment 10 jason hu 2008-02-27 13:26:25 PST
ok,, I went through the page, found some javascript code: here is the portion of it. the complete js file is in attachement..... "javascript js file"

function _partialRedirect(a0)
{
if(a0&&(parent._pprRequestCount>0))
{
if(((typeof a0)=="string")&&(a0.length>0))
{
parent._pprRequestCount--;
parent._pprSubmitCount=0;
parent._pprSomeAction=false;
parent.location.href=a0;
_pprStopBlocking(parent);
}
}