mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
Bug 1485676 - Prevent exceptions in the emulation actor when trying to use it while it is already destroyed. r=yulia
Summary: Depends On D4540 Reviewers: yulia! Tags: #secure-revision Bug #: 1485676 Differential Revision: https://phabricator.services.mozilla.com/D4541 MozReview-Commit-ID: 2fTZ4WRq9je
This commit is contained in:
parent
5af3a78471
commit
1322b8f8a4
@ -48,7 +48,7 @@ const EmulationActor = protocol.ActorClassWithSpec(emulationSpec, {
|
||||
* monitor, which for historical reasons is part of the console actor.
|
||||
*/
|
||||
get _consoleActor() {
|
||||
if (this.targetActor.exited) {
|
||||
if (this.targetActor.exited || !this.targetActor.actorID) {
|
||||
return null;
|
||||
}
|
||||
const form = this.targetActor.form();
|
||||
|
Loading…
Reference in New Issue
Block a user