Bug 202547
Summary: | REGRESSION (iOS 13): WebSQL dies after switching to other apps | ||
---|---|---|---|
Product: | WebKit | Reporter: | Roger Far <roger.versluis> |
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Blocker | CC: | cdumez, sihui_liu, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 12 | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 13 |
Roger Far
WebSQL becomes unresponsive when Safari is re-openen after other app usage.
This bug is most noticeable and easily reproduced on the iPhone or iPad, but I haven't been able to reproduce it on any other platform yet.
Make sure you enable WebSQL in the experimental settings.
On the device in Safari open the following URL:
https://rogerfar.github.io/ios-websql-bug/
This will open WebSQL, create a database and table, and every second attempt to read from it. It logs the results in a container on screen.
If everything goes correct it will show:
create
read
done
read
done
....
This will continue indefinitely.
Now hit the home button to put Safari in the background and do some other things, open the camera, browse the news etc, just to make sure we're allocating memory away from Safari.
Re-open safari, the 1 second timer will start back up, but now you notice that it will only show:
read
read
read
read
read
read
At this point WebSQL has become unresponsive, querying will result in no result nor error result. To get WebSQL responsive again the page has to be refreshed.
I verified that this is happening on iOS 13 but not on iOS 12.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/55999898>