Bug 192208 - WKWebViewConfiguration.allowsAirPlayForMediaPlayback is always true
Summary: WKWebViewConfiguration.allowsAirPlayForMediaPlayback is always true
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: Other
Hardware: iPhone / iPad iOS 12
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-11-29 19:09 PST by samman
Modified: 2018-12-03 10:43 PST (History)
4 users (show)

See Also:


Attachments
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. (39.45 KB, image/png)
2018-11-29 19:09 PST, samman
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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>