[DevTools] Fix a race when inspecting shared/service worker
When pausing on initialization, we issue Debugger.enable immediately followed by Debugger.pause and expect the pause to happen. Because Debugger.pause can interrupt JS, it may actually run before Debugger.enable on the backend. That makes pause noop, and we never pause. The solution is to await for Debugger.enable before asking to pause. Bug: 775132, 900432 Change-Id: Ic2f504875b98312839235c6e32a10403757444f2 Reviewed-on: https://chromium-review.googlesource.com/c/1309213 Commit-Queue: Dmitry Gozman <dgozman@chromium.org> Reviewed-by:Pavel Feldman <pfeldman@chromium.org> Cr-Commit-Position: refs/heads/master@{#604299}
Showing
Please register or sign in to comment