Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Fixed crash in UIWebView extension #76

Merged
merged 1 commit into from Jun 9, 2016
Merged

Conversation

alexpopov
Copy link
Contributor

UIWebView.canPerformAction(_:withSender:) would crash UIWebViews outside of FolioReader if a user attempts to open the text menu before the FolioReaderConfig had been set on the singleton.

readerConfig should be changed to an explicit optional to avoid crashes like this in the future.

Alternatively, if possible, we should subclass UIWebView and override these methods there, so that extensions like this do not propagate outside of FolioReader.

`UIWebView.canPerformAction(_:withSender:)` would crash UIWebViews outside of FolioReader if a user attempts to open the text menu before the FolioReaderConfig had been set on the singleton.
@alexpopov alexpopov self-assigned this Jun 9, 2016
@alexpopov alexpopov added the bug label Jun 9, 2016
@hebertialmeida hebertialmeida merged commit f2be587 into master Jun 9, 2016
@alexpopov alexpopov deleted the fix_canPerformAction branch June 9, 2016 23:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
2 participants