diff --git a/src/extension-runners/firefox-android.js b/src/extension-runners/firefox-android.js index 4584633d76..1b66f80f29 100644 --- a/src/extension-runners/firefox-android.js +++ b/src/extension-runners/firefox-android.js @@ -132,7 +132,13 @@ export class FirefoxAndroidExtensionRunner { await this.apkPackagesDiscoveryAndSelect(); await this.adbCheckRuntimePermissions(); await this.adbForceStopSelectedPackage(); - + for (const fn of this.cleanupCallbacks) { + try { + fn(); + } catch (error) { + log.error(error); + } + } // Create profile prefs (with enabled remote RDP server), prepare the // artifacts and temporary directory on the selected device, and // push the profile preferences to the remote profile dir.