Closed
Bug 1356921
Opened 8 years ago
Closed 8 years ago
deviceorientation events not firing on devices without gyroscopes
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox54 wontfix, firefox55 fixed, firefox56 fixed)
RESOLVED
FIXED
Firefox 56
People
(Reporter: gabybosetti, Assigned: droeh)
References
Details
(Keywords: regression, regressionwindow-wanted)
Attachments
(3 files)
|
1.46 KB,
text/html
|
Details | |
|
1.54 KB,
text/html
|
Details | |
|
1.11 KB,
patch
|
esawin
:
review+
jcristau
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0
Build ID: 20170321232041
Steps to reproduce:
1) Install fennec 49 onwards (even 55) in Android 6.
2) try to use this application with orientation: http://orb.enclavegames.com/
or any other that is suscribed to deviceorientation, as explained here: http://stackoverflow.com/questions/43441602/how-to-get-the-device-orientation-from-a-firefox-for-android-extension
** you can open the demo in the mobile browser and chech it
*It works on other browsers or version 46
Actual results:
the orientation is never notified
Expected results:
notify the orientation
Updated•8 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
| Assignee | ||
Comment 2•8 years ago
|
||
Reopening this and deduping from bug 1318293; it looks like this is an actual regression in how we handle device orientation on phones without gyroscopes.
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: DUPLICATE → ---
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → droeh
Summary: I can not listen for orientation anymore → deviceorientation events not firing on devices without gyroscopes
| Assignee | ||
Comment 3•8 years ago
|
||
| Assignee | ||
Comment 4•8 years ago
|
||
gal007, if you get a chance, can you try out demo2.html (attached on the bug) on your device and let me know what you see? It's the same demo, but listening for "absolutedeviceorientation" rather than "deviceorientation" -- if you get expected results here, then I'm pretty sure we're failing to fall through to other sensors when a gyroscope is not present.
Updated•8 years ago
|
Keywords: regression,
regressionwindow-wanted
| Assignee | ||
Comment 5•8 years ago
|
||
Eugen, flagging you for review on this since you touched it last. I think we need to enable SENSOR_ROTATION_VECTOR events for deviceorientation events for backward compatibility with phones that don't fire SENSOR_GAME_ROTATION_VECTOR events here. Tested by ignoring SENSOR_GAME_ROTATION_VECTOR events in GeckoAppShell.onSensorChanged() -- without the patch we never fire ondeviceorientation, with the patch we fire it as expected.
Attachment #8882608 -
Flags: review?(esawin)
Updated•8 years ago
|
Attachment #8882608 -
Flags: review?(esawin) → review+
Pushed by droeh@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/758112b2c1fc
Enable SENSOR_ROTATION_VECTOR for DeviceOrientation events. r=esawin
Comment 7•8 years ago
|
||
| bugherder | ||
Status: REOPENED → RESOLVED
Closed: 8 years ago → 8 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
Comment 8•8 years ago
|
||
Please request Beta approval on this when you get a chance.
| Assignee | ||
Comment 9•8 years ago
|
||
Comment on attachment 8882608 [details] [diff] [review]
Enable SENSOR_ROTATION_VECTOR for DeviceOrientation events
Approval Request Comment
[Feature/Bug causing the regression]: 1205649
[User impact if declined]: Device orientation events will not be sent on devices which do not send SENSOR_GAME_ROTATION_VECTOR events
[Is this code covered by automated tests?]: No
[Has the fix been verified in Nightly?]: Yes
[Needs manual test from QE? If yes, steps to reproduce]:
[List of other uplifts needed for the feature/fix]:
[Is the change risky?]: No
[Why is the change risky/not risky?]: Should not change behavior in any case except for devices which do not fire SENSOR_GAME_ROTATION_VECTOR events, and fixes behavior for those devices.
[String changes made/needed]:
Flags: needinfo?(droeh)
Attachment #8882608 -
Flags: approval-mozilla-beta?
Comment 10•8 years ago
|
||
Comment on attachment 8882608 [details] [diff] [review]
Enable SENSOR_ROTATION_VECTOR for DeviceOrientation events
fennec regression fix for some phones, beta55+
Attachment #8882608 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 11•8 years ago
|
||
(In reply to Dylan Roeh (:droeh) from comment #9)
> [Needs manual test from QE? If yes, steps to reproduce]:
> [List of other uplifts needed for the feature/fix]:
In future please try to answer all the questions in the uplift request template.
Comment 12•8 years ago
|
||
| bugherder uplift | ||
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•