rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
var prefmigrator = Components.classes['component: | var prefmigrator = Components.classes['@mozilla.org/profile/migration;1'].createInstance(Components.interfaces.nsIPrefMigration); | 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" ); dump("start of pref migration\n");... |
document.getElementById("tabbox").selectedTab = document.getElementById("imapTab"); document.getElementById("pop3Tab").hidden = true; | document.getElementById("pop3Panel").hidden = true; | function onLoad(){ if (gServerSettings.serverType == "imap") { document.getElementById("tabbox").selectedTab = document.getElementById("imapTab"); document.getElementById("pop3Tab").hidden = true; // don't hide panel - it hides all subsequent panels } else if (gServerSettings.serverType == "pop3") { va... |
document.getElementById("tabbox").selectedTab = document.getElementById("pop3Tab"); document.getElementById("imapTab").hidden = true; | document.getElementById("imapPanel").hidden = true; | function onLoad(){ if (gServerSettings.serverType == "imap") { document.getElementById("tabbox").selectedTab = document.getElementById("imapTab"); document.getElementById("pop3Tab").hidden = true; // don't hide panel - it hides all subsequent panels } else if (gServerSettings.serverType == "pop3") { va... |
else { document.getElementById("imapTab").hidden = true; document.getElementById("pop3Tab").hidden = true; } | function onLoad(){ if (gServerSettings.serverType == "imap") { document.getElementById("tabbox").selectedTab = document.getElementById("imapTab"); document.getElementById("pop3Tab").hidden = true; // don't hide panel - it hides all subsequent panels } else if (gServerSettings.serverType == "pop3") { va... | |
gOldDefaultSmtpServer = smtpService.defaultServer; | function onLoad(){ gMessengerBundle = document.getElementById("bundle_messenger"); if (!smtpService) smtpService = Components.classes["@mozilla.org/messengercompose/smtp;1"].getService(Components.interfaces.nsISmtpService); serverList = document.getElementById("smtpList"); addButton = document... | |
var downloadFontDialog = document.getElementById("downloadFontDialog"); downloadFontDialog.setAttribute("title", fontPackageBundle.getString("windowTitleNoDownload")); | document.title = fontPackageBundle.getString("windowTitleNoDownload"); | function onLoad(){ var size = document.getElementById("size"); var downloadButton = document.getElementById("downloadButton"); var install = document.getElementById("install"); var fontPackageBundle = document.getElementById("fontPackageBundle"); // test if win2k (win nt 5.0) or winxp (win nt 5.1) if (navigator.u... |
focusInput(); | function onLoad(){ initHost(client); readIRCPrefs(); setClientOutput(); frames[0].document.location.href = "chrome://chatzilla/content/outputwindow.html?" + client.DEFAULT_STYLE; initStatic(); client.userScripts = new Array(); if (client.INITIAL_SCRIPTS) { var urls = client.INI... | |
top.addressbook = Components.classes["component: | top.addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(); | function OnLoadAddressBook(){ verifyAccounts(); // this will do migration, if we need to. top.addressbook = Components.classes["component://netscape/addressbook"].createInstance(); top.addressbook = top.addressbook.QueryInterface(Components.interfaces.nsIAddressBook); top.gUpdateCardView = UpdateCardView; InitCommonJS... |
try { gAddressBookSession = Components.classes["@mozilla.org/addressbook/services/session;1"].getService(Components.interfaces.nsIAddrBookSession); gAddressBookSession.addAddressBookListener(addressBookListener); } catch (ex) { dump("Error adding to address book session\n"); } | function OnLoadAddressBook(){ gAddressBookBundle = document.getElementById("bundle_addressBook"); verifyAccounts(); // this will do migration, if we need to. top.addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(); top.addressbook = top.addressbook.QueryInterface(Components.interfaces.nsIAd... | |
try { var dataSource = top.rdf.GetDataSource("rdf:addressdirectory"); dataSource.AddObserver (addressBookObserver); } catch (ex) { dump(ex + "\n"); dump("Error adding to RDF datasource\n"); } | function OnLoadAddressBook(){ gAddressBookBundle = document.getElementById("bundle_addressBook"); verifyAccounts(); // this will do migration, if we need to. top.addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(); top.addressbook = top.addressbook.QueryInterface(Components.interfaces.nsIAd... | |
document.commandDispatcher.addCommand(document.getElementById('CommandUpdate_AddressBook')); document.commandDispatcher.addCommand(document.getElementById('cmd_selectAll')); document.commandDispatcher.addCommand(document.getElementById('cmd_delete')); | function OnLoadAddressBook(){ // FIX ME - later we will be able to use onload from the overlay OnLoadCardView(); top.addressbook = Components.classes["component://netscape/addressbook"].createInstance(); top.addressbook = top.addressbook.QueryInterface(Components.interfaces.nsIAddressBook); top.addressbook.editCardCal... | |
window.QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIWebNavigation) .QueryInterface(Components.interfaces.nsIDocShell) .useErrorPages = false; | function OnLoadAddressBook(){ gSearchInput = document.getElementById("searchInput"); verifyAccounts(null); // this will do migration, if we need to. top.addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(Components.interfaces.nsIAddressBook); InitCommonJS(); UpgradeAddressBookResultsPan... | |
rdf = Components.classes["component: | rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(); | function OnLoadCardView(){ rdf = Components.classes["component://netscape/rdf/rdf-service"].getService(); rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService); var doc = document; /* data for address book, prefixes: "cvb" = card view box "cvh" = crad view header "cv" = card view (normal fie... |
cvData.cvEmail2Box = doc.getElementById("cvEmail2Box"); | function OnLoadCardView(){ zName = gAddressBookBundle.getString("propertyName") + ": "; zNickname = gAddressBookBundle.getString("propertyNickname") + ": "; zDisplayName = gAddressBookBundle.getString("propertyDisplayName") + ": "; zWork = gAddressBookBundle.getString("propertyWork") + ": "; zHome = gAddressBookBu... | |
window._content.getSelection() .QueryInterface(nsISelectionPrivate) .addSelectionListener(gSelectionListener); | function onLoadContent(){ // // If the view source was opened with a "go to line" argument. // if (gGoToLine > 0) { goToLine(gGoToLine); gGoToLine = 0; } document.getElementById('cmd_goToLine').removeAttribute('disabled');} | |
if ("arguments" in window && window.arguments[0]) { if ("abURI" in window.arguments[0]) { var abURI = window.arguments[0].abURI; var directory = GetDirectoryFromURI(abURI); if (!(directory.operations & directory.opWrite)) { var disableElements = document.getElementsByAttribute("disableforreadonly", "true"); for (var i... | function OnLoadEditCard(){ InitEditCard(); editCard.titleProperty = "editCardTitle"; if (window.arguments && window.arguments[0]) { if ( window.arguments[0].card ) editCard.card = window.arguments[0].card; if ( window.arguments[0].okCallback ) gOkCallback = window.arguments[0].okCallback; if ( wi... | |
var disableElements = document.getElementsByAttribute("disableforreadonly", "true"); for (var i = disableElements.length; i-- > 0; ) disableElements[i].disabled = true; | for (var i = kVcardFields.length; i-- > 0; ) document.getElementById(kVcardFields[i][0]).readonly = true; document.getElementById(kPhoneticFields[0]).readonly = true; document.getElementById(kPhoneticFields[3]).readonly = true; document.getElementById("PreferMailFormatPopup").disabled = true; | function OnLoadEditCard(){ InitEditCard(); gEditCard.titleProperty = "editCardTitle"; if (window.arguments && window.arguments[0]) { if ( window.arguments[0].card ) gEditCard.card = window.arguments[0].card; if ( window.arguments[0].okCallback ) gOkCallback = window.arguments[0].okCallback; if ( ... |
document.getElementById(kVcardFields[i][0]).readonly = true; | document.getElementById(kVcardFields[i][0]).readOnly = true; | function OnLoadEditCard(){ InitEditCard(); gEditCard.titleProperty = "editCardTitle"; if (window.arguments && window.arguments[0]) { if ( window.arguments[0].card ) gEditCard.card = window.arguments[0].card; if ( window.arguments[0].okCallback ) gOkCallback = window.arguments[0].okCallback; if ( ... |
document.getElementById(kPhoneticFields[0]).readonly = true; document.getElementById(kPhoneticFields[3]).readonly = true; | document.getElementById(kPhoneticFields[0]).readOnly = true; document.getElementById(kPhoneticFields[3]).readOnly = true; | function OnLoadEditCard(){ InitEditCard(); gEditCard.titleProperty = "editCardTitle"; if (window.arguments && window.arguments[0]) { if ( window.arguments[0].card ) gEditCard.card = window.arguments[0].card; if ( window.arguments[0].okCallback ) gOkCallback = window.arguments[0].okCallback; if ( ... |
for (var i=0; i<disableElements.length; i++) disableElements[i].setAttribute('disabled', 'true'); | for (var i = disableElements.length; i-- > 0; ) disableElements[i].disabled = 'true'; | function OnLoadEditCard(){ InitEditCard(); gEditCard.titleProperty = "editCardTitle"; if (window.arguments && window.arguments[0]) { if ( window.arguments[0].card ) gEditCard.card = window.arguments[0].card; if ( window.arguments[0].okCallback ) gOkCallback = window.arguments[0].okCallback; if ( ... |
oldListName = editList.listName; | function OnLoadEditList(){ doSetOKCancel(EditListOKButton, 0); parentURI = window.arguments[0].abURI; var listUri = window.arguments[0].listURI; var rdf = Components.classes["component://netscape/rdf/rdf-service"].getService(); rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService); editList = rdf.GetResource... | |
var treeChildren = document.getElementById('addressList'); | var treeChildren = document.getElementById('addressWidgetBody'); | function OnLoadEditList(){ //XXX: gAddressBookBundle is set in 2 places because of different callers gAddressBookBundle = document.getElementById("bundle_addressBook"); gParentURI = window.arguments[0].abURI; gListCard = window.arguments[0].abCard; var listUri = window.arguments[0].listURI; gOkCallback = window... |
AppendnewRowAndSetFocus(); | AppendNewRowAndSetFocus(); awFitDummyRows(1); | function OnLoadEditList(){ //XXX: gAddressBookBundle is set in 2 places because of different callers gAddressBookBundle = document.getElementById("bundle_addressBook"); gParentURI = window.arguments[0].abURI; gListCard = window.arguments[0].abCard; var listUri = window.arguments[0].listURI; gOkCallback = window... |
document.addEventListener("keypress", awDocumentKeyPress, true); | function OnLoadEditList(){ //XXX: gAddressBookBundle is set in 2 places because of different callers gAddressBookBundle = document.getElementById("bundle_addressBook"); gParentURI = window.arguments[0].abURI; gListCard = window.arguments[0].abCard; var listUri = window.arguments[0].listURI; gOkCallback = window... | |
var rdf = Components.classes["component: | var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(); | function OnLoadEditList(){ doSetOKCancel(EditListOKButton, 0); parentURI = window.arguments[0].abURI; var listUri = window.arguments[0].listURI; var rdf = Components.classes["component://netscape/rdf/rdf-service"].getService(); rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService); editList = rdf.GetResource... |
top.importService = Components.classes["component: | top.importService = Components.classes["@mozilla.org/import/import-service;1"].getService(); | function OnLoadFieldMapExport(){ // top.bundle = srGetStrBundle("chrome://messenger/locale/importMsgs.properties"); top.importService = Components.classes["component://mozilla/import/import-service"].getService(); top.importService = top.importService.QueryInterface(Components.interfaces.nsIImportService); // We need ... |
top.importService = Components.classes["component: | top.importService = Components.classes["@mozilla.org/import/import-service;1"].getService(); | function OnLoadFieldMapImport(){ // top.bundle = srGetStrBundle("chrome://messenger/locale/importMsgs.properties"); top.importService = Components.classes["component://mozilla/import/import-service"].getService(); top.importService = top.importService.QueryInterface(Components.interfaces.nsIImportService); top.transfer... |
var folderNameCol = document.getElementById("folderNameCol"); var showColumns = pref.getBoolPref("mail.showFolderPaneColumns"); | UpdateFolderColumnVisibility(); | function OnLoadFolderPane(){ var folderNameCol = document.getElementById("folderNameCol"); var showColumns = pref.getBoolPref("mail.showFolderPaneColumns"); var folderUnreadCol = document.getElementById("folderUnreadCol"); if (!showColumns) { var folderTotalCol = document.getElementById("folderTotal... |
if (!showColumns) { var folderTotalCol = document.getElementById("folderTotalCol"); var folderSizeCol = document.getElementById("folderSizeCol"); folderUnreadCol.setAttribute("hidden", "true"); folderTotalCol.setAttribute("hidden", "true"); folderSizeCol.setAttribute("hidden", "true"); } else { var folderColumnLabel = ... | function OnLoadFolderPane(){ var folderNameCol = document.getElementById("folderNameCol"); var showColumns = pref.getBoolPref("mail.showFolderPaneColumns"); var folderUnreadCol = document.getElementById("folderUnreadCol"); if (!showColumns) { var folderTotalCol = document.getElementById("folderTotal... | |
ForceFolderPaneOpen(); | function OnLoadFolderPane(){ UpgradeFolderPaneUI(); var folderUnreadCol = document.getElementById("folderUnreadCol"); var hidden = folderUnreadCol.getAttribute("hidden"); if (hidden != "true") { var folderNameCell = document.getElementById("folderNameCell"); folderNameCell.setAttribute("lab... | |
UpgradeFolderPaneUI(); | function OnLoadFolderPane(){ var folderUnreadCol = document.getElementById("folderUnreadCol"); var hidden = folderUnreadCol.getAttribute("hidden"); if (!hidden) { var folderNameCell = document.getElementById("folderNameCell"); folderNameCell.setAttribute("label", "?folderTreeSimpleName"); }... | |
var database = folderTree.database; | var database = GetFolderDatasource(); | function OnLoadFolderPane(folderTree){ gFolderTree = folderTree; SortFolderPane('FolderColumn', 'http://home.netscape.com/NC-rdf#FolderTreeName'); //Add folderDataSource and accountManagerDataSource to folderPane accountManagerDataSource = accountManagerDataSource.QueryInterface(Components.interfaces.nsIRDFDataSourc... |
folderOutliner.outlinerBoxObject.outlinerBody.setAttribute("ref", "msgaccounts:/"); | folderOutliner.setAttribute("ref", "msgaccounts:/"); | function OnLoadFolderPane(){ UpgradeFolderPaneUI(); var folderUnreadCol = document.getElementById("folderUnreadCol"); var hidden = folderUnreadCol.getAttribute("hidden"); if (!hidden) { var folderNameCell = document.getElementById("folderNameCell"); folderNameCell.setAttribute("label", "?fo... |
var folderOutlinerBuilder = folderOutliner.outlinerBoxObject.outlinerBody.builder.QueryInterface(Components.interfaces.nsIXULOutlinerBuilder); | var folderOutlinerBuilder = folderOutliner.builder.QueryInterface(Components.interfaces.nsIXULOutlinerBuilder); | function OnLoadFolderPane(){ UpgradeFolderPaneUI(); var folderUnreadCol = document.getElementById("folderUnreadCol"); var hidden = folderUnreadCol.getAttribute("hidden"); if (!hidden) { var folderNameCell = document.getElementById("folderNameCell"); folderNameCell.setAttribute("label", "?fo... |
folderOutliner.outlinerBoxObject.outlinerBody.setAttribute("ref", "msgaccounts:/"); | function OnLoadFolderPane(){ UpgradeFolderPaneUI(); var folderUnreadCol = document.getElementById("folderUnreadCol"); var hidden = folderUnreadCol.getAttribute("hidden"); if (!hidden) { var folderNameCell = document.getElementById("folderNameCell"); folderNameCell.setAttribute("label", "?fo... | |
dump('In onLoadfolderPane\n'); | function OnLoadFolderPane(folderTree){ dump('In onLoadfolderPane\n'); gFolderTree = folderTree; SortFolderPane('FolderColumn', 'http://home.netscape.com/NC-rdf#FolderTreeName'); //Add folderDataSource and accountManagerDataSource to folderPane accountManagerDataSource = accountManagerDataSource.QueryInterface(Compon... | |
loadSMTPServerList(); document.getElementById('identity.smtpServerKey').value = gIdentity ? gIdentity.smtpServerKey : gAccount.defaultIdentity.smtpServerKey; | function onLoadIdentityProperties(){ // extract the account gIdentity = window.arguments[0].identity; gAccount = window.arguments[0].account; initIdentityValues(gIdentity); initCopiesAndFolder(gIdentity); initCompositionAndAddressing(gIdentity);} | |
top.importService = Components.classes["component: | top.importService = Components.classes["@mozilla.org/import/import-service;1"].getService(); | function OnLoadImportDialog(){ top.bundle = srGetStrBundle("chrome://messenger/locale/importMsgs.properties"); top.importService = Components.classes["component://mozilla/import/import-service"].getService(); top.importService = top.importService.QueryInterface(Components.interfaces.nsIImportService); top.progressInfo... |
doSetOKCancel(ImportDialogOKButton, 0); | function OnLoadImportDialog(){ top.bundle = srGetStrBundle("chrome://messenger/locale/importMsgs.properties"); top.importService = Components.classes["component://mozilla/import/import-service"].getService(); top.importService = top.importService.QueryInterface(Components.interfaces.nsIImportService); top.progressInfo... | |
onLoading:function(request){ Form.disable(checkboxForm); ensureVisibleWithEffectAppear(targetElemId); }, | onLoading:function(request){ Form.disable(checkboxForm); removeFlashNotice(); ensureVisibleWithEffectAppear(targetElemId); }, | onLoading:function(request){ Form.disable(checkboxForm); ensureVisibleWithEffectAppear(targetElemId); }, |
var pref = Components.classes["component: | var pref = Components.classes["@mozilla.org/preferences;1"].getService(); | function onLoadInternetResults(){ // HACK HACK HACK HACK HACK HACK - chrome urls are being stored in sh as file urls! // access to xpconnect is denied! ack! erk! ork! try { var pref = Components.classes["component://netscape/preferences"].getService(); if (pref) pref = pref.QueryInterface(Components.interfaces... |
var iSearch = Components.classes["component: | var iSearch = Components.classes["@mozilla.org/rdf/datasource;1?name=internetsearch"].getService(); | function onLoadInternetResults(){ // HACK HACK HACK HACK HACK HACK - chrome urls are being stored in sh as file urls! // access to xpconnect is denied! ack! erk! ork! try { var pref = Components.classes["component://netscape/preferences"].getService(); if (pref) pref = pref.QueryInterface(Components.interfaces... |
return true; | function onLoadJSConsole() { try { var cs_class = Components.classes['@mozilla.org/consoleservice;1']; var cs_iface = Components.interfaces.nsIConsoleService; var cs_isupports = cs_class.getService(); var cs = cs_isupports.QueryInterface(cs_iface); } catch(exn) { // Couldn't get... | |
var cs_class = Components.classes['consoleservice']; | var cs_class = Components.classes['mozilla.consoleservice.1']; | function onLoadJSConsole() { try { var cs_class = Components.classes['consoleservice']; var cs_iface = Components.interfaces.nsIConsoleService; var cs_isupports = cs_class.getService(); var cs = cs_isupports.QueryInterface(cs_iface); } catch(exn) { // Couldn't get the console se... |
selectedAB = "abmdbdirectory: | selectedAB = "moz-abmdbdirectory: | function OnLoadMailList(){ //XXX: gAddressBookBundle is set in 2 places because of different callers gAddressBookBundle = document.getElementById("bundle_addressBook"); doSetOKCancel(MailListOKButton, 0); var selectedAB; if (window.arguments && window.arguments[0]) { if ( window.arguments[0].selectedAB ) ... |
setTimeout("var msgKey = extractMsgKeyFromURI(gCurrentMessageUri); gDBView.loadMessageByMsgKey(msgKey); gNextMessageViewIndexAfterDelete = gDBView.msgToSelectAfterDelete;", 0); | setTimeout("var msgKey = extractMsgKeyFromURI(gCurrentMessageUri); gDBView.loadMessageByMsgKey(msgKey); gNextMessageViewIndexAfterDelete = gDBView.msgToSelectAfterDelete; UpdateStandAloneMessageCounts();", 0); | function OnLoadMessageWindow(){ HideMenus(); AddMailOfflineObserver(); CreateMailWindowGlobals(); CreateMessageWindowGlobals(); verifyAccounts(null); InitMsgWindow(); messenger.SetWindow(window, msgWindow); InitializeDataSources(); // FIX ME - later we will be able to use onload from the overlay OnLoadMsgHeaderPane()... |
AddToolBarPrefListener(); ShowHideToolBarButtons() | function OnLoadMessageWindow(){ HideMenus(); AddMailOfflineObserver(); CreateMailWindowGlobals(); CreateMessageWindowGlobals(); verifyAccounts(null); InitMsgWindow(); messenger.SetWindow(window, msgWindow); InitializeDataSources(); // FIX ME - later we will be able to use onload from the overlay OnLoadMsgHeaderPane();... | |
gCurrentFolderUri = folder ? folder.folderURL : null; | gCurrentFolderUri = folder ? folder.URI : null; | function OnLoadMessageWindow(){ HideMenus(); AddMailOfflineObserver(); CreateMailWindowGlobals(); CreateMessageWindowGlobals(); AddToolBarPrefListener(); ShowHideToolBarButtons() verifyAccounts(null); InitMsgWindow(); messenger.SetWindow(window, msgWindow); InitializeDataSources(); // FIX ME - later we will be able ... |
accountManager.addIncomingServerListener(gThreePaneIncomingServerListener); | function OnLoadMessenger(){ showPerformance = pref.GetBoolPref('mail.showMessengerPerformance'); var beforeLoadMessenger; if(showPerformance) { beforeLoadMessenger = new Date(); } AddMailOfflineObserver(); CreateMailWindowGlobals(); Create3PaneGlobals(); verifyAccounts(null); HideAccountCentral(); lo... | |
AddToolBarPrefListener(); ShowHideToolBarButtons(); | function OnLoadMessenger(){ AddMailOfflineObserver(); CreateMailWindowGlobals(); Create3PaneGlobals(); verifyAccounts(null); HideAccountCentral(); loadStartPage(); InitMsgWindow(); messenger.SetWindow(window, msgWindow); InitializeDataSources(); InitPanes(); accountManager.SetSpecialFoldersForIdentities(... | |
goSetDefaultController(DefaultController); | function OnLoadMessenger(){ verifyAccounts(); loadStartPage(); InitMsgWindow(); messenger.SetWindow(window, msgWindow); AddDataSources(); InitPanes(); loadStartFolder(); AddToSession(); goSetDefaultController(DefaultController);} | |
dump('Before load start folder\n'); setTimeout("loadStartFolder();", 0); | if(window.arguments && window.arguments[0]) { gStartFolderUri = window.arguments[0]; } else { gStartFolderUri = null; } setTimeout("loadStartFolder(gStartFolderUri);", 0); | function OnLoadMessenger(){ var beforeLoadMessenger = new Date(); CreateGlobals(); verifyAccounts(); loadStartPage(); InitMsgWindow(); messenger.SetWindow(window, msgWindow); AddDataSources(); InitPanes(); AddToSession(); //need to add to session before trying to load start folder otherwise listeners aren't ... |
gCollectIncoming = pref.GetBoolPref("mail.collect_email_address_incoming"); gCollectNewsgroup = pref.GetBoolPref("mail.collect_email_address_newsgroup"); | function OnLoadMsgHeaderPane(){ // build a document object for the header pane so we can cache fetches for elements // in a local variable // if you add more document elements with ids to msgHeaderPane.xul, you should add // to this object... msgPaneData = new Object; // HACK...force our XBL bindings file to be... | |
msgPaneData.UserAgentBox = document.getElementById("UserAgentBox"); | msgPaneData.UserAgentBox = document.getElementById("headerPart3"); | function OnLoadMsgHeaderPane(){ // build a document object for the header pane so we can cache fetches for elements // in a local variable // if you add more document elements with ids to msgHeaderPane.xul, you should add // to this object... msgPaneData = new Object; if (msgPaneData) { // First group of he... |
var cardproperty = Components.classes["component: | var cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(); | function OnLoadNewCard(){ InitEditCard(); doSetOKCancel(NewCardOKButton, 0); var cardproperty = Components.classes["component://netscape/addressbook/cardproperty"].createInstance(); cardproperty = cardproperty.QueryInterface(Components.interfaces.nsIAbCard); editCard.card = cardproperty; editCard.okCallback = 0; editC... |
editCard.selectedAB = "abmdbdirectory: | editCard.selectedAB = "moz-abmdbdirectory: | function OnLoadNewCard(){ InitEditCard(); doSetOKCancel(NewCardOKButton, 0); var cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(); cardproperty = cardproperty.QueryInterface(Components.interfaces.nsIAbCard); editCard.card = cardproperty; editCard.okCallback = 0; editC... |
editCard.titleProperty = "newCardTitle" | editCard.titleProperty = "newCardTitle"; editCard.selectedAB = ""; | function OnLoadNewCard(){ InitEditCard(); doSetOKCancel(NewCardOKButton, 0); var cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(Components.interfaces.nsIAbCard); editCard.card = cardproperty; editCard.titleProperty = "newCardTitle" if ("arguments" in window && window.a... |
} else if (!(directory.operations & directory.opWrite)) { editCard.selectedAB = kPersonalAddressbookURI; | function OnLoadNewCard(){ InitEditCard(); doSetOKCancel(NewCardOKButton, 0); var cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(Components.interfaces.nsIAbCard); editCard.card = cardproperty; editCard.titleProperty = "newCardTitle" if ("arguments" in window && window.a... | |
var addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(Components.interfaces.nsIAddressBook); | function OnLoadNewCard(){ InitEditCard(); gEditCard.card = (("arguments" in window) && (window.arguments.length > 0) && (window.arguments[0] instanceof Components.interfaces.nsIAbCard)) ? window.arguments[0] : Components.classes["@mozilla.org/addressbook/cardproperty;1"] .createInstance(Co... | |
addressbook.escapedVCardToAbCard(window.arguments[0].escapedVCardStr); | Components.classes["@mozilla.org/addressbook;1"] .createInstance(Components.interfaces.nsIAddressBook) .escapedVCardToAbCard(window.arguments[0].escapedVCardStr); | function OnLoadNewCard(){ InitEditCard(); gEditCard.card = (("arguments" in window) && (window.arguments.length > 0) && (window.arguments[0] instanceof Components.interfaces.nsIAbCard)) ? window.arguments[0] : Components.classes["@mozilla.org/addressbook/cardproperty;1"] .createInstance(Co... |
var abPopupLabel = document.getElementById("abPopupLabel"); abPopupLabel.hidden = true; | document.getElementById("abPopupLabel").hidden = true; | function OnLoadNewCard(){ InitEditCard(); gEditCard.card = (("arguments" in window) && (window.arguments.length > 0) && (window.arguments[0] instanceof Components.interfaces.nsIAbCard)) ? window.arguments[0] : Components.classes["@mozilla.org/addressbook/cardproperty;1"] .createInstance(Co... |
if ("allowRemoteContent" in window.arguments[0]) document.getElementById('allowRemoteContent').checked = window.arguments[0].allowRemoteContent == 'true'; | if ("allowRemoteContent" in window.arguments[0]) { gEditCard.card.allowRemoteContent = window.arguments[0].allowRemoteContent; window.arguments[0].allowRemoteContent = false; } | function OnLoadNewCard(){ InitEditCard(); gEditCard.card = (("arguments" in window) && (window.arguments.length > 0) && (window.arguments[0] instanceof Components.interfaces.nsIAbCard)) ? window.arguments[0] : Components.classes["@mozilla.org/addressbook/cardproperty;1"] .createInstance(Co... |
if ( editCard.selectedAB ) abPopup.value = editCard.selectedAB; else { abPopup.value = "abdirectory: | var menupopup = document.getElementById('abPopup-menupopup'); if ( editCard.selectedAB && menupopup && menupopup.childNodes ) { for ( var index = menupopup.childNodes.length - 1; index >= 0; index-- ) { if ( menupopup.childNodes[index].getAttribute('data') == editCard.selectedAB ) { abPopup.value = menupopup.childNode... | function OnLoadNewCard(){ InitEditCard(); doSetOKCancel(NewCardOKButton, 0); var cardproperty = Components.classes["component://netscape/addressbook/cardproperty"].createInstance(); cardproperty = cardproperty.QueryInterface(Components.interfaces.nsIAbCard); editCard.card = cardproperty; editCard.okCallback = 0; editC... |
else if (!(directory.operations & directory.opWrite)) { selectedAB = kPersonalAddressbookURI; } | function OnLoadNewMailList(){ //XXX: gAddressBookBundle is set in 2 places because of different callers gAddressBookBundle = document.getElementById("bundle_addressBook"); var selectedAB = null; if (window.arguments && window.arguments[0]) { var abURI = window.arguments[0].selectedAB; if (abURI) { var d... | |
AppendnewRowAndSetFocus(); | AppendNewRowAndSetFocus(); awFitDummyRows(1); | function OnLoadNewMailList(){ //XXX: gAddressBookBundle is set in 2 places because of different callers gAddressBookBundle = document.getElementById("bundle_addressBook"); var selectedAB = null; if (window.arguments && window.arguments[0]) { var abURI = window.arguments[0].selectedAB; if (abURI) { var d... |
document.addEventListener("keypress", awDocumentKeyPress, true); | function OnLoadNewMailList(){ //XXX: gAddressBookBundle is set in 2 places because of different callers gAddressBookBundle = document.getElementById("bundle_addressBook"); var selectedAB = null; if (window.arguments && window.arguments[0]) { var abURI = window.arguments[0].selectedAB; if (abURI) { var d... | |
if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0]) | if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0] && window.arguments[0].doc) | function onLoadPageInfo(){ //dump("===============================================================================\n"); theBundle = document.getElementById("pageinfobundle"); gStrings.unknown = theBundle.getString("unknown"); gStrings.notSet = theBundle.getString("notset"); gStrings.emptyString = theBundle.getStri... |
theDocument = window.arguments[0]; | theDocument = window.arguments[0].doc; | function onLoadPageInfo(){ //dump("===============================================================================\n"); theBundle = document.getElementById("pageinfobundle"); gStrings.unknown = theBundle.getString("unknown"); gStrings.notSet = theBundle.getString("notset"); gStrings.emptyString = theBundle.getStri... |
if ("arguments" in window && window.arguments.length > 1) | var tabControl = document.getElementById("tabbox"); if (tabControl) | function onLoadPageInfo(){ //dump("===============================================================================\n"); theBundle = document.getElementById("pageinfobundle"); gStrings.unknown = theBundle.getString("unknown"); gStrings.notSet = theBundle.getString("notset"); gStrings.emptyString = theBundle.getStri... |
var tabName = window.arguments[1]; if (tabName) | if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0] && window.arguments[0].initialTab) | function onLoadPageInfo(){ //dump("===============================================================================\n"); theBundle = document.getElementById("pageinfobundle"); gStrings.unknown = theBundle.getString("unknown"); gStrings.notSet = theBundle.getString("notset"); gStrings.emptyString = theBundle.getStri... |
var tabControl = document.getElementById("tabbox"); var tab = document.getElementById(tabName); if (tabControl && tab) { | var tab = document.getElementById(window.arguments[0].initialTab); if (tab) | function onLoadPageInfo(){ //dump("===============================================================================\n"); theBundle = document.getElementById("pageinfobundle"); gStrings.unknown = theBundle.getString("unknown"); gStrings.notSet = theBundle.getString("notset"); gStrings.emptyString = theBundle.getStri... |
} | function onLoadPageInfo(){ //dump("===============================================================================\n"); theBundle = document.getElementById("pageinfobundle"); gStrings.unknown = theBundle.getString("unknown"); gStrings.notSet = theBundle.getString("notset"); gStrings.emptyString = theBundle.getStri... | |
tabControl.selectedTab.focus(); | function onLoadPageInfo(){ //dump("===============================================================================\n"); theBundle = document.getElementById("pageinfobundle"); gStrings.unknown = theBundle.getString("unknown"); gStrings.notSet = theBundle.getString("notset"); gStrings.emptyString = theBundle.getStri... | |
docTitle = strbundle.getString("pageInfo.title"); } window.document.title = docTitle; | function onLoadPageInfo(){ var page; if ((window.arguments.length >= 1) && window.arguments[0]) page = window.arguments[0]; else page = window.opener.frames[0].document; var root = document.getElementById("cont"); makeDocument(page, root); var formTreeHolder = document.getElementById("formTreeContainer"); ... | |
printEngine.StartPrintOperation(); | printEngine.StartPrintOperation(printSettings); | function OnLoadPrintEngine(){ PrintEngineCreateGlobals(); InitPrintEngineWindow(); printEngine.StartPrintOperation(); } |
printEngine.StartPrintOperation(); | function OnLoadPrintEngine(){ PrintEngineCreateGlobals(); InitPrintEngineWindow();} | |
var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService); var props = sbs.createBundle("chrome: var windowTitle = props.formatStringFromName("PrintPreviewWindowTitle", [args.title], 1); document.title = windowTitle; | function OnLoadPrintEngine(){ var args = window.arguments[0]; gContent = document.getElementById("content"); var htmlexporter = Components.classes["@mozilla.org/calendar/export;1?type=html"].createInstance(Components.interfaces.calIExporter); // Fail-safe check to not init twice, to prevent leaking files if (!gTem... | |
gTcButton = document.getElementById("ccButton"); | gCcButton = document.getElementById("ccButton"); | function OnLoadSelectAddress(){ gAddressBookBundle = document.getElementById("bundle_addressBook"); prefixTo = gAddressBookBundle.getString("prefixTo") + ": "; prefixCc = gAddressBookBundle.getString("prefixCc") + ": "; prefixBcc = gAddressBookBundle.getString("prefixBcc") + ": "; InitCommonJS(); UpgradeAddressBo... |
top.addressbook = Components.classes["component: | top.addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(); | function OnLoadSelectAddress(){ InitCommonJS(); var toAddress="", ccAddress="", bccAddress=""; doSetOKCancel(SelectAddressOKButton, 0); top.addressbook = Components.classes["component://netscape/addressbook"].createInstance(); top.addressbook = top.addressbook.QueryInterface(Components.interfaces.nsIAddressBook); top.g... |
UpdateAttachmentCol(true); | function OnLoadThreadPane(){ UpgradeThreadPaneUI();} | |
try { document.getElementById("menu_highlightSyntax").setAttribute("checked", gPrefs.getBoolPref("view_source.syntax_highlight")); } catch (e) { } } else { document.getElementById("menu_highlightSyntax").setAttribute("hidden", "true"); | function onLoadViewPartialSource(){ // check the view_source.wrap_long_lines pref and set the menuitem's checked attribute accordingly if (gPrefs) { try { var wraplonglinesPrefValue = gPrefs.getBoolPref('view_source.wrap_long_lines'); if (wraplonglinesPrefValue) { document.getElementById('menu_wra... | |
document.getElementById('cmd_savePage').setAttribute('disabled', 'true'); | function onLoadViewPartialSource(){ // check the view_source.wrap_long_lines pref and set the menuitem's checked attribute accordingly if (gPrefs) { try { var wraplonglinesPrefValue = gPrefs.getBoolPref('view_source.wrap_long_lines'); if (wraplonglinesPrefValue) { document.getElementById('menu_wra... | |
#ifdef MOZ_PHOENIX | function onLoadViewSource() { viewSource(window.arguments[0]); document.commandDispatcher.focusedWindow = content;#ifdef MOZ_PHOENIX gFindBar.initFindBar();#endif} | |
#endif | function onLoadViewSource() { viewSource(window.arguments[0]); document.commandDispatcher.focusedWindow = content;#ifdef MOZ_PHOENIX gFindBar.initFindBar();#endif} | |
if ( window.content ) { | if ( window._content ) { | function onLoadViewSource() { try { createBrowserInstance(); if (appCore == null) { // Give up. dump("Giving up...\n"); window.close(); } // Initialize browser instance.. appCore.setWebShellWindow(window); if ( window.content ) { d... |
appCore.setContentWindow( window.content ); | appCore.setContentWindow( window._content ); | function onLoadViewSource() { try { createBrowserInstance(); if (appCore == null) { // Give up. dump("Giving up...\n"); window.close(); } // Initialize browser instance.. appCore.setWebShellWindow(window); if ( window.content ) { d... |
if (!this.userTyped.value) { | if (this.urlBar && !this.userTyped.value) { | onLocationChange : function(aWebProgress, aRequest, aLocation) { this.setOverLink("", null); var location = aLocation.spec; if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } // Disable menu entries for images, enable otherwise i... |
if (browser.userTypedClear) | if (browser.userTypedClear > 0) | onLocationChange : function(aWebProgress, aRequest, aLocation) { // XXX temporary hack for bug 104532. // Depends heavily on setOverLink implementation if (!aRequest) this.status = this.jsStatus = this.jsDefaultStatus = ""; this.setOverLink(""); var locationURI = null; var location = ""; ... |
domWindow = aWebProgress.DOMWindow; if (domWindow == domWindow.top) { this.urlBar.value = aLocation.spec; } this.refTab.setAttribute("lastLocation",aLocation.spec); }, | const rsschromemask = "chrome: if(aLocation.spec.substr(0, rsschromemask.length) == rsschromemask) { this.urlBar.value=" rss view "; } else { domWindow = aWebProgress.DOMWindow; if (domWindow == domWindow.top) { this.urlBar.value = aLocation.spec; } } }, | onLocationChange : function(aWebProgress, aRequest, aLocation) { domWindow = aWebProgress.DOMWindow; // Update urlbar only if there was a load on the root docshell if (domWindow == domWindow.top) { this.urlBar.value = aLocation.spec; } this.refTab.setAttribute("lastLocatio... |
var domWindow = aWebProgress.DOMWindow; if (domWindow == this.getFrom(domWindow, "top")) { | if (aWebProgress.DOMWindow == content) { | onLocationChange : function(aWebProgress, aRequest, aLocation) { this.setOverLink("", null); var location = aLocation.spec; if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } // We should probably not do this if the value has change... |
if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } | if (location == "about:blank") location = ""; | onLocationChange : function(aWebProgress, aRequest, aLocation) { this.setOverLink("", null); var location = aLocation.spec; if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } // We should probably not do this if the value has change... |
if (gURLBar && !this.userTyped.value) { | var userTypedValue = browser.userTypedValue; if (gURLBar && !userTypedValue) { | onLocationChange : function(aWebProgress, aRequest, aLocation) { this.setOverLink("", null); var location = aLocation.spec; if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } // We should probably not do this if the value has change... |
this.userTyped.value = false; | browser.userTypedValue = userTypedValue; } else { gURLBar.value = userTypedValue; SetPageProxyState("invalid", null); | onLocationChange : function(aWebProgress, aRequest, aLocation) { this.setOverLink("", null); var location = aLocation.spec; if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } // We should probably not do this if the value has change... |
if (hostPort != browser.popupDomain) | if (hostPort != browser.popupDomain) { | onLocationChange : function(aWebProgress, aRequest, aLocation) { // XXX temporary hack for bug 104532. // Depends heavily on setOverLink implementation if (!aRequest) this.status = this.jsStatus = this.jsDefaultStatus = ""; this.setOverLink(""); var locationURI = null; var location = ""; ... |
browser.popupUrls = null; browser.popupFeatures = null; } | onLocationChange : function(aWebProgress, aRequest, aLocation) { // XXX temporary hack for bug 104532. // Depends heavily on setOverLink implementation if (!aRequest) this.status = this.jsStatus = this.jsDefaultStatus = ""; this.setOverLink(""); var locationURI = null; var location = ""; ... | |
if (!aRequest) this.status = this.jsStatus = this.jsDefaultStatus = ""; | onLocationChange : function(aWebProgress, aRequest, aLocation) { this.setOverLink(""); var locationURI = null; var location = ""; if (aLocation) { try { if (!gURIFixup) gURIFixup = Components.classes["@mozilla.org/docshell/urifixup;1"] .getService(C... | |
if (document.tooltipNode) { if (aWebProgress.DOMWindow == content) { document.getElementById("aHTMLTooltip").hidePopup(); document.tooltipNode = null; } else { for (var tooltipWindow = document.tooltipNode.target.ownerDocument.defaultView; tooltipWindow != tooltipWindow.parent; tooltipWindow = tooltipWindow.parent) { ... | onLocationChange : function(aWebProgress, aRequest, aLocation) { if (gContextMenu) { // Optimise for the common case if (aWebProgress.DOMWindow == content) gContextMenu.menu.hidePopup(); else { for (var contextWindow = gContextMenu.target.ownerDocument.defaultView; context... | |
setTimeout("updatePageTheme();", 0); | setTimeout(updatePageTheme, 0); | onLocationChange : function(aWebProgress, aRequest, aLocation) { this.setOverLink("", null); var location = aLocation.spec; if (location == "about:blank") location = ""; // We should probably not do this if the value has changed since the user // searched // Update urlbar only if a new page wa... |
this.setOverLink("", null); | onLocationChange : function(aWebProgress, aRequest, aLocation) { var location = aLocation.spec; if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } // We should probably not do this if the value has changed since the user // searched... | |
if(aWebProgress.canGoBack) { document.getElementById("back-button").disabled=false; } else { document.getElementById("back-button").disabled=true; } if(aWebProgress.canGoForward) { document.getElementById("forward-button").disabled=false; } else { document.getElementById("forward-button").disabled=true; } | onLocationChange : function(aWebProgress, aRequest, aLocation) { /* Ideally we dont want to check this here. Better to have some other protocol view-rss in the chrome */ const rssmask = "chrome://minimo/content/rssview/rssload.xhtml?url="; const sbmask = "chrome://minimo/content/rssview/rssload.xhtml... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.