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

Fixed crash in UIWebView extension#76

Merged
hebertialmeida merged 1 commit into
masterfrom
fix_canPerformAction
Jun 9, 2016
Merged

Fixed crash in UIWebView extension#76
hebertialmeida merged 1 commit into
masterfrom
fix_canPerformAction

Conversation

@alexpopov
Copy link
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

2 participants