mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-13 20:14:57 -10:00
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
16 lines
392 B
JavaScript
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();
|
|
});
|
|
}
|