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

Issue 784523 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 783586
Owner: ----
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: ----



Sign in to add a comment

deviceorientation event does not fire

Reported by cristian...@gmail.com, Nov 13 2017

Issue description

Chrome Version       : Android/Chrome Dev 64.0.03261.0
URLs (if applicable) : http://jsfiddle.net/missinglink/pr2cej97/
Other browsers tested:
  Android/Chrome 62.0.3202.84 (Stable): OK
  Android/Chrome 63.0.3239.41 (Beta):   OK

What steps will reproduce the problem?

(1) Create webpage that registers to receive `deviceorientation` events: `window.addEventListener("deviceorientation", ...`
or
(1) Visit http://jsfiddle.net/missinglink/pr2cej97/

then:

(2) Access the website from a mobile Android device.

What is the expected result?

The event callback function should be invoked (on mobile Android devices) periodically as the device is moved.

What happens instead?

In the currently latest Android Chrome Dev build (64.0.03261.0), the callback is not invoked. The current Stable and Beta version work as expected.
 
Labels: Needs-triage-Mobile
Cc: sandeepkumars@chromium.org
Labels: Triaged-Mobile Needs-Feedback
Tested the issue in Android and could not reproduce the issue.

Steps Followed:
1. Launched Browser
2. Navigated to http://jsfiddle.net/missinglink/pr2cej97/
3. Event callback was fired on both Portrait and Landscape orientation

Chrome versions tested:
64.0.3267.2

OS
Android 8.1.0, 7.0.0, 5.0.0

Android Devices
8.1.0 Pixel XL Build/OPM1.171019.007, 7.0.0; SM-J710F Build/NRD90M, 5.0.0:; Micromax A106 BuildLRX21M

@cristian: Could you please let us know the OS and details of your device, if possible attach a screencast for further triaging of the issue.

Thanks!!
It appears the event is fired exactly once in v64.0.03261.0, and then stops firing. It should continue firing repeatedly on a mobile device, as in earlier Chrome versions.  

When the event fires repeatedly, the rendered "arrow" in the reference website should be moving continuously. Is it doing that when using v64.0.3267.2?
Project Member

Comment 4 by sheriffbot@chromium.org, Nov 14 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "sandeepkumars@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: Blink>Sensor>DeviceOrientation
Cc: juncai@chromium.org
Labels: Needs-Feedback
Tested the issue using #64.0.3267.2 and #64.0.3268.2 on Android 8.0.0, Pixel Build/OPR6.170623.023 and can observe the arrow is moving continuously.

@cristian: Could you try this on #64.0.3268.2 and check if you still see this issue? if so attach a screencast, that would help us in better triaging of the issue.

Thanks!!

Comment 8 by juncai@chromium.org, Nov 15 2017

Mergedinto: 783586
Status: Duplicate (was: Unconfirmed)
I can reproduce the issue on the current master branch. It is the same issue as
https://bugs.chromium.org/p/chromium/issues/detail?id=783586
Since the CL:
https://chromium-review.googlesource.com/c/chromium/src/+/767549
that can fix the above issue also fixes this issue. So merge this issue to 783586.

Comment 9 Deleted

Glad to hear the issue can be reproduced. Also, in case it helps, here is a link to a screencast (captured on a Pixel Phone running Android 8.1.0) that shows the event working as expected in:

  62.0.3202.84
  63.0.3239.41

but not working in:

  64.0.3261.0
  64.0.3268.2

SCREENCAST: https://photos.app.goo.gl/8VvTV9w045spy6y32

Sign in to add a comment