Expose more network metrics to WebCoreNSURLSession
Created attachment 400212 [details] Patch
Comment on attachment 400212 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=400212&action=review > Source/WTF/wtf/PlatformHave.h:407 > +#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 130000) The second half of this expression has the mistake Tim Horton mentioned recently, where it checks IOS_FAMILY, but checks __IPHONE_OS_VERSION_MIN_REQUIRED, which is frozen at an old value on watchOS and tvOS. It should either just check PLATFORM(IOS) and accept this will be false for tvOS and watchOS, or add minimum versions for those platforms.
Created attachment 400224 [details] Patch
Comment on attachment 400224 [details] Patch Since the API is public and clearly marked available on all platforms, I'll expand the good pattern in PlatformHave.h.
Comment on attachment 400224 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=400224&action=review > Source/WebCore/platform/network/cocoa/WebCoreNSURLSession.mm:149 > +- (BOOL)cellular Why does the code above say "getter=isCellular" but here itβs named "cellular"? How do we test that this is correctly named or not?
Committed r262131: <https://trac.webkit.org/changeset/262131> All reviewed patches have been landed. Closing bug and clearing flags on attachment 400224 [details].
<rdar://problem/63607042>