Provide notifications when the SFSafariViewController current URL changes
| Originator: | jharris | ||
| Number: | rdar://28346318 | Date Originated: | September 16, 2016 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | all |
| Classification: | Enhancement | Reproducible: | n/a |
Summary: We need to be notified when the current URL being displayed by an instance of SFSafariViewController has changed, either via user activity or automatically via javascript or HTML redirection. This is necessary so that we can detect when malicious actors are attempting to present spam or porn or other undesirable content to our users and so that we can avoid presenting this content to users in the future. We realize that this request is at odds with the privacy-preserving nature of SFSafariViewController, but as it stands, the limitation causes us to expose our users to danger. Steps to Reproduce: Present a web page via SFSafariViewController. Change to a different web page, either via a web redirect, a javascript redirect, or by tapping a link in the original web page. Expected Results: Our code should receive some notification that the root URL within the page has been changed. Actual Results: SFSafariViewController is an opaque black box. Version: all versions of SFSafariViewController
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!