SFSafariViewController not working with a few "sign in via..." buttons

Originator:max.nuding
Number:rdar://26295296 Date Originated:2016-05-16
Status:Duplicate of 24403385 (Open) Resolved:No
Product:iOS Product Version:9.3.2
Classification: Reproducible:Always
 
Summary:
Some "sign in via ..." buttons rely on opening a new tab, letting you sign in with the selected service, and then close the tab again. Since SFSafariVC doesn't support tabs you get stuck after the website tried to close the tab. Twitter is an example of that

Steps to Reproduce:
1. Go to any site that has a "sign in via Twitter" button, via SFSafariVC (e.g. an RSS Reader that uses it). I will walk through with this one: http://stadt-bremerhaven.de/silicon-valley-staffel-2-meine-serien-empfehlung-fuer-techies/#comments

2. Tap into the text view below "Kommentar verfassen"

3. A little Twitter icon (among others) will appear, that that

4. You will get redirected to the Twitter page where you can sign in and then "Authorise app"

5. Tap authorize

6. You'll get authorized and a blank screen appears

Expected Results:
Get back to the original site

Actual Results:
A blank screen appears, because normally the authorisation happens in an extra tab. Since SFSafariVC doesn't support multiple tabs it will open in the same one. After it tries to close the tab only a blank page remains

Version:
iOS 9.3.2

Notes:


Configuration:
iPhone 6S Plus

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!