Closed Bug 1360639 Opened 8 years ago Closed 8 years ago

Space behind toolbar can be seen when entering/leaving the tabs tray

Categories

(GeckoView :: General, defect)

55 Branch
All
Android
defect
Not set
normal

Tracking

(firefox54 unaffected, firefox55 fixed)

RESOLVED FIXED
mozilla55
Tracking Status
firefox54 --- unaffected
firefox55 --- fixed

People

(Reporter: JanH, Assigned: rbarker)

References

(Depends on 1 open bug)

Details

Attachments

(2 files)

When the web content slides out of/into view on opening/closing the tabs tray, a flash of red can be glimpsed.
Do you have steps to reproduce? I'm not seeing it on my device.
Flags: needinfo?(jh+bugzilla)
Attached video toolbar+tabs tray.mp4
Flags: needinfo?(jh+bugzilla)
Assignee: nobody → rbarker
The problem seems to be that when hiding the page for the tab view, the toolbar chrome and the content view are not animated together so the toolbar is not covering the content while being animated off screen. Since this is an android animation I don't see a good solution. To mitigate the problem, instead of drawing a red rectangle where the toolbar should be, just leave the clear color which on android is the pages background color.
Comment on attachment 8863021 [details] Bug 1360639 - Use the page background color when no dynamic toolbar snapshot is available https://reviewboard.mozilla.org/r/134864/#review137804 ::: gfx/layers/composite/LayerManagerComposite.cpp:1150 (Diff revision 1) > - if (!effects.mPrimaryEffect) { > - // No toolbar texture so just draw a red square > + // If GetToolbarEffect return null, nothing is rendered so if not covered with the real toolbar chrome > + // the clear color will be visible which on Android is the pages background color. I'm having a lot of trouble parsing this comment. Please stop the first sentence after "nothing is rendered" and make the rest of it a separate sentence (or sentences), rewording as needed.
Attachment #8863021 - Flags: review?(bugmail) → review+
Interestingly enough now, having unplugged my phone from my computer in the meantime, I'm no longer really seeing this either. So presumably something there must have been eating CPU cycles and caused the toolbar diverge noticeably from the content beneath it. Folks with really slow phone will probably still appreciate it even during normal usage, though.
Pushed by rbarker@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/43268ba5e94c Use the page background color when no dynamic toolbar snapshot is available r=kats
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Depends on: 1360913
Product: Firefox for Android → GeckoView
Target Milestone: Firefox 55 → mozilla55

Moving toolbar bugs to the new GeckoView::Toolbar component.

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

Attachment

General

Created:
Updated:
Size: