DOMPreferences was introduced (but it's not landed yet because of some
mochitest failures) to cleanup how preferences are managed by workers.

Preferences getters/setters are main-thread only and, currently, in order
to propagate a white-list of prefs [1], we have to dispatch runnables to
any active workers each time one of them changes.
DOMPreferences uses atomic prefs getters introduced by bug 1417741 to avoid
all of this.

We can continue the discussion of this feature on bugzilla. I'll NI you
there.

[1] https://searchfox.org/mozilla-central/source/dom/workers/WorkerPrefs.h

On Sun, Dec 17, 2017 at 9:38 PM, Nicholas Nethercote <n.netherc...@gmail.com
> wrote:

> Hi,
>
> I recently became the module owner of Prefs, and there are several peers.
> In the past it was an ill-maintained module, but that is no longer the
> case.
>
> I have been doing a bunch of work to improve Prefs. As part of this I wrote
> a document that describes how they currently work, and some of their
> problems:
> https://docs.google.com/document/d/1V5Wc9bXwfgMG2JOsswvDPVwZl_
> xiaSBxwJXf3fiEaU8/
>
> I am working on a redesign that will fix a lot of the problems. There was a
> meeting about this in Austin. I hope to implement this in Q1 2018.
>
> By chance, I just discovered that a new DOMPreferences class has been
> created in bug 1419771.
> As far as I can tell, it was created and reviewed by DOM peers without any
> input from Prefs peers. Although the changes are all within dom/, it was
> still an unpleasant surprise, because this is an additional thing I'm going
> to have to deal with in my redesign, on top of the existing gfxPrefs and
> MediaPrefs classes.
>
> If you have changes related to Prefs, please let me (or another Prefs peer)
> know about it. Thanks.
>
> Nick
> _______________________________________________
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to