SFSafariViewController does not change style of "Open in Safari" button when Safari is disabled in Restrictions
| Originator: | jonblatho | ||
| Number: | rdar://21760126 | Date Originated: | 09-Jul-2015 09:58 PM |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | 9.0 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: In Safari View Controller, there are five buttons in the bottom toolbar, the fifth being a button to open the page being displayed in Safari. However, Settings > General > Restrictions includes a setting to disable Safari. When Safari is disabled here, the button ceases to function but still appears normally, in the tint color provided to SFSafariViewController. Steps to Reproduce: 1. Create an instance of SFSafariViewController in an app targeted for iOS 9.0. 2. Install the app in Simulator or on a compatible device and trigger the SFSafariViewController. 3. Exit the app and go to Settings > General > Restrictions. 4. Disable Safari. 5. Exit Settings and repeat steps 1 and 2. 6. Observe the "Open in Safari" button. Expected Results: When Safari is disabled in Restrictions, the "Open in Safari" button in Safari View Controller would be grayed out or hidden entirely. Actual Results: The button still appears as it would when Safari is not disabled (but it doesn't open Safari). The button appears as if it works but does nothing—silent failure. Version: iOS 9.0 [13A4293g] Notes: I'll reiterate that the button does not open Safari in spite of the Restrictions setting. It simply appears as if it would do something, then doesn't do that something. Configuration: iPhone 6 Plus 64GB U.S. Cellular (iPhone7,1)
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!