[Webkit-unassigned] [Bug 27481] New: onbeforeunload not called at window close + frame or iframe focused

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 20 21:02:00 PDT 2009


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

           Summary: onbeforeunload not called at window close + frame or
                    iframe focused
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Frames
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: chrome at netscript.com


Created an attachment (id=33141)
 --> (https://bugs.webkit.org/attachment.cgi?id=33141)
onbeforeonload is not called because child frame is focused.

The bug I have is about onbeforeonload assigned to a window which contain an
iframe
or a frameset. The handler is properly called if we back the document or if we
load
the document and immediately close the window. Yet if the contained frame or
iframe
is focused (using JS as in the attached reduction) when the window is closed
then,
the window beforeonload handler is not called.

Note (1): FAIL: Safari4/WinddowsXP 4.0.2 (530.19.1)
Note (2): OK: Safari4/Mac
Note(3): related bugs: https://bugs.webkit.org/show_bug.cgi?id=19418 as well as
https://bugs.webkit.org/show_bug.cgi?id=21669 are about an onbeforeunload
handler
when it is assigned to the frame content or the iframe itself. In the bug
described above, we do not assign to iframe or frame but on the parent window.

Note (2): Safari4/Mac is ok.

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



More information about the webkit-unassigned mailing list