3 ms·
> If Safari had changed the spec that comment would probably have begun with "It's a shame they had to change the spec..." I don't follow. They are breaking th
by kevincox 6y ago
> If Safari had changed the spec that comment would probably have begun with "It's a shame they had to change the spec..."
I don't follow. They are breaking the spec anyways. A simple timeout would be equally spec-breaking and a lot easier to understand and use.
The weird async-callback-chaining doesn't actually limit any nefarious behaviour. It just requires the code author to carefully stay inside their arbitrary happy-path. A simple timeout after a user gesture is just simpler. Furthermore this is something that you can't test without buying a thousand dollar device.