when I rotate a Nexus 5 to landscape mode in Firefox, it opens Chrome.




Firefox for Android
9 months ago
9 months ago


(Reporter: agm1984, Unassigned, NeedInfo)



Firefox Tracking Flags





9 months ago
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Steps to reproduce:

1) open firefox on Nexus 5 device
2) navigate to url
3) rotate device from portrait to landscape

Actual results:

chrome opened (it occurred many times in a row), hopefully it will be easy to reproduce for you

Expected results:

view/page should have re-oriented to landscape mode

there was some javascript running that checks device orientation and alters some css for some max-width properties and some elements stay full width.

 I've tried to reproduce this on a Nexus 5X (6.0.1) and a Honor 5X (5.1.1) and was unsuccessful in my attempts.
 Do you have any addons installed that might be causing this to happen?
Flags: needinfo?(agm1984)
tracking-fennec: --- → ?

Comment 2

9 months ago
Sorry guys, I can't help much more because this happened a week ago and the code I was checking has since been removed, so I can't even verify if it's still reproducing.

I can only tell you I have Firefox 51.0.3 and I do not have any user-installed addons.

There was a large custom JS library loaded to handle device orientation changes, using:

window.addEventListener("deviceorientation", handleOrientation, true);

It was weird to me that when I rotated the device from portrait to landscape with our URL loaded, instead of changing the Firefox window to landscape mode, it opened Chrome, so I actually wasn't even able to view the page in landscape mode.

This phone has Android 6.0.1 on it.

If you can't reproduce it, I recommend scrutinizing everything related to that event because there is probably some kind of instability in there, unless the root cause was Android and not Firefox.

If you made a test case that checked if the content was loaded as expected after orientation changes, it would catch the bug. Sorry I cant give you reliable reproduction steps.

I'm removing the nomination for now.
If someone can reproduce, please renom.
tracking-fennec: ? → -
You need to log in before you can comment on or make changes to this bug.