Closed Bug 1290882 Opened 8 years ago Closed 8 years ago

Exit fullscreen snackbar references back button even though back is hidden in immersive fullscreen

Categories

(Firefox for Android Graveyard :: Audio/Video, defect)

defect
Not set
normal

Tracking

(fennec50+, firefox50 verified, firefox51 verified, firefox52 verified)

VERIFIED FIXED
Firefox 52
Tracking Status
fennec 50+ ---
firefox50 --- verified
firefox51 --- verified
firefox52 --- verified

People

(Reporter: TeoVermesan, Assigned: mcomella)

References

Details

Attachments

(6 files)

Steps to reproduce:
1. Go to http://base-n.de/webm/out9.webm
2. Enter fullscreen
3. Try to exit fullscreen

Expected results:
- Back button is visible and by tapping it, the video exits fullscreen mode

Actual results:
- Back button is not visible.
- See attached screenshot
Fullscreen behavior was changed by bug 1031519 - once in fullscreen I'm able to swipe down from the top to reveal the back button, and then tapping it exits fullscreen mode.  Does that work for you?

IIRC the first time I entered immersive fullscreen with that change it gave some instructions on swiping from the top to display the soft keys; maybe that's not always happening the first time?
Component: General → Audio/Video
Teodora, do you get the expected behavior of swipe-from-the-top revealing the soft keys in fullscreen mode and tapping back exiting fullscreen, or is that broken on your device?
Flags: needinfo?(teodora.vermesan)
Swiping-from-the-top will reveal the soft keys.
But, after pressing the fullscreen button, a snackbar is displayed: "Press back to exit full-screen mode". The soft keys are not displayed, only after swipe from the top.
Maybe a snackbar that inform users to swipe to reveal the back button should be displayed.
Flags: needinfo?(teodora.vermesan)
> Maybe a snackbar that inform users to swipe to reveal the back button should
> be displayed.

Thanks Teo.  Mike, any thoughts on this?
Flags: needinfo?(michael.l.comella)
Blocks: 1031519
Flags: needinfo?(michael.l.comella)
There are several layers coding, which makes this confusing. There is:
 * The system – it displays the "swipe from the top" the first time immersive fullscreen mode is used
 * Fennec, the app – What we decide to show (currently, a snackbar saying, "Press BACK to exit")
 * The default controls for HTML5 players that our platform provides – provides a "leave fullscreen" button (present in the example in 1)
 * The overridden controls for HTML5 players that the site provides – sometimes provides "leave fullscreen" (e.g. youtube), sometimes does not (http://html5demos.com/video)

> Maybe a snackbar that inform users to swipe to reveal the back button should
> be displayed.

I think we have two options when entering immersive fullscreen mode for videos:
 1) Display a snackbar every time that informs the user to "tap back" on devices with hardware keys and "swipe from the top & hit back" on devices with software keys
 2) Don't display anything and rely on the system's first intro & the video player controls to help users leave fullscreen mode

#1 has issues:
 * The messaging in the snackbar will be duplicated by the system's tutorial the first time immersive full screen is entered
 * The patch for bug 1031519 is in FF50 and we'd have strings to add, so we'd have to back it out of 50 so the strings can ride the trains

#2 also has a few issues:
 * There'd be no help on pages where the built-in video controls don't provide a button to leave fullscreen
 * On http://html5demos.com/video, the built-in controls are disabled by default (though you can enable them with long-press) – other pages may also do this? Note that on this page you have to long-press to go into full screen in the first place.

Anthony, do you think we should go for option #1 or option #2? If #1, do you have a preference on copy?

[1]: then again, if the system thinks the user can handle a one-time tutorial, maybe we should agree with them?
Assignee: nobody → michael.l.comella
Flags: needinfo?(alam)
Immersive fullscreen has been a part of android for three years now.  Users should know how it works as it is the same in every app out there.  Please don't do anything to delay it further in Firefox.  It is hugely overdue and reflects poorly on Firefox.
Before we proceed further, I notice that the media controls in the Aurora screenshot are out of place. If the back, home, and recents navigation bar is missing, our video controls should occupy that space. Is this a known issue/ fixed?

