Closed Bug 1793633 Opened 2 years ago Closed 2 years ago

nsEffectiveTLDService should use threadsafe refcounting

Categories

(Core :: DOM: Networking, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
107 Branch
Tracking Status
firefox107 --- fixed

People

(Reporter: nika, Assigned: nika)

References

Details

Attachments

(1 file)

nsEffectiveTLDService is already used off-main-thread through the ThirdPartyUtil service (hence the existing RwLock), however it is currently not threadsafe refcounted, or refcounted off-main-thread.

This type is used off-main-thread through the ThirdPartyUtil service
(hence the existing RwLock), however it is currently neither threadsafe
refcounted, nor refcounted off-main-thread. This change also allows it
to be directly used off-main-thread, rather than through the
ThirdPartyUtil service.

I also added thread-safety annotations to the fields to get better
static checking for the thread-safety of accesses.

Pushed by nlayzell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9c632e12a7f8 Make the nsEffectiveTLDService use threadsafe refcounting, r=necko-reviewers,dragana
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
See Also: → 1790459
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: