cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-11375) onReset method of CDVPlugin is never called
Date Mon, 06 Jun 2016 22:47:21 GMT

    [ https://issues.apache.org/jira/browse/CB-11375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15317426#comment-15317426
] 

ASF subversion and git services commented on CB-11375:
------------------------------------------------------

Commit 2e41e221d50dd00b832879cd3b4ced372f8be428 in cordova-ios's branch refs/heads/master
from [~shazron]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;h=2e41e22 ]

CB-11375 - onReset method of CDVPlugin is never called


> onReset method of CDVPlugin is never called
> -------------------------------------------
>
>                 Key: CB-11375
>                 URL: https://issues.apache.org/jira/browse/CB-11375
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 6.1.1, 6.2.0
>            Reporter: Dale Beermann
>            Assignee: Shazron Abdullah
>              Labels: triaged
>
> {{CDVUIWebViewNavigationDelegate.webViewDidStartLoad}} gets called as it should. The
line in that method:
> {code}
> [[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginResetNotification
object:self.enginePlugin.webView]];
> {code}
> seems to be an issue. The {{self.enginePlugin.webView}} reference calls into the {{webView}}
method in {{CDVPlugin.m}}. There, the lines:
> {code}
> if (self.webViewEngine != nil) {
>     return self.webViewEngine.engineWebView;
> }
> {code}
> should return the {{engineWebView}}, but instead it returns nil. I think that the issue
is that {{CDVUIWebViewEngine}} extends {{CDVPlugin}}, but doesn't override the {{webView}}
method. If I do override that getter in {{CDVUIWebViewEngine.m}}, with:
> {code}
> - (UIView*)webView
> {
>     if (self.engineWebView != nil) {
>         return self.engineWebView;
>     }
>     
>     return nil;
> }
> {code}
> everything actually seems to get called correctly. I'm running Cordova 6.1.1 with Cordova
iOS 4.1.1. It does not look like there are any changes since then that would affect this.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message