Closed Bug 1420939 Opened 7 years ago Closed 6 years ago

Add an asynchronous version of the description height workaround

Categories

(Firefox :: Toolbars and Customization, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 60
Tracking Status
firefox57 --- wontfix
firefox58 --- wontfix
firefox59 --- wontfix
firefox60 --- fixed

People

(Reporter: Paolo, Assigned: Paolo)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This prevents synchronous reflows when opening subviews of the panelmultiview element.
Depends on: 1416498
Paolo, are you still working on this set of bugs?
Flags: needinfo?(paolo.mozmail)
Priority: -- → P5
As we discussed at the performance planning today, reducing reflows in the location bar popup may be a higher priority.
Flags: needinfo?(paolo.mozmail)
Blocks: 1390040
Assignee: nobody → paolo.mozmail
Status: NEW → ASSIGNED
Priority: P5 → P1
Depends on: 1428839
No longer depends on: 1416498
Comment on attachment 8954596 [details]
Bug 1420939 - Add an asynchronous version of the description height workaround.

https://reviewboard.mozilla.org/r/223692/#review229726


Code analysis found 2 defects in this patch:
 - 2 defects found by mozlint

You can run this analysis locally with:
 - `./mach lint path/to/file` (JS/Python)


If you see a problem in this automated review, please report it here: http://bit.ly/2y9N9Vx


::: browser/components/customizableui/PanelMultiView.jsm:1319
(Diff revision 1)
> -        continue;
> +          continue;
> -      }
> +        }
>  
> -      items.push({ element });
> +        items.push({ element });
> -    }
> +      }
> +    }

Error: Missing semicolon. [eslint: semi]

::: browser/components/customizableui/PanelMultiView.jsm:1338
(Diff revision 1)
>      // may contain wrapping text.
> +    let measureItems = () => {
> -    for (let item of items) {
> +      for (let item of items) {
> -      item.bounds = item.element.getBoundingClientRect();
> +        item.bounds = item.element.getBoundingClientRect();
> -    }
> +      }
> +    }

Error: Missing semicolon. [eslint: semi]
Comment on attachment 8954596 [details]
Bug 1420939 - Add an asynchronous version of the description height workaround.

https://reviewboard.mozilla.org/r/223692/#review230012

Besides the reviewbot nits this looks OK, assuming green try etc.
Attachment #8954596 - Flags: review?(gijskruitbosch+bugs) → review+
Pushed by paolo.mozmail@amadzone.org:
https://hg.mozilla.org/integration/mozilla-inbound/rev/2b0380882e88
Add an asynchronous version of the description height workaround. r=Gijs
https://hg.mozilla.org/mozilla-central/rev/2b0380882e88
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: