[Webkit-unassigned] [Bug 137503] New: websql breaks on iOS8 when device is locked.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 7 15:34:35 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=137503

           Summary: websql breaks on iOS8 when device is locked.
           Product: WebKit
           Version: 420+
          Platform: Unspecified
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: andrew at brehaut.net
                CC: oliver at apple.com


On a device running iOS8 (8.0.2), and a web app (includes <meta name="apple-mobile-web-app-capable" content="yes" />) is saved to the homescreen, if the device is locked (via timeout or the sleep/wake button), when the device is unlocked again, the application's websql connection is non-responsive until the application is backgrounded and relaunched. 

To reproduce: 

 * visit http://media.brehaut.net/files/ios8-websql-bug.html in mobile Safari
 * tap the 'test db' link; an alert should appear stating 'in transaction'.
 * lock the screen
 * unlock the screen
 * tap the 'test db' link again. within mobile Safari proper this should again raise the alert dialog.

 * save the app to the home screen.
 * tap the 'test db' link; an alert should appear stating 'in transaction'.
 * lock the screen
 * unlock the screen
 * tap the 'test db' link again. the alert should never be raised.

 * background the app and relaunch at this point and it should behave correctly again.

The javascript executed by the link is basically: 

    openDatabase("test", "1.0", "test", 1 * 1024 * 1024).transaction(function (tx) { alert("in transaction"); });

Running the same thing from any web app via a connected web inspector should produce the same results.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list