Browse Source

[NAVIGATOR] Add EULA to navigator

custom-2020
Matt A. Tobin 3 years ago committed by Roy Tam
parent
commit
1b5546a9b7
  1. 21
      projects/navigator/components/nsSuiteGlue.js
  2. 0
      projects/navigator/themes/modern/communicator/eula/eula.css
  3. 1
      projects/navigator/themes/modern/jar.mn

21
projects/navigator/components/nsSuiteGlue.js

@ -328,11 +328,18 @@ SuiteGlue.prototype = {
// profile is available
_onProfileAfterChange: function()
{
// check if we're in safe mode
if (Services.appinfo.inSafeMode) {
Services.ww.openWindow(null, "chrome://communicator/content/safeMode.xul",
"_blank", "chrome,centerscreen,modal,resizable=no", null);
// EULA
var eulaDone = null;
try {
eulaDone = Services.prefs.getBoolPref("app.eula.accepted");
}
catch (ex) { }
if (!eulaDone) {
Services.ww.openWindow(null, "chrome://communicator/content/eula/eula.xul",
"_blank", "chrome,centerscreen,modal,resizable=no", null);
}
this._copyDefaultProfileFiles();
},
@ -351,6 +358,12 @@ SuiteGlue.prototype = {
Services.prefs.savePrefFile(null);
}
// check if we're in safe mode
if (Services.appinfo.inSafeMode) {
Services.ww.openWindow(null, "chrome://communicator/content/safeMode.xul",
"_blank", "chrome,centerscreen,modal,resizable=no", null);
}
this._setUpUserAgentOverrides();
var timer = Components.classes["@mozilla.org/timer;1"]

0
communicator/components/eula/skin/modern/eula.css → projects/navigator/themes/modern/communicator/eula/eula.css

1
projects/navigator/themes/modern/jar.mn

@ -159,6 +159,7 @@ modern.jar:
skin/modern/communicator/sync/syncSetup.css (communicator/sync/syncSetup.css)
skin/modern/communicator/sync/syncCommon.css (communicator/sync/syncCommon.css)
skin/modern/communicator/sync/syncQuota.css (communicator/sync/syncQuota.css)
skin/communicator/eula/eula.css (communicator/eula/eula.css)
skin/modern/editor/EditorDialog.css (editor/EditorDialog.css)
skin/modern/editor/editor.css (editor/editor.css)
skin/modern/editor/editorModeToolbar.css (editor/editorModeToolbar.css)

Loading…
Cancel
Save