Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloads not being instantly displayed under "brave://downloads" until window resize #5330

Closed
kjozwiak opened this issue Jul 23, 2019 · 13 comments · Fixed by brave/brave-core#3212

Comments

@kjozwiak
Copy link
Member

kjozwiak commented Jul 23, 2019

Test plan

See brave/brave-core#3212

Description

Downloads are not being displayed under brave://downloads/ instantly at times. You'll need to resize the current browser window for the entries to be displayed.

Couldn't reproduce it with 76.0.3809.71 (Official Build) beta. Might be a regression with C76 as every channel but release is affected.

Steps to Reproduce

  1. launch brave with a clean profile
  2. visit https://www.thinkbroadband.com/download
  3. download a few small file from the bottom of the page (I used Extra Small File (5MB) & Small File (10MB))
  4. once the download has completed, click on Show All via the download bar

Actual result:

downloadIssue

Expected result:

Downloads entries should be instantly displayed under brave://downloads/ without the need to resize the browser window.

Reproduces how often:

100% reproducible using the above STR.

Brave version (brave://version info)

Brave 0.69.77 Chromium: 76.0.3809.62 (Official Build) nightly (64-bit)
Revision 7b77856b3aa34d72f246d12340fc1ded8b2c0e83-refs/branch-heads/3809@{#798}
OS Mac OS X

Version/Channel Information:

  • Can you reproduce this issue with the current release? Not reproducible using 0.66.101 Chromium: 75.0.3770.142
  • Can you reproduce this issue with the beta channel? Reproducible using 0.67.114 Chromium: 76.0.3809.62
  • Can you reproduce this issue with the dev channel? Reproducible using 0.68.108 Chromium: 76.0.3809.62
  • Can you reproduce this issue with the nightly channel? Reproducible using 0.69.77 Chromium: 76.0.3809.62

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields? N/A
  • Does the issue resolve itself when disabling Brave Rewards? N/A
  • Is the issue reproducible on the latest version of Chrome? No, couldn't reproduce using 76.0.3809.71 (Official Build) beta.

Miscellaneous Information:

CCing @brave/legacy_qa @rebron @bsclifton

@rebron rebron added the priority/P3 The next thing for us to work on. It'll ride the trains. label Jul 23, 2019
@GeetaSarvadnya
Copy link

The issue is reproducible on Windows 10 x64

Brave 0.67.112 Chromium: 76.0.3809.62 (Official Build) beta (64-bit)
Revision 7b77856b3aa34d72f246d12340fc1ded8b2c0e83-refs/branch-heads/3809@{#798}
OS Windows 10 OS Version 1803 (Build 17134.523)

@mkarolin
Copy link
Contributor

Reproduced in a debug version with 76.0.3809.72 on a Mac.

@mkarolin mkarolin assigned bsclifton and unassigned mkarolin Jul 24, 2019
@mkarolin
Copy link
Contributor

@bsclifton, didn't get a chance to take a closer look, assigning to you.

@GeetaSarvadnya
Copy link

@florisre
Copy link

florisre commented Aug 6, 2019

Reproduced in Version 0.67.123 Chromium: 76.0.3809.87 (Offizieller Build) (64-Bit) on Linux. Also, another user reports the same at community: https://community.brave.com/t/downloads-view-seems-to-be-broken-in-the-latest-dev-version/72838

@onmyouji
Copy link

onmyouji commented Aug 7, 2019

Reproduced in 0.67.123 Chromium: 76.0.3809.87 (Official Build) (64-bit) on Windows 10

@Laurence02
Copy link

Laurence02 commented Aug 8, 2019

Reproduced in Version 0.68.121 Chromium: 76.0.3809.100 (Official Build) beta (64-bit), on Windows 8.1.
On a similar note, I have a display error when Dark mode is active in the browser. Please see the screenshot for details.
2019-08-08 14_34_02-fish - Google Search - Brave

@mhidro
Copy link

mhidro commented Aug 13, 2019

Happens every time I open the downloads tab.
Just a blank screen until I hit F10 to open the inspect menu, which I guess resizes the window.

Version 0.67.125 Chromium: 76.0.3809.100 (Official Build) (64-bit)
OS: Windows 7 SP2 and Windows 10.

@Th3-A6add0n
Copy link

Happens every time I open the downloads tab.
Just a blank screen until I hit F10 to open the inspect menu, which I guess resizes the window.

Version 0.67.125 Chromium: 76.0.3809.100 (Official Build) (64-bit)
OS: Windows 7 SP2 and Windows 10.

Tbh, this is a good temporary solution. LOL

@rebron
Copy link
Collaborator

rebron commented Aug 15, 2019

+1 from @Xyncgas via #5668

@Laurence02
Copy link

Still exists in Version 0.69.107 Chromium: 76.0.3809.100 (Official Build) beta (64-bit).

@kjozwiak
Copy link
Member Author

@rebron @bsclifton we should reprioritize this as a P2. Definitely annoying folks and we're getting more 👍 from users.

+1 from https://twitter.com/kameshkotwani/status/1163347365379502080

@rebron rebron added priority/P2 A bad problem. We might uplift this to the next planned release. and removed priority/P3 The next thing for us to work on. It'll ride the trains. labels Aug 19, 2019
petemill added a commit to brave/brave-core that referenced this issue Aug 20, 2019
… polymer dom-if template

Fix brave/brave-browser#5330

This fixes the issue with the downloads page due to a timing issue with the download item list rendering. That list uses iron-list via downloads/manager.html. The list will not render if the list component's element does not have either a width or a height (via flex, explicit css, or otherwise). In the course of the page load, there is specific timing where the page has width *just* before the items that are provided to the iron-list are rendered. This timing could definitely be improved upstream.

The download page asks the toolbar whether the search field is clear or not (so that the download page knew to render the entire list of downloads, or one filtered to the search term).

Somehow having an extra polymer template to ensure had rendered before our toolbar would return the correct value for this caused this timing to be off, and so when the iron-list was first rendered it did not do anything because there was no width or height to the element. At any time later, forcing the iron-list to re-evaluate it's rendering ability by resizing the window (since it subscribes directly to this event), or running `downloadsList.fire('iron-resize')` directly, would caus the list to render successfully.

Interestingly, there is an attempt in the upstream code to force firing of this event to prevent this issue, but it actually happens too early, or rather it does not listen to all the properties that could cause this issue: https://cs.chromium.org/chromium/src/chrome/browser/resources/downloads/manager.js?rcl=044ab765751f0d98b0758a6de98265797ee67793&l=122
@bsclifton bsclifton added this to the 0.71.x - Nightly milestone Aug 20, 2019
@LaurenWags
Copy link
Member

LaurenWags commented Aug 20, 2019

Verified passed with

Brave 0.68.131 Chromium: 76.0.3809.100 (Official Build) (64-bit)
Revision ed9d447d30203dc5069e540f05079e493fc1c132-refs/branch-heads/3809@{#990}
OS Mac OS X

Verification passed on

Brave 0.68.131 Chromium: 76.0.3809.100 (Official Build) (64-bit)
Revision ed9d447d30203dc5069e540f05079e493fc1c132-refs/branch-heads/3809@{#990}
OS Ubuntu 18.04 LTS

Verification PASSED on macOS 10.14.6 x64 using the following build:

Brave 0.68.131 Chromium: 76.0.3809.100 (Official Build) (64-bit)
Revision ed9d447d30203dc5069e540f05079e493fc1c132-refs/branch-heads/3809@{#990}
OS Mac OS X

Verification passed on

Brave 0.68.131 Chromium: 76.0.3809.100 (Official Build) (64-bit)
Revision ed9d447d30203dc5069e540f05079e493fc1c132-refs/branch-heads/3809@{#990}
OS Windows 10 OS Version 1803 (Build 17134.523)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment