Closed Bug 1471340 Opened 7 years ago Closed 6 years ago

Unable to scroll after watching fullscreen video

Categories

(GeckoView :: Media, defect, P2)

59 Branch
defect

Tracking

(firefox-esr52 wontfix, firefox-esr60 wontfix, firefox61 wontfix, firefox62 wontfix, firefox63 wontfix, firefox64 wontfix, firefox65 wontfix, firefox66 wontfix, firefox67 affected, firefox68 affected)

RESOLVED INVALID
Tracking Status
firefox-esr52 --- wontfix
firefox-esr60 --- wontfix
firefox61 --- wontfix
firefox62 --- wontfix
firefox63 --- wontfix
firefox64 --- wontfix
firefox65 --- wontfix
firefox66 --- wontfix
firefox67 --- affected
firefox68 --- affected

People

(Reporter: snorp, Assigned: mbrubeck)

References

Details

(Whiteboard: [geckoview:fenix:m5])

STR 1) Go to youtube.com and start a video in fullscreen mode 2) Exit fullscreen by hitting back. In Focus this erroneously causes a navigation, which may be an important detail. 3) Try to scroll. Only the urlbar moves (in Focus, at least).
Randall reports that Firefox Reality has this bug as well
Priority: -- → P1
Susheel, James says this scrolling bug happens in Focus but not the geckoview_example test app. Can a Focus engineer investigate if this is a Focus bug? Randall says Firefox Reality has this bug, too, so either Firefox Reality has the same app-side bug or this is a GV bug.
Flags: needinfo?(sdaswani)
Chris the fact that FR has this bug too leans towards it being a GV bug (unless FR using the Focus code base?), but I filed an issue and it will come up in the next triage meeting. https://github.com/mozilla-mobile/focus-android/issues/2852
Flags: needinfo?(sdaswani)
Randall, leaving a NI for when you're back, is this something you could drive/own?
Flags: needinfo?(rbarker)
[geckoview:klar:p1] because this bug is a Focus+GV blocker.
Whiteboard: [geckoview:klar] → [geckoview:klar:p1]
Assignee: nobody → rbarker
Flags: needinfo?(rbarker)
Firefox Reality had this issue. I was able to fix the issue by checking before calling GeckoSession.goBack() if it was currently in fullscreen and exiting fullscreen instead of calling goBack. GeckoView should probably not get into a bad state from calling goBack when in fullscreen, but there is at least a workaround.
P2 because the app should be handling the back button and telling GV to exit fullscreen. This bug is asking for GV to exit fullscreen itself for apps that don't handle the back button properly themselves.
Priority: P1 → P2
Whiteboard: [geckoview:klar:p1]
I can work on this. What exactly is the desired behavior? When `GeckoSession::goBack` is called while the app is full-screen, should it automatically exit full screen instead of navigating back, so that each app doesn't need to implement this behavior? Or should we fix the scrolling bug and allow history navigation during full-screen, in case some apps have a use case for it?
Assignee: rbarker → mbrubeck
Flags: needinfo?(snorp)
(In reply to Matt Brubeck (:mbrubeck) from comment #9) > I can work on this. > > What exactly is the desired behavior? When `GeckoSession::goBack` is called > while the app is full-screen, should it automatically exit full screen > instead of navigating back, so that each app doesn't need to implement this > behavior? Or should we fix the scrolling bug and allow history navigation > during full-screen, in case some apps have a use case for it? I think according to spec Gecko should exit fullscreen when beginning a navigation. I'm pretty sure this used to work, so we just need to find out why it's not and fix it.
Flags: needinfo?(snorp)
Some notes for myself: 1. `nsIDocument::OnPageHide` should be called when navigating away from a page. 2. This calls `nsIDocument::ExitFullscreenInDocTree` which should exit full screen. 3. That creates a `ExitFullscreenScriptRunnable` which dispatches "MozDOMFullscreen:Exited" to chrome. 4. `GeckoViewContent` listens for this event, sends some messages, and should ultimately call `windowUtils.remoteFrameFullscreenReverted()`.
Adding some logging to GeckoViewContent, it never seems to receive the "MozDOMFullscreen:Exited" message, either in the content or chrome side.
Product: Firefox for Android → GeckoView
Version: Firefox 59 → 59 Branch

This should probably block Fenix

(In reply to Anthony Jones (:ajones, :kentuckyfriedtakahe, :k17e) from comment #13)

This should probably block Fenix

OK. Adding [geckoview:fenix:m5] whiteboard tag to track for Fenix MVP.

67=wontfix. Fenix MVP will use GeckoView 68, so we don't need to uplift this fix to 67 Beta unless it also affects Fennec 67.

Closing as INVALID because snorp says this bug should be fixed in Fenix app code, not GV. Fenix needs to handle Back button navigation and exit full screen mode.

OTOH, when Fenix, FxR, and Focus+GV all have the exact same bug, perhaps GV needs to do more to help app developers handle this situation.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID

Moving some media bugs to the new GeckoView::Media component.

Component: General → Media
You need to log in before you can comment on or make changes to this bug.