⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 279352 in webkit


Ignore:
Timestamp:
Jun 28, 2021, 4:56:54 PM (5 years ago)
Author:
Brent Fulgham
Message:

REGRESSION (r279305) [Mac DEBUG] 4 SOAuthorizationRedirect Tests are Crashing with Assert: !m_sheetWindow
​https://bugs.webkit.org/show_bug.cgi?id=227454
<rdar://problem/79871423>

Reviewed by Kate Cheney.

The new assertion is wrong in the case that the app is hidden. When minimized (or hidden) we need to remember
to dismiss the sheet once Cocoa restores the app to visible state. So the m_sheetWindow may still exist after
returning from 'dismissViewController'. We should assert that either m_sheetWindow is nullptr, or that both
m_sheetWindow and m_sheetWindowWillCloseObserver exist.

  • UIProcess/Cocoa/SOAuthorization/SOAuthorizationSession.mm:

(WebKit::SOAuthorizationSession::becomeCompleted):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r279351 r279352  
     12021-06-28  Brent Fulgham  <bfulgham@apple.com>
     2
     3        REGRESSION (r279305) [Mac DEBUG] 4 SOAuthorizationRedirect Tests are Crashing with Assert: !m_sheetWindow
     4        https://bugs.webkit.org/show_bug.cgi?id=227454
     5        <rdar://problem/79871423>
     6
     7        Reviewed by Kate Cheney.
     8
     9        The new assertion is wrong in the case that the app is hidden. When minimized (or hidden) we need to remember
     10        to dismiss the sheet once Cocoa restores the app to visible state. So the m_sheetWindow may still exist after
     11        returning from 'dismissViewController'. We should assert that either m_sheetWindow is nullptr, or that both
     12        m_sheetWindow and m_sheetWindowWillCloseObserver exist.
     13
     14        * UIProcess/Cocoa/SOAuthorization/SOAuthorizationSession.mm:
     15        (WebKit::SOAuthorizationSession::becomeCompleted):
     16
    1172021-06-28  Kate Cheney  <katherine_cheney@apple.com>
    218
  • trunk/Source/WebKit/UIProcess/Cocoa/SOAuthorization/SOAuthorizationSession.mm

    r279305 r279352  
    151151    dismissViewController();
    152152#if PLATFORM(MAC)
    153     ASSERT(!m_sheetWindow);
     153    ASSERT(!m_sheetWindow || (m_sheetWindow && m_sheetWindowWillCloseObserver));
    154154#endif
    155155}
Note: See TracChangeset for help on using the changeset viewer.