Bug 192208

Summary: WKWebViewConfiguration.allowsAirPlayForMediaPlayback is always true
Product: WebKit Reporter: samman <sammanbikramthapa>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: achristensen, eric.carlson, jer.noble, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: iPhone / iPad   
OS: iOS 12   
Attachments:
Description Flags
The attachment is a screenshot of a test code that instantiates a WKWebView with a WKWebConfiguration whose `allowsAirPlayForMediaPlayback` is set as `false`, but fails when we assert this later. none

Description samman 2018-11-29 19:09:25 PST
Created attachment 356108 [details]
The attachment is a screenshot of a test code that instantiates a WKWebView with a WKWebConfiguration whose `allowsAirPlayForMediaPlayback` is set as `false`, but fails when we assert this later.

The `allowsAirPlayForMediaPlayback` property of `WKWebView` is always true.
 
Attached is a screenshot of a test code that instantiates a WKWebView with a WKWebConfiguration whose `allowsAirPlayForMediaPlayback` is set as `false`. However, once a WKWebView gets initialized with the WKWebConfiguration, it's configuration's `allowsAirPlayForMediaPlayback` is always `true`

Steps to Reproduce:
```
        let config = WKWebViewConfiguration()
        config.allowsAirPlayForMediaPlayback = false
        
        let webView = WKWebView(frame: .zero, configuration: config)
        
        XCTAssertFalse(webView.configuration.allowsAirPlayForMediaPlayback)
```

Expected Results:
Assert statement should have passed.

Actual Results:
Assert statement fails.
Comment 1 Radar WebKit Bug Importer 2018-12-03 10:43:54 PST
<rdar://problem/46423666>