forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1611817 - Fix race condition in DevTools shutdown and stopProfile…
…rAndDiscardProfile; r=julienw This race condition is really only exposed in automated testing, but it was making the DevTools performance-new mochitests intermittent. The race looks like this: * stopProfilerAndDiscardProfiler() request * perf actor process the request * The gecko profiler sends an event notifying that the profiler stopped * DevTools updates the UI upon receiving the event * The test suite sees the UI update, and triggers a close of DevTools * Error: Connection closed, pending request * stopProfilerAndDiscardProfiler still hasn't sent the response yet This patch fixes it by not throwing an error if the panel is already destroyed. Differential Revision: https://phabricator.services.mozilla.com/D65150 --HG-- extra : moz-landing-system : lando
- Loading branch information
Showing
3 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters