forked from mirrors/gecko-dev
The WebExtension overflow list is created lazily because the panel itself is lazy, and only gets inserted the first time it is needed. Originally, I had written a separate function `#getWebExtList()` to do the work of forcing the WebExtension overflow list to de-lazify, and then hold a reference to it in #webExtList. It turns out, that's a bit of a footgun. More than once, I've used #webExtList directly, forgetting that the value might turn out to be `null` because the list hasn't delazified yet. In order to smooth out that rough edge, this patch makes `#webExtList` a memoizing (evalutes once, caches the return value for subsequent calls) getter so that anything that uses it doesn't have to worry about the lazification. The reference member is now called #webExtListRef, and I've added documentation about how it's probably best not to use it directly. Differential Revision: https://phabricator.services.mozilla.com/D162585 |
||
|---|---|---|
| .. | ||
| content | ||
| test | ||
| CustomizableUI.jsm | ||
| CustomizableWidgets.jsm | ||
| CustomizeMode.jsm | ||
| DragPositionManager.jsm | ||
| moz.build | ||
| PanelMultiView.jsm | ||
| SearchWidgetTracker.jsm | ||