Summary: | WKWebViewConfiguration.allowsAirPlayForMediaPlayback is always true | ||
---|---|---|---|
Product: | WebKit | Reporter: | samman <sammanbikramthapa> |
Component: | WebKit2 | Assignee: | 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: |
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.