Skip to content

Instantly share code, notes, and snippets.

View dfahlander's full-sized avatar

David Fahlander dfahlander

  • Awarica AB
  • Stockholm
View GitHub Profile
@dfahlander
dfahlander / nasty-edge-bug.md
Last active June 15, 2016 20:58
The Nasty KeyRange bug in Edge browser

Just recovered from a bad hang of my Windows 10 laptop.

A not yet known bug in Edge browser on windows 10, (and probably IE too), can make the system instable.

Never delete a large range using IDBOBjectStore.delete(IDBKeyRange). Edge/IE users on windows 10, running that code will experience a deadlocked operating system afterwards. Database is first filled with small objects from id 1...100000 (takes a few seconds) before doing this delete operation. It's that simple to reproduce.

IDBObjectStore.delete(IDBKeyRange.bound(100, 99000))