[iOS] WebSQL operations are not performed after device is locked
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 May 2015 18:59:31 +0000 (18:59 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 May 2015 18:59:31 +0000 (18:59 +0000)
https://bugs.webkit.org/show_bug.cgi?id=137503
<rdar://problem/20844952>

Rubber-stamped by Alexey Proskuryakov.

Add a manual test to help verify that we do not regress this issue.

* ManualTests/ios/execute-sql-transaction-callback-after-locking-unlocking-device-in-earlier-transaction.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@184002 268f45cc-cd09-0410-ab3c-d52691b4dbfc

ChangeLog
ManualTests/ios/execute-sql-transaction-callback-after-locking-unlocking-device-in-earlier-transaction.html [new file with mode: 0644]

index fdea0f9..f2fa7fc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2015-05-08  Daniel Bates  <dabates@apple.com>
+
+        [iOS] WebSQL operations are not performed after device is locked
+        https://bugs.webkit.org/show_bug.cgi?id=137503
+        <rdar://problem/20844952>
+
+        Rubber-stamped by Alexey Proskuryakov.
+
+        Add a manual test to help verify that we do not regress this issue.
+
+        * ManualTests/ios/execute-sql-transaction-callback-after-locking-unlocking-device-in-earlier-transaction.html: Added.
+
 2015-05-08  Commit Queue  <commit-queue@webkit.org>
 
         Unreviewed, rolling out r183945.
diff --git a/ManualTests/ios/execute-sql-transaction-callback-after-locking-unlocking-device-in-earlier-transaction.html b/ManualTests/ios/execute-sql-transaction-callback-after-locking-unlocking-device-in-earlier-transaction.html
new file mode 100644 (file)
index 0000000..5346615
--- /dev/null
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta name="apple-mobile-web-app-capable" content="yes">
+<script>
+function openDatabaseAndPerformTransaction(callback)
+{
+    var database = openDatabase("alert-inside-sql-transaction-database", "1.0", "alert-inside-sql-transaction-database", 1 * 1024 * 1024 /* bytes */);
+    database.transaction(callback);
+}
+
+function runTest()
+{
+    openDatabaseAndPerformTransaction(function (sqlTransaction) { alert("Lock the device. Unlock the device and press OK."); });
+    openDatabaseAndPerformTransaction(function (sqlTransaction) { document.getElementById("result").textContent = "PASS did execute SQLTransactionCallback callback"; });
+}
+
+window.onload = runTest;
+</script>
+</head>
+<body>
+<p>This test can be used to verify that we execute a SQLTransactionCallback callback after locking an unlocking the device during an earlier
+SQLTransactionCallback callback that showed a modal dialog. You should run this test both in Safari on iOS and from a home screen web app.</p>
+<div id="result">FAIL did not execute SQLTransactionCallback callback</div>
+</body>
+</html>