[
https://issues.apache.org/jira/browse/CB-2667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Trice updated CB-2667:
-----------------------------
Description:
This issue was reported from a PhoneGap customer. I've requested additional
detail/steps to reproduce:
We are using UIPageViewController and adding a CDVViewController as a data view
controller for each Page in the UIPageViewController. When the user is trying
to scroll to the next page while the content of the CDVViewController (html
contents) are not fully loaded, all subsequent page scrolls will cause the html
page to be blank.
We found this issues is caused by the [CDVUserAgentUtil acquireLock:^(NSInteger
lockToken) in the CDVViewController and [CDVUserAgentUtil
releaseLock:_userAgentLockToken] in the webViewDidFinishload; When this
happens, the acquireLock and releaseLock pair does not work properly. After we
removed both call in the CDVViewController, we don't see the problem anymore.
was:
This issues was reported from a PhoneGap customer. I've requested additional
detail/steps to reproduce:
We are using UIPageViewController and adding a CDVViewController as a data view
controller for each Page in the UIPageViewController. When the user is trying
to scroll to the next page while the content of the CDVViewController (html
contents) are not fully loaded, all subsequent page scrolls will cause the html
page to be blank.
We found this issues is caused by the [CDVUserAgentUtil acquireLock:^(NSInteger
lockToken) in the CDVViewController and [CDVUserAgentUtil
releaseLock:_userAgentLockToken] in the webViewDidFinishload; When this
happens, the acquireLock and releaseLock pair does not work properly. After we
removed both call in the CDVViewController, we don't see the problem anymore.
> CDVUserAgentUtil acquireLock issue
> ----------------------------------
>
> Key: CB-2667
> URL: https://issues.apache.org/jira/browse/CB-2667
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Reporter: Andrew Trice
> Assignee: Shazron Abdullah
>
> This issue was reported from a PhoneGap customer. I've requested additional
> detail/steps to reproduce:
> We are using UIPageViewController and adding a CDVViewController as a data
> view controller for each Page in the UIPageViewController. When the user is
> trying to scroll to the next page while the content of the CDVViewController
> (html contents) are not fully loaded, all subsequent page scrolls will cause
> the html page to be blank.
> We found this issues is caused by the [CDVUserAgentUtil
> acquireLock:^(NSInteger lockToken) in the CDVViewController and
> [CDVUserAgentUtil releaseLock:_userAgentLockToken] in the
> webViewDidFinishload; When this happens, the acquireLock and releaseLock
> pair does not work properly. After we removed both call in the
> CDVViewController, we don't see the problem anymore.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira