iPad Slide Over: the url is sent twice if the current full-screen app is opened from a Slide Over app using openURL

Originator:lextar
Number:rdar://22896662 Date Originated:29-Sep-2015 05:03 PM
Status:Duplicate of 22901632 (Closed) Resolved:
Product:iOS Product Version:9.0.1
Classification:Serious Bug Reproducible:Always
 
Summary:
If an app that is opened in Slide Over mode uses openURL to open the current full-screen app, the app is called again with the same url when it is invoked at a later time.

Steps to Reproduce
- open app A regularly on an iPad
- swipe from the right side of the screen to open app B in a Slide Over mode over app A
- let app B call app A using [UIApplication openURL:]
- now app A is opened and the app delegate is supplied with the URL and the Slide Over is gone
- tap the home button to switch to the home screen
- open app A again from the home screen

Expected Results:
- the app delegate of app A should not be called again with the same URL

Actual Results:
- app A is opened and the app delegate is supplied AGAIN with the same URL as in the previous openURL call

Regression:
It only seems to occur when the Slide Over app uses openURL to call the current full-screen app. It does not seem to happen if another app is currently in full-screen mode below the Slide Over. It also happens when using the multitasking switcher or multitasking gestures to switch away from and back to app A.

Notes:
Here is a concrete example with the existing apps "Working Copy" and "Textastic" where this behavior causes data loss for the user:

- open Textastic in fullscreen mode on an iPad
- use the file action "Edit in Textastic" from Working Copy in Slide Over mode
- Textastic is called with a "replace" x-callback-url call. It sends the contents of the file from Working Copy to Textastic and saves it in a local file and then opens the file.
- make changes to the file in Textastic
- tap the home button to switch to the home screen
- open Textastic from the home screen
- now iOS calls Textastic *again* with the same "replace" x-callback-url call and the user's changes are lost

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!