RESOLVED FIXED 137503
[iOS] WebSQL operations are not performed after device is locked
https://bugs.webkit.org/show_bug.cgi?id=137503
Summary [iOS] WebSQL operations are not performed after device is locked
Andrew Brehaut
Reported 2014-10-07 15:34:32 PDT
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.
Attachments
[Web Archive] ios8-websql-bug.html (813 bytes, application/x-webarchive)
2014-10-25 13:31 PDT, Daniel Bates
no flags
Manual test (2.33 KB, patch)
2015-05-08 09:35 PDT, Daniel Bates
ap: review+
Alexey Proskuryakov
Comment 1 2014-10-07 21:49:10 PDT
Not sure if this is the same as <rdar://problem/18042389> (the link only works for Apple employees)
Daniel Bates
Comment 2 2014-10-25 13:31:07 PDT
Created attachment 240456 [details] [Web Archive] ios8-websql-bug.html Web archive of <http://media.brehaut.net/files/ios8-websql-bug.html> as it appeared on 10/25/2014.
Daniel Bates
Comment 3 2014-11-06 09:28:28 PST
Daniel Bates
Comment 4 2015-05-06 15:09:06 PDT
(In reply to comment #3) > <rdar://problem/18894598> Disregard this radar. It doesn't cover the issue mentioned in this bug, which is specific to showing a modal dialog.
Radar WebKit Bug Importer
Comment 5 2015-05-06 15:09:42 PDT
Daniel Bates
Comment 6 2015-05-08 09:28:47 PDT
I'm unable to reproduce this issue using the attached test case in shipping iOS 8.3 (12F70) on an iPhone 5s. I can confirm that this bug reproduces in iOS 8.0.2 (12A405) on an iPhone 5.
Daniel Bates
Comment 7 2015-05-08 09:35:48 PDT
Created attachment 252723 [details] Manual test
Daniel Bates
Comment 8 2015-05-08 12:00:56 PDT
Christopher Schimanski
Comment 9 2015-05-19 12:09:47 PDT
Hey Guys and first off all excuse me for interrupting! I'm writing you from germany relating to this WebKit issue. We have an application in the german iOS Appstore. Today one of the users who downloaded that application called the support hotline from our company and said, that he is not able to use our application. It is a Cordova/Hybrid one. After our support assistent talked to him over half an our he forwarded that problem to us, the programmers. We tried very much till now, but we are not able to exactly tell where the problem is. We build an application for hunters who are able to report hunted animals with that. Therefore we guide them step by step through the report. On iPhone 5S with iOS 8.3 (12F70) we get a database error message. The iPhone 5S users are not possible to report their hunted animals because there is an issue. All other Devices are fine with that version. We started debugging this evening, i'll keep you up to date. If you need further information, or the name from the application (maybe you can test it?!) write me an E-Mail to sithys@me.com Greetings from Germany! Christoph Schimanski
Brady Eidson
Comment 10 2015-05-19 13:10:59 PDT
(In reply to comment #9) > Hey Guys and first off all excuse me for interrupting! I'm writing you from > germany relating to this WebKit issue. > > We have an application in the german iOS Appstore. Today one of the users > who downloaded that application called the support hotline from our company > and said, that he is not able to use our application. It is a Cordova/Hybrid > one. > > After our support assistent talked to him over half an our he forwarded that > problem to us, the programmers. We tried very much till now, but we are not > able to exactly tell where the problem is. > > We build an application for hunters who are able to report hunted animals > with that. Therefore we guide them step by step through the report. On > iPhone 5S with iOS 8.3 (12F70) we get a database error message. The iPhone > 5S users are not possible to report their hunted animals because there is an > issue. All other Devices are fine with that version. > > We started debugging this evening, i'll keep you up to date. If you need > further information, or the name from the application (maybe you can test > it?!) write me an E-Mail to sithys@me.com > > Greetings from Germany! > Christoph Schimanski Not sure why you commented in this bug. There's no indication that the issue you are seeing is what was reported here, and there won't be as many folks paying attention since the issue reported here has been resolved. You should file a new bug focused on only your issue.
Note You need to log in before you can comment on or make changes to this bug.