New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 687887 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Android , All
Pri: 2
Type: Bug



Sign in to add a comment

Dinosaur game pauses on device rotation

Reported by t...@bbiwy.ch, Feb 2 2017

Issue description

Hi 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
 

Comment 1 by xzhou@chromium.org, Feb 2 2017

Labels: -Restrict-View-SecurityTeam Security_Impact-Stable Security_Severity-Low OS-Android
Owner: edwardjung@chromium.org
Status: Untriaged (was: Unconfirmed)
Does not look like a security bug. But it may be related to  Issue 533820 . Assigning to edwardjung@chromium.org

Comment 2 by xzhou@chromium.org, Feb 2 2017

Labels: allpublic
Labels: Pri-3
Status: Assigned (was: Untriaged)
Thanks for reporting. This is a bug, I'll try to get round to looking at soon.

Comment 4 by t...@bbiwy.ch, Feb 2 2017

No problem, take your time :)
Just glad it wasn't a security problem.

Thx & Regards
Project Member

Comment 5 by sheriffbot@chromium.org, Feb 3 2017

Labels: -Pri-3 Pri-2
Labels: -Type-Bug-Security -Security_Severity-Low -Security_Impact-Stable -allpublic Type-Bug
Summary: Dinosaur game pauses on device rotation (was: Security: JavaScript problem in Chrome on Android?)
Labels: OS-All
Status: Started (was: Assigned)
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.
Project Member

Comment 8 by bugdroid1@chromium.org, 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

Comment 9 by bokan@chromium.org, Jun 2 2017

Cc: krajshree@chromium.org bokan@chromium.org
 Issue 728054  has been merged into this issue.
Status: Fixed (was: Started)
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