Open Bug 1992437 Opened 9 months ago Updated 12 days ago

Move XPCOMUtils.defineLazy/declareLazy to ChromeUtils

Categories

(Core :: XPConnect, task)

task

Tracking

()

ASSIGNED

People

(Reporter: standard8, Assigned: standard8)

References

(Blocks 1 open bug)

Details

Attachments

(5 files)

We originally added XPCOMUtils.defineLazy/declareLazy in bug 1945464 as a way of prototyping them and testing out their use.

We are starting to use them in various places to aid with TypeScript integration, and hence we are having to re-include XPCOMUtils in various places.

In the review of the patches, it was suggested that we should move these implementations to C++, i.e. via ChromeUtils, to be more efficient.

Depends on: 1993543
Attachment #9586750 - Attachment description: - Bug 1992437 - Port XPCOMUtils.defineLazy to ChromeUtils. → WIP: - Bug 1992437 - Port XPCOMUtils.defineLazy to ChromeUtils.
Assignee: nobody → standard8
Attachment #9586751 - Attachment description: - Bug 1992437 - Port XPCOMUtils.declareLazy to ChromeUtils. → WIP: - Bug 1992437 - Port XPCOMUtils.declareLazy to ChromeUtils.
Status: NEW → ASSIGNED
Attachment #9586753 - Attachment description: - Bug 1992437 - Remove XPCOMUtils.declareLazy and XPCOMUtils.defineLazy. → WIP: - Bug 1992437 - Remove XPCOMUtils.declareLazy and XPCOMUtils.defineLazy.
Attachment #9586752 - Attachment description: - Bug 1992437 - Migrate uses of XPCOMUtils.declareLazy to ChromeUtils.declareLazy. → WIP: - Bug 1992437 - Migrate uses of XPCOMUtils.declareLazy to ChromeUtils.declareLazy.
Attachment #9586750 - Attachment description: WIP: - Bug 1992437 - Port XPCOMUtils.defineLazy to ChromeUtils. → - Bug 1992437 - Port XPCOMUtils.defineLazy to ChromeUtils. r?arai!,#dom-core!
Attachment #9586751 - Attachment description: WIP: - Bug 1992437 - Port XPCOMUtils.declareLazy to ChromeUtils. → Bug 1992437 - Port XPCOMUtils.declareLazy to ChromeUtils. r?arai!,#dom-core!
Attachment #9586750 - Attachment description: - Bug 1992437 - Port XPCOMUtils.defineLazy to ChromeUtils. r?arai!,#dom-core! → Bug 1992437 - Port XPCOMUtils.defineLazy to ChromeUtils. r?arai!,#dom-core!

Exploration of using webidl types as much as possible in the lazy preference getters. We still can't transition more to the webidl, as the lazy getters are functions that are injected onto JavaScript objects.

If we want to go ahead with this, then I'll fold it into D300779 before landing. I've kept it separate for now in case we don't want to go this far.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: