Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-2667

CDVUserAgentUtil acquireLock issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.4.0
    • cordova-ios
    • None

    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.

      Attachments

        Issue Links

          Activity

            People

              agrieve Andrew Grieve
              triceam Andrew Trice
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: