[Webkit-unassigned] [Bug 25020] New: window.focus() does not work correctly in onclick event handler when open an new page in existing window.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 2 20:28:53 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=25020

           Summary: window.focus() does not work correctly in onclick event
                    handler when open an new page in existing window.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: zhan at google.com


Reproduce process:
Web developers usually open a page multiple times in a singleton window by
assign a window name in window.open javascript call.

For example, an anchor of html page may looks like:

<a href="javascript:void(0)"
   onclick="var target=window.open('some url', 'singletonwindow',
'');target.focus();return false">
text
</a>

"target.focus()" call should make the singleton window being focused whenever
the anchor is clicked thus the page is refreshed, and it works in FF and IE,
but does not work in safari and chrome (only the first time the window get
focused).


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list