Closed Bug 1366770 Opened 8 years ago Closed 7 years ago

Custom Tab: Toolbar still displayed if a video is fullscreen

Categories

(Firefox for Android Graveyard :: General, defect, P2)

55 Branch
ARM
Android
defect

Tracking

(fennec+, firefox55 unaffected, firefox56 disabled, firefox57 verified)

VERIFIED FIXED
Firefox 57
Tracking Status
fennec + ---
firefox55 --- unaffected
firefox56 --- disabled
firefox57 --- verified

People

(Reporter: sflorean, Assigned: droeh)

References

Details

Attachments

(1 file, 1 obsolete file)

Environment: Device: Huawei Honor (Android 5.1.1); Build: Nightly 55.0a1 (2017-05-22); Steps to reproduce: 1. Open https://www.w3schools.com/html/html5_video.asp in custom tab; 2. Tap full screen button and play the video. Expected result: The video enters full-screen and no visible issues are displayed. Actual result: The video enters full screen but the toolbar is still displayed.
note: I see there is a callback for Fullscreen in GeckoView[1]. Maybe we can use this callback once CusttomTabs involves GeckoView. Jim, is my assumption for the callback correct? or the callback is for another purpose? Thanks! [1] https://dxr.mozilla.org/mozilla-central/rev/f9ca97a334296facd2e0ea5582e7f12d0fe70fe4/mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoView.java#1128
Flags: needinfo?(nchen)
Yes, `onFullScreen` is called when Gecko is requesting full screen mode, and the app should implement `onFullScreen` to make the whole activity go full screen.
Flags: needinfo?(nchen)
per the discussion with Joe and Julian, this is P2 bug we could fix in the later phase.
Priority: -- → P2
tracking-fennec: --- → ?
Attached patch Implement onFullScreen for custom tabs (obsolete) (deleted) — Splinter Review
This is a simple fix.
Assignee: nobody → droeh
Attachment #8895370 - Flags: review?(snorp)
Comment on attachment 8895370 [details] [diff] [review] Implement onFullScreen for custom tabs Review of attachment 8895370 [details] [diff] [review]: ----------------------------------------------------------------- I think you should use ActivityUtils.setFullScreen(), as that has some additional considerations for various OS versions
Attachment #8895370 - Flags: review?(snorp) → review-
Ah, good point.
Attachment #8895370 - Attachment is obsolete: true
Attachment #8895405 - Flags: review?(snorp)
Attachment #8895405 - Flags: review?(snorp) → review+
Pushed by droeh@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/66d4f2c88db7 Implement ContentListener.onFullScreen() for custom tabs. r=snorp
tracking-fennec: ? → +
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
Verified as fixed in build 57.0a1 2017-08-28; Device: Asus ZenPad 8 (Android 6.0.1). When the video enters full screen, the toolbar is not displayed.
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: