Changeset 272014 in webkit
- Timestamp:
- Jan 28, 2021, 8:32:49 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r272009 r272014 1 2021-01-28 Ada Chan <ada.chan@apple.com> 2 3 REGRESSION (r271988): XRSession.end() promise is not resolved if PlatformXR::Device::supportsSessionShutdownNotification() returns false 4 https://bugs.webkit.org/show_bug.cgi?id=221080 5 6 Reviewed by Chris Dumez. 7 8 Enable a test that was timing out, but now passes with the bug fix. 9 10 * platform/mac/TestExpectations: 11 1 12 2021-01-28 Carlos Garcia Campos <cgarcia@igalia.com> 2 13 -
trunk/LayoutTests/platform/mac/TestExpectations
r271988 r272014 2261 2261 # WebXR tests 2262 2262 [ BigSur+ ] imported/w3c/web-platform-tests/webxr/xrSession_end.https.html [ Pass ] 2263 [ BigSur+ ] imported/w3c/web-platform-tests/webxr/xrSession_requestAnimationFrame_callback_calls.https.html [ Pass ] 2263 2264 [ BigSur+ ] http/wpt/webxr [ Pass ] -
trunk/Source/WebCore/ChangeLog
r272012 r272014 1 2021-01-28 Ada Chan <ada.chan@apple.com> 2 3 REGRESSION (r271988): XRSession.end() promise is not resolved if PlatformXR::Device::supportsSessionShutdownNotification() returns false 4 https://bugs.webkit.org/show_bug.cgi?id=221080 5 6 Reviewed by Chris Dumez. 7 8 m_endPromise needs to be set before WebXRSession::shutdown() is called 9 since that can call WebXRSession::didCompleteShutdown() which will 10 resolve m_endPromise. 11 12 This issue caused a timeout in the cleanup step for a test like 13 imported/w3c/web-platform-tests/webxr/xrSession_requestAnimationFrame_callback_calls.https.html. 14 15 * Modules/webxr/WebXRSession.cpp: 16 (WebCore::WebXRSession::end): 17 1 18 2021-01-28 Zalan Bujtas <zalan@apple.com> 2 19 -
trunk/Source/WebCore/Modules/webxr/WebXRSession.cpp
r271988 r272014 391 391 return Exception { InvalidStateError, "Cannot end a session more than once"_s }; 392 392 393 ASSERT(!m_endPromise); 394 m_endPromise = WTFMove(promise); 395 393 396 // 1. Let promise be a new Promise. 394 397 // 2. Shut down the target XRSession object. … … 398 401 // 3.1 Wait until any platform-specific steps related to shutting down the session have completed. 399 402 // 3.2 Resolve promise. 400 ASSERT(!m_endPromise);401 m_endPromise = WTFMove(promise);402 403 403 // 4. Return promise. 404 404 return { };
Note:
See TracChangeset
for help on using the changeset viewer.