WeakMap implementation has intermittent problem mapping DOM element to objects

Originator:timdream
Number:rdar://18626585 Date Originated:10/12/2014
Status:Open Resolved:
Product:Safari Product Version:7.1
Classification: Reproducible:Always
 
Summary:
Please read https://github.com/timdream/gaia-keyboard-demo/issues/7
There is a problem in Safari's WeakMap implementation which prevent the original object from return with get().

Strangely the problem can be suppressed by issuing a console.log() to print out the DOM element and the object.

Steps to Reproduce:
1. http://timdream.org/gaia-keyboard-demo/
2. Click/tap on any keyboard keys
3. Click/tap on more keyboard keys until the key stop responding

Expected Results:
1. The virtual keyboard works

Actual Results:
1. On iOS 8 it never works, on Safari 7.1 Mac 10.9 only the first few clicks works.

Version:
iOS8, Safari 7.1 Mac

Notes:


Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!