rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
munger.addRule ("ear", /(?:\s|^)(\(\*)(?:\s|$)/, insertEar, false); | function initMunger(){ client.linkRE = /((\w[\w-]+):[^<>\[\]()\'\"\s\u201d]+|www(\.[^.<>\[\]()\'\"\s\u201d]+){2,})/; var munger = client.munger = new CMunger(); munger.addRule ("quote", /(``|'')/, insertQuote); munger.addRule ("bold", /(?:\s|^)(\*[^*()]*\*)(?:[\s.,]|$)/, "chat... | |
/(?:\s|\W|^)((?:(\w[\w-]+):[^\s]+|www(\.[^.\s]+){2,})[^>)\].,!?\'\"\u201d])(?:\s|\W|$)/; | /(?:\s|\W|^)((?:(\w[\w-]+):[^\s]+|www(\.[^.\s]+){2,})[^\s>)\].,!?\'\"\u201d])(?:\s|\W|$)/; | function initMunger(){ client.linkRE = /(?:\s|\W|^)((?:(\w[\w-]+):[^\s]+|www(\.[^.\s]+){2,})[^>)\].,!?\'\"\u201d])(?:\s|\W|$)/; var munger = client.munger = new CMunger(); // Special internal munger! munger.addRule (".inline-buttons", /(\[\[.*?\]\])/, insertInlineButton, false); munger.addRule ("q... |
nameField.value = captures[1]; | nameField.value = decodeURIComponent(captures[1]); | function initNameFromURI() { var path = document.getElementById("calendar-uri").value; var nameField = document.getElementById("calendar-name"); if (!path || nameField.value) return; var fullPathRegex = new RegExp("([^/:]+)[.]ics$"); var captures = path.match(fullPathRegex); if (captures && cap... |
if (item instanceof Array) | if (isinstance(item, Array)) | function initNetworks(){ var networks = new Object(); // Set up default network list. networks["moznet"] = { displayName: "moznet", isupportsKey: "Mozilla", servers: [{hostname: "irc.mozilla.org", port:6667}, {hostname: "irc.mozilla.org", port:6697, isSecure: true}]}; ... |
[{name: "irc.mcs.net", port: 6667}, {name: "irc.prison.net", port: 6667}, {name: "irc.freei.net", port: 6667}, | [{name: "irc.prison.net", port: 6667}, | function initNetworks(){ client.addNetwork("moznet",[{name: "irc.mozilla.org", port: 6667}]); client.addNetwork("hybridnet", [{name: "irc.ssc.net", port: 6667}]); client.addNetwork("slashnet", [{name: "irc.slashnet.org", port:6667}]); client.addNetwork("dalnet", [{name: "irc.dal.net", port:6667}]); clien... |
var menuStr = GetString("ObjectProperties"); | var menuStr = GetString("AdvancedProperties"); | function InitObjectPropertiesMenuitem(id){ // Set strings and enable for the [Object] Properties item // Note that we directly do the enabling instead of // using goSetCommandEnabled since we already have the menuitem var menuItem = document.getElementById(id); if (!menuItem) return null; var element; var menuS... |
menuStr = menuStr.replace(/%obj%/,objStr); | if (objStr) menuStr = GetString("ObjectProperties").replace(/%obj%/,objStr); | function InitObjectPropertiesMenuitem(id){ // Set strings and enable for the [Object] Properties item // Note that we directly do the enabling instead of // using goSetCommandEnabled since we already have the menuitem var menuItem = document.getElementById(id); if (!menuItem) return null; var element; var menuS... |
menuStr = menuStr.replace(/%obj%/,"").replace(/^\s+/, ""); | function InitObjectPropertiesMenuitem(id){ // Set strings and enable for the [Object] Properties item // Note that we directly do the enabling instead of // using goSetCommandEnabled since we already have the menuitem var menuItem = document.getElementById(id); if (!menuItem) return null; var element; var menuS... | |
case "form": objStr = GetString("Form"); break; case "input": var type = element.getAttribute("type"); if (type && type.toLowerCase() == "image") objStr = GetString("InputImage"); else objStr = GetString("InputTag"); break; case "textarea": objStr = GetString("TextArea"); break; case "select": objStr = GetString("Selec... | function InitObjectPropertiesMenuitem(id){ // Set strings and enable for the [Object] Properties item // Note that we directly do the enabling instead of // using goSetCommandEnabled since we already have the menuitem var menuItem = document.getElementById(id); if (!menuItem) return null; var element; var menuS... | |
var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); if (htmlEditor.getElementOrParentByTagName("href", element)) objStr = GetString("ImageAndLink"); else | try { if (gEditor.getElementOrParentByTagName("href", element)) objStr = GetString("ImageAndLink"); } catch(e) {} if (objStr == "") | function InitObjectPropertiesMenuitem(id){ // Set strings and enable for the [Object] Properties item // Note that we directly do the enabling instead of // using goSetCommandEnabled since we already have the menuitem var menuItem = document.getElementById(id); if (!menuItem) return null; var element; var menuS... |
var needSep = false; | initOpenItems : function () { var needSep = false; // Remove open/edit link if not applicable. this.showItem( "context-openlink", this.onLink ); this.showItem( "context-editlink", this.onLink ); // Remove open frame if not applicable. this.showItem( "context-openfra... | |
this.showItem( "context-sep-open", this.onLink && !this.inFrame ); | this.showItem( "context-sep-open", this.onLink || this.inFrame ); | initOpenItems : function () { var needSep = false; // Remove open/edit link if not applicable. this.showItem( "context-openlink", this.onLink ); this.showItem( "context-editlink", this.onLink ); // Remove open frame if not applicable. this.showItem( "context-openfra... |
hPrefWindow.onpageload( aPrefTag ); | hPrefWindow.onpageload( aPrefTag ) | function initPanel ( aPrefTag ) { if( hPrefWindow ) hPrefWindow.onpageload( aPrefTag ); else window.queuedTag = aPrefTag; } |
window.queuedTag = aPrefTag; | queuedTag = aPrefTag; | function initPanel ( aPrefTag ) { if( hPrefWindow ) hPrefWindow.onpageload( aPrefTag ); else window.queuedTag = aPrefTag; } |
function initPanel ( aPrefTag ) | function initPanel ( aPrefTag, aWindow ) | function initPanel ( aPrefTag ) { if( hPrefWindow ) hPrefWindow.onpageload( aPrefTag ) else queuedTag = aPrefTag; } |
hPrefWindow.onpageload( aPrefTag ) else | hPrefWindow.onpageload( aPrefTag, aWindow ) else { | function initPanel ( aPrefTag ) { if( hPrefWindow ) hPrefWindow.onpageload( aPrefTag ) else queuedTag = aPrefTag; } |
queuedWindow = aWindow; } | function initPanel ( aPrefTag ) { if( hPrefWindow ) hPrefWindow.onpageload( aPrefTag ) else queuedTag = aPrefTag; } | |
var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); var state = htmlEditor.getParagraphState(mixedObj); | var state; try { state = gEditor.getParagraphState(mixedObj); } catch(e) {} | function InitParagraphMenu(){ var mixedObj = new Object(); var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); var state = htmlEditor.getParagraphState(mixedObj); var IDSuffix; // PROBLEM: When we get blockquote, it masks other styles contained by it // We need a separate method to get b... |
if (pixelItem) menulist.selectedItem = pixelItem; | if (percentItem) menulist.selectedItem = percentItem; | function InitPixelOrPercentMenulist(elementForAtt, elementInDoc, attribute, menulistID){ var size = elementForAtt.getAttribute(attribute); var menulist = document.getElementById(menulistID); var pixelItem; var percentItem; if (!menulist) { dump("NO MENULIST found for ID="+menulistID+"\n"); return size; }... |
else if(percentItem) menulist.selectedItem = percentItem; | else if(pixelItem) menulist.selectedItem = pixelItem; | function InitPixelOrPercentMenulist(elementForAtt, elementInDoc, attribute, menulistID){ var size = elementForAtt.getAttribute(attribute); var menulist = document.getElementById(menulistID); var pixelItem; var percentItem; if (!menulist) { dump("NO MENULIST found for ID="+menulistID+"\n"); return size; }... |
["maxStringLength", 100], ["startupCount", 0], | function initPrefs(){ console.prefManager = new PrefManager("extensions.venkman."); console.prefs = console.prefManager.prefs; var prefs = [ ["maxStringLength", 100], ["startupCount", 0], ["enableChromeFilter", true], ["tabWidth", 4], ["initialScripts", ""], ... | |
["tabWidth", 4], ["initialScripts", ""], ["prettyprint", false], | function initPrefs(){ console.prefManager = new PrefManager("extensions.venkman."); console.prefs = console.prefManager.prefs; var prefs = [ ["maxStringLength", 100], ["startupCount", 0], ["enableChromeFilter", true], ["tabWidth", 4], ["initialScripts", ""], ... | |
["menubarInFloaters", navigator.platform.indexOf ("Mac") != -1], ["lastErrorMode", "ignore"], ["lastThrowMode", "ignore"] | ["tabWidth", 4] | function initPrefs(){ console.prefManager = new PrefManager("extensions.venkman."); console.prefs = console.prefManager.prefs; var prefs = [ ["maxStringLength", 100], ["startupCount", 0], ["enableChromeFilter", true], ["tabWidth", 4], ["initialScripts", ""], ... |
console.prefs.prefService = Components.classes[PREF_CTRID].getService(nsIPrefService); console.prefs.prefBranch = console.prefs.prefService.getBranch("extensions.venkman."); console.prefs.prefNames = new Array(); | function initPrefs(){ console.prefs = new Object(); // console.addPref ("input.commandchar", "/"); console.addPref ("sourcetext.tab.width", 4); console.addPref ("input.history.max", 20); console.addPref ("input.dtab.time", 500);} | |
console.addPref ("initialScripts", ""); var list = console.prefs.prefBranch.getChildList("extensions.venkman.", {}); for (var p in list) { dd ("pref list " + list[p]); if (!(list[p] in console.prefs)) console.addPref(list[p]); } | function initPrefs(){ console.prefs = new Object(); // console.addPref ("input.commandchar", "/"); console.addPref ("sourcetext.tab.width", 4); console.addPref ("input.history.max", 20); console.addPref ("input.dtab.time", 500);} | |
printSettings = window.arguments[3].QueryInterface(Components.interfaces.nsIPrintSettings); if (printSettings) { printSettings.isCancelled = false; | if (window.arguments[3]) { printSettings = window.arguments[3].QueryInterface(Components.interfaces.nsIPrintSettings); if (printSettings) { printSettings.isCancelled = false; } | function InitPrintEngineWindow(){ /* Tell the nsIPrintEngine object what window is rendering the email */ printEngine.setWindow(window); /* hide the printEngine window. see bug #73995 */ printEngine.showWindow(false); /* See if we got arguments. * Window was opened via window.openDialog. Copy argument * and ... |
var statusFeedback = window.arguments[2]; printEngine.SetStatusFeedback(statusFeedback); | function InitPrintEngineWindow(){ /* Tell the nsIPrintEngine object what window is rendering the email */ printEngine.SetWindow(window); // See if we got arguments. // Window was opened via window.openDialog. Copy argument // and perform compose initialization // if ( window.arguments && window.arguments[0] !=... | |
printEngine.showWindow(false); | function InitPrintEngineWindow(){ /* Tell the nsIPrintEngine object what window is rendering the email */ printEngine.setWindow(window); /* hide the printEngine window. see bug #73995 */ printEngine.showWindow(false); /* See if we got arguments. * Window was opened via window.openDialog. Copy argument * and ... | |
printEngine.setStartupPPObserver(gStartupPPObserver); | function InitPrintEngineWindow(){ /* Tell the nsIPrintEngine object what window is rendering the email */ printEngine.setWindow(window); /* hide the printEngine window. see bug #73995 */ printEngine.showWindow(false); /* See if we got arguments. * Window was opened via window.openDialog. Copy argument * and ... | |
var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); if (!htmlEditor) return; SetElementEnabled(linkItem, !isCollapsed || htmlEditor.getElementOrParentByTagName("href", null)); | try { SetElementEnabled(linkItem, !isCollapsed || gEditor.getElementOrParentByTagName("href", null)); } catch(e) {} | function InitRemoveStylesMenuitems(removeStylesId, removeLinksId, removeNamedAnchorsId){ // Change wording of menuitems depending on selection var stylesItem = document.getElementById(removeStylesId); var linkItem = document.getElementById(removeLinksId); var isCollapsed = gEditor.selection.isCollapsed; if (styles... |
if(retentionSettings.retainByPreference == 1) | switch(retentionSettings.retainByPreference) { case 1: | function initRetentionSettings(){ var retentionSettings = gIncomingServer.retentionSettings; document.getElementById("nntp.keepUnread").checked = retentionSettings.keepUnreadMessagesOnly; document.getElementById("nntp.removeBody").checked = retentionSettings.cleanupBodiesByDates; document.getElementById... |
else if(retentionSettings.retainByPreference == 2) | break; case 2: | function initRetentionSettings(){ var retentionSettings = gIncomingServer.retentionSettings; document.getElementById("nntp.keepUnread").checked = retentionSettings.keepUnreadMessagesOnly; document.getElementById("nntp.removeBody").checked = retentionSettings.cleanupBodiesByDates; document.getElementById... |
else if(retentionSettings.retainByPreference == 3) | break; case 3: | function initRetentionSettings(){ var retentionSettings = gIncomingServer.retentionSettings; document.getElementById("nntp.keepUnread").checked = retentionSettings.keepUnreadMessagesOnly; document.getElementById("nntp.removeBody").checked = retentionSettings.cleanupBodiesByDates; document.getElementById... |
break; default: document.getElementById("nntp.keepAllMsg").checked = true; } | function initRetentionSettings(){ var retentionSettings = gIncomingServer.retentionSettings; document.getElementById("nntp.keepUnread").checked = retentionSettings.keepUnreadMessagesOnly; document.getElementById("nntp.removeBody").checked = retentionSettings.cleanupBodiesByDates; document.getElementById... | |
this.showItem( "context-savebgimage", this.hasBGImage ); | initSaveItems : function () { // Save page is always OK, unless in directory listing. this.showItem( "context-savepage", !this.inDirList ); // Save frame as depends on whether we're in a frame. this.showItem( "context-saveframe", this.inFrame ); // Save link depends on whether we'... | |
this.showItem( "context-sendlink", this.onSaveableLink ); | initSaveItems : function () { this.showItem( "context-savepage", !( this.inDirList || this.isTextSelected || this.onTextInput || this.onLink )); // Save link depends on whether we're in a link. this.showItem( "context-savelink", this.onSaveableLink ); // Save image depends on whether the... | |
var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); var compactFolder = prefs.GetBoolPref("mail.prompt_purge_threshhold"); var compactFolderMin = prefs.GetIntPref("mail.purge_threshhold"); if (compactFolderMin == null || compactFolderMin == 0 ) compactFolderMin = 100; | function initServerSettings(){ var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); var compactFolder = prefs.GetBoolPref("mail.prompt_purge_threshhold"); var compactFolderMin = prefs.GetIntPref("mail.purge_threshhold"); if (compactFolderMin == null ||... | |
document.getElementById("offline.compactFolder").checked = compactFolder; document.getElementById("offline.compactFolderMin").setAttribute("value", compactFolderMin); | function initServerSettings(){ var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); var compactFolder = prefs.GetBoolPref("mail.prompt_purge_threshhold"); var compactFolderMin = prefs.GetIntPref("mail.purge_threshhold"); if (compactFolderMin == null ||... | |
onLockPreference(); | function initServerSettings(){ var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); var compactFolder = prefs.GetBoolPref("mail.prompt_purge_threshhold"); var compactFolderMin = prefs.GetIntPref("mail.purge_threshhold"); if (compactFolderMin == null ||... | |
if(gServerType == "imap") { gImapIncomingServer = gIncomingServer.QueryInterface(Components.interfaces.nsIImapIncomingServer); document.getElementById("offline.downloadBodiesOnGetNewMail").checked = gImapIncomingServer.downloadBodiesOnGetNewMail; document.getElementById("offline.newFolder").checked = gImapIncomingSer... | function initServerSettings(){ var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); var compactFolder = prefs.GetBoolPref("mail.prompt_purge_threshhold"); var compactFolderMin = prefs.GetIntPref("mail.purge_threshhold"); if (compactFolderMin == null ||... | |
RDFC = Components.classes[kRDFCContractID].getService(kRDFCIID); | RDFC = Components.classes[kRDFCContractID].createInstance(kRDFCIID); | function initServices(){ NC_NS = "http://home.netscape.com/NC-rdf#"; RDF_NS = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"; XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; NC_NS_CMD = NC_NS + "command?cmd="; kRDFContractID = "@mozilla.org/rdf/rdf-service;1"; kRDFSVCIID ... |
kDSContractID = "@mozilla.org/widget/dragservice;1"; kDSIID = Components.interfaces.nsIDragService; DS = Components.classes[kDSContractID].getService(kDSIID); | function initServices(){ NC_NS = "http://home.netscape.com/NC-rdf#"; RDF_NS = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"; XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; NC_NS_CMD = NC_NS + "command?cmd="; kRDFContractID = "@mozilla.org/rdf/rdf-service;1"; kRDFSVCIID ... | |
NC_NS = "http: WEB_NS = "http: RDF_NS = "http: XUL_NS = "http: NC_NS_CMD = NC_NS + "command?cmd="; | gNC_NS = "http: gWEB_NS = "http: gRDF_NS = "http: gXUL_NS = "http: gNC_NS_CMD = gNC_NS + "command?cmd="; | function initServices(){ NC_NS = "http://home.netscape.com/NC-rdf#"; WEB_NS = "http://home.netscape.com/WEB-rdf#"; RDF_NS = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"; XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; NC_NS_CMD = NC_NS + "command?cmd="; kRDFContractID = "... |
.getBranch(null) | .getBranch(null); | function initServices(){ NC_NS = "http://home.netscape.com/NC-rdf#"; RDF_NS = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"; XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; NC_NS_CMD = NC_NS + "command?cmd="; kRDFContractID = "@mozilla.org/rdf/rdf-service;1"; kRDFSVCIID ... |
kPREFContractID = "@mozilla.org/preferences-service;1"; kPREFIID = Components.interfaces.nsIPrefService; PREF = Components.classes[kPREFContractID].getService(kPREFIID) .getBranch(null) | function initServices(){ NC_NS = "http://home.netscape.com/NC-rdf#"; RDF_NS = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"; XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; NC_NS_CMD = NC_NS + "command?cmd="; kRDFContractID = "@mozilla.org/rdf/rdf-service;1"; kRDFSVCIID ... | |
gBkmkTxnSvc = Components.classes["@mozilla.org/bookmarks/transactionmanager;1"] .getService(Components.interfaces.nsIBookmarkTransactionManager); | function initServices(){ gNC_NS = "http://home.netscape.com/NC-rdf#"; gWEB_NS = "http://home.netscape.com/WEB-rdf#"; gRDF_NS = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"; gXUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; gNC_NS_CMD = gNC_NS + "command?cmd="; kRDFContractID... | |
dump("\n" + x); engineList.selectedItem = selectedItem; | function InitSingleEngineList(){ dump("InitSingleEngineList called.\n"); var defaultEngineURI = null; try { if (pref) { var defaultEngineURI = pref.CopyCharPref("browser.search.defaultengine"); } } catch(ex) { defaultEngineURI = null; } if ((!defaultEngineURI) || (defaultEngineURI == "")) return; var engineList =... | |
gSmtpSavePassword = document.getElementById("smtp.savePassword") | function initSmtpSettings(server) { gSmtpUsername = document.getElementById("smtp.username"); gSmtpHostname = document.getElementById("smtp.hostname"); gSmtpUseUsername = document.getElementById("smtp.useUsername"); gSmtpAuthMethod = document.getElementById("smtp.authMethod"); gSmtpSavePassword = documen... | |
gSmtpSavePassword.checked = server.savePassword; | function initSmtpSettings(server) { gSmtpUsername = document.getElementById("smtp.username"); gSmtpHostname = document.getElementById("smtp.hostname"); gSmtpUseUsername = document.getElementById("smtp.useUsername"); gSmtpAuthMethod = document.getElementById("smtp.authMethod"); gSmtpSavePassword = documen... | |
onLockPreference(); | if (gSmtpService.defaultServer) onLockPreference(); | function initSmtpSettings(server) { gSmtpUsername = document.getElementById("smtp.username"); gSmtpUsernameLabel = document.getElementById("smtpusernamelabel"); gSmtpHostname = document.getElementById("smtp.hostname"); gSmtpPort = document.getElementById("smtp.port"); gSmtpUseUsername = document.getEleme... |
gSmtpUsernameLabel = document.getElementById("smtpusernamelabel"); | function initSmtpSettings(server) { gSmtpUsername = document.getElementById("smtp.username"); gSmtpHostname = document.getElementById("smtp.hostname"); gSmtpUseUsername = document.getElementById("smtp.useUsername"); gSmtpAuthMethod = document.getElementById("smtp.authMethod"); if (server) { gS... | |
selectProtocol(); | function initSmtpSettings(server) { gSmtpUsername = document.getElementById("smtp.username"); gSmtpUsernameLabel = document.getElementById("smtpusernamelabel"); gSmtpHostname = document.getElementById("smtp.hostname"); gSmtpPort = document.getElementById("smtp.port"); gSmtpUseUsername = document.getEleme... | |
this.showItem("spell-separator", canSpell); | this.showItem("spell-separator", canSpell || this.possibleSpellChecking); | initSpellingItems : function () { var canSpell = InlineSpellCheckerUI.canSpellCheck; var onMisspelling = InlineSpellCheckerUI.overMisspelling; this.showItem("spell-check-enabled", canSpell); this.showItem("spell-separator", canSpell); if (canSpell) document.getElementBy... |
this.showItem("spell-add-dictionaries-main", false); } else if (this.possibleSpellChecking) { this.showItem("spell-add-dictionaries-main", true); } else { this.showItem("spell-add-dictionaries-main", false); | initSpellingItems : function () { var canSpell = InlineSpellCheckerUI.canSpellCheck; var onMisspelling = InlineSpellCheckerUI.overMisspelling; this.showItem("spell-check-enabled", canSpell); this.showItem("spell-separator", canSpell); if (canSpell) document.getElementBy... | |
multilineInputMode(client.MULTILINE); | function initStatic(){ var obj; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); if (client.CHARSET) setCharset(client.CHARSET); var ary = navigator.userAgent.match (/;\s*([^;\s]+\s*)\).*\/(\d+)/); if... | |
const nsISDateFormat = Components.interfaces.nsIScriptableDateFormat; const DTFMT_CID = "@mozilla.org/intl/scriptabledateformat;1"; client.dtFormatter = Components.classes[DTFMT_CID].createInstance(nsISDateFormat); Date.prototype.toStringInt = Date.prototype.toString; Date.prototype.toString = function() { var dtf = ... | function initStatic(){ CIRCServer.prototype.VERSION_RPLY = getMsg(MSG_VERSION_REPLY, [__cz_version, navigator.userAgent]); client.mainWindow = window; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); const n... | |
CIRCServer.prototype.VERSION_RPLY = getMsg(MSG_VERSION_REPLY, [__cz_version, navigator.userAgent]); | function initStatic(){ CIRCServer.prototype.VERSION_RPLY = getMsg(MSG_VERSION_REPLY, [__cz_version, navigator.userAgent]); client.mainWindow = window; try { var io = Components.classes['@mozilla.org/network/io-service;1']; client.iosvc = io.getService(Components.interfaces.nsIIO... | |
throw { summary: "IO service failed to initalize", exception: ex }; | dd("IO service failed to initalize: " + ex); | function initStatic(){ CIRCServer.prototype.VERSION_RPLY = getMsg(MSG_VERSION_REPLY, [__cz_version, navigator.userAgent]); client.mainWindow = window; try { var io = Components.classes['@mozilla.org/network/io-service;1']; client.iosvc = io.getService(Components.interfaces.nsIIO... |
throw { summary: "Sound failed to initalize", exception: ex }; | dd("Sound failed to initalize: " + ex); | function initStatic(){ CIRCServer.prototype.VERSION_RPLY = getMsg(MSG_VERSION_REPLY, [__cz_version, navigator.userAgent]); client.mainWindow = window; try { var io = Components.classes['@mozilla.org/network/io-service;1']; client.iosvc = io.getService(Components.interfaces.nsIIO... |
throw { summary: "Global History failed to initalize", exception: ex }; | dd("Global History failed to initalize: " + ex); | function initStatic(){ CIRCServer.prototype.VERSION_RPLY = getMsg(MSG_VERSION_REPLY, [__cz_version, navigator.userAgent]); client.mainWindow = window; try { var io = Components.classes['@mozilla.org/network/io-service;1']; client.iosvc = io.getService(Components.interfaces.nsIIO... |
throw { summary: "Locale-correct date formatting failed to initalize", exception: ex }; | dd("Locale-correct date formatting failed to initalize: " + ex); | function initStatic(){ CIRCServer.prototype.VERSION_RPLY = getMsg(MSG_VERSION_REPLY, [__cz_version, navigator.userAgent]); client.mainWindow = window; try { var io = Components.classes['@mozilla.org/network/io-service;1']; client.iosvc = io.getService(Components.interfaces.nsIIO... |
var ver = __cz_version + (__cz_suffix ? "-" + __cz_suffix : ""); | function initStatic(){ CIRCServer.prototype.VERSION_RPLY = getMsg(MSG_VERSION_REPLY, [__cz_version, navigator.userAgent]); client.mainWindow = window; try { var io = Components.classes['@mozilla.org/network/io-service;1']; client.iosvc = io.getService(Components.interfaces.nsIIO... | |
client.userAgent = "ChatZilla " + __cz_version + " [Mozilla " + ary[1] + "/" + ary[2] + "]"; | client.userAgent = getMsg(MSG_VERSION_REPLY, [ver, "Mozilla " + ary[1] + "/" + ary[2]]); | function initStatic(){ CIRCServer.prototype.VERSION_RPLY = getMsg(MSG_VERSION_REPLY, [__cz_version, navigator.userAgent]); client.mainWindow = window; try { var io = Components.classes['@mozilla.org/network/io-service;1']; client.iosvc = io.getService(Components.interfaces.nsIIO... |
client.userAgent = "ChatZilla " + __cz_version + " [" + navigator.userAgent + "]"; | client.userAgent = getMsg(MSG_VERSION_REPLY, [ver, navigator.userAgent]); | function initStatic(){ CIRCServer.prototype.VERSION_RPLY = getMsg(MSG_VERSION_REPLY, [__cz_version, navigator.userAgent]); client.mainWindow = window; try { var io = Components.classes['@mozilla.org/network/io-service;1']; client.iosvc = io.getService(Components.interfaces.nsIIO... |
if (navigator.platform.search(/win/i) >= 0) client.lineEnd = "\r\n"; | function initStatic(){ CIRCServer.prototype.VERSION_RPLY = getMsg(MSG_VERSION_REPLY, [__cz_version, navigator.userAgent]); client.mainWindow = window; try { var io = Components.classes['@mozilla.org/network/io-service;1']; client.iosvc = io.getService(Components.interfaces.nsIIO... | |
setInterval("onWhoTimeout()", client.AWAY_TIMEOUT); | function initStatic(){ CIRCServer.prototype.VERSION_RPLY = getMsg(MSG_VERSION_REPLY, [__cz_version, navigator.userAgent]); client.mainWindow = window; try { var io = Components.classes['@mozilla.org/network/io-service;1']; client.iosvc = io.getService(Components.interfaces.nsIIO... | |
if (getBoolPref("logging", false, client.localPrefs)) client.startLogging(client); | function initStatic(){ var obj; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); if (client.CHARSET) setCharset(client.CHARSET); multilineInputMode(client.MULTILINE); var ary = navigator.userAgent.mat... | |
this.mEntryTime = createCalDateTime(); this.mDueDate = createCalDateTime(); this.mCompletedDate = createCalDateTime(); | this.mEntryDate = new CalDateTime(); this.mDueDate = new CalDateTime(); this.mCompletedDate = new CalDateTime(); | initTodo: function () { this.mEntryTime = createCalDateTime(); this.mDueDate = createCalDateTime(); this.mCompletedDate = createCalDateTime(); this.mPercentComplete = 0; }, |
window.arguments[0]) | window.arguments[0] && window.arguments[0].doc) | function initTopDocAndWin(){ if ("arguments" in window && window.arguments.length > 0 && window.arguments[0]) { gTopWin = null; gTopDoc = window.arguments[0]; } else { if ("gBrowser" in window.opener) gTopWin = window.opener.gBrowser.contentWindow; else gTopWin = window.opener.frames[0... |
gTopDoc = window.arguments[0]; | gTopDoc = window.arguments[0].doc; | function initTopDocAndWin(){ if ("arguments" in window && window.arguments.length > 0 && window.arguments[0]) { gTopWin = null; gTopDoc = window.arguments[0]; } else { if ("gBrowser" in window.opener) gTopWin = window.opener.gBrowser.contentWindow; else gTopWin = window.opener.frames[0... |
if( isWin && this.onImage ) { var wallpaperItem = document.getElementById("context-setWallpaper"); | if( isWin && this.onImage ) | initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewpartialsource-selection", this.isTextSelected ); this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isTextSelected ); this.showItem( "context-viewsou... |
if (wallpaperItem) { if( !("complete" in this.target) || this.target.complete ) { wallpaperItem.removeAttribute("disabled"); } else { wallpaperItem.setAttribute("disabled", "true"); } } } | this.setItemAttr( "context-setWallpaper", "disabled", (("complete" in this.target) && !this.target.complete) ? "true" : null ); | initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewpartialsource-selection", this.isTextSelected ); this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isTextSelected ); this.showItem( "context-viewsou... |
var menuitem = document.getElementById("context-viewbgimage"); if ( menuitem ) { if ( this.hasBGImage ) menuitem.removeAttribute("disabled"); else menuitem.setAttribute("disabled", "true"); } | this.setItemAttr( "context-viewbgimage", "disabled", this.hasBGImage ? null : "true"); | initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewpartialsource-selection", this.isTextSelected ); this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isTextSelected ); this.showItem( "context-viewsou... |
this.showItem( "context-capture", this.okToCapture() ); this.showItem( "context-prefill", this.okToPrefill() ); | initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewsource", !this.inDirList ); // View frame source depends on whether we're in a frame. this.showItem( "context-viewframesource", this.inFrame ); // View Info ... | |
this.showItem( "context-viewbgimage", this.hasBGImage && !this.onImage ); | initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewsource", !( this.inDirList || this.onImage ) ); // View frame source depends on whether we're in a frame. this.showItem( "context-viewframesource", this.inFrame ); /... | |
var viewFlags = gDBView.viewFlags; var viewType = gDBView.viewType; | var viewFlags = (gDBView) ? gDBView.viewFlags : 0; var viewType = (gDBView) ? gDBView.viewType : 0; | function InitViewMessagesMenu(){ var viewFlags = gDBView.viewFlags; var viewType = gDBView.viewType; var allMenuItem = document.getElementById("viewAllMessagesMenuItem"); if(allMenuItem) allMenuItem.setAttribute("checked", (viewFlags & nsMsgViewFlagsType.kUnreadOnly) == 0 && (viewType == nsMsgViewType.eShowAl... |
var viewFlags = gDBView.viewFlags; var viewType = gDBView.viewType; | var viewFlags = (gDBView) ? gDBView.viewFlags : 0; var viewType = (gDBView) ? gDBView.viewType : 0; | function InitViewMessageViewMenu(){ var viewFlags = gDBView.viewFlags; var viewType = gDBView.viewType; var threadedMenuItem = document.getElementById("viewThreaded"); if (threadedMenuItem) threadedMenuItem.setAttribute("checked", (viewFlags & nsMsgViewFlagsType.kThreadedDisplay) != 0); var currentViewValue = d... |
var prefString = gPrefs.getComplexValue("mailnews.labels.description." + i, Components.interfaces.nsIPrefLocalizedString).data; | var prefString = gPrefBranch.getComplexValue("mailnews.labels.description." + i, Components.interfaces.nsIPrefLocalizedString).data; | function InitViewMessageViewMenu(){ var viewFlags = (gDBView) ? gDBView.viewFlags : 0; var viewType = (gDBView) ? gDBView.viewType : 0; var threadedMenuItem = document.getElementById("viewThreaded"); if (threadedMenuItem) threadedMenuItem.setAttribute("checked", (viewFlags & nsMsgViewFlagsType.kThreadedDisplay) ... |
var threadMenuItem = document.getElementById("sortByThreadMenuitem"); threadMenuItem.setAttribute("disabled", !gDBView.supportsThreading); | function InitViewSortByMenu(){ var sortType = gDBView.sortType; setSortByMenuItemCheckState("sortByDateMenuitem", (sortType == nsMsgViewSortType.byDate)); setSortByMenuItemCheckState("sortByFlagMenuitem", (sortType == nsMsgViewSortType.byFlagged)); setSortByMenuItemCheckState("sortByOrderReceivedMenuitem", ... | |
if (str == "<" || str == ">") | if (str == "<" || str == ">" || str == "&" || str == ";" || str == " ") | function InputSepCharacter(){ var str = dialog.sepCharacterInput.value; // Limit input to 1 character if (str.length > 1) str.slice(0,1); // We can never allow tag delimeters for separator character if (str == "<" || str == ">") str = ""; dialog.sepCharacterInput.value = str;} |
browser.addEventListener("load", inSearchService_LoadListener, true); | browser.addEventListener("PageShow", inSearchService_LoadListener, true); | function inSearchService() { this.mInstances = {}; this.mObservers = []; // the browser and webnav are a hack. We should be able to use // the xmlextras facility for loading xml, but it's broken, so // we use a browser for onw var browser = document.getElementById("inSearchServiceLoader"); browser.addEventL... |
if (!("network" in eventData) || matchText.search(bogusChannels) != -1) | if (!("network" in eventData) || !eventData.network || matchText.search(bogusChannels) != -1) | function insertChannelLink (matchText, containerTag, eventData){ var bogusChannels = /^#(include|error|define|if|ifdef|else|elsif|endif|\d+)$/i; if (!("network" in eventData) || matchText.search(bogusChannels) != -1) { containerTag.appendChild(document.createTextNode(matchText)); return; ... |
AddExtraAddressProcessing(emailAddress, itemInDocument); | if (this.AddExtraAddressProcessing != undefined) AddExtraAddressProcessing(emailAddress, itemInDocument); | function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, emailAddress, fullAddress, displayName) { if ( parentBox ) { var item = document.createElement("mail-emailaddress"); var itemInDocument; if ( item && parentDiv) { if (parentDiv.childNodes.length) { var child = parentDi... |
function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, includesToggleButton, emailAddress, fullAddress, displayName) | function InsertEmailAddressUnderEnclosingBox(headerEntry, parentNode, emailAddress, fullAddress, displayName) | function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, includesToggleButton, emailAddress, fullAddress, displayName){ if ( parentBox ) { var item = document.createElement("mail-emailaddress"); var itemInDocument; if ( item && parentDiv) { if (parentDiv.childNodes.length) { var... |
if ( parentBox ) | var itemInDocument = parentNode; if ( headerEntry.useToggle) | function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, includesToggleButton, emailAddress, fullAddress, displayName){ if ( parentBox ) { var item = document.createElement("mail-emailaddress"); var itemInDocument; if ( item && parentDiv) { if (parentDiv.childNodes.length) { var... |
var itemInDocument; if ( item && parentDiv) { if (parentDiv.childNodes.length) | if (item && parentNode) { if (parentNode.childNodes.length >= 1) | function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, includesToggleButton, emailAddress, fullAddress, displayName){ if ( parentBox ) { var item = document.createElement("mail-emailaddress"); var itemInDocument; if ( item && parentDiv) { if (parentDiv.childNodes.length) { var... |
var child = parentDiv.childNodes[parentDiv.childNodes.length - 1]; if (parentDiv.childNodes.length > 1 || (!includesToggleButton && parentDiv.childNodes.length >= 1) ) { var textNode = document.createElement("text"); textNode.setAttribute("value", ", "); textNode.setAttribute("class", "emailSeparator"); if (includesTog... | var textNode = document.createElement("text"); textNode.setAttribute("value", ", "); textNode.setAttribute("class", "emailSeparator"); parentNode.appendChild(textNode); | function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, includesToggleButton, emailAddress, fullAddress, displayName){ if ( parentBox ) { var item = document.createElement("mail-emailaddress"); var itemInDocument; if ( item && parentDiv) { if (parentDiv.childNodes.length) { var... |
else { itemInDocument = parentDiv.appendChild(item); } | itemInDocument = parentNode.appendChild(item); } } | function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, includesToggleButton, emailAddress, fullAddress, displayName){ if ( parentBox ) { var item = document.createElement("mail-emailaddress"); var itemInDocument; if ( item && parentDiv) { if (parentDiv.childNodes.length) { var... |
itemInDocument.setAttribute("label", fullAddress); itemInDocument.setTextAttribute("emailAddress", emailAddress); itemInDocument.setTextAttribute("fullAddress", fullAddress); itemInDocument.setTextAttribute("displayName", displayName); if (this.AddExtraAddressProcessing != undefined) AddExtraAddressProcessing(emailAdd... | updateEmailAddressNode(itemInDocument, emailAddress, fullAddress, displayName, headerEntry.useShortView); | function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, includesToggleButton, emailAddress, fullAddress, displayName){ if ( parentBox ) { var item = document.createElement("mail-emailaddress"); var itemInDocument; if ( item && parentDiv) { if (parentDiv.childNodes.length) { var... |
item.setAttribute("class", "emailDisplayButton"); item.setAttribute("value", fullAddress); | function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, emailAddress, fullAddress) { if ( parentBox ) { var item = document.createElement("titledbutton"); if ( item && parentDiv) { if (parentDiv.childNodes.length) { var child = parentDiv.childNodes[parentDiv.childNodes.leng... | |
ary = matchText.match(/([.,]+)$/); | ary = matchText.match(/([.,?]+)$/); | function insertLink (matchText, containerTag){ var href; var linkText; var trailing; ary = matchText.match(/([.,]+)$/); if (ary) { linkText = RegExp.leftContext; trailing = ary[1]; } else { linkText = matchText; } var ary = linkText.match (/^(\w[\w-]+):/); if... |
var href; if (matchText.match (/^[a-zA-Z-]+:/)) href = matchText; | var ary = linkText.match (/^(\w[\w-]+):/); if (ary) { if (!("schemes" in client)) { var pfx = "@mozilla.org/network/protocol;1?name="; var len = pfx.length client.schemes = new Object(); for (var c in Components.classes) { if (c.indexOf(pfx) == 0) client.schemes[c.substr(len)] = true; } } if (!(ary[1] in client.schem... | function insertLink (matchText, containerTag){ var href; if (matchText.match (/^[a-zA-Z-]+:/)) href = matchText; else href = "http://" + matchText; var anchor = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:a"); anchor.setA... |
href = "http: | { href = "http: } | function insertLink (matchText, containerTag){ var href; if (matchText.match (/^[a-zA-Z-]+:/)) href = matchText; else href = "http://" + matchText; var anchor = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:a"); anchor.setA... |
insertHyphenatedWord (matchText, anchor); | insertHyphenatedWord (linkText, anchor); | function insertLink (matchText, containerTag){ var href; if (matchText.match (/^[a-zA-Z-]+:/)) href = matchText; else href = "http://" + matchText; var anchor = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:a"); anchor.setA... |
if (trailing) insertHyphenatedWord (trailing, containerTag); | function insertLink (matchText, containerTag){ var href; if (matchText.match (/^[a-zA-Z-]+:/)) href = matchText; else href = "http://" + matchText; var anchor = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:a"); anchor.setA... | |
if (matchText.indexOf (": href = "http: | var trailing; ary = matchText.match(/([.,]+)$/); if (ary) { linkText = RegExp.leftContext; trailing = ary[1]; } | function insertLink (matchText, containerTag){ var href; if (matchText.indexOf ("://") == -1 && matchText.indexOf("x-jsd") != 0) href = "http://" + matchText; else href = matchText; var anchor = htmlVA (null, href, ""); insertHyphenatedWord(matchText, anchor); containerTag.append... |
href = matchText; | { linkText = matchText; } var ary = linkText.match (/^(\w[\w-]+):/); if (ary) { if (!("schemes" in utils)) { var pfx = "@mozilla.org/network/protocol;1?name="; var len = pfx.length utils.schemes = new Object(); for (var c in Components.classes) { if (c.indexOf(pfx) == 0) utils.schemes[c.substr(len)] = true; } } if (... | function insertLink (matchText, containerTag){ var href; if (matchText.indexOf ("://") == -1 && matchText.indexOf("x-jsd") != 0) href = "http://" + matchText; else href = matchText; var anchor = htmlVA (null, href, ""); insertHyphenatedWord(matchText, anchor); containerTag.append... |
var anchor = htmlVA (null, href, ""); insertHyphenatedWord(matchText, anchor); containerTag.appendChild (anchor); | function insertLink (matchText, containerTag){ var href; if (matchText.indexOf ("://") == -1 && matchText.indexOf("x-jsd") != 0) href = "http://" + matchText; else href = matchText; var anchor = htmlVA (null, href, ""); insertHyphenatedWord(matchText, anchor); containerTag.append... | |
"ftp: | "http: | function insertRheet (matchText, containerTag){ var anchor = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:a"); anchor.setAttribute ("href", "ftp://ftp.mozilla.org/pub/mozilla/libraries/bonus-tracks/rheet.wav"); anchor.setAttri... |
if (aDoCopy && aSelection.isContainer[i]) rSource = BookmarksUtils.cloneFolder(rSource); | if (BMSVC.isBookmarkedResource(rSource)) rSource = BMSVC.cloneResource(rSource); | insertSelection: function (aAction, aSelection, aTarget, aDoCopy) { var transaction = new BookmarkInsertTransaction(aAction); transaction.item = new Array(aSelection.length); transaction.parent = new Array(aSelection.length); transaction.index = new Array(aSelection.length); if (aAction != "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.