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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 11 18:18:52 PDT 2009


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

           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: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jasneet at chromium.org
                CC: jasneet at chromium.org


Created an attachment (id=34628)
 --> (https://bugs.webkit.org/attachment.cgi?id=34628)
testcase

I Steps:
1. open a page with a frameset or an iframe (attached files)
2. focus the frame
3. close the window

II Issue:
onbeforeunload is not executed.

Related Webkit 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.

This bug 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.

III Browsers info:
Chrome 3.x : NOT OK
Safari 3/Win: NOT OK
    Safari 3/Mac: OK
    Safari 4/Mac: OK
  Firefox 3.x: OK
         IE 8: OK

Bug in Chromium : http://code.google.com/p/chromium/issues/detail?id=17157

-- 
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