festbrazerzkidai.blogg.se

Apple webkit networking
Apple webkit networking










The technical notes for the TLS session cache mention a similar issue for the old NSURLConnection, but say this is not the case for NSURLSession. Since iOS 15 we have to run blocked cases first because otherwise the tests fail (the TSL session is cached on success and reused in subsequent tests). Before testing on iOS 15 these ran without issue in any order. XCTAssertEqualError(result, NSURLErrorDomain, NSURLErrorCancelled) Įach test creates a creates a new WKWebview. WebView.navigationDelegate = navigationDelegate NavigationDelegate->onNavigate = ^(WKNavigation* navigation, NSError* error)

apple webkit networking

Let expectation = hashes = navigationDelegate = initWithTrustedHashes: hashes whitelist: nil] (void)testWebView_DomainWithIncorrectHash_MatchSoPageBlocked

#Apple webkit networking code

We have a set of test something like this (please ignore minor syntax issues, we have macros for Obj-C var and let as well as some extra XCTestAsserts in our code base): We have a WKNavigationDelegate that provides SSL Certificate Pinning and saw this in our test harness.

apple webkit networking apple webkit networking

Not sure if this is a bug or a new feature - but I've been getting TLS session cache hits shared between different WKWebViews.










Apple webkit networking