This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Web Automation: use a more informative key to indicate automation ava…
…ilability https://bugs.webkit.org/show_bug.cgi?id=197377 <rdar://problem/50258069> Reviewed by Devin Rousso. The existing WIRAutomationEnabledKey does not encode uncertainty. Add a new key that provides an 'Unknown' state, and prefer to use it. Since an application's initial listing is sent from a background dispatch queue on Cocoa platforms, this can race with main thread initialization that sets up RemoteInspector::Client. Therefore, the initial listing may not properly represent the client's capabilites because the client is not yet available. Allowing for an "Unknown" state that is later upgraded to Available or Not Available makes it possible to work around this potential race. * inspector/remote/RemoteInspectorConstants.h: * inspector/remote/cocoa/RemoteInspectorCocoa.mm: (Inspector::RemoteInspector::pushListingsNow): Canonical link: https://commits.webkit.org/211613@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244791 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing 3 changed files with 36 additions and 0 deletions.