I am going through your code trying to understand what is going on. Some parts are not clear to me. If you have 5 minutes, I would be glad to get some feedback from you.
The Polkey() function in tzsync.js is initiating a series of callbacks which will in total requests 3 different policy keys. Why? Why is the first one not enough?
Furthermore, in Polkey() you do this:
if (this.tzprefs.getCharPref("asversion") !== "2.5") {
wbxml = wbxml.replace("MS-WAP-Provisioning-XML", "MS-EAS-Provisioning-WBXML")
}
I think this should also be done inside the callback functions, or not?
Thanks for your time,
John