rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
this.historyDaysPrefChanged(); var self = this; function checkboxChanged() { self.onchangeHistoryDaysCheckbox(); } var historyDaysCheckbox = document.getElementById("rememberHistoryDays"); historyDaysCheckbox.addEventListener("CheckboxStateChange", checkboxChanged, false);
this._updateHistoryDaysUI();
init: function () { this.historyDaysPrefChanged(); var self = this; function checkboxChanged() { self.onchangeHistoryDaysCheckbox(); } var historyDaysCheckbox = document.getElementById("rememberHistoryDays"); historyDaysCheckbox.addEventListener("CheckboxStateChange", ...
if (windowDocShell) windowDocshell.parentURIContentListener = this;
if (windowDocShell) { windowDocshell .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIURIContentListener) .parentContentListener = this; }
init: function(toplevelWindow, contentWindow) { this.toplevelWindow = toplevelWindow; this.contentWindow = contentWindow; // hook up the whole parent chain thing var windowDocShell = this.convertWindowToDocShell(toplevelWindow); if (windowDocShell) windowDocshell.par...
if (gSourceEvent == nsIUpdateService.SOURCE_EVENT_USER) { document.getElementById("mismatch").setAttribute("next", "checking"); document.documentElement.advance();
if (gSourceEvent == nsIUpdateService.SOURCE_EVENT_MISMATCH) { var version = document.getElementById("version") version.setAttribute("next", "mismatch");
init: function () { gUpdateTypes = window.arguments[0]; gSourceEvent = window.arguments[1]; for (var i = 2; i < window.arguments.length; ++i) this.items.push(window.arguments[i].QueryInterface(nsIUpdateItem)); var pref = Components.classes["@mozilla.org/preferences-service;1"] ...
this.populateFonts();
init: function () { if (kLDAPPrefContractID in Components.classes) this.mLDAPPrefsService = Components.classes[kLDAPPrefContractID].getService(Components.interfaces.nsILDAPPrefsService); if (this.mLDAPPrefsService) { this.mLDAPPrefsService.migratePrefsIfNeeded(); } this.createDirectoriesList();...
var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService2); ioService.manageOfflineStatus = false;
init: function() { var os = Components.classes["@mozilla.org/observer-service;1"] .getService(Components.interfaces.nsIObserverService); os.addObserver(this, "network:offline-status-changed", false); var ioService = Components.classes["@mozilla.org/network/io-service;1"] .g...
var phishAfter = document.getElementById("phishAfter");
init: function () { const Cc = Components.classes, Ci = Components.interfaces; var providerNum = window.arguments[0].providerNum; var phishBefore = document.getElementById("phishBefore"); var phishAfter = document.getElementById("phishAfter"); var prefb = Cc["@mozilla.org/preferences-service;1"]. ...
var providerName = prefb.getCharPref(providerNum + ".name");
var providerName = prefb.getComplexValue(providerNum + ".name", Ci.nsISupportsString).data
init: function () { const Cc = Components.classes, Ci = Components.interfaces; var providerNum = window.arguments[0].providerNum; var phishBefore = document.getElementById("phishBefore"); var phishAfter = document.getElementById("phishAfter"); var prefb = Cc["@mozilla.org/preferences-service;1"]. ...
phishBefore.textContent = strings.getFormattedString("phishBefore", [providerName]); phishAfter.textContent = strings.getFormattedString("phishAfter", [providerName]);
phishBefore.textContent = strings.getFormattedString("phishBeforeText", [providerName]);
init: function () { const Cc = Components.classes, Ci = Components.interfaces; var providerNum = window.arguments[0].providerNum; var phishBefore = document.getElementById("phishBefore"); var phishAfter = document.getElementById("phishAfter"); var prefb = Cc["@mozilla.org/preferences-service;1"]. ...
this.createCharsetMenus(document.getElementById("viewDefaultCharset-menupopup"), "NC:DecodersRoot", document.getElementById('mailnews.view_default_charset').value);
init: function () { var preference = document.getElementById("mail.preferences.display.selectedTabIndex"); if (preference.value) document.getElementById("displayPrefs").selectedIndex = preference.value; // build the charset menu list. We do this by hand instead of using the xul template // build...
this.sort("rawHost");
init: function () { var os = Components.classes["@mozilla.org/observer-service;1"] .getService(Components.interfaces.nsIObserverService); os.addObserver(this, "cookie-changed", false); os.addObserver(this, "perm-changed", false); this._bundle = document.getElementById("bundlePre...
this.mPane = document.getElementById("paneGeneral");
this.mPane = document.getElementById("paneGeneral"); this.startPageCheck();
init: function () { this.mPane = document.getElementById("paneGeneral"); this.startPageCheck(); },
this.startPageCheck();
this.updatePlaySound();
init: function () { this.mPane = document.getElementById("paneGeneral"); this.startPageCheck(); },
throw Components.Exceptions('Only HTTP is supported');
throw Components.Exception('Only HTTP is supported');
init: function(serverURL) { var oURL = createInstance('@mozilla.org/network/standard-url;1', 'nsIURL'); oURL.spec = serverURL; // Make sure it is a complete spec // Note that we don't care what the scheme is otherwise. // Should we care? POST works only on http and http...
this.updateRemoteImagesState();
init: function () { this.mPane = document.getElementById("panePrivacy"); this.updateRemoteImagesState(); this.updateManualMarkMode(document.getElementById('manualMark').checked); this.updateJunkLogButton(document.getElementById('enableJunkLogging').checked); // Update the MP buttons this.u...
this.createLocalDirectoriesList();
init: function () { this.mPane = document.getElementById("panePrivacy"); this.updateRemoteImagesState(); this.updateManualMarkMode(document.getElementById('manualMark').checked); this.updateJunkLogButton(document.getElementById('enableJunkLogging').checked); // Update the MP buttons this.u...
this.mStatusFeedback.startMeteors();
init: function(aStatusFeedback, aSubscribeMode) { if (!gNumPendingFeedDownloads) // if we aren't already in the middle of downloading feed items... { this.mStatusFeedback = aStatusFeedback; this.mSubscribeMode = aSubscribeMode; this.mStatusFeedback.startMeteors(); this.mStatusFeedback.showS...
this.mStatusFeedback.showStatusString(aSubscribeMode ? GetNewsBlogStringBundle().GetStringFromName('subscribe-validating')
if (this.mStatusFeedback) { this.mStatusFeedback.startMeteors(); this.mStatusFeedback.showStatusString(aSubscribeMode ? GetNewsBlogStringBundle().GetStringFromName('subscribe-validating')
init: function(aStatusFeedback, aSubscribeMode) { if (!gNumPendingFeedDownloads) // if we aren't already in the middle of downloading feed items... { this.mStatusFeedback = aStatusFeedback; this.mSubscribeMode = aSubscribeMode; this.mStatusFeedback.startMeteors(); this.mStatusFeedback.showS...
}
init: function(aStatusFeedback, aSubscribeMode) { if (!gNumPendingFeedDownloads) // if we aren't already in the middle of downloading feed items... { this.mStatusFeedback = aStatusFeedback; this.mSubscribeMode = aSubscribeMode; this.mStatusFeedback.startMeteors(); this.mStatusFeedback.showS...
prefBranch.addObserver(PREF_SELECTED_WEB, this, true);
prefBranch.addObserver(PREF_SELECTED_WEB, this, false); window.addEventListener("unload", this, false);
init: function () { var _delayedPaneLoad = function(self) { self._initFeedReaders(); self.updateSelectedReader(); } setTimeout(_delayedPaneLoad, 0, this); // For web readers, we need to call setAutoHandler if the // preview page should be skipped (i.e. PREF_SELECTED_ACTION="reader") // To ...
this.createCharsetMenus(document.getElementById("viewDefaultCharset-menupopup"), "NC:DecodersRoot", document.getElementById('mailnews.view_default_charset').value);
init: function () { var preference = document.getElementById("mail.preferences.display.selectedTabIndex"); if (preference.value) document.getElementById("displayPrefs").selectedIndex = preference.value; this.mInitialized = true; },
this.onpageload( window.queuedTag );
this.onpageload( window.queuedTag, window.queuedWindow );
init: function () { if( window.queuedTag ) { this.onpageload( window.queuedTag ); } },
if (console.prefs["saveSettingsOnExit"]) { dispatch ("restore-settings", {settingsFile: console.prefs["settingsFile"]}); }
function init(){ dd ("init {"); var i; const WW_CTRID = "@mozilla.org/embedcomp/window-watcher;1"; const nsIWindowWatcher = Components.interfaces.nsIWindowWatcher; console.windowWatcher = Components.classes[WW_CTRID].getService(nsIWindowWatcher); const UC_CTRID = "@mozilla.org/intl/scriptab...
if (homepage)
if (homepage) {
function init(){ gExtensionID = window.arguments[0]; gExtensionDB = window.arguments[1]; var extensionsStrings = document.getElementById("extensionsStrings"); var rdfs = Components.classes["@mozilla.org/rdf/rdf-service;1"] .getService(Components.interfaces.nsIRDFService); var extension = rd...
if (!/^https?:/.test(homepage)) homepage = null; }
function init(){ gExtensionID = window.arguments[0]; gExtensionDB = window.arguments[1]; var extensionsStrings = document.getElementById("extensionsStrings"); var rdfs = Components.classes["@mozilla.org/rdf/rdf-service;1"] .getService(Components.interfaces.nsIRDFService); var extension = rd...
initApplicationCompatibility();
function init(){ dd ("init {"); var i; const WW_CTRID = "@mozilla.org/embedcomp/window-watcher;1"; const nsIWindowWatcher = Components.interfaces.nsIWindowWatcher; console.windowWatcher = Components.classes[WW_CTRID].getService(nsIWindowWatcher); const UC_CTRID = "@mozilla.org/intl/scriptab...
var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch);
function init() { var de = document.documentElement; var items = []; if (window.arguments[0] instanceof Components.interfaces.nsIDialogParamBlock) { var args = window.arguments[0]; var fromInstall = args.GetInt(0) == 1 ? true : false; var numberOfItems = args.GetInt(1); for (var i = 0; i < numberOfItems;...
var url = pref.getCharPref("extensions.blocklist.detailsURL");
var formatter = Components.classes["@mozilla.org/browser/URLFormatterService;1"] .getService(Components.interfaces.nsIURLFormatter); var url = formatter.formatURLPref("extensions.blocklist.detailsURL", null);
function init() { var de = document.documentElement; var items = []; if (window.arguments[0] instanceof Components.interfaces.nsIDialogParamBlock) { var args = window.arguments[0]; var fromInstall = args.GetInt(0) == 1 ? true : false; var numberOfItems = args.GetInt(1); for (var i = 0; i < numberOfItems;...
var resource = RDF.GetResource(gBookmarkURL);
var resource = RDF.GetResource(gBookmarkID);
function Init(){ var x; var resource = RDF.GetResource(gBookmarkURL); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < gFields.length; ++i) { var field = document.getElementById(gFields[i]); var value = Bookmarks.GetTarget(resource,...
var isContainerFlag = RDFCU.IsContainer(Bookmarks, RDF.GetResource(gBookmarkURL));
var isContainerFlag = RDFCU.IsContainer(Bookmarks, resource);
function Init(){ var x; var resource = RDF.GetResource(gBookmarkURL); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < gFields.length; ++i) { var field = document.getElementById(gFields[i]); var value = Bookmarks.GetTarget(resource,...
if (isContainerFlag) {
var isSeparator = BookmarksUtils.resolveType(resource) == "BookmarkSeparator"; if (isContainerFlag || isSeparator) {
function Init(){ var x; var resource = RDF.GetResource(gBookmarkURL); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < gFields.length; ++i) { var field = document.getElementById(gFields[i]); var value = Bookmarks.GetTarget(resource,...
if (gBookmarkURL.substr(0, 7).toLowerCase() != "http: gBookmarkURL.substr(0, 8).toLowerCase() != "https:
var showScheduling = false; var url = Bookmarks.GetTarget(resource, RDF.GetResource(gProperties[1]), true); if (url) { url = url.QueryInterface(Components.interfaces.nsIRDFLiteral).Value; if (url.substr(0, 7).toLowerCase() == "http: url.substr(0, 8).toLowerCase() == "https: showScheduling = true; } } if (!showScheduli...
function Init(){ var x; var resource = RDF.GetResource(gBookmarkURL); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < gFields.length; ++i) { var field = document.getElementById(gFields[i]); var value = Bookmarks.GetTarget(resource,...
bookmark_url = window.arguments[0];
var x; gBookmarkURL = window.arguments[0];
function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); var value =...
for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]);
for (var i = 0; i < gFields.length; ++i) { var field = document.getElementById(gFields[i]);
function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); var value =...
var value = Bookmarks.GetTarget(RDF.GetResource(bookmark_url), RDF.GetResource(Properties[i]),
var value = Bookmarks.GetTarget(RDF.GetResource(gBookmarkURL), RDF.GetResource(gProperties[i]),
function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); var value =...
if (value) value = value.QueryInterface(Components.interfaces.nsIRDFLiteral); if (value) value = value.Value;
if (value) value = value.QueryInterface(Components.interfaces.nsIRDFLiteral).Value;
function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); var value =...
dump("field '" + Fields[i] + "' <== '" + value + "'\n"); if (value) field.value = value;
if (value) field.value = value;
function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); var value =...
var value = Bookmarks.GetTarget(RDF.GetResource(bookmark_url), RDF.GetResource("http: true);
value = Bookmarks.GetTarget(RDF.GetResource(gBookmarkURL), RDF.GetResource("http: true);
function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); var value =...
if (value) value = value.QueryInterface(Components.interfaces.nsIRDFLiteral); if (value) value = value.Value; if ((value) && (value != "")) { var sep; if ((sep = value.indexOf("|")) > 0) { var days = value.substr(0, sep); value = value.substr(sep+1, value.length-1);
if (value) { value = value.QueryInterface(Components.interfaces.nsIRDFLiteral).Value;
function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); var value =...
var dayNode = document.getElementById("dayRange"); for (var x=0; x < dayNode.childNodes[0].childNodes.length; x++) { if (dayNode.childNodes[0].childNodes[x].getAttribute("data") == days) { dayNode.selectedItem = dayNode.childNodes[0].childNodes[x]; break; } } }
if (value) { var values = value.split("|"); if (values.length == 4) { var days = values[0]; var dayNode = document.getElementById("dayRange"); var dayItems = dayNode.childNodes[0].childNodes; for (x=0; x < dayItems.length; ++x) { if (dayItems[x].getAttribute("data") == days) { dayNode.selectedItem = dayItems[x]; break...
function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); var value =...
if ((sep = value.indexOf("|")) > 0) { var hours = value.substr(0, sep); value = value.substr(sep+1, value.length-1);
var hours = values[1].split("-"); var startHour = ""; var endHour = "";
function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); var value =...
var startHour = ""; var endHour = "";
if (hours.length == 2) { startHour = hours[0]; endHour = hours[1]; }
function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); var value =...
var dashSep = hours.indexOf("-"); if (dashSep > 0) { startHour = hours.substr(0, dashSep); endHour = hours.substr(dashSep + 1, hours.length-1); }
var startHourNode = document.getElementById("startHourRange"); var startHourItems = startHourNode.childNodes[0].childNodes; for (x=0; x < startHourItems.length; ++x) { if (startHourItems[x].getAttribute("data") == startHour) { startHourNode.selectedItem = startHourItems[x]; break; } }
function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); var value =...
var startHourNode = document.getElementById("startHourRange"); for (var x=0; x < startHourNode.childNodes[0].childNodes.length; x++) { if (startHourNode.childNodes[0].childNodes[x].getAttribute("data") == startHour) { startHourNode.selectedItem = startHourNode.childNodes[0].childNodes[x]; break; } }
var endHourNode = document.getElementById("endHourRange"); var endHourItems = endHourNode.childNodes[0].childNodes; for (x=0; x < endHourItems.length; ++x) { if (endHourItems[x].getAttribute("data") == endHour) { endHourNode.selectedItem = endHourItems[x]; break; } }
function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); var value =...
var endHourNode = document.getElementById("endHourRange"); for (var x=0; x < endHourNode.childNodes[0].childNodes.length; x++) { if (endHourNode.childNodes[0].childNodes[x].getAttribute("data") == endHour) { endHourNode.selectedItem = endHourNode.childNodes[0].childNodes[x]; break; } } }
var duration = values[2]; var durationNode = document.getElementById("duration"); durationNode.value = duration;
function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); var value =...
if ((sep = value.indexOf("|")) > 0) { var duration = value.substr(0, sep); value = value.substr(sep+1, value.length-1);
var method = values[3]; if (method.indexOf("icon") >= 0) document.getElementById("bookmarkIcon").checked = true;
function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); var value =...
var durationNode = document.getElementById("duration"); durationNode.value = duration; }
if (method.indexOf("sound") >= 0) document.getElementById("playSound").checked = true;
function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); var value =...
if (value.indexOf("icon") >= 0) { document.getElementById("bookmarkIcon").checked = true; } if (value.indexOf("sound") >= 0) { document.getElementById("playSound").checked = true; } if (value.indexOf("alert") >= 0) { document.getElementById("showAlert").checked = true; } if (value.indexOf("open") >= 0) { document.getEl...
if (method.indexOf("alert") >= 0) document.getElementById("showAlert").checked = true; if (method.indexOf("open") >= 0) document.getElementById("openWindow").checked = true; }
function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); var value =...
var isContainerFlag = RDFC.IsContainer(Bookmarks, RDF.GetResource(bookmark_url)); if (!isContainerFlag) {
var isContainerFlag = RDFC.IsContainer(Bookmarks, RDF.GetResource(gBookmarkURL)); if (!isContainerFlag) {
function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); var value =...
if (bookmark_url.indexOf("http: bookmark_url.indexOf("https:
if (gBookmarkURL.indexOf("http: gBookmarkURL.indexOf("https:
function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); var value =...
processStartupURLs();
setTimeout(processStartupURLs, 0);
function init(){ if (("initialized" in client) && client.initialized) return; client.initialized = false; client.networks = new Object(); client.entities = new Object(); client.eventPump = new CEventPump (200); if (DEBUG) { /* hook all events EXCEPT server.poll and *.event-end types ...
webProgress.addProgressListener(window.XULBrowserWindow);
webProgress.addProgressListener(window.XULBrowserWindow, Components.interfaces.nsIWebProgress.NOTIFY_ALL);
function init() { //cache panel references. helpWindow = document.getElementById("help"); helpSearchPanel = document.getElementById("help-search-panel"); helpTocPanel = document.getElementById("help-toc-tree"); helpIndexPanel = document.getElementById("help-index-tree"); helpGlossaryPanel = document.getElementByI...
var closebuttonlabel = document.documentElement.getAttribute("closebuttonlabel");
function init() { var updateBundle = document.getElementById("updateBundle"); var incompatibleItems = document.getElementById("incompatibleItems"); var items = window.arguments[0]; for (var i = 0; i < items.length; ++i) { var listitem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there....
cancelbutton.label = closebuttonlabel;
function init() { var updateBundle = document.getElementById("updateBundle"); var incompatibleItems = document.getElementById("incompatibleItems"); var items = window.arguments[0]; for (var i = 0; i < items.length; ++i) { var listitem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there....
cancelbutton.setAttribute("default", "true");
function init() { var updateBundle = document.getElementById("updateBundle"); var incompatibleItems = document.getElementById("incompatibleItems"); var items = window.arguments[0]; for (var i = 0; i < items.length; ++i) { var listitem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there....
var URI = normalizeURI(decodeURIComponent(window.location.search)); helpFileURI = URI.helpFileURI; var helpTopic = URI.topic;
var params = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); helpFileURI = params.GetString(0);
function init() { //cache panel references. helpWindow = document.getElementById("help"); helpSearchPanel = document.getElementById("help-search-panel"); helpTocPanel = document.getElementById("help-toc-tree"); helpIndexPanel = document.getElementById("help-index-tree"); helpGlossaryPanel = document.getElementByI...
displayTopic(helpTopic);
displayTopic(params.GetString(1));
function init() { //cache panel references. helpWindow = document.getElementById("help"); helpSearchPanel = document.getElementById("help-search-panel"); helpTocPanel = document.getElementById("help-toc-tree"); helpIndexPanel = document.getElementById("help-index-tree"); helpGlossaryPanel = document.getElementByI...
var httpDS = RDF.GetDataSource("rdf:httpindex");
var httpDS = HTTPIndex.DataSource;
function Init(){ debug("directory.js: Init()\n"); // Initialize the tree's base URL to whatever the HTTPIndex is rooted at var baseURI = HTTPIndex.BaseURL; // fix bug # 37102: if its a FTP directory // ensure it ends with a trailing slash if (baseURI && (baseURI.indexOf("ftp://") == 0) && (baseURI...
var params = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); helpFileURI = params.GetString(0); helpBaseURI = helpFileURI.substring(0, helpFileURI.lastIndexOf("/")+1);
var helpTopic = defaultTopic; if ("arguments" in window && window.arguments[0] instanceof Components.interfaces.nsIDialogParamBlock) { helpFileURI = window.arguments[0].GetString(0); helpBaseURI = helpFileURI.substring(0, helpFileURI.lastIndexOf("/")+1); helpTopic = window.arguments[0].GetString(1); }
function init() { //cache panel references. helpWindow = document.getElementById("help"); helpSearchPanel = document.getElementById("help-search-panel"); helpTocPanel = document.getElementById("help-toc-tree"); helpIndexPanel = document.getElementById("help-index-tree"); helpGlossaryPanel = document.getElementByI...
displayTopic(params.GetString(1));
displayTopic(helpTopic);
function init() { //cache panel references. helpWindow = document.getElementById("help"); helpSearchPanel = document.getElementById("help-search-panel"); helpTocPanel = document.getElementById("help-toc-tree"); helpIndexPanel = document.getElementById("help-index-tree"); helpGlossaryPanel = document.getElementByI...
RefreshSort();
function Init() { var tree = document.getElementById("bookmarksTree"); tree.controllers.appendController(BookmarksController); var children = document.getElementById('treechildren-bookmarks'); tree.selectItem(children.firstChild); tree.focus();}
dump("got observer service\n");
debug("got observer service\n");
function Init(){ // Initialize the Related Links panel // Create a Related Links handler, and install it in the tree var Tree = document.getElementById("Tree"); Tree.database.AddDataSource(Handler.QueryInterface(Components.interfaces.nsIRDFDataSource)); // Install the observer so we'll be notified when n...
dump("added observer\n");
debug("added observer\n");
function Init(){ // Initialize the Related Links panel // Create a Related Links handler, and install it in the tree var Tree = document.getElementById("Tree"); Tree.database.AddDataSource(Handler.QueryInterface(Components.interfaces.nsIRDFDataSource)); // Install the observer so we'll be notified when n...
var pref = Components.classes['component: pref = pref.QueryInterface(Components.interfaces.nsIPref);
var pref = Components.classes['component: if (pref) { pref = pref.getService(); } if (pref) { pref = pref.QueryInterface(Components.interfaces.nsIPref); }
function Init() { var pref = Components.classes['component://netscape/preferences'].getService(); pref = pref.QueryInterface(Components.interfaces.nsIPref); if (pref) { pref.SetDefaultIntPref('sidebar.width', 170); // pref.SetIntPref(pref.GetIntPref('sidebar.width')); pref.SetDefaultBoolPref('sidebar.ope...
setCurrentObject (client);
client.dispatch("set-current-view", { view: client });
function init(){ if (("initialized" in client) && client.initialized) return; client.initialized = false; client.networks = new Object(); client.eventPump = new CEventPump (200); if (DEBUG) { /* hook all events EXCEPT server.poll and *.event-end types * (the 4th param inverts...
selectTOC(key[window.location.search]);
function init(){ // Initialize the Help window // "window.arguments[0]" is undefined or context string // move to right end of screen var width = document.documentElement.getAttribute("width"); var height = document.documentElement.getAttribute("height"); window.moveTo(screen.availWidth-width, (screen.availHeigh...
function selectTOC(link_attr) { var items = document.getElementsByAttribute("helplink", link_attr); if (items.length >= 1) { var parentRow = items[0].parentNode; var selectableNode = parentRow.parentNode; var tree = document.getElementById("help-toc-tree"); tree.selectItem(selectableNode); } } }
function init(){ // Initialize the Help window // "window.arguments[0]" is undefined or context string // move to right end of screen var width = document.documentElement.getAttribute("width"); var height = document.documentElement.getAttribute("height"); window.moveTo(screen.availWidth-width, (screen.availHeigh...
display(MSG_HELLO, MT_HELLO); display(getMsg(MSN_VERSION, console.version), MT_HELLO); displayCommands();
function init(){ initPrefs(); initCommands(); initOutliners(); disableDebugCommands(); console._outputDocument = document.getElementById("output-iframe").contentDocument; console._outputElement = console._outputDocument.getElementById("output-tbody"); console._slInpu...
console.ui["menu_PrettyPrint"] = document.getElementById ("menu_PrettyPrint"); console.ui["menu_InitAtStartup"] = document.getElementById ("menu_InitAtStartup"); console.ui["menu_TModeIgnore"] = document.getElementById("menu_TModeIgnore"); console.ui["menu_TModeTrace"] = document.getElementById("menu_TModeTrace"); cons...
function init(){ initPrefs(); initCommands(); initOutliners(); disableDebugCommands(); console._outputDocument = document.getElementById("output-iframe").contentDocument; console._outputElement = console._outputDocument.getElementById("output-tbody"); console._slInpu...
console.ui["sl-input"] = document.getElementById ("input-single-line");
function init(){ initPrefs(); initCommands(); initOutliners(); disableDebugCommands(); console._outputDocument = document.getElementById("output-iframe").contentDocument; console._outputElement = console._outputDocument.getElementById("output-tbody"); console._slInpu...
startupTests();
dispatch("version"); var ary = console.prefs["initialScripts"].split(); for (var i = 0; i < ary.length; ++i) { var url = stringTrim(ary[i]); if (url) dispatch ("loadd", {url: ary[i]}); } console.sourceText = new HelpText(); dispatch("commands"); dispatch("help");
function init(){ initPrefs(); initCommands(); initOutliners(); disableDebugCommands(); console._outputDocument = document.getElementById("output-iframe").contentDocument; console._outputElement = console._outputDocument.getElementById("output-tbody"); console._slInpu...
initPrefs();
function init(){ initCommands(); initPrefs(); initDebugger(); window._content = console._outputDocument = window.frames[0].document; /* This should be = document.getElementById("output-iframe").contentDocument; * XUL iframes don't do contentDocument, and html iframes don't support * tooltips ...
window._content = console._outputDocument = window.frames[0].document;
window._content = console._outputDocument = document.getElementById("output-iframe").contentDocument;
function init(){ initCommands(); initPrefs(); initDebugger(); window._content = console._outputDocument = window.frames[0].document; /* This should be = document.getElementById("output-iframe").contentDocument; * XUL iframes don't do contentDocument, and html iframes don't support * tooltips ...
startupTests();
function init(){ initCommands(); initPrefs(); initDebugger(); window._content = console._outputDocument = window.frames[0].document; /* This should be = document.getElementById("output-iframe").contentDocument; * XUL iframes don't do contentDocument, and html iframes don't support * tooltips ...
availCharsetList = availCharsetList.QueryInterface(Components.interfaces.nsISupportsArray); availCharsetList.sort;
function Init(){ doSetOKCancel(Save); var applicationArea = ""; if ("arguments" in window && window.arguments[0]) applicationArea = window.arguments[0]; prefInt = Components.classes["@mozilla.org/preferences;1"]; if (prefInt) { prefInt = prefInt.getService(Components.interfaces.nsIPref); if (application...
if (testpath) { gTestPath = testpath; }
function init(){ if (document.location.search.indexOf('?') != 0) { // not called with a query string return; } var re = /test=([^;]+);language=(language|type);([a-zA-Z0-9.=;\/]+)/; var matches = re.exec(document.location.search); // testpath http://machine/path-to-suite/sub-suite/test.js var testpath = ma...
showErrorDlg(getMsg(MSG_ERR_UNKNOWN_HOST, getBrowserURL()));
showErrorDlg(getMsg(MSG_ERR_UNKNOWN_HOST, client.unknownUID));
function init(){ if (("initialized" in client) && client.initialized) return; client.initialized = false; client.networks = new Object(); client.entities = new Object(); client.eventPump = new CEventPump (200); if (DEBUG) { /* hook all events EXCEPT server.poll and *.event-end types ...
var value = Bookmarks.GetTarget(RDF.GetResource(BookmarkURL),
var value = Bookmarks.GetTarget(RDF.GetResource(bookmark_url),
function Init(){ // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); var value = Bookmarks.GetTarget(RDF.GetResource(BookmarkURL), R...
var isContainerFlag = RDFC.IsContainer(Bookmarks, RDF.GetResource(BookmarkURL));
var isContainerFlag = RDFC.IsContainer(Bookmarks, RDF.GetResource(bookmark_url));
function Init(){ // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); var value = Bookmarks.GetTarget(RDF.GetResource(BookmarkURL), R...
doSetOKCancel(onOK);
function Init(){ doSetOKCancel(onOK); gType = document.getElementById("czURLType"); gServer = document.getElementById("czServer"); gServerNeedPass = document.getElementById("czServerNeedPass"); gServerAlso = document.getElementById("czServerAlso"); gChannel = document.getElementById("czChannel"); ...
gType.selectedItem = gType.mRadioChildren[1];
gType.selectedIndex = 1;
function Init(){ doSetOKCancel(onOK); gType = document.getElementById("czURLType"); gServer = document.getElementById("czServer"); gServerNeedPass = document.getElementById("czServerNeedPass"); gServerAlso = document.getElementById("czServerAlso"); gChannel = document.getElementById("czChannel"); ...
gType.selectedItem = gType.mRadioChildren[0]; gChannelIsNick.selectedItem = gChannelIsNick.mRadioChildren[0];
gType.selectedIndex = 0; gChannelIsNick.selectedIndex = 0;
function Init(){ doSetOKCancel(onOK); gType = document.getElementById("czURLType"); gServer = document.getElementById("czServer"); gServerNeedPass = document.getElementById("czServerNeedPass"); gServerAlso = document.getElementById("czServerAlso"); gChannel = document.getElementById("czChannel"); ...
gChannelIsNick.selectedItem = gChannelIsNick.mRadioChildren[1];
gChannelIsNick.selectedIndex = 1;
function Init(){ doSetOKCancel(onOK); gType = document.getElementById("czURLType"); gServer = document.getElementById("czServer"); gServerNeedPass = document.getElementById("czServerNeedPass"); gServerAlso = document.getElementById("czServerAlso"); gChannel = document.getElementById("czChannel"); ...
setTimeout("checkLogFiles()", 3602000 - (Date.now() % 3600000));
function init(){ if (("initialized" in client) && client.initialized) return; client.initialized = false; client.networks = new Object(); client.entities = new Object(); client.eventPump = new CEventPump (200); if (DEBUG) { /* hook all events EXCEPT server.poll and *.event-end types ...
else { var microsummaryRow = document.getElementById("microsummaryRow"); microsummaryRow.setAttribute("hidden", "true"); }
function Init(){ // assume the user will press cancel (only used when creating new resources) window.arguments[1].ok = false; // This is the set of fields that are visible in the window. gFields = ["name", "url", "shortcut", "description", "webpanel", "feedurl", "microsummaryMenuList"]; // ...a...
var name = ary[1]; var list = ary[2]; client.commandManager.defineCommand(name, list);
if (ary) { var name = ary[1]; var list = ary[2]; client.commandManager.defineCommand(name, list); } else { dd("Malformed alias: " + aliasDefs[i]); }
function initAliases(){ var aliasDefs = client.prefs["aliases"]; for (var i = 0; i < aliasDefs.length; ++i) { var ary = aliasDefs[i].match(/^(.*?)\s*=\s*(.*)$/); var name = ary[1]; var list = ary[2]; client.commandManager.defineCommand(name, list); }}
var mixedObj = new Object(); var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); var state = htmlEditor.getAlignment(mixedObj); var IDSuffix;
if (!gIsHTMLEditor) return;
function InitAlignMenu(){ var mixedObj = new Object(); var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); // Note: GetAlignment DOESN'T set the "mixed" flag, // but always returns "left" in mixed state // We'll pay attention to it here so it works when fixed var state = htmlEditor.getA...
if (!state) IDSuffix = "left" else IDSuffix = state;
var IDSuffix = GetAlignmentString();
function InitAlignMenu(){ var mixedObj = new Object(); var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); // Note: GetAlignment DOESN'T set the "mixed" flag, // but always returns "left" in mixed state // We'll pay attention to it here so it works when fixed var state = htmlEditor.getA...
menuItem.setAttribute("checked", "true"); if (mixedObj.value) menuItem.setAttribute("checked", "false");
if (menuItem) menuItem.setAttribute("checked", "true");
function InitAlignMenu(){ var mixedObj = new Object(); var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); // Note: GetAlignment DOESN'T set the "mixed" flag, // but always returns "left" in mixed state // We'll pay attention to it here so it works when fixed var state = htmlEditor.getA...
else if (this.chosenApp)
else if (this.chosenApp && this.chosenApp.unicodePath)
initAppAndSaveToDiskValues: function() { // Pre-select the choice the user made last time. this.chosenApp = this.mLauncher.MIMEInfo.preferredApplicationHandler; var applicationDescription = this.mLauncher.MIMEInfo.applicationDescription; if (applicationDescription != "") { ...
this.dialogElement( "openUsing" ).checked = true;
{ this.dialogElement( "openUsing" ).checked = true; this.dialogElement( "saveToDisk" ).checked = false; }
initAppAndSaveToDiskValues: function() { // Pre-select the choice the user made last time. this.chosenApp = this.mLauncher.MIMEInfo.preferredApplicationHandler; var applicationDescription = this.mLauncher.MIMEInfo.applicationDescription; if (applicationDescription != "") { ...
this.dialogElement( "openUsing" ).checked = false;
initAppAndSaveToDiskValues: function() { // Pre-select the choice the user made last time. this.chosenApp = this.mLauncher.MIMEInfo.preferredApplicationHandler; var applicationDescription = this.mLauncher.MIMEInfo.applicationDescription; if (applicationDescription != "") { ...
client.unknownUID = app.ID;
function initApplicationCompatibility(){ // This routine does nothing more than tweak the UI based on the host // application. /* client.hostCompat.typeChromeBrowser indicates whether we should use * type="chrome" <browser> elements for the output window documents. * Using these is necessary to work pr...
gDialog.volumeScrollbar.addEventListener("DOMAttrModified", onVolumeScrollbarAttrModified, false);
function InitAuralTabPanel(){ gDialog.selectedTab = AURAL_TAB; if (!gDialog.selectedObject || !gDialog.selectedObject.style) return; // observe the scrollbar and call onScrollbarAttrModified when an attribute is modified gDialog.volumeScrollbar.removeEventListener("DOMAttrModified", onVolumeScrollbarAttrModified...
gDialog.volumeScrollbar.setAttribute("disable", "true");
gDialog.volumeScrollbar.setAttribute("disabled", "true");
function InitAuralTabPanel(){ gDialog.selectedTab = AURAL_TAB; if (!gDialog.selectedObject || !gDialog.selectedObject.style) return; // observe the scrollbar and call onScrollbarAttrModified when an attribute is modified gDialog.volumeScrollbar.removeEventListener("DOMAttrModified", onVolumeScrollbarAttrModified...
gDialog.volumeScrollbar.removeAttribute("disable");
gDialog.volumeScrollbar.removeAttribute("disabled");
function InitAuralTabPanel(){ gDialog.selectedTab = AURAL_TAB; if (!gDialog.selectedObject || !gDialog.selectedObject.style) return; // observe the scrollbar and call onScrollbarAttrModified when an attribute is modified gDialog.volumeScrollbar.removeEventListener("DOMAttrModified", onVolumeScrollbarAttrModified...
if (!volume || volume == "") volume = "50";
if (!volume) volume = "50";
function InitAuralTabPanel(){ gDialog.selectedTab = AURAL_TAB; if (!gDialog.selectedObject || !gDialog.selectedObject.style) return; // observe the scrollbar and call onScrollbarAttrModified when an attribute is modified gDialog.volumeScrollbar.removeEventListener("DOMAttrModified", onVolumeScrollbarAttrModified...
gDialog.volumeScrollbar.addEventListener("DOMAttrModified", onVolumeScrollbarAttrModified, false);
function InitAuralTabPanel(){ gDialog.selectedTab = AURAL_TAB; if (!gDialog.selectedObject || !gDialog.selectedObject.style) return; // observe the scrollbar and call onScrollbarAttrModified when an attribute is modified gDialog.volumeScrollbar.removeEventListener("DOMAttrModified", onVolumeScrollbarAttrModified...
return aFolderType == "Desktop" ? "DeskV" : "Pers";
return aFolderType == "Desktop" ? "DeskP" : "Pers";
function initAutoDownloadDisplay(){ var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); var autodownload = pref.getBoolPref("browser.download.useDownloadDir"); if (autodownload) { var autodownloadInfo = document.getElementBy...
BookmarkInsertTransaction.prototype.RDFC = RDFC; BookmarkInsertTransaction.prototype.BMDS = BMDS; BookmarkRemoveTransaction.prototype.RDFC = RDFC; BookmarkRemoveTransaction.prototype.BMDS = BMDS; BookmarkImportTransaction.prototype.RDFC = RDFC; BookmarkImportTransaction.prototype.BMDS = BMDS;
BookmarkTransaction.prototype.RDFC = RDFC; BookmarkTransaction.prototype.BMDS = BMDS;
function initBMService(){ kBMSVCIID = Components.interfaces.nsIBookmarksService; BMDS = RDF.GetDataSource("rdf:bookmarks"); BMSVC = BMDS.QueryInterface(kBMSVCIID); BookmarkInsertTransaction.prototype.RDFC = RDFC; BookmarkInsertTransaction.prototype.BMDS = BMDS; BookmarkRemoveTransaction.prototype.RDFC = RDFC; B...
BookmarkTransaction.prototype.RDFC = RDFC; BookmarkTransaction.prototype.BMDS = BMDS;
function initBMService(){ kBMSVCIID = Components.interfaces.nsIBookmarksService; BMDS = RDF.GetDataSource("rdf:bookmarks"); BMSVC = BMDS.QueryInterface(kBMSVCIID); BookmarkTransaction.prototype.RDFC = RDFC; BookmarkTransaction.prototype.BMDS = BMDS;}