rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
var channel = ios.newChannelFromURI('load', uri, null, null, Components.interfaces.nsIChannel.LOAD_NORMAL, null);
var channel = ios.newChannelFromURI('load', uri, null, null, Components.interfaces.nsIChannel.LOAD_NORMAL, null, 0, 0);
function ReadDirectory(url){ debug('ReadDirectory(' + url + ')\n'); var ios = Components.classes['component://netscape/network/io-service'].getService(); ios = ios.QueryInterface(Components.interfaces.nsIIOService); var uri = ios.newURI(url, null); // Create a channel... var channel = ios.newChannelFr...
var dirURL = Components.classes[NS_STANDARDURL_CONTRACTID]. createInstance(nsIFileURL); dirURL.file = aLocalFile.parent;
var ios = Components.classes[IO_SERVICE_CONTRACTID] .getService(nsIIOService); var dirURL = ios.newFileURI(aLocalFile.parent); var moz_src = /.*(?=mozilla)/.exec(dirURL.path);
readFileList : function(aLocalFile) { var dirURL = Components.classes[NS_STANDARDURL_CONTRACTID]. createInstance(nsIFileURL); dirURL.file = aLocalFile.parent; var fis = Components.classes[NS_LOCALFILEINPUTSTREAM_CONTRACTID]. createInstance(nsIFileInputStream)...
var item = dirURL.resolve(str);
var item = dirURL.resolve(str.toString().replace(/\/s\|\
readFileList : function(aLocalFile) { var dirURL = Components.classes[NS_STANDARDURL_CONTRACTID]. createInstance(nsIFileURL); dirURL.file = aLocalFile.parent; var fis = Components.classes[NS_LOCALFILEINPUTSTREAM_CONTRACTID]. createInstance(nsIFileInputStream)...
var itemurl = Components.classes[NS_STANDARDURL_CONTRACTID]. createInstance(nsIFileURL); itemurl.spec = item;
var itemurl = ios.newURI(item, null, null);
readFileList : function(aLocalFile) { var dirURL = Components.classes[NS_STANDARDURL_CONTRACTID]. createInstance(nsIFileURL); dirURL.file = aLocalFile.parent; var fis = Components.classes[NS_LOCALFILEINPUTSTREAM_CONTRACTID]. createInstance(nsIFileInputStream)...
{ var clipboard = getService( "component: var trans = createInstance( "component: if ( !clipboard || !trans ) return;
{ var clipboard = Components .classes["component: .getService ( Components.interfaces.nsIClipboard ); var trans = Components .classes["component: .createInstance( Components.interfaces.nsITransferable ); if ( !clipboard || !trans ) return;
function readFromClipboard(){ var clipboard = getService( "component://netscape/widget/clipboard", "nsIClipboard" ); var trans = createInstance( "component://netscape/widget/transferable", "nsITransferable" ); if ( !clipboard || !trans ) return; trans.addDataFlavor( "text/plain" ); clipboard.getData(trans); va...
var data = new Object(); var dataLen = new Object(); trans.getTransferData("text/plain", data, dataLen); var url = null; if (data) { data = data.value.QueryInterface(Components.interfaces.nsISupportsString); url = data.data.substring(0, dataLen.value);
var data = new Object(); var dataLen = new Object(); trans.getTransferData("text/plain", data, dataLen); var url = null; if (data) { data = data.value.QueryInterface(Components.interfaces .nsISupportsString); url = data.data.substring(0, dataLen.value); } return url;
function readFromClipboard(){ var clipboard = getService( "component://netscape/widget/clipboard", "nsIClipboard" ); var trans = createInstance( "component://netscape/widget/transferable", "nsITransferable" ); if ( !clipboard || !trans ) return; trans.addDataFlavor( "text/plain" ); clipboard.getData(trans); va...
return url; }
function readFromClipboard(){ var clipboard = getService( "component://netscape/widget/clipboard", "nsIClipboard" ); var trans = createInstance( "component://netscape/widget/transferable", "nsITransferable" ); if ( !clipboard || !trans ) return; trans.addDataFlavor( "text/plain" ); clipboard.getData(trans); va...
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
function readIRCPrefs (rootNode){ var pref = Components.classes["component://netscape/preferences"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) rootNode += "."; pref = pref.Query...
client.NEW_TAB_THRESHOLD = getIntPref (pref, rootNode + "newTabThreshold", 15); client.FOCUS_NEW_TAB = getIntPref (pref, rootNode + "focusNewTab", false);
client.NEW_TAB_LIMIT = getIntPref (pref, rootNode + "newTabLimit", 15); client.RAISE_NEW_TAB = getBoolPref (pref, rootNode + "raiseNewTab", false);
function readIRCPrefs (rootNode){ const PREF_CTRID = "@mozilla.org/preferences-service;1"; const nsIPrefBranch = Components.interfaces.nsIPrefBranch var pref = Components.classes[PREF_CTRID].getService(nsIPrefBranch); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode =...
const ss = Components.interfaces.nsIShellService; var shell = Components.classes["@mozilla.org/browser/shell-service;1"].getService(ss); shell.openPreferredApplication(ss.APPLICATION_MAIL);
var shell = getShellService(); if (shell) shell.openPreferredApplication(Components.interfaces.nsIShellService.APPLICATION_MAIL);
readMail: function () { const ss = Components.interfaces.nsIShellService; var shell = Components.classes["@mozilla.org/browser/shell-service;1"].getService(ss); shell.openPreferredApplication(ss.APPLICATION_MAIL); },
const ss = Components.interfaces.nsIShellService; var shell = Components.classes["@mozilla.org/browser/shell-service;1"].getService(Components.interfaces.nsIShellService); shell.openPreferredApplication(ss.APPLICATION_NEWS);
var shell = window.getShellService(); if (shell) shell.openPreferredApplication(Components.interfaces.nsIShellService.APPLICATION_NEWS);
readNews: function () { const ss = Components.interfaces.nsIShellService; var shell = Components.classes["@mozilla.org/browser/shell-service;1"].getService(Components.interfaces.nsIShellService); shell.openPreferredApplication(ss.APPLICATION_NEWS); },
var providers = Cc["@mozilla.org/preferences-service;1"] .getService(Ci.nsIPrefService) .getBranch("browser.safebrowsing.provider.");
var providerBranch = Cc["@mozilla.org/preferences-service;1"] .getService(Ci.nsIPrefService) .getBranch("browser.safebrowsing.provider.");
readOnloadPhishProvider: function () { const Cc = Components.classes, Ci = Components.interfaces; const onloadPopupId = "onloadPhishPopup"; var popup = document.getElementById(onloadPopupId); if (!popup) { var providers = Cc["@mozilla.org/preferences-service;1"] .getService(Ci...
var kids = providers.getChildList("", {});
var kids = providerBranch.getChildList("", {}); var providers = []; var hasPrivacyPolicy = {};
readOnloadPhishProvider: function () { const Cc = Components.classes, Ci = Components.interfaces; const onloadPopupId = "onloadPhishPopup"; var popup = document.getElementById(onloadPopupId); if (!popup) { var providers = Cc["@mozilla.org/preferences-service;1"] .getService(Ci...
var matches = curr.match(/^(\d+)\.name$/);
var matchesName = curr.match(/^(\d+)\.name$/); var matchesPolicy = curr.match(/^(\d+)\.privacy\.url$/);
readOnloadPhishProvider: function () { const Cc = Components.classes, Ci = Components.interfaces; const onloadPopupId = "onloadPhishPopup"; var popup = document.getElementById(onloadPopupId); if (!popup) { var providers = Cc["@mozilla.org/preferences-service;1"] .getService(Ci...
if (!matches)
if (!matchesName && !matchesPolicy)
readOnloadPhishProvider: function () { const Cc = Components.classes, Ci = Components.interfaces; const onloadPopupId = "onloadPhishPopup"; var popup = document.getElementById(onloadPopupId); if (!popup) { var providers = Cc["@mozilla.org/preferences-service;1"] .getService(Ci...
var providerNum = matches[1]; var providerName = providers.getCharPref(curr);
var providerName = providerBranch.getCharPref(providerNum + ".name");
readOnloadPhishProvider: function () { const Cc = Components.classes, Ci = Components.interfaces; const onloadPopupId = "onloadPhishPopup"; var popup = document.getElementById(onloadPopupId); if (!popup) { var providers = Cc["@mozilla.org/preferences-service;1"] .getService(Ci...
soundUrlLocation.value = document.getElementById("mail.biff.play_sound.url").value; soundUrlLocation.label = this.convertURLToLocalFile(soundUrlLocation.value).leafName; soundUrlLocation.image = "moz-icon:
soundUrlLocation.value = document.getElementById("mail.biff.play_sound.url").value; if (soundUrlLocation.value) { soundUrlLocation.label = this.convertURLToLocalFile(soundUrlLocation.value).leafName; soundUrlLocation.image = "moz-icon: }
readSoundLocation: function() { var soundUrlLocation = document.getElementById("soundUrlLocation"); soundUrlLocation.value = document.getElementById("mail.biff.play_sound.url").value; soundUrlLocation.label = this.convertURLToLocalFile(soundUrlLocation.value).leafName; soundUrlLocation.image = "moz-...
if (!console.enableChromeFilter || script.fileName.indexOf ("chrome:") != 0)
if (!isURLFiltered(script.fileName))
function realizeScript(script){ var container; if (script.fileName in console.scripts) { container = console.scripts[script.fileName]; if (!("parentRecord" in container)) { /* container record exists but is not inserted in the scripts view, * either we are reloading ...
currentView.goToDay( pickedDate );
currentView.goToDay( jsDateToDateTime(pickedDate) );
args.onOk = function receiveAndGoToDate( pickedDate ) { currentView.goToDay( pickedDate ); document.getElementById( "lefthandcalendar" ).value = pickedDate; };
fieldValue = inputField.value;
var fieldValue = inputField.value;
function Recipients2CompFields(msgCompFields){ if (msgCompFields) { var i = 1; var addrTo = ""; var addrCc = ""; var addrBcc = ""; var addrReply = ""; var addrNg = ""; var addrFollow = ""; var addrOther = ""; var to_Sep = ""; var cc_Sep = ""; var bcc_Sep = ""; var reply_Sep = ""; var ng_Sep = ""; var foll...
},
}
redoTransaction: function () { this.beginUpdateBatch(); for (var i=0; i<this.item.length; ++i) { if (this.isValid[i]) { this.RDFC.Init(this.BMDS, this.parent[i]); this.RDFC.InsertElementAt(this.item[i], this.index[i], true); } } this.endUpdateBatch(); },
void("Calendar query started (" + this.today.start + " -> " + this.soon.end + ")\n");
function refreshCalendarQuery(){ var filter = this.calendar.ITEM_FILTER_COMPLETED_ALL | this.calendar.ITEM_FILTER_CLASS_OCCURRENCES; if (!this.filterType) this.filterType = 'all'; switch (this.filterType) { case 'all': filter |= this.calendar.ITEM_FILTER_TYPE_EVENT | ...
refreshEventTree( eventTable, "unifinder-categories-tree-children" );
refreshEventTree( eventTable, "unifinder-categories-tree" );
function refreshCategoriesTree( eventTable ){ refreshEventTree( eventTable, "unifinder-categories-tree-children" );}
if (fileName != null) setGlobal("NciFileName", fileName);
function refreshConfigFrame(fileName){ if (parent.nci) { parent.nci.refreshNCIList(); if (fileName != null) parent.nci.setNCIList(fileName); } else if (parent.parent.nci) { parent.parent.nci.refreshNCIList(); if (fileName != null) parent.parent.nci.setNCIList(fileName); }}
if (fileName != null) setGlobal("IASFileName", fileName);
function refreshConfigFrame(fileName){ debug("Globals: refreshing config frame"); if (parent.ias) { debug("Globals: refreshing config frame : parent"); parent.ias.refreshIASList(); if (fileName != null) parent.ias.setIASList(fileName); } else if (parent.parent.ias) { debug("Globals: refreshing config frame : par...
item.setAttribute('value', gLastDefaultViewIndex + index);
item.setAttribute('value', kLastDefaultViewIndex + index);
function refreshCustomMailViews(aDefaultSelectedIndex){ // for each mail view in the msg view list, add an entry in our combo box if (!gMailViewList) gMailViewList = Components.classes["@mozilla.org/messenger/mailviewlist;1"].getService(Components.interfaces.nsIMsgMailViewList); // remove any existing entries... ...
viewPicker.value = gLastDefaultViewIndex + aDefaultSelectedIndex; gCurrentViewValue = viewPicker.value; LoadCustomMailView(aDefaultSelectedIndex);
viewPicker.selectedItem = document.getElementsByAttribute("value", kLastDefaultViewIndex + aDefaultSelectedIndex)[0]; viewChange(viewPicker);
function refreshCustomMailViews(aDefaultSelectedIndex){ // for each mail view in the msg view list, add an entry in our combo box if (!gMailViewList) gMailViewList = Components.classes["@mozilla.org/messenger/mailviewlist;1"].getService(Components.interfaces.nsIMsgMailViewList); // remove any existing entries... ...
treeItem.setAttribute( "onmouseover", "changeToolTipTextForEvent( event )" );
function refreshEventTree( eventArray ){ // get the old tree children item and remove it var oldTreeChildren = document.getElementById( UnifinderTreeName ); while( oldTreeChildren.hasChildNodes() ) oldTreeChildren.removeChild( oldTreeChildren.lastChild ); // add: tree item, row, cell, box and text it...
EndDate = new Date( MidnightSelectedDate.getTime() + ( 1000 * 60 * 60 * 24 ) - 1000 );
EndDate = new Date( StartDate.getTime() + ( 1000 * 60 * 60 * 24 ) - 1000 );
function refreshEventTree( eventArray ){ var savedThis = this; var refreshListener = { mEventArray: new Array(), onOperationComplete: function (aCalendar, aStatus, aOperationType, aId, aDateTime) { setTimeout(function () { refreshEventTreeInternal(refreshListener.mEventArray); }, 0); }, ...
var calendar = getCalendar();
var ccalendar = getDisplayComposite();
function refreshEventTree( eventArray ){ var savedThis = this; var refreshListener = { mEventArray: new Array(), onOperationComplete: function (aCalendar, aStatus, aOperationType, aId, aDateTime) { setTimeout(function () { refreshEventTreeInternal(refreshListener.mEventArray); }, 0); }, ...
filter |= calendar.ITEM_FILTER_TYPE_EVENT;
filter |= ccalendar.ITEM_FILTER_TYPE_EVENT;
function refreshEventTree( eventArray ){ var savedThis = this; var refreshListener = { mEventArray: new Array(), onOperationComplete: function (aCalendar, aStatus, aOperationType, aId, aDateTime) { setTimeout(function () { refreshEventTreeInternal(refreshListener.mEventArray); }, 0); }, ...
calendar.getItems (filter, 0, s, e, refreshListener);
ccalendar.getItems (filter, 0, s, e, refreshListener);
function refreshEventTree( eventArray ){ var savedThis = this; var refreshListener = { mEventArray: new Array(), onOperationComplete: function (aCalendar, aStatus, aOperationType, aId, aDateTime) { setTimeout(function () { refreshEventTreeInternal(refreshListener.mEventArray); }, 0); }, ...
gEventArray.sort(sortEvents);
treeView.sortStartedTime = new Date().getTime(); gEventArray.sort(compareEvents);
function refreshEventTree( eventArray ){ gEventArray = eventArray; treeView.rowCount = gEventArray.length; var ArrayOfTreeCols = document.getElementById( UnifinderTreeName ).getElementsByTagName( "treecol" ); for( var i = 0; i < ArrayOfTreeCols.length; i++ ) { if( ArrayOfTreeCols[i].getAttribute( "...
document.getElementById( UnifinderTreeName ).eventView = new calendarEventView( eventArray );
document.getElementById( UnifinderTreeName ).eventView = new calendarEventView( gEventArray );
function refreshEventTreeInternal(eventArray){ var searchText = document.getElementById( "unifinder-search-field" ).value; // XXX match for strings with only whitespace. Skip those too if (searchText.length) { gEventArray = new Array(); var fieldsToSearch = ["DESCRIPTION", "LOCATION", "CATEGORIES", "U...
lastTreeChildrenValue = null; lastTreeChildren = null;
function RefreshList(){ // force it to talk to the server SetUpTree(true); // forget the cached tree children lastTreeChildrenValue = null; lastTreeChildren = null;}
this.periods.forEach(function (when) { void(when.title + ": " + when.start + " -> " + when.end + "\n"); });
function refreshPeriodDates(){ var now = new Date(); var d = new CalDateTime(); d.jsDate = now; d = d.getInTimezone(calendarDefaultTimezone()); // Today: now until midnight of tonight this.today.start = d.clone(); d.hour = d.minute = d.second = 0; d.day++; d.normalize(); this.today.end = d...
refreshSearchEventTree( gSearchEventTable, "unifinder-search-results-tree-children" );
refreshEventTree( gSearchEventTable, "unifinder-search-results-tree", false );
function refreshSearchTree( SearchEventTable ){ gSearchEventTable = SearchEventTable; refreshSearchEventTree( gSearchEventTable, "unifinder-search-results-tree-children" );}
for (var i=0; i< oldSelectedIds.length; i++) {
for (i=0; i< oldSelectedIds.length; i++) {
function refreshServerList(){ // save selection var oldSelectedIds = new Array; serverList.clearItemSelection(); var selectedItems = serverList.selectedItems; for (var i=0; i< selectedItems.length; i++) oldSelectedIds[i] = selectedItems[0].id; var treeChildren = document.getElementById("smtpTre...
element.setAttribute("selected", "true");
serverList.selectItem(element);
function refreshServerList(){ // save selection var oldSelectedIds = new Array; serverList.clearItemSelection(); var selectedItems = serverList.selectedItems; for (var i=0; i< selectedItems.length; i++) oldSelectedIds[i] = selectedItems[0].id; var treeChildren = document.getElementById("smtpTre...
toDoTreeView.sortStartedTime = new Date().getTime();
toDoTreeView.sortStartedTime = now();
function refreshToDoTree( taskArray ){ if( taskArray === false ) taskArray = getTaskTable(); gTaskArray = taskArray; toDoTreeView.rowCount = gTaskArray.length; var ArrayOfTreeCols = document.getElementById( ToDoUnifinderTreeName ).getElementsByTagName( "treecol" ); for( var i = 0; i < ArrayOfTreeCo...
gTaskArray.sort(sortTasks);
toDoTreeView.sortStartedTime = new Date().getTime(); gTaskArray.sort(compareTasks);
function refreshToDoTree( taskArray ){ if( taskArray === false ) taskArray = getTaskTable(); gTaskArray = taskArray; toDoTreeView.rowCount = gTaskArray.length; var ArrayOfTreeCols = document.getElementById( ToDoUnifinderTreeName ).getElementsByTagName( "treecol" ); for( var i = 0; i < ArrayOfTreeCo...
if( now.getTime() > dueDate.getTime() )
var tonightMidnight = new Date( now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 59 ); if( now.getTime() > tonightMidnight.getTime() )
function refreshToDoTree( eventArray ){ // get the old tree children item and remove it var oldTreeChildren = document.getElementById( ToDoUnifinderTreeName ); var elementsToRemove = document.getElementsByAttribute( "taskitem", "true" ); for( var i = 0; i < elementsToRemove.length; i++ ) { elements...
var ArrayOfTreeCols = document.getElementById( UnifinderTreeName ).getElementsByTagName( "treecol" );
var ArrayOfTreeCols = document.getElementById( ToDoUnifinderTreeName ).getElementsByTagName( "treecol" );
function refreshToDoTree( taskArray ){ if( taskArray === false ) taskArray = getTaskTable(); gTaskArray = taskArray; toDoTreeView.rowCount = gTaskArray.length; var ArrayOfTreeCols = document.getElementById( UnifinderTreeName ).getElementsByTagName( "treecol" ); for( var i = 0; i < ArrayOfTreeCols.l...
if (cView.displayCalendar) {
if (cView.initialized) {
function refreshUIBits() { agendaTreeView.refreshPeriodDates(); document.getElementById("ltnMinimonth").refreshDisplay(); // refresh the current view, if it has ever been shown var cView = currentView(); if (cView.displayCalendar) { cView.goToDay(cView.selectedDay); } // schedule our next up...
if (this.findCalendarID(calendar) > 0)
if (this.findCalendarID(calendar) > 0) { dump ("registerCalendar: calendar already registered\n");
registerCalendar: function(calendar) { // bail if this calendar (or one that looks identical to it) is already registered if (this.findCalendarID(calendar) > 0) throw Components.results.NS_ERROR_FAILURE; var pp = this.mRegisterCalendar.params; pp.type = calendar.type; p...
}
registerCalendar: function(calendar) { // bail if this calendar (or one that looks identical to it) is already registered if (this.findCalendarID(calendar) > 0) throw Components.results.NS_ERROR_FAILURE; var pp = this.mRegisterCalendar.params; pp.type = calendar.type; p...
throw Components.results.NS_ERROR_FACTORY_REGISTER_AGAIN;
throw Cr.NS_ERROR_FACTORY_REGISTER_AGAIN;
registerSelf: function(componentManager, location, loaderString, type) { if (this._firstTime) { this._firstTime = false; throw Components.results.NS_ERROR_FACTORY_REGISTER_AGAIN; } componentManager = componentManager.QueryInterface(Components.interfaces.nsIComponentRegistrar); for (var key i...
componentManager = componentManager.QueryInterface(Components.interfaces.nsIComponentRegistrar);
componentManager = componentManager.QueryInterface(Ci.nsIComponentRegistrar);
registerSelf: function(componentManager, location, loaderString, type) { if (this._firstTime) { this._firstTime = false; throw Components.results.NS_ERROR_FACTORY_REGISTER_AGAIN; } componentManager = componentManager.QueryInterface(Components.interfaces.nsIComponentRegistrar); for (var key i...
dump("*** Registering smime account manager extension.\n");
debug("*** Registering smime account manager extension.\n");
SMIMEModule.registerSelf =function (compMgr, fileSpec, location, type){ dump("*** Registering smime account manager extension.\n"); compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.registerFactoryLocation(SMIME_EXTENSION_SERVICE_CID, "SMIME Accou...
dump("*** Registering -venkman handler.\n");
debug("*** Registering -venkman handler.\n");
Module.registerSelf =function (compMgr, fileSpec, location, type){ dump("*** Registering -venkman handler.\n"); compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.registerFactoryLocation(CLINE_SERVICE_CID, "Venkman CommandLine Service",...
catman = Components.classes["mozilla.categorymanager.1"]
catman = Components.classes["@mozilla.org/categorymanager;1"]
XMLtermModule.registerSelf =function (compMgr, fileSpec, location, type){ dump("*** Registering -terminal handler.\n"); compMgr.registerComponentWithType(CLINE_SERVICE_CID, "XMLterm CommandLine Service", CLINE_SERVICE_CONTRACTID, fileSpec, ...
cr.registerFactoryLocation(GENERATOR_CLASSID, GENERATOR_CLASSNAME, GENERATOR_CONTRACTID, file, location, type); cr.registerFactoryLocation(PERSON_CLASSID, PERSON_CLASSNAME, PERSON_CONTRACTID, file, location, type);
registerSelf: function(cm, file, location, type) { var cr = cm.QueryInterface(Ci.nsIComponentRegistrar); // Feed Processor cr.registerFactoryLocation(FP_CLASSID, FP_CLASSNAME, FP_CONTRACTID, file, location, type); // Feed Result cr.registerFactoryLocation(FR_CLASSID, FR_CLASSNAME, FR_CONTRACT...
dump("*** Registering mdn account manager extension.\n");
debug("*** Registering mdn account manager extension.\n");
MDNModule.registerSelf =function (compMgr, fileSpec, location, type){ dump("*** Registering mdn account manager extension.\n"); compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.registerFactoryLocation(MDN_EXTENSION_SERVICE_CID, "MDN Account Manag...
dump("*** Deferring registration of sample JS components\n");
debug("*** Deferring registration of sample JS components\n");
registerSelf: function (compMgr, fileSpec, location, type) { if (this.firstTime) { dump("*** Deferring registration of sample JS components\n"); this.firstTime = false; throw Components.results.NS_ERROR_FACTORY_REGISTER_AGAIN; } dump("*** Registering sample JS c...
dump("*** Registering sample JS components\n");
debug("*** Registering sample JS components\n");
registerSelf: function (compMgr, fileSpec, location, type) { if (this.firstTime) { dump("*** Deferring registration of sample JS components\n"); this.firstTime = false; throw Components.results.NS_ERROR_FACTORY_REGISTER_AGAIN; } dump("*** Registering sample JS c...
CalendarModule.registerSelf =
ChatzillaModule.registerSelf =
CalendarModule.registerSelf =function (compMgr, fileSpec, location, type){ debug("*** Registering -chat handler.\n"); compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.registerFactoryLocation(CLINE_SERVICE_CID, "Calendar CommandLine Se...
debug("*** Registering -chat handler.\n");
dump("*** Registering -webcal handler.\n");
CalendarModule.registerSelf =function (compMgr, fileSpec, location, type){ debug("*** Registering -chat handler.\n"); compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.registerFactoryLocation(CLINE_SERVICE_CID, "Calendar CommandLine Se...
debug("*** Registering ical protocol handler.\n");
dump("*** Registering x-application-webcal handler.\n"); compMgr.registerFactoryLocation(IRCCNT_HANDLER_CID, "Webcal Content Handler", IRCCNT_HANDLER_CONTRACTID, fileSpec, location, type); dump("*** Registering webcal protocol handler.\n");
CalendarModule.registerSelf =function (compMgr, fileSpec, location, type){ debug("*** Registering -chat handler.\n"); compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.registerFactoryLocation(CLINE_SERVICE_CID, "Calendar CommandLine Se...
"ICAL protocol handler",
"Webcal protocol handler",
CalendarModule.registerSelf =function (compMgr, fileSpec, location, type){ debug("*** Registering -chat handler.\n"); compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.registerFactoryLocation(CLINE_SERVICE_CID, "Calendar CommandLine Se...
aCompMgr = aCompMgr.QueryInterface( Components.interfaces.nsIComponentRegistrar); aCompMgr.registerFactoryLocation(this.mClassID, this.mClassName, this.mContractID, aFileSpec, aLocation, aType);
aCompMgr = aCompMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); for (var key in this.mObjects) { var obj = this.mObjects[key]; aCompMgr.registerFactoryLocation(obj.CID, obj.className, obj.contractID, aFileSpec, aLocation, aType); }
registerSelf: function(aCompMgr, aFileSpec, aLocation, aType) { if (kDebug) dump("*** Registering nsNewsBlogFeedDownloaderModule (a JavaScript Module)\n"); aCompMgr = aCompMgr.QueryInterface( Components.interfaces.nsIComponentRegistrar); aCompMgr.registerFactoryLocation(this.mClassID, t...
var catman = Components.classes["@mozilla.org/categorymanager;1"].getService(Components.interfaces.nsICategoryManager); catman.addCategoryEntry("mailnews-accountmanager-extensions", "newsblog account manager extension", "@mozilla.org/accountmanager/extension;1?name=newsblog", true, true);
registerSelf: function(aCompMgr, aFileSpec, aLocation, aType) { if (kDebug) dump("*** Registering nsNewsBlogFeedDownloaderModule (a JavaScript Module)\n"); aCompMgr = aCompMgr.QueryInterface( Components.interfaces.nsIComponentRegistrar); aCompMgr.registerFactoryLocation(this.mClassID, t...
comp.contractid, true, true);
contractid, true, true); dump("registering for category stuff\n");
registerSelf: function (compMgr, fileSpec, location, type) { compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); var catman = Components.classes["@mozilla.org/categorymanager;1"] .getService(Components.interfaces.nsICategoryManager); for (var i = 0; i < com...
var catman = Components.classes["mozilla.categorymanager.1"]
var catman = Components.classes["@mozilla.org/categorymanager;1"]
registerSelf: function(compMgr, fileSpec, location, type) { compMgr.registerComponentWithType(JSCONSOLEHANDLER_CID, 'JS Console Commandline Handler component', JSCONSOLEHANDLER_CONTRACTID, fileSpec, location, true, true, type); var catman = Components.classes["mozilla...
catman = Components.classes["mozilla.categorymanager.1"]
catman = Components.classes["@mozilla.org/categorymanager;1"]
ChatzillaModule.registerSelf =function (compMgr, fileSpec, location, type){ dump("*** Registering -chat handler.\n"); compMgr.registerComponentWithType(CLINE_SERVICE_CID, "Chatzilla CommandLine Service", CLINE_SERVICE_CONTRACTID, fileSpec, ...
compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentManagerObsolete); compMgr.registerComponentWithType(Components.ID("{09cddbea-1dd2-11b2-aa15-c41ffea19d79}"), "Download Progress Listener", "@mozilla.org/download-manager/listener;1", fileSpec, location, true, true, type);
var compReg = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compReg.registerFactoryLocation(Components.ID("{09cddbea-1dd2-11b2-aa15-c41ffea19d79}"), "Download Progress Listener", "@mozilla.org/download-manager/listener;1", fileSpec, location, type);
registerSelf: function (compMgr, fileSpec, location, type) { compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentManagerObsolete); compMgr.registerComponentWithType(Components.ID("{09cddbea-1dd2-11b2-aa15-c41ffea19d79}"), "Download Progress Listener", ...
const CATMAN_CONTRACTID = "@mozilla.org/categorymanager;1"; const nsICategoryManager = Components.interfaces.nsICategoryManager; var catman = Components.classes[CATMAN_CONTRACTID]. getService(nsICategoryManager); const JAVASCRIPT_GLOBAL_PROPERTY_CATEGORY = "JavaScript global property"; catman.addCategoryEntry(JAVASCRI...
sidebarModule.registerSelf =function (compMgr, fileSpec, location, type){ debug("registering (all right -- a JavaScript module!)"); compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.registerFactoryLocation(SIDEBAR_CID, "Sidebar JS Compone...
dump("*** Registering -terminal handler.\n");
debug("*** Registering -terminal handler.\n");
XMLtermModule.registerSelf =function (compMgr, fileSpec, location, type){ dump("*** Registering -terminal handler.\n"); compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.registerFactoryLocation(XMLTERMCLINE_SERVICE_CID, "XMLterm Comman...
dump("*** Registering x-application-terminal handler.\n");
debug("*** Registering x-application-terminal handler.\n");
XMLtermModule.registerSelf =function (compMgr, fileSpec, location, type){ dump("*** Registering -terminal handler.\n"); compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.registerFactoryLocation(XMLTERMCLINE_SERVICE_CID, "XMLterm Comman...
dump("*** Registering terminal protocol handler.\n");
debug("*** Registering terminal protocol handler.\n");
XMLtermModule.registerSelf =function (compMgr, fileSpec, location, type){ dump("*** Registering -terminal handler.\n"); compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.registerFactoryLocation(XMLTERMCLINE_SERVICE_CID, "XMLterm Comman...
dump("*** Registering -chat handler.\n");
debug("*** Registering -chat handler.\n");
ChatzillaModule.registerSelf =function (compMgr, fileSpec, location, type){ dump("*** Registering -chat handler.\n"); compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.registerFactoryLocation(CLINE_SERVICE_CID, "Chatzilla CommandLine S...
dump("*** Registering x-application-irc handler.\n");
debug("*** Registering x-application-irc handler.\n");
ChatzillaModule.registerSelf =function (compMgr, fileSpec, location, type){ dump("*** Registering -chat handler.\n"); compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.registerFactoryLocation(CLINE_SERVICE_CID, "Chatzilla CommandLine S...
dump("*** Registering irc protocol handler.\n");
debug("*** Registering irc protocol handler.\n");
ChatzillaModule.registerSelf =function (compMgr, fileSpec, location, type){ dump("*** Registering -chat handler.\n"); compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.registerFactoryLocation(CLINE_SERVICE_CID, "Chatzilla CommandLine S...
compMgr = compMgr.QueryInterface( Components.interfaces.nsIComponentManagerObsolete ); compMgr.registerComponentWithType( this.cid, "Mozilla Download Progress Dialog", this.contractId, fileSpec, location, true, true, type );
var compReg = compMgr.QueryInterface( Components.interfaces.nsIComponentRegistrar ); compReg.registerFactoryLocation( this.cid, "Mozilla Download Progress Dialog", this.contractId, fileSpec, location, type );
registerSelf: function (compMgr, fileSpec, location, type) { compMgr = compMgr.QueryInterface( Components.interfaces.nsIComponentManagerObsolete ); compMgr.registerComponentWithType( this.cid, "Mozilla Download Progress Dialog", ...
if (this.m_state == 0) {
if (this.m_state == 0 && this.m_finishFunc) {
release: function() { /*this.checkAborted();*/ --this.m_state;// logMessage( "sync-state", "m_state = " + this.m_state ); if (this.m_state == 0) { this.m_finishFunc(); } },
this.m_finishFunc = null;
release: function() { /*this.checkAborted();*/ --this.m_state;// logMessage( "sync-state", "m_state = " + this.m_state ); if (this.m_state == 0) { this.m_finishFunc(); } },
cb(status);
if (typeof cb == "function") cb(status);
function reloadCB (status) { sourceRec.invalidate(); cb(status); }
if (elements.length == 0)
if (!elements.item(0))
function ReloadSmtpPanel(){ var smtpUsername = top.frames["contentFrame"].document.getElementById("smtp.username"); var smtpHostname = top.frames["contentFrame"].document.getElementById("smtp.hostname"); var smtpPort = top.frames["contentFrame"].document.getElementById("smtp.port"); var smtpUseUsername = top.frames...
if (target) target = target.QueryInterface(nsIRDFLiteral); if (target) target = target.Value; if (target) { var textNode = document.getElementById("sidebar-search-text"); if (!textNode) return(false); target = target.replace(/+/i, " "); textNode.value = unescape(target); doEnabling(); } switchTab(0);
if (target) { target = target.QueryInterface(nsIRDFLiteral).Value; if (target) { target = target.replace(/+/i, " "); var textNode = document.getElementById("sidebar-search-text"); textNode.value = unescape(target); doEnabling(); } } switchTab(0);
function rememberSearchText(target){ if (target) target = target.QueryInterface(nsIRDFLiteral); if (target) target = target.Value; if (target) { var textNode = document.getElementById("sidebar-search-text"); if (!textNode) return(false); // convert pluses (+) back to spaces target = target.replace(/+/i, " "); text...
while (listbox.selectedItems.length > 0) { var selectedNode = listbox.selectedItems[0]; dump(selectedNode + " - " + listbox.selectedItems.length + "\n"); nextNode = selectedNode.nextSibling;
var numSelectedItems = listbox.selectedItems.length; for (count = 0; count < numSelectedItems; count ++) { listbox.removeChild(listbox.selectedItems[0]); }
function RemoveActiveCharset(){ var listbox = document.getElementById('active_charsets'); var nextNode = null; var numSelected = listbox.selectedItems.length; var deleted_all = false; while (listbox.selectedItems.length > 0) { var selectedNode = listbox.selectedItems[0]; dump(selectedNode + " - " + listbox.s...
if (!nextNode) { if (selectedNode.previousSibling) nextNode = selectedNode.previousSibling; } listbox.removeChild(selectedNode); } if (nextNode) { listbox.selectItem(nextNode) } else { }
listbox.clearSelection();
function RemoveActiveCharset(){ var listbox = document.getElementById('active_charsets'); var nextNode = null; var numSelected = listbox.selectedItems.length; var deleted_all = false; while (listbox.selectedItems.length > 0) { var selectedNode = listbox.selectedItems[0]; dump(selectedNode + " - " + listbox.s...
return( false );
return;
function removeAlarmBox( Event ){ //get the box for the event var EventAlarmBox = document.getElementById( Event.id ); if( EventAlarmBox ) { //remove the box from the body EventAlarmBox.parentNode.removeChild( EventAlarmBox ); } //if there's no more events left, close the dialog EventAl...
else { self.close(); }
self.close();
function removeAlarmBox( Event ){ //get the box for the event var EventAlarmBox = document.getElementById( Event.id ); if( EventAlarmBox ) { //remove the box from the body EventAlarmBox.parentNode.removeChild( EventAlarmBox ); } //if there's no more events left, close the dialog EventAl...
if( EventAlarmBoxes.length > 0 )
if( EventAlarmBoxes.item(0) )
function removeAlarmBox( Event ){ //get the box for the event var EventAlarmBox = document.getElementById( Event.id ); if( EventAlarmBox ) { //remove the box from the body EventAlarmBox.parentNode.removeChild( EventAlarmBox ); } //if there's no more events left, close the dialog EventAl...
isValid = BookmarksUtils.isSelectionValidForDeletion(aSelection);
var isValid = BookmarksUtils.isSelectionValidForDeletion(aSelection);
removeAndCheckSelection: function (aAction, aSelection) { isValid = BookmarksUtils.isSelectionValidForDeletion(aSelection); if (!isValid) { SOUND.beep(); return false; } this.removeSelection(aAction, aSelection); BookmarksUtils.flushDataSource(); return true; },
for (var i = 0; i < this.mAttendees.length; i++) { if (this.mAttendees[i] != attendee) newAttendees.push(this.mAttendees[i]);
var attendees = this.getAttendees({}); for (var i = 0; i < attendees.length; i++) { if (attendees[i].id != attendee.id) newAttendees.push(attendees[i]);
removeAttendee: function (attendee) { this.modify(); var found = false, newAttendees = []; for (var i = 0; i < this.mAttendees.length; i++) { if (this.mAttendees[i] != attendee) newAttendees.push(this.mAttendees[i]); else found = true; ...
var name = item.firstChild.firstChild.getAttribute("value");
var attr = TrimString(item.firstChild.firstChild.getAttribute("value"));
function RemoveAttribute( treeId ){ var tree = document.getElementById(treeId); if (!tree) return; var kids = tree.lastChild; // treechildren element of tree var newIndex = tree.selectedIndex; // We only allow 1 selected item if (tree.selectedItems.length) { var item = tree.selectedItems[0]; // Name is ...
RemoveNameFromAttArray(HTMLAttrs, name);
RemoveNameFromAttArray(HTMLAttrs, attr);
function RemoveAttribute( treeId ){ var tree = document.getElementById(treeId); if (!tree) return; var kids = tree.lastChild; // treechildren element of tree var newIndex = tree.selectedIndex; // We only allow 1 selected item if (tree.selectedItems.length) { var item = tree.selectedItems[0]; // Name is ...
RemoveNameFromAttArray(CSSAttrs, name);
RemoveNameFromAttArray(CSSAttrs, attr);
function RemoveAttribute( treeId ){ var tree = document.getElementById(treeId); if (!tree) return; var kids = tree.lastChild; // treechildren element of tree var newIndex = tree.selectedIndex; // We only allow 1 selected item if (tree.selectedItems.length) { var item = tree.selectedItems[0]; // Name is ...
RemoveNameFromAttArray(JSEAttrs, name);
RemoveNameFromAttArray(JSEAttrs, attr);
function RemoveAttribute( treeId ){ var tree = document.getElementById(treeId); if (!tree) return; var kids = tree.lastChild; // treechildren element of tree var newIndex = tree.selectedIndex; // We only allow 1 selected item if (tree.selectedItems.length) { var item = tree.selectedItems[0]; // Name is ...
RemoveNameFromAttArray(HTMLAttrs, attr);
RemoveNameFromAttArray(attr, HTMLAttrs);
function RemoveAttribute( treeId ){ var tree = document.getElementById(treeId); if (!tree) return; var kids = tree.lastChild; // treechildren element of tree var newIndex = tree.selectedIndex; // We only allow 1 selected item if (tree.selectedItems.length) { var item = tree.selectedItems[0]; // Name is ...
RemoveNameFromAttArray(CSSAttrs, attr);
RemoveNameFromAttArray(attr, CSSAttrs);
function RemoveAttribute( treeId ){ var tree = document.getElementById(treeId); if (!tree) return; var kids = tree.lastChild; // treechildren element of tree var newIndex = tree.selectedIndex; // We only allow 1 selected item if (tree.selectedItems.length) { var item = tree.selectedItems[0]; // Name is ...
RemoveNameFromAttArray(JSEAttrs, attr);
RemoveNameFromAttArray(attr, JSEAttrs);
function RemoveAttribute( treeId ){ var tree = document.getElementById(treeId); if (!tree) return; var kids = tree.lastChild; // treechildren element of tree var newIndex = tree.selectedIndex; // We only allow 1 selected item if (tree.selectedItems.length) { var item = tree.selectedItems[0]; // Name is ...
var sip = Components.classes["@mozilla.org/supports-interface-pointer;1"] .createInstance(Components.interfaces.nsISupportsInterfacePointer); sip.data = aCalendar; sip.dataIID = Components.interfaces.calICalendar; var index = getCalendars().indexOf(sip.data);
var index = getIndexForCalendar(aCalendar);
function removeCalendarFromTree(aCalendar){ var calTree = document.getElementById("calendarTree") // Special trick to compare interface pointers, since normal, == // comparison can fail due to javascript wrapping. var sip = Components.classes["@mozilla.org/supports-interface-pointer;1"] ...
if(!gPrefInt) { try { gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref); } catch (ex) { gPrefInt = null; } } try { var directoryServer = gPrefInt.CopyCharPref("ldap_2.autoComplete.directoryServer"); } catch(ex) { directoryServer = ""; } if (gCurr...
function removeDirectory(){ var directoriesTree = document.getElementById("directoriesTree"); var directoriesTree_root = document.getElementById("directoriesTree_root"); var selectedNode = directoriesTree.selectedItems[0]; var nextNode = selectedNode.nextSibling; if (!nextNode) if (selectedNode.previousSibl...
window.opener.gRefresh = true;
function removeDirectory(){ var directoriesTree = document.getElementById("directoriesTree"); var directoriesTree_root = document.getElementById("directoriesTree_root"); var selectedNode = directoriesTree.selectedItems[0]; var nextNode = selectedNode.nextSibling; if (!nextNode) if (selectedNode.previousSibl...
editorShell.BeginBatchChanges();
var editor = GetCurrentEditor();
function RemoveElementKeepingChildren(element){ editorShell.BeginBatchChanges(); try { if (element.firstChild) { // Use editor methods in case of text nodes var editor = editorShell.editor; var parent = element.parentNode; var offset = 0; for (var node = parent.firstChild; node != eleme...
var editor = editorShell.editor;
function RemoveElementKeepingChildren(element){ editorShell.BeginBatchChanges(); try { if (element.firstChild) { // Use editor methods in case of text nodes var editor = editorShell.editor; var parent = element.parentNode; var offset = 0; for (var node = parent.firstChild; node != eleme...
editorShell.DeleteElement(element);
editor.deleteElement(element);
function RemoveElementKeepingChildren(element){ editorShell.BeginBatchChanges(); try { if (element.firstChild) { // Use editor methods in case of text nodes var editor = editorShell.editor; var parent = element.parentNode; var offset = 0; for (var node = parent.firstChild; node != eleme...
editorShell.EndBatchChanges();
editor.endTransaction();
function RemoveElementKeepingChildren(element){ editorShell.BeginBatchChanges(); try { if (element.firstChild) { // Use editor methods in case of text nodes var editor = editorShell.editor; var parent = element.parentNode; var offset = 0; for (var node = parent.firstChild; node != eleme...
unassertMIMEStuff(MIME_URI(this.mimeType), "fileExtensions", aExtensionString);
unassertMIMEStuff(MIME_URI(this.mimeType), "fileExtensions", aExtensionString.toLowerCase());
removeExtension: function (aExtensionString) { unassertMIMEStuff(MIME_URI(this.mimeType), "fileExtensions", aExtensionString); },