Changeset 279359 in webkit
- Timestamp:
- Jun 28, 2021, 6:35:50 PM (5 years ago)
- Location:
- branches/safari-612.1.21-branch/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/Cocoa/SOAuthorization/SOAuthorizationSession.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-612.1.21-branch/Source/WebKit/ChangeLog
r279335 r279359 1 2021-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 1 38 2021-06-28 Jean-Yves Avenard <jya@apple.com> 2 39 -
branches/safari-612.1.21-branch/Source/WebKit/UIProcess/Cocoa/SOAuthorization/SOAuthorizationSession.mm
r279305 r279359 151 151 dismissViewController(); 152 152 #if PLATFORM(MAC) 153 ASSERT(!m_sheetWindow );153 ASSERT(!m_sheetWindow || (m_sheetWindow && m_sheetWindowWillCloseObserver)); 154 154 #endif 155 155 }
Note:
See TracChangeset
for help on using the changeset viewer.