Pressing the "exit fullscreen button" is the primary way in our UI for the user to exit video, does this work Teodora?
Flags: needinfo?(teodora.vermesan)
Flags: needinfo?(michael.l.comella)
Flags: needinfo?(alam)
(In reply to Anthony Lam (:antlam) from comment #7)
> Before we proceed further, I notice that the media controls in the Aurora
> screenshot are out of place. If the back, home, and recents navigation bar
> is missing, our video controls should occupy that space. Is this a known
> issue/ fixed?

If I can jump in, I think the Aurora screenshot shows the nav buttons in "low profile" (dimmed) mode, which is what we still use instead of immersive with the bug 1031519 patch on older devices - the little dots in place of back, home, and recents are just hard to see in the screenshot I think.  But as far as I know that's the expected behavior.
Tested using:
Builds: Firefox for Android 50.0a2 and 51.0a1 (2016-08-18) and Firefox for Android 49 Beta 4.
One A2001 (Android 5.1.1) with software on-screen navigation bar enabled
Flags: needinfo?(teodora.vermesan)
Exiting fullscreen mode works ok on all branches with both methods: fullscreen button and pressing the back button.
Anthony, the issue is that a contradictory snackbar is shown when we enter fullscreen mode that says to "Press back to exit", even on devices where the back button is hidden.

Two options I saw were to fix the snackbar to be accurate to device type (comment 5, option 1) or remove it entirely (option 2). Thoughts?

Sorry if I was unclear.
Flags: needinfo?(michael.l.comella) → needinfo?(alam)
Summary: Cannot exit a fullscreen video → Exit fullscreen snackbar references back button even though back is hidden in immersive fullscreen
(In reply to Michael Comella (:mcomella) [not actively working on fennec: expect slow responses] from comment #11)
> Anthony, the issue is that a contradictory snackbar is shown when we enter
> fullscreen mode that says to "Press back to exit", even on devices where the
> back button is hidden.
> 
> Two options I saw were to fix the snackbar to be accurate to device type
> (comment 5, option 1) or remove it entirely (option 2). Thoughts?
> 
> Sorry if I was unclear.

By "Hidden" do you mean dimmed like Teodora is indicating in comment 9? If so, I think that's fine. I'm not too worried about it.

If not, could you show me a screenshot of this "snackbar"?
Flags: needinfo?(alam) → needinfo?(michael.l.comella)
Attached image Screenshot of the issue
(In reply to Anthony Lam (:antlam) from comment #12)
> If not, could you show me a screenshot of this "snackbar"?

This screenshot is taken on Nightly, on a N5, which has had its software menu button entirely removed (i.e. not hidden or "low profile") upon entering fullscreen mode (this fullscreen mode is known as "immersive fullscreen" in android lingo).
Flags: needinfo?(michael.l.comella)
Flags: needinfo?(alam)
(In reply to Michael Comella (:mcomella) [not actively working on fennec: expect slow responses] from comment #13)
> Created attachment 8786787 [details]
> Screenshot of the issue
> 
> (In reply to Anthony Lam (:antlam) from comment #12)
> > If not, could you show me a screenshot of this "snackbar"?
> 
> This screenshot is taken on Nightly, on a N5, which has had its software
> menu button entirely removed (i.e. not hidden or "low profile") upon
> entering fullscreen mode (this fullscreen mode is known as "immersive
> fullscreen" in android lingo).

In these cases, could we just not show this then?
Flags: needinfo?(alam) → needinfo?(michael.l.comella)
Spoke on Vidyo: we're just going to remove the "Press back to exit" snackbar entirely. The old video player didn't have an exit fullscreen button in the built-in video controls but now we have one so we theorize the snackbar is no longer necessary.
Flags: needinfo?(michael.l.comella)
Let's try to get this into the version it affects.
tracking-fennec: --- → 50+
Comment on attachment 8793514 [details]
Bug 1290882 - Remove 'Press back to exit' snackbar when entering fullscreen mode.

https://reviewboard.mozilla.org/r/80228/#review78900
Attachment #8793514 - Flags: review?(ahunt) → review+
Pushed by michael.l.comella@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/dae8eaf6a289
Remove 'Press back to exit' snackbar when entering fullscreen mode. r=ahunt
Comment on attachment 8793514 [details]
Bug 1290882 - Remove 'Press back to exit' snackbar when entering fullscreen mode.

Approval Request Comment
[Feature/regressing bug #]: bug 1031519
[User impact if declined]: Users will see a popup with a conflicting message on devices with soft keyboards.

[Describe test coverage new/current, TreeHerder]: Tested locally.
[Risks and why]: Low - we're removing minimal amounts of seemingly simple code so I don't expect any issues.
[String/UUID change made/needed]: Removed a string
Attachment #8793514 - Flags: approval-mozilla-beta?
Attachment #8793514 - Flags: approval-mozilla-aurora?
https://hg.mozilla.org/mozilla-central/rev/dae8eaf6a289
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 52
(In reply to Michael Comella (:mcomella) [not actively working on fennec: expect slow responses] from comment #20)
> [String/UUID change made/needed]: Removed a string

If you want to land this in aurora and beta, please create a patch that doesn't touch browser.properties
This patch would create unnecessary churn in localization tools and dashboards.
Hi Mike, it seems the l10n team would like the patch to be redone so as to minimize localization impact. Please renominate the updated patch, I'll cancel the flags on the current one.
Flags: needinfo?(michael.l.comella)
Attachment #8793514 - Flags: approval-mozilla-beta?
Attachment #8793514 - Flags: approval-mozilla-aurora?
Comment on attachment 8796705 [details] [diff] [review]
(51 branch patch) Remove 'Press back to exit' snackbar when entering fullscreen mode

(See comment 20)
Attachment #8796705 - Attachment is obsolete: false
Attachment #8796705 - Flags: approval-mozilla-aurora?
Comment on attachment 8796713 [details] [diff] [review]
50 branch patch

(See comment 20)
Flags: needinfo?(michael.l.comella)
Attachment #8796713 - Flags: approval-mozilla-beta?
'Press BACK to leave full-screen mode' snackbar is not displayed when entering fullscreen mode, so:
Verified as fixed using:
Device: One A2001 (Android 6.0.1)
Build: Firefox for Android 52.0a1 (2016-10-02)
Comment on attachment 8796713 [details] [diff] [review]
50 branch patch

Fix was verified on Nightly52, Beta50+
Attachment #8796713 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #8796705 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Verified as fixed on Nexus 6P (Android 7.0) on Fennec 50 Beta 4
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: