<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>137503</bug_id>
          
          <creation_ts>2014-10-07 15:34:32 -0700</creation_ts>
          <short_desc>[iOS] WebSQL operations are not performed after device is locked</short_desc>
          <delta_ts>2015-05-19 13:10:59 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>420+</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 8.0</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://media.brehaut.net/files/ios8-websql-bug.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrew Brehaut">andrew</reporter>
          <assigned_to name="Daniel Bates">dbates</assigned_to>
          <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>dbates</cc>
    
    <cc>dev+webkit</cc>
    
    <cc>oliver</cc>
    
    <cc>sit</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1040149</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Brehaut">andrew</who>
    <bug_when>2014-10-07 15:34:32 -0700</bug_when>
    <thetext>On a device running iOS8 (8.0.2), and a web app (includes &lt;meta name=&quot;apple-mobile-web-app-capable&quot; content=&quot;yes&quot; /&gt;) 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&apos;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 &apos;test db&apos; link; an alert should appear stating &apos;in transaction&apos;.
 * lock the screen
 * unlock the screen
 * tap the &apos;test db&apos; link again. within mobile Safari proper this should again raise the alert dialog.
 
 * save the app to the home screen.
 * tap the &apos;test db&apos; link; an alert should appear stating &apos;in transaction&apos;.
 * lock the screen
 * unlock the screen
 * tap the &apos;test db&apos; 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(&quot;test&quot;, &quot;1.0&quot;, &quot;test&quot;, 1 * 1024 * 1024).transaction(function (tx) { alert(&quot;in transaction&quot;); });
	
Running the same thing from any web app via a connected web inspector should produce the same results.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1040203</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-10-07 21:49:10 -0700</bug_when>
    <thetext>Not sure if this is the same as &lt;rdar://problem/18042389&gt; (the link only works for Apple employees)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1044137</commentid>
    <comment_count>2</comment_count>
      <attachid>240456</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2014-10-25 13:31:07 -0700</bug_when>
    <thetext>Created attachment 240456
[Web Archive] ios8-websql-bug.html

Web archive of &lt;http://media.brehaut.net/files/ios8-websql-bug.html&gt; as it appeared on 10/25/2014.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1046833</commentid>
    <comment_count>3</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2014-11-06 09:28:28 -0800</bug_when>
    <thetext>&lt;rdar://problem/18894598&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1092339</commentid>
    <comment_count>4</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2015-05-06 15:09:06 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; &lt;rdar://problem/18894598&gt;

Disregard this radar. It doesn&apos;t cover the issue mentioned in this bug, which is specific to showing a modal dialog.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1092341</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-05-06 15:09:42 -0700</bug_when>
    <thetext>&lt;rdar://problem/20844952&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1093203</commentid>
    <comment_count>6</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2015-05-08 09:28:47 -0700</bug_when>
    <thetext>I&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1093204</commentid>
    <comment_count>7</comment_count>
      <attachid>252723</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2015-05-08 09:35:48 -0700</bug_when>
    <thetext>Created attachment 252723
Manual test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1093258</commentid>
    <comment_count>8</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2015-05-08 12:00:56 -0700</bug_when>
    <thetext>Committed r184002: &lt;http://trac.webkit.org/changeset/184002&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1095988</commentid>
    <comment_count>9</comment_count>
    <who name="Christopher Schimanski">sit</who>
    <bug_when>2015-05-19 12:09:47 -0700</bug_when>
    <thetext>Hey Guys and first off all excuse me for interrupting! I&apos;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&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1096012</commentid>
    <comment_count>10</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2015-05-19 13:10:59 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; Hey Guys and first off all excuse me for interrupting! I&apos;m writing you from
&gt; germany relating to this WebKit issue.
&gt; 
&gt; We have an application in the german iOS Appstore. Today one of the users
&gt; who downloaded that application called the support hotline from our company
&gt; and said, that he is not able to use our application. It is a Cordova/Hybrid
&gt; one. 
&gt; 
&gt; After our support assistent talked to him over half an our he forwarded that
&gt; problem to us, the programmers. We tried very much till now, but we are not
&gt; able to exactly tell where the problem is. 
&gt; 
&gt; We build an application for hunters who are able to report hunted animals
&gt; with that. Therefore we guide them step by step through the report. On
&gt; iPhone 5S with iOS 8.3 (12F70) we get a database error message. The iPhone
&gt; 5S users are not possible to report their hunted animals because there is an
&gt; issue. All other Devices are fine with that version. 
&gt; 
&gt; We started debugging this evening, i&apos;ll keep you up to date. If you need
&gt; further information, or the name from the application (maybe you can test
&gt; it?!) write me an E-Mail to sithys@me.com 
&gt; 
&gt; Greetings from Germany!
&gt; Christoph Schimanski

Not sure why you commented in this bug. There&apos;s no indication that the issue you are seeing is what was reported here, and there won&apos;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.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>240456</attachid>
            <date>2014-10-25 13:31:07 -0700</date>
            <delta_ts>2014-10-25 13:31:07 -0700</delta_ts>
            <desc>[Web Archive] ios8-websql-bug.html</desc>
            <filename>ios8-websql-bug_102514.webarchive</filename>
            <type>application/x-webarchive</type>
            <size>813</size>
            <attacher name="Daniel Bates">dbates</attacher>
            
              <data encoding="base64">YnBsaXN0MDDRAQJfEA9XZWJNYWluUmVzb3VyY2XVAwQFBgcICQoLDF8QFFdlYlJlc291cmNlRnJh
bWVOYW1lXldlYlJlc291cmNlVVJMXxAPV2ViUmVzb3VyY2VEYXRhXxATV2ViUmVzb3VyY2VNSU1F
VHlwZV8QG1dlYlJlc291cmNlVGV4dEVuY29kaW5nTmFtZVBfEDNodHRwOi8vbWVkaWEuYnJlaGF1
dC5uZXQvZmlsZXMvaW9zOC13ZWJzcWwtYnVnLmh0bWxPEQIUPCFET0NUWVBFIGh0bWw+PGh0bWw+
PGhlYWQ+CiAgIDx0aXRsZT5pT1M4IHdlYnNxbCBidWcgZXhhbXBsZTwvdGl0bGU+CiAgIDxtZXRh
IG5hbWU9ImFwcGxlLW1vYmlsZS13ZWItYXBwLWNhcGFibGUiIGNvbnRlbnQ9InllcyI+CgogICA8
c2NyaXB0IGxhbmd1YWdlPSJqYXZhc2NyaXB0Ij4KICAgICBmdW5jdGlvbiB0ZXN0REIoKSB7CiAg
ICAgICAgdmFyIGQgPSBvcGVuRGF0YWJhc2UoInRlc3QiLCAiMS4wIiwgCiAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgImFuIGVtcHR5IERCIHRvIHRlc3QgY29ubmVjdGl2aXR5IiwgCiAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgMSAqIDEwMjQgKiAxMDI0KQogICAgICAgIC50cmFuc2Fj
dGlvbihmdW5jdGlvbiAodHgpIHsgCiAgICAgICAgICAgYWxlcnQoImluIHRyYW5zYWN0aW9uIik7
CiAgICAgICAgfSk7CiAgICAgfQogICA8L3NjcmlwdD4KIDwvaGVhZD4KCiA8Ym9keT4KIDxhIGhy
ZWY9ImphdmFzY3JpcHQ6dGVzdERCKCk7Ij5UZXN0IERCPC9hPgogCgo8L2JvZHk+PC9odG1sPll0
ZXh0L2h0bWxVVVRGLTgACAALAB0AKAA/AE4AYAB2AJQAlQDLAuMC7QAAAAAAAAIBAAAAAAAAAA0A
AAAAAAAAAAAAAAAAAALz
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>252723</attachid>
            <date>2015-05-08 09:35:48 -0700</date>
            <delta_ts>2015-05-08 11:57:22 -0700</delta_ts>
            <desc>Manual test</desc>
            <filename>bug-137503-20150508093429.patch</filename>
            <type>text/plain</type>
            <size>2381</size>
            <attacher name="Daniel Bates">dbates</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTgzNzMyCmRpZmYgLS1naXQgYS9DaGFuZ2VMb2cgYi9DaGFu
Z2VMb2cKaW5kZXggMmZmMTg4NTdlOTFlYmJhNWNkYjY1OTRjYWIzYWEyMzZjOGZmNTAyMS4uZjMz
YTA2Y2UyNTExZTNmZGQ1M2FlZDZiM2E5YTQ3Y2EwZTJhMDdlNSAxMDA2NDQKLS0tIGEvQ2hhbmdl
TG9nCisrKyBiL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE1IEBACisyMDE1LTA1LTA4ICBEYW5pZWwg
QmF0ZXMgIDxkYWJhdGVzQGFwcGxlLmNvbT4KKworICAgICAgICBXZWJTUUwgb3BlcmF0aW9ucyBh
cmUgbm90IHBlcmZvcm1lZCBhZnRlciBkZXZpY2UgaXMgbG9ja2VkCisgICAgICAgIGh0dHBzOi8v
YnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xMzc1MDMKKyAgICAgICAgPHJkYXI6Ly9w
cm9ibGVtLzIwODQ0OTUyPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgor
CisgICAgICAgIEFkZCBhIG1hbnVhbCB0ZXN0IHRvIGhlbHAgdmVyaWZ5IHRoYXQgd2UgZG8gbm90
IHJlZ3Jlc3MgdGhpcyBpc3N1ZS4KKworICAgICAgICAqIE1hbnVhbFRlc3RzL2lvcy9leGVjdXRl
LXNxbC10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1NRTFRyYW5zYWN0aW9uQ2FsbGJhY2sg
Y2FsbGJhY2sgdGhhdCBzaG93ZWQgYSBtb2RhbCBkaWFsb2cuIFlvdSBzaG91bGQgcnVuIHRoaXMg
dGVzdCBib3RoIGluIFNhZmFyaSBvbiBpT1MgYW5kIGZyb20gYSBob21lIHNjcmVlbiB3ZWIgYXBw
LjwvcD4KKzxkaXYgaWQ9InJlc3VsdCI+RkFJTCBkaWQgbm90IGV4ZWN1dGUgU1FMVHJhbnNhY3Rp
b25DYWxsYmFjayBjYWxsYmFjazwvZGl2PgorPC9ib2R5PgorPC9odG1sPgo=
</data>
<flag name="review"
          id="277566"
          type_id="1"
          status="+"
          setter="ap"
    />
          </attachment>
      

    </bug>

</bugzilla>