Dinosaur game pauses on device rotation
Reported by
t...@bbiwy.ch,
Feb 2 2017
|
|||||||
Issue descriptionHi there We found a bug, that may or may not be a bigger security problem. We all know the dinosaur game in Chrome, if you are currently offline. While playing this game we noticed, that by rotating the device from portrait to landscape, the game pauses. Except it doesn't fully pause, it is still running in the background, meaning the Score counter is still counting up, but the dinosaur doesn't move at all. Therefore it is possible that either the game itself is a little buggy, or that there is a major flaw in the JavaScript implementation, on which this game runs. Because that is certainly not working like it is intended to... VULNERABILITY DETAILS Should this same scenario prove to be applicable to other websites, on which the proper execution of JavaScript is relevant to the security of the page (in Example Banking, Online Shopping, ...), you might have a problem... VERSION Chrome Version: [55.0.2883.91] + [stable] Operating System: [Android 7.1.1] Chrome Version: [55.0.2883.91] + [stable] Operating System: [Android 6.0.1] REPRODUCTION CASE We attached a video below, where you can clearly see how to reproduce said bug. Not much more than rotating the device is needed. Kind Regards
,
Feb 2 2017
,
Feb 2 2017
Thanks for reporting. This is a bug, I'll try to get round to looking at soon.
,
Feb 2 2017
No problem, take your time :) Just glad it wasn't a security problem. Thx & Regards
,
Feb 3 2017
,
Feb 3 2017
,
Mar 13 2017
Did some testing and this actually affects all platforms. Resizing the screen causes the game to pause, but the internal timer is still running. I'll have a fix out shortly.
,
Mar 23 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/cc185fb06a698256572d717750923a2588928519 commit cc185fb06a698256572d717750923a2588928519 Author: edwardjung <edwardjung@chromium.org> Date: Thu Mar 23 17:58:11 2017 Offline easter egg - Fix incorrect score when restarting from a paused game When paused (window resize, orientation change), the canvas frame was being updated with an invalid time causing the score to be incremented by the duration that the game was paused for. Added a check to ensure the game was not paused before handling the key press / touches. BUG= 687887 TBR=mmenke@chromium.org Review-Url: https://codereview.chromium.org/2747773002 Cr-Commit-Position: refs/heads/master@{#459138} [modify] https://crrev.com/cc185fb06a698256572d717750923a2588928519/components/neterror/resources/offline.js
,
Jun 2 2017
,
Jun 5 2017
Both zooming and orientation pause bugs are fixed with the update in March. They are currently in beta and should be in stable shortly. |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by xzhou@chromium.org
, Feb 2 2017Owner: edwardjung@chromium.org
Status: Untriaged (was: Unconfirmed)