[Webkit-unassigned] [Bug 121232] New: If UI delegate abort window.close() then second window.close() is a no-op

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 12 10:07:02 PDT 2013


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

           Summary: If UI delegate abort window.close() then second
                    window.close() is a no-op
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.8
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit API
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: CEC49BC5-C186-483E-A513-9DF2DEEAE27E at uuid-mail.com


In WebView::closeWindowSoon() (WebView.cpp) m_closeWindowTimer is set to a timer, unless it’s already non-zero, in which case the function immediately returns.

Since m_closeWindowTimer is never set back to zero (even after the timer has fired), it means that if the HTML calls window.close() and the UI delegate decides not to dispose the web view, then any future call to window.close() will be a no-op.

A fix is likely to let WebView::closeWindowTimerFired() set “m_closeWindowTimer = 0;” (WebView.cpp)

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