Closed Bug 874181 Opened 11 years ago Closed 6 years ago

Trying to accept a call from a landscape locked fullscreen app transitions the app to portrait

Categories

(Firefox OS Graveyard :: Gaia::System::Window Mgmt, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(tracking-b2g:backlog)

RESOLVED WONTFIX
tracking-b2g backlog

People

(Reporter: jsmith, Unassigned)

References

Details

(Whiteboard: ux-tracking)

Build: 1.01 5/20/2013
Device: Inari

STR

1. Install the Poppit app
2. Launch it and start playing the game
3. On a different phone, call the phone that's currently playing the Poppit app

Expected

When the call is received, we should see the incoming dial drop down without transitioning the app to portrait.

Actual

When the call is received, we transition the app from landscape to portrait. This creates a broken look and feel for apps that are only supported in a landscape orientation.
TEF has been particularly critical about making sure the landscape orientation lock experience is correct. We blocked on a similar bug with app transitions for leo, so I'm noming for the same reasons here.
blocking-b2g: --- → leo?
Assignee: nobody → mbudzynski
Could you please try if it occurs also with Gallery or Browser app? I'm not able to run the Poppit game, it crashes just after launching.
Flags: needinfo?(jsmith)
I tested it on Buri device with all the landscape apps I could find (Poppit game, Gallery, Browser) and on Inari with Browser & Gallery and I was not able to reproduce the issue.
Status: NEW → UNCONFIRMED
Ever confirmed: false
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Keywords: qawanted
I was able to reproduce this still on a 1.01 5/24 build.
Status: RESOLVED → REOPENED
Ever confirmed: true
Flags: needinfo?(jsmith)
Keywords: qawanted
Resolution: WORKSFORME → ---
Could you please try if it occurs also with Gallery or Browser app? Or only with Poppit?
Flags: needinfo?(jsmith)
(In reply to Michal Budzynski (:michalbe) from comment #5)
> Could you please try if it occurs also with Gallery or Browser app? Or only
> with Poppit?

This bug I don't think would be possible to reproduce in the Browser or Gallery app - both apps do not lock landscape orientation in their manifest. The only way you can reproduce a bug such as this is to use an app that locks a landscape orientation. Poppit so happens to be one of those apps that does so.

If you are having trouble btw installing Poppit from Marketplace, try installing the older version here - http://mozqa.com/webapi-permissions-tests/ under Package App Test Case 20. Start the game, and call that phone. You'll see that the underlying app transitions to portrait when the incoming call notification begins to drop down.
Flags: needinfo?(jsmith)
Ok, I can see now what the point is. 
For now we can only lock orientation for the whole system, and because of the transition of the dialer app, we can see landscape applications in portrait mode for a while before the transition end. I think the right solution will be platform support for orientation lock in every app. 

Mounir, who is the right person to ask for this kind of feature?
Flags: needinfo?(mounir)
Could that be related to bug 840147?
Flags: needinfo?(mounir)
Sounds so.

The fix of bug 840147 is trying to simulate an app-level orientation lock by
css style change to the app window according to 1. current system orientation and 2. app specific orientation during app transition(from appwillclose event to appclose event).

I am not sure if this would be fix if 840147 is applied. If no, we need further more gaia work.
Mozilla recommends against blocking for v1.1 - this is not a regression and causes no permanent issues.
Whiteboard: [mozilla-triage]
(In reply to Alex Keybl [:akeybl] from comment #10)
> Mozilla recommends against blocking for v1.1 - this is not a regression and
> causes no permanent issues.

That's fine. I was the original person who nomed, so I'll pull the nom then.
blocking-b2g: leo? → ---
Whiteboard: [mozilla-triage]
Assignee: mbudzynski → nobody
Adding to backlog to be properly prioritized. Thanks!
Blocks: 849820
blocking-b2g: --- → backlog
Component: Gaia::Dialer → Gaia::System::Window Mgmt
Just tested this again using the STR in comment 0 and this seems still valid. I get the following behavior:

- When receiving the call the callscreen appears in landscape mode first sliding almost all the way down
- Just before it finishes sliding the callscreen transitions in portrait mode
- When hanging up / rejecting the call I can briefly see the Poppit app in portrait mode, then it switches back to landscape
Blocks: 994991
Whiteboard: ux-most-wanted-nov2014
blocking-b2g: backlog → ---
Whiteboard: ux-most-wanted-nov2014 → ux-tracking
Firefox OS is not being worked on
Status: REOPENED → RESOLVED
Closed: 11 years ago6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.