Fixing a bug that's actually a bug in Chrome