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

Changeset 279359 in webkit


Ignore:
Timestamp:
Jun 28, 2021, 6:35:50 PM (5 years ago)
Author:
Alan Coon
Message:

Cherry-pick r279352. rdar://problem/79891891

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

git-svn-id: ​https://svn.webkit.org/repository/webkit/trunk@279352 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-612.1.21-branch/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-612.1.21-branch/Source/WebKit/ChangeLog

    r279335 r279359  
     12021-06-28  Kocsen Chung  <kocsen_chung@apple.com>
     2
     3        Cherry-pick r279352. rdar://problem/79891891
     4
     5    REGRESSION (r279305) [Mac DEBUG] 4 SOAuthorizationRedirect Tests are Crashing with Assert: !m_sheetWindow
     6    https://bugs.webkit.org/show_bug.cgi?id=227454
     7    <rdar://problem/79871423>
     8   
     9    Reviewed by Kate Cheney.
     10   
     11    The new assertion is wrong in the case that the app is hidden. When minimized (or hidden) we need to remember
     12    to dismiss the sheet once Cocoa restores the app to visible state. So the m_sheetWindow may still exist after
     13    returning from 'dismissViewController'. We should assert that either m_sheetWindow is nullptr, or that both
     14    m_sheetWindow and m_sheetWindowWillCloseObserver exist.
     15   
     16    * UIProcess/Cocoa/SOAuthorization/SOAuthorizationSession.mm:
     17    (WebKit::SOAuthorizationSession::becomeCompleted):
     18   
     19   
     20    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279352 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     21
     22    2021-06-28  Brent Fulgham  <bfulgham@apple.com>
     23
     24            REGRESSION (r279305) [Mac DEBUG] 4 SOAuthorizationRedirect Tests are Crashing with Assert: !m_sheetWindow
     25            https://bugs.webkit.org/show_bug.cgi?id=227454
     26            <rdar://problem/79871423>
     27
     28            Reviewed by Kate Cheney.
     29
     30            The new assertion is wrong in the case that the app is hidden. When minimized (or hidden) we need to remember
     31            to dismiss the sheet once Cocoa restores the app to visible state. So the m_sheetWindow may still exist after
     32            returning from 'dismissViewController'. We should assert that either m_sheetWindow is nullptr, or that both
     33            m_sheetWindow and m_sheetWindowWillCloseObserver exist.
     34
     35            * UIProcess/Cocoa/SOAuthorization/SOAuthorizationSession.mm:
     36            (WebKit::SOAuthorizationSession::becomeCompleted):
     37
    1382021-06-28  Jean-Yves Avenard  <jya@apple.com>
    239
  • branches/safari-612.1.21-branch/Source/WebKit/UIProcess/Cocoa/SOAuthorization/SOAuthorizationSession.mm

    r279305 r279359  
    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.