Web Share: Handle destruction in callback for synchronous execution
The existing ShowShareUIForWindowOperation did not handle the case where the Window's ShowShareUIForWindow call executed its DataRequested event synchronously AND the the provided DataRequestedCallback destroyed the ShowShareUIForWindowOperation. Updating the ShowShareUIForWindowOperation to handle this case, and updating the ShowShareUIForWindowOperationTests to expose this case by disposing of Operation instances as part of the DataRequested callbacks (mirroring the behavior of the production code that uses this class). Bug: 1162330 Change-Id: I1c85fb3e16420a9742a75b2a049588c692886e41 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2606786 Commit-Queue: Hoch Hochkeppel <mhochk@microsoft.com> Reviewed-by:Bruce Dawson <brucedawson@chromium.org> Reviewed-by:
Eric Willigers <ericwilligers@chromium.org> Cr-Commit-Position: refs/heads/master@{#839685}
Showing
Please register or sign in to comment