Skip to content

Instantly share code, notes, and snippets.

@dfahlander
Last active June 15, 2016 20:58
Show Gist options
  • Save dfahlander/5a39328f029de18222cf2125d56c38f7 to your computer and use it in GitHub Desktop.
Save dfahlander/5a39328f029de18222cf2125d56c38f7 to your computer and use it in GitHub Desktop.
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))

Reproduce the issue:

// WARNING: DON'T open the fiddle in Edge or IE, or you will need to do hard reset on your system:

https://jsfiddle.net/dfahlander/L7dL8xrv/59/

Reported to Microsoft: https://connect.microsoft.com/IE/feedback/details/2530333

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment