HTTPCookieStorage.setCookies(_:for:mainDocumentURL:) crashes when the second parameter is nil
| Originator: | thomas.visser | ||
| Number: | rdar://29771210 | Date Originated: | 21-Dec-2016 03:56 PM |
| Status: | Open | Resolved: | No |
| Product: | iOS + SDK | Product Version: | 10 |
| Classification: | Crash | Reproducible: | Always |
Area: Foundation Summary: Calling HTTPCookieStorage.setCookies(_:for:mainDocumentURL:) crashes with the second parameter (url) having a nil value results in a crash. The second parameter is optional. It should either not be optional or not crash Steps to Reproduce: 1. Call HTTPCookieStorage.setCookies(_:for:mainDocumentURL:) with second parameter nil Expected Results: No crash Actual Results: Crash (bad access) Version: iOS 10 SDK Notes: Configuration: Xcode 8.2
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!