Bug filed: https://bugs.webkit.org/show_bug.cgi?id=185869
This gist demonstrates a bug in Safari when you try to add a record with binary data (Uint8Array) into an indexedDB store having an autoIncrement key.
Currently breaks on Safari Version 11.1 (13605.1.33.1.4) on macOS High Sierra 10.13.4.
Demo files:
ko-indexeddb-both.html
: the add() call triggers an"UnknownError: An internal error was encountered in the Indexed Database server"
error, then the whole database is broken and can't be reused.ok-indexeddb-autoincrement.html
: autoIncrement works (as long as you don't have binary values in your data)ok-indexeddb-uint8array.html
: binary data is ok (as long as you don't use autoIncrement)
Related reports:
Usage:
- Download this gist as a zip
- Start a local webserver (e.g.
python3 -m http.server
) - View the locally served .html files in Safari