Made new WebView authentication work for iOS/Mac