Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Editing a bookmark (or folder) locks up the browser #9674

Closed
bsclifton opened this issue Jun 23, 2017 · 4 comments · Fixed by #9710
Closed

Editing a bookmark (or folder) locks up the browser #9674

bsclifton opened this issue Jun 23, 2017 · 4 comments · Fixed by #9710

Comments

@bsclifton
Copy link
Member

bsclifton commented Jun 23, 2017

Test plan

#9710 (comment)


  • Did you search for similar issues before submitting this one?
    Yes

  • Describe the issue you encountered:
    Bringing up the modal used to add/edit bookmarks/folders is horribly slow

  • Platform (Win7, 8, 10? macOS? Linux distro?):
    macOS

  • Brave Version (revision SHA):
    0.17.6

  • Steps to reproduce:

    1. Have a decent number of bookmarks (maybe 500 - 1,000) and a good amount of history
    2. Right click on bookmarks toolbar, pick Add folder
    3. Browser is frozen
    4. Wait 4 seconds or more for the modal to show up
    5. Try typing into the textbox (giving a name to the folder)
    6. Notice that typing is extremely lagged. It's unusable
  • Actual result:
    The browser freezes up and visibly shows the lag (often turning mouse into beach ball icon)

  • Expected result:
    The UI should be responsive and snappy

  • Will the steps above reproduce in a fresh profile? If not what other info can be added?

  • Is this an issue in the currently released version?

  • Can this issue be consistently reproduced?

  • Extra QA steps:
    1.
    2.
    3.

  • Screenshot if needed:

  • Any related issues:

@bsclifton
Copy link
Member Author

Assigning to @NejcZdovc; this may be improved by some of the upcoming redux component work / optimizations

@NejcZdovc
Copy link
Contributor

NejcZdovc commented Jun 26, 2017

Ok found one real bottle necks and one improvment.

First: https://github.com/brave/browser-laptop/blob/master/app/renderer/components/bookmarks/addEditBookmarkHanger.js#L181

If I disabled this line I get computed time for merge props:
image

If I enabled the first one:
image

(this one can be improved, but it's not a bottle neck) Second: https://github.com/brave/browser-laptop/blob/master/app/renderer/components/bookmarks/addEditBookmarkHanger.js#L187

For the second one instead of using find we could use some, because we only need to know if at least one bookmark or folder is in site list.

Test was done with bookmark export provided by @bsclifton (it has lizard people in and some other bookmarks cca 6k)

NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this issue Jun 26, 2017
Resolves brave#9674

Auditors: @bsclifton

Test Plan:
- have a lot of bookmarks (1k +)
- try to add a bookmark with clicking on the star
@NejcZdovc NejcZdovc added this to the 0.18.x (Developer Channel) milestone Jun 27, 2017
NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this issue Jul 4, 2017
Resolves brave#9674

Auditors: @bsclifton

Test Plan:
- have a lot of bookmarks (1k +)
- try to add a bookmark with clicking on the star
NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this issue Jul 5, 2017
Resolves brave#9674

Auditors: @bsclifton

Test Plan:
- have a lot of bookmarks (1k +)
- try to add a bookmark with clicking on the star
NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this issue Jul 5, 2017
Resolves brave#9674

Auditors: @bsclifton

Test Plan:
- have a lot of bookmarks (1k +)
- try to add a bookmark with clicking on the star
NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this issue Jul 5, 2017
Resolves brave#9674

Auditors: @bsclifton

Test Plan:
- have a lot of bookmarks (1k +)
- try to add a bookmark with clicking on the star
NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this issue Jul 7, 2017
Resolves brave#9674

Auditors: @bsclifton

Test Plan:
- have a lot of bookmarks (1k +)
- try to add a bookmark with clicking on the star
NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this issue Jul 7, 2017
Resolves brave#9674

Auditors: @bsclifton

Test Plan:
- have a lot of bookmarks (1k +)
- try to add a bookmark with clicking on the star
NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this issue Jul 7, 2017
Resolves brave#9674

Auditors: @bsclifton

Test Plan:
- have a lot of bookmarks (1k +)
- try to add a bookmark with clicking on the star
@NejcZdovc NejcZdovc modified the milestones: 0.19.x (Developer Channel), 0.18.x (Beta Channel) Jul 9, 2017
NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this issue Jul 11, 2017
Resolves brave#9674

Auditors: @bsclifton

Test Plan:
- have a lot of bookmarks (1k +)
- try to add a bookmark with clicking on the star
NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this issue Jul 11, 2017
Resolves brave#9674

Auditors: @bsclifton

Test Plan:
- have a lot of bookmarks (1k +)
- try to add a bookmark with clicking on the star
NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this issue Jul 11, 2017
Resolves brave#9674

Auditors: @bsclifton

Test Plan:
- have a lot of bookmarks (1k +)
- try to add a bookmark with clicking on the star
NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this issue Jul 11, 2017
Resolves brave#9674

Auditors: @bsclifton

Test Plan:
- have a lot of bookmarks (1k +)
- try to add a bookmark with clicking on the star
bsclifton added a commit that referenced this issue Jul 11, 2017
NejcZdovc added a commit that referenced this issue Jul 11, 2017
Resolves #9674

Auditors: @bsclifton

Test Plan:
- have a lot of bookmarks (1k +)
- try to add a bookmark with clicking on the star
@bigkahuna1uk
Copy link

This is still happening for the latest Brave release. Browser is completely locked up and has to be killed.

Name Version
Brave 0.18.14
rev ad92d02
Muon 4.3.6
libchromiumcontent 60.0.3112.78
V8 6.0.286.44
Node.js 7.9.0
Update Channel dev
OS Platform macOS
OS Release 16.7.0
OS Architecture x64

@NejcZdovc
Copy link
Contributor

@bigkahuna1uk this will be fixed in 0.19.x version. Coming really soon

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