"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "application/basilisk/base/content/sync/utils.js" between
UXP-2019.03.27.tar.gz and UXP-2019.06.08.tar.gz

About: Basilisk is a full-featured, optimized browser derived from the code behind the pre-Servo Firefox browser (29–56 era). UXP = Unified XUL Platform. Source code.

utils.js  (UXP-2019.03.27):utils.js  (UXP-2019.06.08)
skipping to change at line 17 skipping to change at line 17
// chrome JS; see Bug 433295 and Bug 757351. // chrome JS; see Bug 433295 and Bug 757351.
const PERMISSIONS_RWUSR = 0x180; const PERMISSIONS_RWUSR = 0x180;
// Weave should always exist before before this file gets included. // Weave should always exist before before this file gets included.
var gSyncUtils = { var gSyncUtils = {
get bundle() { get bundle() {
delete this.bundle; delete this.bundle;
return this.bundle = Services.strings.createBundle("chrome://browser/locale/ syncSetup.properties"); return this.bundle = Services.strings.createBundle("chrome://browser/locale/ syncSetup.properties");
}, },
get fxAccountsEnabled() {
let service = Components.classes["@mozilla.org/weave/service;1"]
.getService(Components.interfaces.nsISupports)
.wrappedJSObject;
return service.fxAccountsEnabled;
},
// opens in a new window if we're in a modal prefwindow world, in a new tab ot herwise // opens in a new window if we're in a modal prefwindow world, in a new tab ot herwise
_openLink: function (url) { _openLink: function (url) {
let thisDocEl = document.documentElement, let thisDocEl = document.documentElement,
openerDocEl = window.opener && window.opener.document.documentElement; openerDocEl = window.opener && window.opener.document.documentElement;
if (thisDocEl.id == "accountSetup" && window.opener && if (thisDocEl.id == "accountSetup" && window.opener &&
openerDocEl.id == "BrowserPreferences" && !openerDocEl.instantApply) openerDocEl.id == "BrowserPreferences" && !openerDocEl.instantApply)
openUILinkIn(url, "window"); openUILinkIn(url, "window");
else if (thisDocEl.id == "BrowserPreferences" && !thisDocEl.instantApply) else if (thisDocEl.id == "BrowserPreferences" && !thisDocEl.instantApply)
openUILinkIn(url, "window"); openUILinkIn(url, "window");
else if (document.documentElement.id == "change-dialog") else if (document.documentElement.id == "change-dialog")
skipping to change at line 80 skipping to change at line 73
updatePassphrase: function () { updatePassphrase: function () {
if (Weave.Utils.ensureMPUnlocked()) if (Weave.Utils.ensureMPUnlocked())
this.openChange("UpdatePassphrase"); this.openChange("UpdatePassphrase");
}, },
resetPassword: function () { resetPassword: function () {
this._openLink(Weave.Service.pwResetURL); this._openLink(Weave.Service.pwResetURL);
}, },
get tosURL() {
let root = this.fxAccountsEnabled ? "fxa." : "";
return Weave.Svc.Prefs.get(root + "termsURL");
},
openToS: function () { openToS: function () {
this._openLink(this.tosURL); this._openLink(Weave.Svc.Prefs.get("termsURL"));
}, },
get privacyPolicyURL() { openPrivacyPolicy: function () {
let root = this.fxAccountsEnabled ? "fxa." : ""; this._openLink(Weave.Svc.Prefs.get("privacyURL"));
return Weave.Svc.Prefs.get(root + "privacyURL");
}, },
openPrivacyPolicy: function () { openFirstSyncProgressPage: function () {
this._openLink(this.privacyPolicyURL); this._openLink("about:sync-progress");
}, },
/** /**
* Prepare an invisible iframe with the passphrase backup document. * Prepare an invisible iframe with the passphrase backup document.
* Used by both the print and saving methods. * Used by both the print and saving methods.
* *
* @param elid : ID of the form element containing the passphrase. * @param elid : ID of the form element containing the passphrase.
* @param callback : Function called once the iframe has loaded. * @param callback : Function called once the iframe has loaded.
*/ */
_preparePPiframe: function(elid, callback) { _preparePPiframe: function(elid, callback) {
 End of changes. 5 change blocks. 
18 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)