Closed
Bug 853986
Opened 12 years ago
Closed 11 years ago
Empty space at the top of fullscreen HTML5 video with dynamic toolbar enabled
Categories
(Firefox for Android Graveyard :: General, defect, P1)
Tracking
(firefox20 unaffected, firefox21 unaffected, firefox22+ wontfix, firefox23+ verified, firefox24 verified, firefox25 verified, fennec23+)
VERIFIED
FIXED
Firefox 25
Tracking | Status | |
---|---|---|
firefox20 | --- | unaffected |
firefox21 | --- | unaffected |
firefox22 | + | wontfix |
firefox23 | + | verified |
firefox24 | --- | verified |
firefox25 | --- | verified |
fennec | 23+ | --- |
People
(Reporter: aaronmt, Assigned: wesj)
References
Details
(Keywords: regression, reproducible, Whiteboard: [html5Video])
Attachments
(3 files, 3 obsolete files)
188.79 KB,
image/png
|
Details | |
7.82 KB,
image/png
|
Details | |
1.36 KB,
patch
|
cwiiis
:
review+
bajaj
:
approval-mozilla-aurora+
bajaj
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
See screenshot
STR:
i) http://people.mozilla.org/~atrain/mobile/tests/media.html; play any video, long-tap and full-screen it
--
Samsung Galaxy Note (Android 4.1.2)
Nightly (03/22)
Reporter | ||
Comment 1•12 years ago
|
||
Comment 2•12 years ago
|
||
Aaron, is this a recent regression? Was the Galaxy Note one of our blacklisted devices?
Component: General → Video/Audio
Product: Firefox for Android → Core
Reporter | ||
Comment 3•12 years ago
|
||
This is also reproducible on an assortment of devices, such as the LGE Nexus 4, and Samsung Galaxy Nexus and this Alcatel One Touch EVO 7" Tablet; this seems like a recent regression and not specific to a device.
Keywords: regression,
regressionwindow-wanted
Summary: Full-screen HTML5 video broken in portrait orientation → Android mobile HTML5 video in full-screen is broken in portrait orientation
Reporter | ||
Updated•12 years ago
|
status-firefox23:
--- → affected
Reporter | ||
Comment 5•12 years ago
|
||
Cristian, can you help find a regression range?
Flags: needinfo?(nicolae.cristian)
Comment 6•12 years ago
|
||
The regression window for this issue is:
good build: 07.03.2013
bad build: 08.03.2013
pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=ee4879719f78&tochange=cb432984d5ce
Flags: needinfo?(nicolae.cristian)
Reporter | ||
Updated•12 years ago
|
Reporter | ||
Updated•12 years ago
|
Blocks: dynamic-toolbar
Keywords: regressionwindow-wanted
Reporter | ||
Updated•12 years ago
|
Component: Video/Audio → General
Product: Core → Firefox for Android
Version: unspecified → Firefox 22
Comment 7•12 years ago
|
||
The tinderbox inbound builds are:
Good build: 1362588481
Bad build: 1362589064
Pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=42845185ca07&tochange=5948f1c95fbe
Updated•12 years ago
|
Assignee: nobody → wjohnston
tracking-fennec: ? → 22+
Comment 9•12 years ago
|
||
From bug 855240:
"A further note, been trying to debug this - the bug occurs regardless of orientation, and when the dynamic toolbar is disabled too. It seems to oscillate between the window size and some larger size, for which I've not yet figured out the relation."
Bug 859946 likely has the same root cause.
Comment 10•12 years ago
|
||
I have a fix (at least for bug 855240) that isn't too horrible :) Will verify full-screen video playback and fix that too, if it doesn't fix that (which it may not).
Comment 11•12 years ago
|
||
On second thoughts, it isn't going to help me to conflate these two separate issues, will reopen 855240.
Updated•12 years ago
|
Whiteboard: [html5]
Updated•12 years ago
|
Whiteboard: [html5] → [html5Video]
Updated•12 years ago
|
Assignee: wjohnston → chrislord.net
Comment 13•12 years ago
|
||
Could someone from front-end take this?
I think all it needs is to call hideMargins() when full-screening a video (and maybe call showMargins() if they were visible pre-fullscreen?) and it'd be a nice introduction to the code for someone.
Assignee: chrislord.net → nobody
Flags: needinfo?(mark.finkle)
Updated•12 years ago
|
Assignee: nobody → wjohnston
Updated•12 years ago
|
Summary: Android mobile HTML5 video in full-screen is broken in portrait orientation → Android mobile HTML5 video in full-screen does not fill screen
Comment 17•12 years ago
|
||
we're disabling dynamic toolbar for 22, bumping to 23
tracking-fennec: 22+ → 23+
Assignee | ||
Comment 18•12 years ago
|
||
I can't really reproduce this (partly because none of the videos on Aaron's test page work for me?) I think this does what you describe chris? This doesn't maintain state either (i.e. the urlbar will show whenever you come out of fullscreen). I think that might actually be nice?
Attachment #746088 -
Flags: review?(chrislord.net)
Reporter | ||
Comment 19•12 years ago
|
||
(In reply to Wesley Johnston (:wesj) from comment #18)
> Created attachment 746088 [details] [diff] [review]
> Patch 1/2
>
> I can't really reproduce this (partly because none of the videos on Aaron's
> test page work for me?)
More block-listings recently landed; maybe you're hitting one on your device. SII? How about http://cd.pn/b/
Comment 20•12 years ago
|
||
Comment on attachment 746088 [details] [diff] [review]
Patch 1/2
Review of attachment 746088 [details] [diff] [review]:
-----------------------------------------------------------------
This does what I suggested, but there are problems;
1- There's no checking or flag or anything to stop the margins being shown elsewhere
2- We don't tell Gecko that the viewport margins have disappeared, so the page may not be sized full-screen
I think we should fix both of these things. Also, sorry this review took so long, I missed the mail somehow :/
::: mobile/android/base/BrowserApp.java
@@ +1290,3 @@
> mBrowserToolbar.hide();
> + if (isDynamicToolbarEnabled()) {
> + mLayerView.getLayerMarginsAnimator().hideMargins(false);
If we're hiding the toolbar, we should probably just immediately hide the margins here.
Attachment #746088 -
Flags: review?(chrislord.net) → review-
Reporter | ||
Updated•12 years ago
|
status-firefox24:
--- → affected
Version: Firefox 22 → Firefox 23
Reporter | ||
Comment 21•12 years ago
|
||
So, 22 is indeed affected here on mozilla-beta; despite having the dynamic-toolbar disabled.
Here is a screenshot from http://cd.pn/b full-screen on my Nexus 4 using Firefox Beta on Google Play.
http://cl.ly/image/2j3M2h0r3121
Version: Firefox 23 → Firefox 22
Reporter | ||
Updated•12 years ago
|
tracking-fennec: 23+ → ?
Reporter | ||
Updated•12 years ago
|
tracking-firefox22:
--- → ?
Comment 23•12 years ago
|
||
(In reply to Aaron Train [:aaronmt] from comment #21)
> So, 22 is indeed affected here on mozilla-beta; despite having the
> dynamic-toolbar disabled.
>
> Here is a screenshot from http://cd.pn/b full-screen on my Nexus 4 using
> Firefox Beta on Google Play.
>
> http://cl.ly/image/2j3M2h0r3121
This screen makes it look like it isn't related to the dynamic toolbar...
Comment 24•12 years ago
|
||
Wes - Can you repro using STR in comment 21 ?
Assignee | ||
Comment 25•12 years ago
|
||
I can! From some logging it looks like the video width == window.outerWidth. I'll have to keep digging to see what's wrong.
Flags: needinfo?(wjohnston)
Comment 26•11 years ago
|
||
(In reply to Chris Lord [:cwiiis] from comment #23)
> (In reply to Aaron Train [:aaronmt] from comment #21)
> > So, 22 is indeed affected here on mozilla-beta; despite having the
> > dynamic-toolbar disabled.
> >
> > Here is a screenshot from http://cd.pn/b full-screen on my Nexus 4 using
> > Firefox Beta on Google Play.
> >
> > http://cl.ly/image/2j3M2h0r3121
>
> This screen makes it look like it isn't related to the dynamic toolbar...
In bug 876562, cpearce mentions that this issue is also present on B2G, so I think that's a separate issue from the blue bar that's appearing where the toolbar would be.
Updated•11 years ago
|
Updated•11 years ago
|
tracking-fennec: ? → 22+
Comment 27•11 years ago
|
||
Let's make this bug about the dynamic toolbar issue, bug 876562 can be about the layout issue.
Given that this is a dynamic toolbar issue, this should probably track 23, not 22.
Summary: Android mobile HTML5 video in full-screen does not fill screen → Empty space at the top of fullscreen HTML5 video with dynamic toolbar enabled
Updated•11 years ago
|
tracking-fennec: 22+ → 23+
Comment 28•11 years ago
|
||
Wes, when I applied your patch, I seemed to have the inverse problem, and a blue bar showed up at the bottom of the screen :/
I was testing with ted's simple fullscreen testcase:
http://people.mozilla.com/~tmielczarek/fullscreen.html
I kinda wonder if we'll need a fix for the content issue (bug 876562) before we can come up with a good fix for this blank toolbar space issue.
Reporter | ||
Updated•11 years ago
|
Status: NEW → ASSIGNED
Updated•11 years ago
|
relnote-firefox:
--- → ?
Comment 30•11 years ago
|
||
Alex, I think you might have wanted to relnote bug 876562, not this one (this is only an issue with the dynamic toolbar enabled, which it's not for 22).
Comment 31•11 years ago
|
||
Comment on attachment 746088 [details] [diff] [review]
Patch 1/2
Review of attachment 746088 [details] [diff] [review]:
-----------------------------------------------------------------
After tn's patch in bug 876562 is applied, this patch (or some cleaner variant) should do the trick to fix the rest of this bug.
Comment 32•11 years ago
|
||
(In reply to :Margaret Leibovic from comment #30)
> Alex, I think you might have wanted to relnote bug 876562, not this one
> (this is only an issue with the dynamic toolbar enabled, which it's not for
> 22).
Thanks Margaret.
relnote-firefox:
? → ---
Updated•11 years ago
|
tracking-firefox23:
--- → +
Comment 34•11 years ago
|
||
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #31)
> Comment on attachment 746088 [details] [diff] [review]
> Patch 1/2
>
> Review of attachment 746088 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> After tn's patch in bug 876562 is applied, this patch (or some cleaner
> variant) should do the trick to fix the rest of this bug.
That patch is on 23 now, can we get a nom on this for uplift with a risk eval?
Flags: needinfo?(wjohnston)
Comment 35•11 years ago
|
||
The bug 876562 fix made this less horrible, but it's still broken. My simple testcase:
http://people.mozilla.com/~tmielczarek/fullscreen.html
It should produce an all-black screen when you tap on the black box, but now it leaves an empty space where the toolbar was.
Comment 36•11 years ago
|
||
Here's what screenshot.html looks like on my Nexus 4 after tapping the black box on a recent Nightly (2013-07-07).
Assignee | ||
Comment 37•11 years ago
|
||
Updated. And now I'm really really really late. This uses setMaxMargins as it seemed like the easiest way to accomplish both things you mentioned. i.e. it locks the toolbar offscreen and notifies gecko that the page size may need to be updated.
Attachment #746088 -
Attachment is obsolete: true
Attachment #756871 -
Attachment is obsolete: true
Attachment #773607 -
Flags: review?(chrislord.net)
Flags: needinfo?(wjohnston)
Comment 38•11 years ago
|
||
Comment on attachment 773607 [details] [diff] [review]
Patch
Review of attachment 773607 [details] [diff] [review]:
-----------------------------------------------------------------
::: mobile/android/base/BrowserApp.java
@@ +1591,5 @@
> @Override
> public void run() {
> + if (fullscreen) {
> + if (isDynamicToolbarEnabled()) {
> + mBrowserToolbar.hide();
Probably want to do mBrowserToolbar.hide() and show() even if dynamic toolbar is not enabled, right?
Assignee | ||
Comment 39•11 years ago
|
||
Grr. Yeah. I was playing with moving things around to get something prettier and apparently moved to much.
Attachment #773607 -
Attachment is obsolete: true
Attachment #773607 -
Flags: review?(chrislord.net)
Attachment #773972 -
Flags: review?(chrislord.net)
Comment 40•11 years ago
|
||
Comment on attachment 773972 [details] [diff] [review]
Patch
Review of attachment 773972 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM, I think.
Attachment #773972 -
Flags: review?(chrislord.net) → review+
Assignee | ||
Comment 41•11 years ago
|
||
Assignee | ||
Comment 42•11 years ago
|
||
Comment on attachment 773972 [details] [diff] [review]
Patch
Noming this a bit early, because we need this on beta to ship dynamic toolbar.
[Approval Request Comment]
Bug caused by (feature/regressing bug #): dynamic toolbar
User impact if declined: fullscreen isn't quite full screen at first
Testing completed (on m-c, etc.): landed on mc today
Risk to taking this patch (and alternatives if risky): This is a fairly simple change for an edge case we just missed at first. I don't think there are many alternatives beyond disabling the dynamic toolbar.
String or IDL/UUID changes made by this patch: none
Attachment #773972 -
Flags: approval-mozilla-beta?
Attachment #773972 -
Flags: approval-mozilla-aurora?
Comment 43•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 25
Reporter | ||
Updated•11 years ago
|
Status: RESOLVED → VERIFIED
status-firefox25:
--- → verified
Comment 44•11 years ago
|
||
My simple fullscreen testcase does the right thing as of today's nightly. Thanks for fixing this!
Comment 45•11 years ago
|
||
Comment on attachment 773972 [details] [diff] [review]
Patch
Looks like it fixed the issue Ted was reporting.Lets take this on branches..The patch is simple and we do not want to ship dynamic toolbar with this bug.
Attachment #773972 -
Flags: approval-mozilla-beta?
Attachment #773972 -
Flags: approval-mozilla-beta+
Attachment #773972 -
Flags: approval-mozilla-aurora?
Attachment #773972 -
Flags: approval-mozilla-aurora+
Assignee | ||
Comment 46•11 years ago
|
||
Updated•11 years ago
|
Assignee | ||
Comment 47•11 years ago
|
||
Updated•11 years ago
|
Comment 48•11 years ago
|
||
Verified fixed on:
Build: Firefox for Android 24.0a2( 2013-07-16)
Device: Samsung Galaxy Nexus
OS: Android 4.1.1
Updated•11 years ago
|
Comment 49•11 years ago
|
||
Verified fixed on:
Build: Firefox for Android 23.0b6
Device: LG Nexus 4
OS: Android 4.2.2.
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•