Files
firefox/devtools/client/framework/test/browser_target_remote.js
Alexandre Poirot c1476632a9 Bug 1695929 - [devtools] Remove redundant TargetFrontMixin's close event, in favor of target-destroyed. r=jdescottes,nchevobbe
This is mostly used by tests and we do not really benefit from having two distinct events.
We are not using the fact that close is emitted immediately.

Differential Revision: https://phabricator.services.mozilla.com/D107062
2021-03-09 08:56:58 +00:00

16 lines
392 B
JavaScript

/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
// Ensure target is closed if client is closed directly
function test() {
waitForExplicitFinish();
getParentProcessActors((client, target) => {
target.on("target-destroyed", () => {
ok(true, "Target was destroyed");
finish();
});
client.close();
});
}