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

Page Visibility API should be supported

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Do
    • 3.5.0
    • 3.6.0
    • cordova-js
    • None

    Description

      If the browser supports the API currently, he may return a wrong value by accessing the visibilityState when the application went into pause mode. Imo the visibility API should be supported without breaking code relying on pause/resume.

      http://www.w3.org/TR/page-visibility/#sec-visibilitychange-event

      I created a patch which relies on the fact that all platform code will handle pause/resume properly. It currently supports the visibilityState and the visibilitychange event. Missing parts of the spec are:

      • handle hidden attribute on window
      • prerender/unloaded

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              the-damien Damien Antipa
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: