port bug 1547718 to thunderbird - killing onsync{to,from}preference - Remove `new Function` from preferencesBindings.js
Categories
(Thunderbird :: General, task, P3)
Tracking
(Not tracked)
People
(Reporter: mkmelin, Assigned: darktrojan)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
darktrojan
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1547718 +++
This bug is to handle killing onsync{to,from}preference in Thunderbird. m-c is doing this early (-ish) in the 70 cycle. WIP patch in https://phabricator.services.mozilla.com/D32326
Geoff, please have a look.
Assignee | ||
Comment 1•5 years ago
|
||
Comment 2•5 years ago
|
||
Bug 1547718 is about to land, so we need some action here, please.
Assignee | ||
Comment 5•5 years ago
|
||
(In reply to :aceman from comment #3)
(I assume this has to be applied with bug 1547718 too.)
I played with this modifying e.g. the number of MBs for the disk cache size
(on Advanced pane) and the "query OCSP" option. Why do I get both syncToPref
and then syncFromPref functions called when modifying the value in the UI?
It appears setting the value of a Preference object fires a change event and the listeners to it take no notice of what triggered the event, just go and get the value again. Seems a bit silly but ultimately it doesn't really matter and it's always done that.
Why can we limit this to the .instantApply == false case?
Actually that's a mistake (should be the other case) but it also doesn't really matter as it works either way. I'll fix it anyway.
+document.getElementById("paneApplications")
.addEventListener("paneload", () => {
Preferences.addSyncFromPrefListener(document.getElementById("saveWhere"),
() => gDownloadDirSection.onReadUseDownloadDir());
Why is this moved into downloads.js?
Despite the name, downloads.js is part of this pane, and it contains the function we're calling.
Assignee | ||
Comment 6•5 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/2f5aab4c8902
Port bug 1547718: Remove onsync{to,from}preference. r=aceman
Updated•5 years ago
|
Description
•