rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
} else { if (dirTree.currentIndex == -1) { var directory = item.QueryInterface(Components.interfaces.nsIAbDirectory); if (directory.isMailList && gPreviousDirTreeIndex > 0) --gPreviousDirTreeIndex; var newRow = dirTree.view.getParentIndex(gPreviousDirTreeIndex); if (newRow == -1) newRow = gPreviousDirTre...
onItemRemoved: function(parentDir, item) { // will only be called when an addressbook is deleted try { var directory = item.QueryInterface(Components.interfaces.nsIAbDirectory); // check if the item being removed is the directory // that we are showing in the addressbook // if so, select the...
if (this.mFlashSelected) this.flashElement(this.mSelection);
if (this.mSelection) { if (this.mFlashSelected) this.flashElement(this.mSelection); }
onItemSelected: function() { var idx = this.mDOMOutliner.currentIndex; this.mSelection = this.getNodeFromRowIndex(idx); this.mObsMan.dispatchEvent("selectionChange", { selection: this.mSelection } ); if (this.mFlashSelected) this.flashElement(this.mSelection); },
function onLess(event, rowNumber)
function onLess(event)
function onLess(event, rowNumber){ if (gTotalSearchTerms > 1) { removeSearchRow(rowNumber); --gTotalSearchTerms; } if (gTotalSearchTerms ==1 ) document.getElementById("less0").setAttribute("disabled", "true");}
if (gTotalSearchTerms > 1) { removeSearchRow(rowNumber);
if (gTotalSearchTerms > 1) { var rowIndex; if (event) { removeSearchRow(getSearchRowIndexForElement(event.target));
function onLess(event, rowNumber){ if (gTotalSearchTerms > 1) { removeSearchRow(rowNumber); --gTotalSearchTerms; } if (gTotalSearchTerms ==1 ) document.getElementById("less0").setAttribute("disabled", "true");}
if (gTotalSearchTerms ==1 ) document.getElementById("less0").setAttribute("disabled", "true");
updateRemoveRowButton();
function onLess(event, rowNumber){ if (gTotalSearchTerms > 1) { removeSearchRow(rowNumber); --gTotalSearchTerms; } if (gTotalSearchTerms ==1 ) document.getElementById("less0").setAttribute("disabled", "true");}
var safeGetProperty = function(obj, propname) { return obj[propname]; }
onLinkAdded: function(event) { // XXX this event listener can/should probably be combined with the onLinkAdded // listener in tabbrowser.xml, which only listens for favicons and then passes // them to onLinkIconAvailable in the ProgressListener. We could extend the // progress listener to have a generic ...
const targetDoc = safeGetProperty(event.target, "ownerDocument");
const targetDoc = event.target.ownerDocument;
onLinkAdded: function(event) { // XXX this event listener can/should probably be combined with the onLinkAdded // listener in tabbrowser.xml, which only listens for favicons and then passes // them to onLinkIconAvailable in the ProgressListener. We could extend the // progress listener to have a generic ...
const alternateRelRegex = /(^|\s)alternate($|\s)/i; const stylesheetRelRegex = /(^|\s)stylesheet($|\s)/i;
onLinkAdded: function(event) { // XXX this event listener can/should probably be combined with the onLinkAdded // listener in tabbrowser.xml, which only listens for favicons and then passes // them to onLinkIconAvailable in the ProgressListener. We could extend the // progress listener to have a generic ...
if (!alternateRelRegex.test(erel) || stylesheetRelRegex.test(erel) || !etype)
var rels = {} for each (var relValue in erel.split(/\s/)) { rels[relValue] = true; } var isFeed = rels["feed"]; if (!isFeed && (!rels["alternate"] || rels["stylesheet"] || !etype))
onLinkAdded: function(event) { // XXX this event listener can/should probably be combined with the onLinkAdded // listener in tabbrowser.xml, which only listens for favicons and then passes // them to onLinkIconAvailable in the ProgressListener. We could extend the // progress listener to have a generic ...
etype = etype.replace(/^\s+/, ""); etype = etype.replace(/\s+$/, ""); etype = etype.replace(/\s*;.*/, ""); etype = etype.toLowerCase(); if (etype == "application/rss+xml" || etype == "application/atom+xml" || (etype == "text/xml" || etype == "application/xml" || etype == "application/rdf+xml") && rssTitleRegex.test(et...
if (!isFeed) { etype = etype.replace(/^\s+/, ""); etype = etype.replace(/\s+$/, ""); etype = etype.replace(/\s*;.*/, ""); etype = etype.toLowerCase(); isFeed = (etype == "application/rss+xml" || etype == "application/atom+xml"); } if (!isFeed) { isFeed = ((etype == "text/xml" || etype == "application/xml" || etype =...
onLinkAdded: function(event) { // XXX this event listener can/should probably be combined with the onLinkAdded // listener in tabbrowser.xml, which only listens for favicons and then passes // them to onLinkIconAvailable in the ProgressListener. We could extend the // progress listener to have a generic ...
BMSVC.updateBookmarkIcon(gURLBar.value, aHref);
onLinkIconAvailable : function(aHref) { if (gProxyFavIcon) { // XXXBlake gPrefService.getBoolPref("browser.chrome.site_icons")) gProxyFavIcon.setAttribute("src", aHref); // update any bookmarks with new icon reference BMSVC.updateBookmarkIcon(gURLBar.value, aHref); } },
unifinderRefesh();
unifinderRefresh();
onLoad : function() { if( !gICalLib.batchMode ) { unifinderRefesh(); } },
toDoUnifinderRefesh();
toDoUnifinderRefresh();
onLoad : function() { toDoUnifinderRefesh(); },
panel.setAttribute("style", "display:none;");
panel.setAttribute("hidden", "true");
onload: function() { walletViewerInterface = Components.classes["@mozilla.org/walleteditor/walleteditor-world;1"].createInstance(); walletViewerInterface = walletViewerInterface.QueryInterface(Components.interfaces.nsIWalletEditor); walletServiceInterface = Components.classes['@mozilla.org...
try { if (this.pref.GetBoolPref("imageblocker.enabled")) { element = document.getElementById("cookiesCell"); valueWithImages = element.getAttribute("valueWithImages"); element.setAttribute("value",valueWithImages); } } catch(e) { dump("imageblocker.enabled pref is missing from all.js"); }
onload: function () { doSetOKCancel( this.onOK, this.onCancel ); try { this.pref = Components.classes["component://netscape/preferences"].getService(); if( this.pref ) { this.pref = this.pref.QueryInterface( Componen...
dialog.getButton("accept").label = dialog.getAttribute("acceptLabel"); dialog.getButton("cancel").label = dialog.getAttribute("cancelLabel");
document.getElementById("ok").label = dialog.getAttribute("acceptLabel"); document.getElementById("cancel").label = dialog.getAttribute("cancelLabel");
function onload(){ var dialog = document.documentElement; dialog.getButton("accept").label = dialog.getAttribute("acceptLabel"); dialog.getButton("cancel").label = dialog.getAttribute("cancelLabel"); if (!gDateService) { const nsScriptableDateFormat_CONTRACTID = "@mozilla.org/intl/scriptabledateformat;1"; con...
var messageParent = document.getElementById("info.box");
var messageParent = document.getElementById("dialogtextbox");
function onload(){ var dialog = document.documentElement; dialog.getButton("accept").label = dialog.getAttribute("acceptLabel"); dialog.getButton("cancel").label = dialog.getAttribute("cancelLabel"); if (!gDateService) { const nsScriptableDateFormat_CONTRACTID = "@mozilla.org/intl/scriptabledateformat;1"; con...
for (var i = 0; i < messageParagraphs.length; i++) {
var headerNode = document.getElementById("dialog-header"); headerNode.setAttribute("value",messageParagraphs[0]); for (var i = 1; i < messageParagraphs.length; i++) {
function onload(){ var dialog = document.documentElement; dialog.getButton("accept").label = dialog.getAttribute("acceptLabel"); dialog.getButton("cancel").label = dialog.getAttribute("cancelLabel"); if (!gDateService) { const nsScriptableDateFormat_CONTRACTID = "@mozilla.org/intl/scriptabledateformat;1"; con...
var text = document.createTextNode(messageParagraphs[i]);
text = document.createTextNode(messageParagraphs[i]);
function onload(){ var dialog = document.documentElement; dialog.getButton("accept").label = dialog.getAttribute("acceptLabel"); dialog.getButton("cancel").label = dialog.getAttribute("cancelLabel"); if (!gDateService) { const nsScriptableDateFormat_CONTRACTID = "@mozilla.org/intl/scriptabledateformat;1"; con...
var okButton = document.getElementById("ok");
function onLoad() { dirHistory = new Array(); directoryTree = document.getElementById("directoryTree"); textInput = document.getElementById("textInput"); if (window.arguments) { var o = window.arguments[0]; retvals = o.retvals; /* set this to a global var so we can set return values */ const title = o.titl...
doEnabling();
function onLoad() { dirHistory = new Array(); directoryTree = document.getElementById("directoryTree"); textInput = document.getElementById("textInput"); if (window.arguments) { var o = window.arguments[0]; retvals = o.retvals; /* set this to a global var so we can set return values */ const title = o.titl...
var cert = isupport.QueryInterface(nsIX509Cert);
cert = isupport.QueryInterface(nsIX509Cert);
function onLoad(){ pkiParams = window.arguments[0].QueryInterface(nsIPKIParamBlock); dialogParams = pkiParams.QueryInterface(nsIDialogParamBlock); var isupport = pkiParams.getISupportAtIndex(1); var cert = isupport.QueryInterface(nsIX509Cert); var bundle = srGetStrBundle("chrome://pippki/locale/newserver.pro...
var moduleName; var URL; var numberOfDialogTreeElements; param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if ( !param )
var numElements = param.GetInt(1); while ( i < numElements )
function onLoad() { var i = 0; var row = 0; var moduleName; var URL; var numberOfDialogTreeElements; param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if ( !param ) { dump (" error getting param block interface \n"); } numberOfDialogTreeElemen...
dump (" error getting param block interface \n"); } numberOfDialogTreeElements = param.GetInt(1); dump(numberOfDialogTreeElements += "\n"); manager = window.arguments[1]; for (i = 0; i < numberOfDialogTreeElements; i++) { moduleName = param.GetString(i); URL = param.GetString(++i);
var moduleName = param.GetString(i++); var URL = param.GetString(i++);
function onLoad() { var i = 0; var row = 0; var moduleName; var URL; var numberOfDialogTreeElements; param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if ( !param ) { dump (" error getting param block interface \n"); } numberOfDialogTreeElemen...
manager.dialogOpened(window); document.getElementById("cancel").focus();
function onLoad() { var i = 0; var row = 0; var moduleName; var URL; var numberOfDialogTreeElements; param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if ( !param ) { dump (" error getting param block interface \n"); } numberOfDialogTreeElemen...
return;
gManager = window.arguments[1];
function onLoad() { var i = 0; var row = 0; var moduleName; var URL; var numberOfDialogTreeElements; param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if ( !param ) { dump (" error getting param block interface \n"); } numberOfDialogTreeElemen...
gManager.observe( progressHooks, "xpinstall-progress", "open" );
function onLoad() { var i = 0; var row = 0; var moduleName; var URL; var numberOfDialogTreeElements; param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if ( !param ) { dump (" error getting param block interface \n"); } numberOfDialogTreeElemen...
window.removedExceptions = []; window.addedExceptions = [];
function onLoad(){ var args = window.arguments[0]; window.onAcceptCallback = args.onOk; window.calendarEvent = args.calendarEvent; window.originalRecurrenceInfo = args.recurrenceInfo; window.removedExceptions = []; window.addedExceptions = []; loadDialog(); updateDeck(); updateDuration(); ...
checkSelectedException();
function onLoad(){ var args = window.arguments[0]; window.onAcceptCallback = args.onOk; window.calendarEvent = args.calendarEvent; window.originalRecurrenceInfo = args.recurrenceInfo; window.removedExceptions = []; window.addedExceptions = []; loadDialog(); updateDeck(); updateDuration(); ...
param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock);
gParam = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock);
function onLoad() { var row = 0; var moduleName, URL, numberOfDialogTreeElements; doSetOKCancel(onOk, onCancel); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); param.SetInt(0, 1 ); /* Set the default return to Cancel */ numberOfDialogTreeElements = param.GetInt(1); for (va...
param.SetInt(0, 1 );
gParam.SetInt(0, 1 );
function onLoad() { var row = 0; var moduleName, URL, numberOfDialogTreeElements; doSetOKCancel(onOk, onCancel); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); param.SetInt(0, 1 ); /* Set the default return to Cancel */ numberOfDialogTreeElements = param.GetInt(1); for (va...
numberOfDialogTreeElements = param.GetInt(1);
numberOfDialogTreeElements = gParam.GetInt(1);
function onLoad() { var row = 0; var moduleName, URL, numberOfDialogTreeElements; doSetOKCancel(onOk, onCancel); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); param.SetInt(0, 1 ); /* Set the default return to Cancel */ numberOfDialogTreeElements = param.GetInt(1); for (va...
moduleName = param.GetString(i); URL = param.GetString(++i);
moduleName = gParam.GetString(i); URL = gParam.GetString(++i);
function onLoad() { var row = 0; var moduleName, URL, numberOfDialogTreeElements; doSetOKCancel(onOk, onCancel); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); param.SetInt(0, 1 ); /* Set the default return to Cancel */ numberOfDialogTreeElements = param.GetInt(1); for (va...
dialog.ok = document.getElementById( "ok" );
function onLoad() { dialog = new Object; dialog.input = document.getElementById( "dialog.input" ); dialog.ok = document.getElementById( "ok" ); dialog.help = document.getElementById( "dialog.help" ); dialog.newWindow = document.getElementById( "dialog.newWindow" ); browser = window.arguments[0]; if ( !b...
dump( "No browser instance provided!\n" ); dialog.newWindow.checked = true; dialog.newWindow.disabled = true; }
dialog.topWindowDiv.setAttribute("style","display:none;"); var pNode = dialog.newWindowDiv.parentNode; pNode.removeChild(dialog.newWindowDiv); pNode.appendChild(dialog.newWindowDiv); dialog.editNewWindow.checked = true; } else { dialog.topWindow.checked = true; }
function onLoad() { dialog = new Object; dialog.input = document.getElementById( "dialog.input" ); dialog.ok = document.getElementById( "ok" ); dialog.help = document.getElementById( "dialog.help" ); dialog.newWindow = document.getElementById( "dialog.newWindow" ); browser = window.arguments[0]; if ( !b...
dialog.open.setAttribute("value", document.getElementById("openLabel").getAttribute("value"));
function onLoad() { dialog = new Object; dialog.input = document.getElementById( "dialog.input" ); dialog.ok = document.getElementById( "ok" ); dialog.help = document.getElementById( "dialog.help" ); dialog.newWindow = document.getElementById( "dialog.newWindow" ); browser = window.arguments[0]; if ( !b...
var homeDir = dirServiceProvider.getFile("system.HomeDirectory", persistent);
var homeDir = dirServiceProvider.getFile("Home", persistent);
function onLoad() { directoryTree = document.getElementById("directoryTree"); textInput = document.getElementById("textInput"); if (window.arguments) { var o = window.arguments[0]; retvals = o.retvals; /* set this to a global var so we can set return values */ const title = o.title; filePickerMode = o.mo...
doSetOKCancel( onOkButton, 0 );
function onLoad(){ var calendarEventService = opener.gEventSource; gICalLib = calendarEventService.getICalLib(); var args = window.arguments[0]; if( args.calendarEvent ) { onAlarmCall( args.calendarEvent ); } if( "pendingEvents" in window ) { //dump( "\n GETTING PENDING ____________...
window.title = downloadHeadersTitlePrefix + " " + newsgroupname;
window.title = downloadHeadersTitlePrefix;
function OnLoad(){ doSetOKCancel(OkButtonCallback, CancelButtonCallback); if (window.arguments && window.arguments[0]) { //dump ("param = " + window.arguments[0] + "\n"); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); //dump ("after QI param = " + window.ar...
setText('info',infotext);
setText('info',infotext); var okbutton = document.getElementById("ok"); okbutton.setAttribute("value", okButtonText); setText("newsgroupLabel", newsgroupname);
function OnLoad(){ doSetOKCancel(OkButtonCallback, CancelButtonCallback); if (window.arguments && window.arguments[0]) { //dump ("param = " + window.arguments[0] + "\n"); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); //dump ("after QI param = " + window.ar...
return window.setTimeout(SetTitle, 0, subject);
window.setTimeout(SetTitle, 0, subject);
function onLoad() { // Set global variables. var subject = ""; msgProgress = window.arguments[0]; if (window.arguments[1]) { var progressParams = window.arguments[1].QueryInterface(Components.interfaces.nsIMsgComposeProgressParams) if (progressParams) { itsASaveOperation = (progress...
if (window.arguments[0].folderURI) document.getElementById('rssAccountMenuItem').setAttribute('disabled', 'true');
function onLoad(){ if (window.arguments[0].feedLocation) document.getElementById('feedLocation').value = window.arguments[0].feedLocation; // root the location picker to the news & blogs server document.getElementById('selectFolder').setAttribute('ref', window.arguments[0].serverURI); SetFolderPicker(window.a...
dump ("param = " + window.arguments[0] + "\n");
function OnLoad(){ doSetOKCancel(OkButtonCallback, CancelButtonCallback); if (window.arguments && window.arguments[0]) { dump ("param = " + window.arguments[0] + "\n"); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); dump ("after QI param = " + window.argume...
dump ("after QI param = " + window.arguments[0] + "\n");
function OnLoad(){ doSetOKCancel(OkButtonCallback, CancelButtonCallback); if (window.arguments && window.arguments[0]) { dump ("param = " + window.arguments[0] + "\n"); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); dump ("after QI param = " + window.argume...
dump("new message count = " + newmessages + "\n"); dump("newsgroup name = " + newsgroupname + "\n"); dump("serverid = " + serverid + "\n");
function OnLoad(){ doSetOKCancel(OkButtonCallback, CancelButtonCallback); if (window.arguments && window.arguments[0]) { dump ("param = " + window.arguments[0] + "\n"); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); dump ("after QI param = " + window.argume...
setDivText('info',infotext);
setText('info',infotext);
function OnLoad(){ doSetOKCancel(OkButtonCallback, CancelButtonCallback); if (window.arguments && window.arguments[0]) { dump ("param = " + window.arguments[0] + "\n"); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); dump ("after QI param = " + window.argume...
var currDate = new Date();
const nsIScriptableDateFormat = Components.interfaces.nsIScriptableDateFormat; var dateService = Components.classes["@mozilla.org/intl/scriptabledateformat;1"].getService(nsIScriptableDateFormat); var date = new Date(); var dateStr = dateService.FormatDateTime("", dateService.dateFormatShort, dateService.timeFormatNoSe...
function onLoad(){ pkiParams = window.arguments[0].QueryInterface(nsIPKIParamBlock); dialogParams = pkiParams.QueryInterface(nsIDialogParamBlock); document.title = dialogParams.GetString(2); var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties"); var message1 = dialogParams.GetString(1); var...
[ currDate.toLocaleString() ],
[ dateStr ],
function onLoad(){ pkiParams = window.arguments[0].QueryInterface(nsIPKIParamBlock); dialogParams = pkiParams.QueryInterface(nsIDialogParamBlock); document.title = dialogParams.GetString(2); var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties"); var message1 = dialogParams.GetString(1); var...
URL = param.GetString(i++);
URL = param.GetString(++i);
function onLoad() { var i = 0; var row = 0; var moduleName; var URL; var numberOfDialogTreeElements; param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if ( !param ) { dump (" error getting param block interface \n"); } numberOfDialogTreeElements = param.GetInt(...
const directory = o.displayDirectory.path;
if (o.displayDirectory) const directory = o.displayDirectory.path;
function onLoad() { if (window.arguments) { var o = window.arguments[0]; retvals = o.retvals; /* set this to a global var so we can set return values */ const title = o.title; filePickerMode = o.mode; const directory = o.displayDirectory.path; const initialText = o.defaultString; const filterTitle...
tokenName = params.getString(1)
tokenName = params.GetString(1);
function onLoad(){ pw1 = document.getElementById("pw1"); try { params = window.arguments[0].QueryInterface(nsIDialogParamBlock); tokenName = params.getString(1) }catch(exception) {tokenName = self.name;} if(tokenName=="" || tokenName=="_blank") { var sectokdb = Components.classes[nsPK11TokenDB].getS...
setOutputStyle (client.DEFAULT_STYLE); initStatic();
setOutputStyle (client.DEFAULT_STYLE);
function onLoad(){ initHost(client); readIRCPrefs(); setOutputStyle (client.DEFAULT_STYLE); initStatic(); mainStep(); }
buttonLabel = bundle.GetStringFromName("openButtonLabel");
buttonLabel = gFilePickerBundle.getString("openButtonLabel");
function onLoad() { dirHistory = new Array(); directoryTree = document.getElementById("directoryTree"); textInput = document.getElementById("textInput"); okButton = document.getElementById("ok"); if (window.arguments) { var o = window.arguments[0]; retvals = o.retvals; /* set this to a global var so we can s...
buttonLabel = bundle.GetStringFromName("saveButtonLabel");
buttonLabel = gFilePickerBundle.getString("saveButtonLabel");
function onLoad() { dirHistory = new Array(); directoryTree = document.getElementById("directoryTree"); textInput = document.getElementById("textInput"); okButton = document.getElementById("ok"); if (window.arguments) { var o = window.arguments[0]; retvals = o.retvals; /* set this to a global var so we can s...
buttonLabel = bundle.GetStringFromName("selectFolderButtonLabel");
buttonLabel = gFilePickerBundle.getString("selectFolderButtonLabel");
function onLoad() { dirHistory = new Array(); directoryTree = document.getElementById("directoryTree"); textInput = document.getElementById("textInput"); okButton = document.getElementById("ok"); if (window.arguments) { var o = window.arguments[0]; retvals = o.retvals; /* set this to a global var so we can s...
var dirServiceProvider = Components.classes[nsIDirectoryServiceProvider_CONTRACTID].getService().QueryInterface(nsIDirectoryServiceProvider);
var dirServiceProvider = Components.classes[nsIDirectoryServiceProvider_CONTRACTID] .getService(nsIDirectoryServiceProvider);
function onLoad() { dirHistory = new Array(); directoryTree = document.getElementById("directoryTree"); textInput = document.getElementById("textInput"); okButton = document.getElementById("ok"); if (window.arguments) { var o = window.arguments[0]; retvals = o.retvals; /* set this to a global var so we can s...
params = window.arguments[0].QueryInterface(nsIDialogParamBlock); tokenName = params.GetString(1);
if (window.arguments) { params = window.arguments[0].QueryInterface(nsIDialogParamBlock); tokenName = params.GetString(1); } else { tokenName = self.name; }
function onLoad(){ pw1 = document.getElementById("pw1"); params = window.arguments[0].QueryInterface(nsIDialogParamBlock); tokenName = params.GetString(1); // Set token name in display var t = document.getElementById("tokenName"); t.setAttribute("value", tokenName); // Select first password field document.getEl...
document.getElementById('pw1').focus();
var bundle = srGetStrBundle("chrome: var secmoddb = Components. classes[nsPKCS11ModuleDB]. getService(nsIPKCS11ModuleDB); var slot = secmoddb.findSlotByName(tokenName); if (slot) { var oldpwbox = document.getElementById("oldpw"); if (slot.status == nsIPKCS11Slot.SLOT_UNINITIALIZED ) { oldpwbox.setAttribute("disabled...
function onLoad(){ pw1 = document.getElementById("pw1"); params = window.arguments[0].QueryInterface(nsIDialogParamBlock); tokenName = params.GetString(1); // Set token name in display var t = document.getElementById("tokenName"); t.setAttribute("value", tokenName); // Select first password field document.getEl...
var cert = isupport.QueryInterface(nsIX509Cert);
cert = isupport.QueryInterface(nsIX509Cert);
function onLoad(){ pkiParams = window.arguments[0].QueryInterface(nsIPKIParamBlock); var isupport = pkiParams.getISupportAtIndex(1); var cert = isupport.QueryInterface(nsIX509Cert); dialogParams = pkiParams.QueryInterface(nsIDialogParamBlock); var connectURL = dialogParams.GetString(1); var bundle = srGetS...
var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); gSyncMail = prefs.GetBoolPref("mailnews.offline_sync_mail"); gSyncNews = prefs.GetBoolPref("mailnews.offline_sync_news"); gSendMessage = prefs.GetBoolPref("mailnews.offline_sync_send_unsent"); gWorkOffline = prefs.Ge...
function OnLoad(){ if (window.arguments && window.arguments[0]) { if (window.arguments[0].msgWindow) { gParentMsgWindow = window.arguments[0].msgWindow; } } doSetOKCancel(syncOkButton, syncCancelButton); document.getElementById("syncMail").checked = gSyncMail; document.g...
gEditor = GetCurrentEditor();
gEditor = editorElement.getEditor(editorElement.contentWindow);
function onLoad(){ // If we don't get the editor, then we won't allow replacing. gEditor = GetCurrentEditor(); if (!gEditor) { window.close(); return; } // Get the xul <editor> element: var editorXUL = window.opener.document.getElementById("content-frame"); // Get the nsIWebBrowserFind service: gFindInst...
var editorXUL = window.opener.document.getElementById("content-frame");
function onLoad(){ // If we don't get the editor, then we won't allow replacing. gEditor = GetCurrentEditor(); if (!gEditor) { window.close(); return; } // Get the xul <editor> element: var editorXUL = window.opener.document.getElementById("content-frame"); // Get the nsIWebBrowserFind service: gFindInst...
gFindInst = editorXUL.webBrowserFind;
gFindInst = editorElement.webBrowserFind;
function onLoad(){ // If we don't get the editor, then we won't allow replacing. gEditor = GetCurrentEditor(); if (!gEditor) { window.close(); return; } // Get the xul <editor> element: var editorXUL = window.opener.document.getElementById("content-frame"); // Get the nsIWebBrowserFind service: gFindInst...
window.tryToClose = onFilterClose;
function onLoad(){ gFilterListMsgWindow = Components.classes["@mozilla.org/messenger/msgwindow;1"].createInstance(Components.interfaces.nsIMsgWindow); gFilterListMsgWindow.statusFeedback = gStatusFeedback; gFilterListMsgWindow.SetDOMWindow(window); gFilterBundle = document.getElementById("bundle_filter"); ...
doSetOKCancel(OkButtonCallback, CancelButtonCallback);
doSetOKCancel(OkButtonCallback, CancelButtonCallback); gNewsBundle = document.getElementById("bundle_news");
function OnLoad(){ doSetOKCancel(OkButtonCallback, CancelButtonCallback); if (window.arguments && window.arguments[0]) { args = window.arguments[0].QueryInterface( Components.interfaces.nsINewsDownloadDialogArgs); args.hitOK = false; /* by default, act like the user hit cancel */ args.downloadA...
if (window.arguments && window.arguments[0]) {
if ("arguments" in window && window.arguments[0]) {
function OnLoad(){ doSetOKCancel(OkButtonCallback, CancelButtonCallback); if (window.arguments && window.arguments[0]) { args = window.arguments[0].QueryInterface( Components.interfaces.nsINewsDownloadDialogArgs); args.hitOK = false; /* by default, act like the user hit cancel */ args.downloadA...
var downloadHeadersTitlePrefix = Bundle.GetStringFromName("downloadHeadersTitlePrefix"); var downloadHeadersInfoText1 = Bundle.GetStringFromName("downloadHeadersInfoText1"); var downloadHeadersInfoText2 = Bundle.GetStringFromName("downloadHeadersInfoText2"); var okButtonText = Bundle.GetStringFromName("okButtonText");
var downloadHeadersTitlePrefix = gNewsBundle.getString("downloadHeadersTitlePrefix"); var downloadHeadersInfoText1 = gNewsBundle.getString("downloadHeadersInfoText1"); var downloadHeadersInfoText2 = gNewsBundle.getString("downloadHeadersInfoText2"); var okButtonText = gNewsBundle.getString("okButtonText");
function OnLoad(){ doSetOKCancel(OkButtonCallback, CancelButtonCallback); if (window.arguments && window.arguments[0]) { args = window.arguments[0].QueryInterface( Components.interfaces.nsINewsDownloadDialogArgs); args.hitOK = false; /* by default, act like the user hit cancel */ args.downloadA...
var xulWindow = document.getElementById("domainMismatch"); var wdth = window.innerWidth; window.sizeToContent(); xulWindow.setAttribute("width",window.innerWidth + 30); var hght = window.innerHeight; window.sizeToContent(); xulWindow.setAttribute("height",window.innerHeight + 40);
function onLoad(){ pkiParams = window.arguments[0].QueryInterface(nsIPKIParamBlock); var isupport = pkiParams.getISupportAtIndex(1); cert = isupport.QueryInterface(nsIX509Cert); dialogParams = pkiParams.QueryInterface(nsIDialogParamBlock); var connectURL = dialogParams.GetString(1); var bundle = srGetStrBu...
printProgress = window.arguments[0]; if (window.arguments[1]) { progressParams = window.arguments[1].QueryInterface(Components.interfaces.nsIPrintProgressParams) if (progressParams) { docTitle = elipseString(progressParams.docTitle, false); docURL = elipseString(progressParams.docURL, true); }
printProgress = window.arguments[0]; if (window.arguments[1]) { progressParams = window.arguments[1].QueryInterface(Components.interfaces.nsIPrintProgressParams) if (progressParams) { docTitle = elipseString(progressParams.docTitle, false); docURL = elipseString(progressParams.docURL, true);
function onLoad() { // Set global variables. printProgress = window.arguments[0]; if (window.arguments[1]) { progressParams = window.arguments[1].QueryInterface(Components.interfaces.nsIPrintProgressParams) if (progressParams) { docTitle = elipseString(progressParams.docTitle, false); ...
gPromptService = promptService.QueryInterface(Components.interfaces.nsIPromptService);
gPromptService = gPromptService.QueryInterface(Components.interfaces.nsIPromptService);
function onLoad(){ rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService); var gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); gPromptService = promptService.QueryInterface(Components.interfaces.nsIPromptService); ...
function onLoad() { dialog = new Object; dialog.newWindow = document.getElementById( "dialog.newWindow" );
function onLoad() { var i = 0; var row = 0; var moduleName; var URL;
function onLoad() { dialog = new Object; //dialog.title = document.getElementByID( "xpi.process" ); //dialog.current = document.getElementByID( "xpi.currentlyprocessing"); dialog.newWindow = document.getElementById( "dialog.newWindow" ); browser = XPAppCoresManager.Find( window.arguments[0] ); if ( !browser )...
browser = XPAppCoresManager.Find( window.arguments[0] ); if ( !browser ) { dump( "unable to get browser app core\n" ); window.close();
param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if ( !param ) { dump (" error getting param block interface \n");
function onLoad() { dialog = new Object; //dialog.title = document.getElementByID( "xpi.process" ); //dialog.current = document.getElementByID( "xpi.currentlyprocessing"); dialog.newWindow = document.getElementById( "dialog.newWindow" ); browser = XPAppCoresManager.Find( window.arguments[0] ); if ( !browser )...
manager = window.arguments[1]; while (moduleName != "") { moduleName = param.GetString(i++); URL = param.GetString(i++); addTreeItem(row++, moduleName, URL); } manager.DialogOpened(window);
function onLoad() { dialog = new Object; //dialog.title = document.getElementByID( "xpi.process" ); //dialog.current = document.getElementByID( "xpi.currentlyprocessing"); dialog.newWindow = document.getElementById( "dialog.newWindow" ); browser = XPAppCoresManager.Find( window.arguments[0] ); if ( !browser )...
if (window.arguments && window.arguments[0])
var selectPage = null; if (window.arguments && window.arguments[0]) {
function onLoad() { gPrefsBundle = document.getElementById("bundle_prefs"); var selectedServer; if (window.arguments && window.arguments[0]) selectedServer = window.arguments[0].server; accountArray = new Array; RDF = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFSe...
selectServer(selectedServer)
selectServer(selectedServer, selectPage);
function onLoad() { gPrefsBundle = document.getElementById("bundle_prefs"); var selectedServer; if (window.arguments && window.arguments[0]) selectedServer = window.arguments[0].server; accountArray = new Array; RDF = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFSe...
gToolboxDocument = window.opener.document; gToolbox = gToolboxDocument.getElementsByTagName("toolbox")[0];
gToolbox = window.arguments[0]; gToolboxDocument = gToolbox.ownerDocument;
function onLoad(){ gToolboxDocument = window.opener.document; gToolbox = gToolboxDocument.getElementsByTagName("toolbox")[0]; gToolbox.addEventListener("draggesture", onToolbarDragGesture, false); gToolbox.addEventListener("dragover", onToolbarDragOver, false); gToolbox.addEventListener("dragexit", onToolbarDrag...
const lfContractID = "@mozilla.org/file/local;1"; const lfIID = Components.interfaces.nsILocalFile; var filesFolder = Components .classes[lfContractID].createInstance(lfIID); filesFolder.initWithUnicodePath(persistArgs.target.unicodePath);
var filesFolder = null; if (persistArgs.contentType != "text/plain") { const lfContractID = "@mozilla.org/file/local;1"; const lfIID = Components.interfaces.nsILocalFile; filesFolder = Components .classes[lfContractID].createInstance(lfIID); filesFolder.initWithUnicodePath(persistArgs.target.unicodePath); var nameWit...
function onLoad() { // Set global variables. try { helperAppLoader = window.arguments[0].QueryInterface( Components.interfaces.nsIHelperAppLauncher ); } catch (e) { webBrowserPersist = window.arguments[0].QueryInterface( Components.interfaces.nsIWebBrowserPersist ); } if ( !helperAppLoader ...
var nameWithoutExtension = filesFolder.leafName; nameWithoutExtension = nameWithoutExtension.substring(0, nameWithoutExtension.lastIndexOf(".")); var filesFolderLeafName = getString("filesFolder"); filesFolderLeafName = filesFolderLeafName.replace(/\^BASE\^/, nameWithoutExtension);
const kWrapColumn = 80;
function onLoad() { // Set global variables. try { helperAppLoader = window.arguments[0].QueryInterface( Components.interfaces.nsIHelperAppLauncher ); } catch (e) { webBrowserPersist = window.arguments[0].QueryInterface( Components.interfaces.nsIWebBrowserPersist ); } if ( !helperAppLoader ...
filesFolder.leafName = filesFolderLeafName; if (!filesFolder.exists()) filesFolder.create(lfIID.DIRECTORY_TYPE, 0755); webBrowserPersist.saveDocument(persistArgs.source, targetFile, filesFolder, null, 0, 0);
webBrowserPersist.saveDocument(persistArgs.source, targetFile, filesFolder, persistArgs.contentType, encodingFlags, kWrapColumn);
function onLoad() { // Set global variables. try { helperAppLoader = window.arguments[0].QueryInterface( Components.interfaces.nsIHelperAppLauncher ); } catch (e) { webBrowserPersist = window.arguments[0].QueryInterface( Components.interfaces.nsIWebBrowserPersist ); } if ( !helperAppLoader ...
dump("----- Migrating prefs\n"); try { prefmigrator.ProcessPrefsFromJS(); } catch (ex) { alert("error migrating profile, possibly out of space. ex="+ex); } dump("----- Migrating prefs done " + retval + "\n" );
dump("----- Migrating prefs\n"); retval = prefmigrator.ProcessPrefsFromJS(); dump("----- Migrating prefs done " + retval + "\n" );
function onLoad(oldProfilePath, newProfilePath) { //dialog = new Object; //dialog.title = document.getElementByID( "xpi.process" ); //dialog.current = document.getElementByID( "xpi.currentlyprocessing"); //dialog.newWindow = document.getElementById( "dialog.newWindow" ); var retval; var prefmigrator = Co...
else { dump("----- ERROR Migrating prefs failed create instances failed\n"); } return retval;
function onLoad(oldProfilePath, newProfilePath) { //dialog = new Object; //dialog.title = document.getElementByID( "xpi.process" ); //dialog.current = document.getElementByID( "xpi.currentlyprocessing"); //dialog.newWindow = document.getElementById( "dialog.newWindow" ); var retval; var prefmigrator = Co...
else dialog.findKey.focus();
dialog.findKey.focus();
function onLoad(){ initDialogObject(); // Change "OK" to "Find". dialog.find.label = document.getElementById("fBLT").getAttribute("label"); // Setup the dialogOverlay.xul button handlers. doSetOKCancel(onOK, onCancel); // get the find instance var finder = window.arguments[0]; // If the dialog was opened from w...
currentFilter = filterTypes[0]; applyFilter();
function onLoad() { dirHistory = new Array(); directoryTree = document.getElementById("directoryTree"); textInput = document.getElementById("textInput"); if (window.arguments) { var o = window.arguments[0]; retvals = o.retvals; /* set this to a global var so we can set return values */ const title = o.titl...
gNavigatorBundle = document.getElementById("navigatorBundle");
function onLoad(){ dialog.input = document.getElementById("dialog.input"); dialog.open = document.documentElement.getButton("accept"); dialog.openAppList = document.getElementById("openAppList"); dialog.openTopWindow = document.getElementById("currentWindow"); dialog.openEditWindow = documen...
wizardMap );
gWizardMap );
function onLoad() { // wizard stuff // instantiate the Wizard Manager wizardManager = new WizardManager( "wizardContents", null, null, wizardMap ); wizardManager.URL_PagePrefix = "chrome://messenger/content/aw-"; wizardManager.URL_PagePostfix = ".xul"; wizardMana...
var pageData = parent.wizardManager.WSM.PageData; updateMap(pageData, wizardMap);
var pageData = GetPageData(); updateMap(pageData, gWizardMap);
function onLoad() { // wizard stuff // instantiate the Wizard Manager wizardManager = new WizardManager( "wizardContents", null, null, wizardMap ); wizardManager.URL_PagePrefix = "chrome://messenger/content/aw-"; wizardManager.URL_PagePostfix = ".xul"; wizardMana...
wizardMap.identity.previous = null;
gWizardMap.identity.previous = null;
function onLoad() { // wizard stuff // instantiate the Wizard Manager wizardManager = new WizardManager( "wizardContents", null, null, wizardMap ); wizardManager.URL_PagePrefix = "chrome://messenger/content/aw-"; wizardManager.URL_PagePostfix = ".xul"; wizardMana...
document.getElementById('rssAccountMenuItem').label = window.arguments[0].serverPrettyName; document.getElementById('rssAccountMenuItem').value = window.arguments[0].serverURI;
function onLoad(){ if (window.arguments[0].feedLocation) document.getElementById('feedLocation').value = window.arguments[0].feedLocation; // root the location picker to the news & blogs server document.getElementById('selectFolder').setAttribute('ref', window.arguments[0].serverURI); SetFolderPicker(window.a...
try { var useAutoFill = pref.getBoolPref("browser.urlbar.autoFill"); if (useAutoFill) dialog.input.setAttribute("completedefaultindex", "true"); } catch (ex) {}
function onLoad(){ dialog.input = document.getElementById("dialog.input"); dialog.open = document.documentElement.getButton("accept"); dialog.openWhereList = document.getElementById("openWhereList"); dialog.openTopWindow = document.getElementById("currentWindow"); dialog.bundle = document.g...
updateOnlineSearchState();
function onLoad(){ var arguments = window.arguments[0]; gDialog = {}; gDialog.OKButton = document.documentElement.getButton("accept"); gDialog.nameField = document.getElementById("name"); gDialog.nameField.focus(); // call this when OK is pressed msgWindow = arguments.msgWindow; // pre select the folderPicker,...
filesFolder.initWithUnicodePath(persistArgs.target.unicodePath);
filesFolder.initWithPath(persistArgs.target.path);
function onLoad() { // Set global variables. try { helperAppLoader = window.arguments[0].QueryInterface( Components.interfaces.nsIHelperAppLauncher ); } catch (e) { webBrowserPersist = window.arguments[0].QueryInterface( Components.interfaces.nsIWebBrowserPersist ); } if ( !helperAppLoader ...
if (numFilters > 0) filterMenuList.selectedIndex = 0;
function onLoad() { gFilePickerBundle = document.getElementById("bundle_filepicker"); dirHistory = new Array(); directoryTree = document.getElementById("directoryTree"); textInput = document.getElementById("textInput"); okButton = document.getElementById("ok"); if (window.arguments) { var o = window.arguments[...
filesFolder.initWithUnicodePath(persistArgs.target.unicodePath);
filesFolder.initWithPath(persistArgs.target.path);
function onLoad() { // Set global variables. try { helperAppLoader = window.arguments[0].QueryInterface( Components.interfaces.nsIHelperAppLauncher ); } catch (e) { webBrowserPersist = window.arguments[0].QueryInterface( Components.interfaces.nsIWebBrowserPersist ); setTimeout("checkPersistCo...
gSpamSettings = window.arguments[0].spamSettings;
gLogView = document.getElementById("logView"); gLogView.docShell.allowJavascript = false;
function onLoad(){ gSpamSettings = window.arguments[0].spamSettings; gLogJunk = document.getElementById("logJunk"); gLogJunk.checked = gSpamSettings.loggingEnabled; gLogView = document.getElementById("logView"); // for security, disable JS gLogView.docShell.allowJavascript = false; // if log doesn't exist, this ...
gLogJunk = document.getElementById("logJunk"); gLogJunk.checked = gSpamSettings.loggingEnabled;
var directoryService = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties); gLogFile = directoryService.get("ProfD", Components.interfaces.nsIFile); gLogFile.append("junklog.html");
function onLoad(){ gSpamSettings = window.arguments[0].spamSettings; gLogJunk = document.getElementById("logJunk"); gLogJunk.checked = gSpamSettings.loggingEnabled; gLogView = document.getElementById("logView"); // for security, disable JS gLogView.docShell.allowJavascript = false; // if log doesn't exist, this ...
gLogView = document.getElementById("logView"); gLogView.docShell.allowJavascript = false; gSpamSettings.ensureLogFile(); gLogView.setAttribute("src", gSpamSettings.logURL);
if (gLogFile.exists()) { ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); gLogView.setAttribute("src", ioService.newFileURI(gLogFile).spec); }
function onLoad(){ gSpamSettings = window.arguments[0].spamSettings; gLogJunk = document.getElementById("logJunk"); gLogJunk.checked = gSpamSettings.loggingEnabled; gLogView = document.getElementById("logView"); // for security, disable JS gLogView.docShell.allowJavascript = false; // if log doesn't exist, this ...
Components.interfaces.nsISupportsWString).data;
Components.interfaces.nsISupportsString).data;
function onLoad(){ dialog.input = document.getElementById("dialog.input"); dialog.open = document.documentElement.getButton("accept"); dialog.openAppList = document.getElementById("openAppList"); dialog.openTopWindow = document.getElementById("currentWindow"); dialog.openEditWindow = documen...
gDefaultAccount = accountm.defaultAccount;
try { gDefaultAccount = accountm.defaultAccount; } catch (ex) { gDefaultAccount = null; }
function onLoad() { gPrefsBundle = document.getElementById("bundle_prefs"); gMessengerBundle = document.getElementById("bundle_messenger"); // wizard stuff // instantiate the Wizard Manager wizardManager = new WizardManager( "wizardContents", null, null, gWizardMap )...
try { gLDAPPrefsService = Components.classes["@mozilla.org/ldapprefs-service;1"].getService(); gLDAPPrefsService = gLDAPPrefsService.QueryInterface( Components.interfaces.nsILDAPPrefsService); } catch (ex) {dump ("ERROR: Cannot get the LDAP service\n" + ex + "\n");}
function OnLoadAddressBook(){ gAddressBookBundle = document.getElementById("bundle_addressBook"); gSearchInput = document.getElementById("searchInput"); verifyAccounts(null); // this will do migration, if we need to. top.addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(Components.inter...
top.addressbook.SetWebShellWindow(window)
top.addressbook.setWebShellWindow(window)
function OnLoadAddressBook(){ top.addressbook = Components.classes["component://netscape/addressbook"].createInstance(); top.addressbook = top.addressbook.QueryInterface(Components.interfaces.nsIAddressBook); top.gUpdateCardView = UpdateCardView; // FIX ME - later we will be able to use onload from the overlay OnLoadCa...