diff --git a/src/api-wrappers/AXUIElement.swift b/src/api-wrappers/AXUIElement.swift index 999a7903..33462d26 100644 --- a/src/api-wrappers/AXUIElement.swift +++ b/src/api-wrappers/AXUIElement.swift @@ -102,7 +102,7 @@ extension AXUIElement { private func firefoxFullscreenVideo(_ runningApp: NSRunningApplication, _ role: String?) -> Bool { // Firefox fullscreen video have subrole == AXUnknown if fullscreen'ed when the base window is not fullscreen - return runningApp.bundleIdentifier == "org.mozilla.firefox" && role == "AXWindow" + return (runningApp.bundleIdentifier?.hasPrefix("org.mozilla.firefox") ?? false) && role == "AXWindow" } private func androidEmulator(_ runningApp: NSRunningApplication, _ title: String?) -> Bool {