SFContentBlockerManager.reloadContentBlocker returns noExtensionFound error in extensions

Originator:arvid.lunnemark
Number:rdar://27570820 Date Originated:27 July 2016
Status:Duplicate/27469709/Open Resolved:Yes
Product:iOS SDK Product Version:10.0 beta 4 (14A5322e)
Classification:Serious Bug Reproducible:Always
 
Summary:
The SFContentBlockerManager.reloadContentBlocker function always returns the noExtensionFound error, when called from an extension such as a widget or a Safari Action Extension. This makes it impossible to update a content blocker in a widget, or update a whitelist in a Safari Action Extension (as is common to almost all content blockers in the App Store).

Printing the error produces "Error Domain=SFErrorDomain Code=1 "(null)"", which according to the documentation is the noExtensionFound error. The noExtensionFound can be triggered when the extension is not owned by the caller, which I suspect is the issue – iOS 10 does not recognize extensions as owners of other extensions in the same app.

Comments

Arvid Lunnemark

Resolved as of iOS 10.0 beta 5.

By arvid.lunnemark at Aug. 9, 2016, 5:31 p.m. (reply...)

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!