[Cocoa] Web Automation: add SPI to tell whether the automation session is currently...