Closed Bug 1472821 Opened 6 years ago Closed 4 years ago

Support array of String for lazyRequireGetter

Categories

(DevTools :: Framework, enhancement)

enhancement
Not set
normal

Tracking

(firefox81 fixed)

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

Details

Attachments

(4 files)

Follow up to Bug 1465873, see Bug 1465873 comment 38:

(In reply to Brian Grinstead [:bgrins] from comment #38)
> Comment on attachment 8988174 [details]
> Bug 1465873 - part5: Move generic node utils from Node actor to layout/utils
> helper;
> 
> https://reviewboard.mozilla.org/r/253416/#review261070
> 
> ::: devtools/server/actors/inspector/node.js:19
> (Diff revision 3)
> >  
> >  loader.lazyRequireGetter(this, "getCssPath", "devtools/shared/inspector/css-logic", true);
> >  loader.lazyRequireGetter(this, "getXPath", "devtools/shared/inspector/css-logic", true);
> >  loader.lazyRequireGetter(this, "findCssSelector", "devtools/shared/inspector/css-logic", true);
> >  
> > +loader.lazyRequireGetter(this, "isAfterPseudoElement", "devtools/shared/layout/utils", true);
> 
> This makes me think we should update lazyRequireGetter to optionally take
> array of names as a second parameter (like
> XPCOMUtils.defineLazyScriptGetter).
>
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED

Depends on D85268

To illustrate the added value of supporting arrays in lazyRequireGetter

Attachment #9166799 - Attachment description: Bug 1472821 - Use array or properties to call lazyRequireGetter in inspector actors → Bug 1472821 - Use array of properties to call lazyRequireGetter in inspector actors
Blocks: 1656825
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0cff2a1c92de
Support array of String for lazyRequireGetter r=nchevobbe,rcaliman
https://hg.mozilla.org/integration/autoland/rev/e94159a1c5cd
Update linter to detect array of properties defined by lazyRequireGetter r=Standard8
https://hg.mozilla.org/integration/autoland/rev/b8156d89e6bf
Use array of properties to call lazyRequireGetter in inspector actors r=rcaliman
https://hg.mozilla.org/integration/autoland/rev/84b257d07031
Move webconsole fixture mapping for async-storage in requireHacker r=nchevobbe
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: