rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
var dialogTitle = window.editorShell.GetString("SaveDocument"); var dialogMsg = window.editorShell.GetString("SaveFilePrompt"); | var dialogTitle = GetString("SaveDocument"); var dialogMsg = GetString("SaveFilePrompt"); | function CheckAndSaveDocument(reasonToSave, allowDontSave){ var document = editorShell.editorDocument; if (!editorShell.documentModified && !gHTMLSourceChanged) return true; // call window.focus, since we need to pop up a dialog // and therefore need to be visible (to prevent user confusion) window.focus(); ... |
(allowDontSave ? window.editorShell.GetString("DontSave") : null), | (allowDontSave ? GetString("DontSave") : null), | function CheckAndSaveDocument(reasonToSave, allowDontSave){ var document = editorShell.editorDocument; if (!editorShell.documentModified && !gHTMLSourceChanged) return true; // call window.focus, since we need to pop up a dialog // and therefore need to be visible (to prevent user confusion) window.focus(); ... |
var success = window.editorShell.saveDocument(false, false, editorShell.contentsMIMEType); | var success = SaveDocument(false, false, editorShell.contentsMIMEType); | function CheckAndSaveDocument(reasonToSave, allowDontSave){ var document = editorShell.editorDocument; if (!editorShell.documentModified && !gHTMLSourceChanged) return true; // call window.focus, since we need to pop up a dialog // and therefore need to be visible (to prevent user confusion) window.focus(); ... |
function CheckAndSaveDocument(reasonToSave) | function CheckAndSaveDocument(reasonToSave, allowDontSave) | function CheckAndSaveDocument(reasonToSave){ var document = editorShell.editorDocument; if (!editorShell.documentModified) return true; var title = window.editorShell.editorDocument.title; if (title.length == 0) var title = GetString("untitled"); var dialogTitle = window.editorShell.GetString("SaveDo... |
window.editorShell.GetString("DontSave"), | (allowDontSave ? window.editorShell.GetString("DontSave") : null), | function CheckAndSaveDocument(reasonToSave){ var document = editorShell.editorDocument; if (!editorShell.documentModified) return true; var title = window.editorShell.editorDocument.title; if (title.length == 0) var title = GetString("untitled"); var dialogTitle = window.editorShell.GetString("SaveDo... |
3, | (allowDontSave ? 3 : 2), | function CheckAndSaveDocument(reasonToSave){ var document = editorShell.editorDocument; if (!editorShell.documentModified) return true; var title = window.editorShell.editorDocument.title; if (title.length == 0) var title = GetString("untitled"); var dialogTitle = window.editorShell.GetString("SaveDo... |
var ThisToDo = event.currentTarget.parentNode.parentNode.toDo; | var ThisToDo = event.currentTarget.toDo; | function checkboxClick( event ){ var ThisToDo = event.currentTarget.parentNode.parentNode.toDo; if( event.currentTarget.checked == true ) { var completedTime = new Date(); ThisToDo.completed.setTime( completedTime ); ThisToDo.status = ThisToDo.ICAL_STATUS_COMPLETED; } else ... |
if( event.currentTarget.checked == true ) | if( event.target.getElementsByTagName( "checkbox" )[0].checked == true ) | function checkboxClick( event ){ var ThisToDo = event.currentTarget.parentNode.parentNode.toDo; if( event.currentTarget.checked == true ) { var completedTime = new Date(); ThisToDo.completed.setTime( completedTime ); ThisToDo.status = ThisToDo.ICAL_STATUS_COMPLETED; } else ... |
toDoUnifinderRefesh(); | function checkboxClick( event ){ var ThisToDo = event.currentTarget.parentNode.parentNode.toDo; if( event.currentTarget.checked == true ) { var completedTime = new Date(); ThisToDo.completed.setTime( completedTime ); ThisToDo.status = ThisToDo.ICAL_STATUS_COMPLETED; } else ... | |
var primaryEmailValue = primaryEmail.value; var primaryEmailValueLength = primaryEmailValue.length; var primaryEmailValueAtLastIndex = primaryEmailValue.lastIndexOf("@"); if (!((primaryEmailValueLength >= 3) && (primaryEmailValueAtLastIndex > 0) && (primaryEmailValueAtLastIndex < primaryEmailValueLength - 1))) | if (primaryEmail.textLength == 0 && doc.getElementById("FirstName").textLength == 0 && doc.getElementById("LastName").textLength == 0 && doc.getElementById("DisplayName").textLength == 0 && doc.getElementById("Company").textLength == 0) | function CheckCardRequiredDataPresence(doc){ // Simple checks that the primary email could be of the form |user@host|. var primaryEmail = doc.getElementById("PrimaryEmail"); var primaryEmailValue = primaryEmail.value; var primaryEmailValueLength = primaryEmailValue.length; var primaryEmailValueAtLastIndex = primar... |
return false; } if (primaryEmail.textLength != 0 && !/.@./.test(primaryEmail.value)) { Components .classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService) .alert( window, gAddressBookBundle.getString("incorrectEmailAddressFormatTitle"), gAddressBookBundle.getString("in... | function CheckCardRequiredDataPresence(doc){ // Simple checks that the primary email could be of the form |user@host|. var primaryEmail = doc.getElementById("PrimaryEmail"); var primaryEmailValue = primaryEmail.value; var primaryEmailValueLength = primaryEmailValue.length; var primaryEmailValueAtLastIndex = primar... | |
if (startCheckbox && dueCheckBox) { var CheckDueDate = checkDueDate(); if ( CheckDueDate < 0 ) { | if (startCheckbox && dueCheckbox) { var startDate = getElementValue("start-datetime"); var dueDate = getElementValue("due-datetime"); var dateComparison = compareIgnoringTimeOfDay(dueDate, startDate); if ( dateComparison < 0 ) { | function checkDueSetTimeDate(){ var startCheckbox = getElementValue("start-checkbox", "checked"); var dueCheckbox = getElementValue("due-checkbox", "checked"); if (startCheckbox && dueCheckBox) { var CheckDueDate = checkDueDate(); if ( CheckDueDate < 0 ) { // due before start ... |
} else if ( CheckDueDate == 0 ) { | } else if ( dateComparison == 0 ) { | function checkDueSetTimeDate(){ var startCheckbox = getElementValue("start-checkbox", "checked"); var dueCheckbox = getElementValue("due-checkbox", "checked"); if (startCheckbox && dueCheckBox) { var CheckDueDate = checkDueDate(); if ( CheckDueDate < 0 ) { // due before start ... |
var CheckDueTime = checkDueTime(); setDueTimeError(CheckDueTime); return !CheckDueTime; | var isBadEndTime = dueDate.getTime() < startDate.getTime(); setDueTimeError(isBadEndTime); return !isBadEndTime; | function checkDueSetTimeDate(){ var startCheckbox = getElementValue("start-checkbox", "checked"); var dueCheckbox = getElementValue("due-checkbox", "checked"); if (startCheckbox && dueCheckBox) { var CheckDueDate = checkDueDate(); if ( CheckDueDate < 0 ) { // due before start ... |
if ( endDate < startDate) | if( startDate.getFullYear() == endDate.getFullYear() && startDate.getMonth() == endDate.getMonth() && startDate.getDay() == endDate.getDay() ) return( 0 ); else if ( endDate < startDate) | function checkEndDate(){ // Bad to get into floats. var startDate = Math.floor(document.getElementById( "start-date-picker" ).value.getTime()/86400000); var endDate = Math.floor(document.getElementById( "end-date-picker" ).value.getTime()/86400000); if ( endDate < startDate) return -1; else if (endDate... |
else return 0; | function checkEndDate(){ // Bad to get into floats. var startDate = Math.floor(document.getElementById( "start-date-picker" ).value.getTime()/86400000); var endDate = Math.floor(document.getElementById( "end-date-picker" ).value.getTime()/86400000); if ( endDate < startDate) return -1; else if (endDate... | |
setTimeout(checkEndList, 1500, network); | setTimeout(checkEndList, 5000, network); | function checkEndList (network) { if (network.list.count == network.list.lastLength) { network.on323(); } else { network.list.lastLength = network.list.count; network.list.endTimeout = setTimeout(checkEndList, 1500, network); ... |
document.getElementById( "end-time-warning" ).setAttribute( "collapsed", "false" ); | document.getElementById( "end-time-warning" ).removeAttribute( "collapsed" ); | function checkEndTime(){ var endDate = getDateTimeFieldValue( "end-time-text" ); var startDate = getDateTimeFieldValue( "start-time-text" ); var AllDayEvent = getFieldValue( "all-day-event-checkbox", "checked" ); if( endDate.getTime() < startDate.getTime() && !AllDayEvent ) { document.getElementById( ... |
var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(); var windowManagerInterface = windowManager.QueryInterface(nsIWindowMediator); | var windowManagerDS = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService(nsIWindowDataSource); | function checkFocusedWindow(){ var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(); var windowManagerInterface = windowManager.QueryInterface(nsIWindowMediator); var sep = document.getElementById("sep-window-list"); // Using double parens to avoid warning while ((sep = se... |
var win = windowManagerInterface.getWindowForResource(url); | var win = windowManagerDS.getWindowForResource(url); | function checkFocusedWindow(){ var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(); var windowManagerInterface = windowManager.QueryInterface(nsIWindowMediator); var sep = document.getElementById("sep-window-list"); // Using double parens to avoid warning while ((sep = se... |
const features = "chrome,centerscreen,dialog,titlebar"; | const features = "chrome,dialog=no,resizable"; | checkForAddonUpdates: function () { var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]. getService(Components.interfaces.nsIWindowMediator); var manager = wm.getMostRecentWindow("Extension:Manager-extensions"); if (!manager) { const features = "chrome,centerscreen,dia... |
if (postEmailText) { if (postEmailText.firstChild) postEmailText.removeChild(postEmailText.firstChild); var domainText = "@" + currentDomain; postEmailText.appendChild(document.createTextNode(domainText)); } | postEmailText.setAttribute("value", "@" + currentDomain); | function checkForDomain(){ var accountData = parent.currentAccountData; if (!accountData) return; if (!accountData.domain) return; // save in global variable currentDomain = accountData.domain; var postEmailText = document.getElementById("postEmailText"); if (postEmailText) { if (postEmailText.firstChild) ... |
if ( tailindex == 0 ) | if ( tailindex == 0 || tailindex == -1 ) | function checkForImage() { image = document.getElementById( "image.srcInput" ).value; if ( !image ) return 0; /* look for an extension */ var tailindex = image.lastIndexOf("."); if ( tailindex == 0 ) return 0; /* move past period, get the substring f... |
tail = tail + 1; var type = image.substring(tail,image.length); | tailindex = tailindex + 1; var type = image.substring(tailindex,image.length); | function checkForImage() { image = document.getElementById( "image.srcInput" ).value; if ( !image ) return 0; /* look for an extension */ var tailindex = image.lastIndexOf("."); if ( tailindex == 0 ) return 0; /* move past period, get the substring f... |
var account = getFirstInvalidAccount(); | var account = getFirstInvalidAccount(am.accounts); | function checkForInvalidAccounts(){ am = Components.classes["component://netscape/messenger/account-manager"].getService(Components.interfaces.nsIMsgAccountManager); var account = getFirstInvalidAccount(); if (account) { var pageData = parent.wizardManager.WSM.PageData; dump("We have an invalid a... |
AccountDataToPageData(account, pageData); | var accountData = AccountToAccountData(account); AccountDataToPageData(accountData, pageData); | function checkForInvalidAccounts(){ am = Components.classes["component://netscape/messenger/account-manager"].getService(Components.interfaces.nsIMsgAccountManager); var account = getFirstInvalidAccount(); if (account) { var pageData = parent.wizardManager.WSM.PageData; dump("We have an invalid a... |
AccountToAccountData(firstInvalidAccount, accountData); | accountData = AccountToAccountData(firstInvalidAccount, accountData); | function checkForInvalidAccounts(){ am = Components.classes["component://netscape/messenger/account-manager"].getService(Components.interfaces.nsIMsgAccountManager); var invalidAccounts = getInvalidAccounts(am.accounts); var firstInvalidAccount; if (invalidAccounts.length > 0) firstInvalidAccount ... |
setInfo("link-ping", ""); | function checkForLink(elem, htmllocalname){ if ((htmllocalname === "a" && elem.href != "") || htmllocalname === "area") { setInfo("link-lang", convertLanguageCode(elem.getAttribute("hreflang"))); setInfo("link-url", elem.href); setInfo("link-type", elem.getAttribute("type")); setInfo("link-rel", elem.... | |
var ping = elem.ping.replace(/ /g, '\n'); setInfo("link-ping", ping); | setInfo("link-ping", getPings(elem).join('\n')); | function checkForLink(elem, htmllocalname){ if ((htmllocalname === "a" && elem.href != "") || htmllocalname === "area") { setInfo("link-lang", convertLanguageCode(elem.getAttribute("hreflang"))); setInfo("link-url", elem.href); setInfo("link-type", elem.getAttribute("type")); setInfo("link-rel", elem.... |
if (elem.ownerDocument != elem.ownerDocument.defaultView._content.document) | if (elem.ownerDocument != elem.ownerDocument.defaultView.content.document) | function checkForLink(elem, htmllocalname){ if ((htmllocalname === "a" && elem.href != "") || htmllocalname === "area") { setInfo("link-lang", convertLanguageCode(elem.getAttribute("hreflang"))); setInfo("link-url", elem.href); setInfo("link-type", elem.getAttribute("type")); setInfo("link-rel", elem.... |
var AccountManagerComponent; | emailStringBundle = srGetStrBundle("chrome: var AccountManagerComponent; | function checkForMailNews(){ var AccountManagerComponent; var AccountManagerService; var AccountManager; var DefaultAccount; var SmtpServiceComponent; var SmtpService; var Smtp; var DefaultSmtp; try { AccountManagerComponent = Components.classes["@mozilla.org/messenger/account-manager;1"]; AccountManagerService = Acc... |
var prompter = Components.classes["@mozilla.org/updates/update-prompt;1"] .createInstance(Components.interfaces.nsIUpdatePrompt); prompter.checkForUpdates(); | var um = Components.classes["@mozilla.org/updates/update-manager;1"]. getService(Components.interfaces.nsIUpdateManager); var prompter = Components.classes["@mozilla.org/updates/update-prompt;1"]. createInstance(Components.interfaces.nsIUpdatePrompt); if (um.activeUpdate && um.activeUpdate.state == "pending") promp... | function checkForUpdates(){ var prompter = Components.classes["@mozilla.org/updates/update-prompt;1"] .createInstance(Components.interfaces.nsIUpdatePrompt); prompter.checkForUpdates();} |
client.closeLogFile(net); | client.closeLogFile(net, true); | function checkLogFiles(){ // For every view that has a logfile, check if we need a different file // based on the current date and the logfile preference. We close the // current logfile, and display will open the new one based on the pref // when it's needed. var d = new Date(); for (var n in client.... |
client.closeLogFile(chan); | client.closeLogFile(chan, true); | function checkLogFiles(){ // For every view that has a logfile, check if we need a different file // based on the current date and the logfile preference. We close the // current logfile, and display will open the new one based on the pref // when it's needed. var d = new Date(); for (var n in client.... |
client.closeLogFile(user); | client.closeLogFile(user, true); | function checkLogFiles(){ // For every view that has a logfile, check if we need a different file // based on the current date and the logfile preference. We close the // current logfile, and display will open the new one based on the pref // when it's needed. var d = new Date(); for (var n in client.... |
client.closeLogFile(dccChat); | client.closeLogFile(dccChat, true); | function checkLogFiles(){ // For every view that has a logfile, check if we need a different file // based on the current date and the logfile preference. We close the // current logfile, and display will open the new one based on the pref // when it's needed. var d = new Date(); for (var n in client.... |
client.closeLogFile(dccFile); | client.closeLogFile(dccFile, true); | function checkLogFiles(){ // For every view that has a logfile, check if we need a different file // based on the current date and the logfile preference. We close the // current logfile, and display will open the new one based on the pref // when it's needed. var d = new Date(); for (var n in client.... |
client.closeLogFile(client); | client.closeLogFile(client, true); | function checkLogFiles(){ // For every view that has a logfile, check if we need a different file // based on the current date and the logfile preference. We close the // current logfile, and display will open the new one based on the pref // when it's needed. var d = new Date(); for (var n in client.... |
var msgHdr = messenger.messageServiceFromURI(msgURI).messageURIToMsgHdr(msgURI); | var msgHdr = messenger.msgHdrFromURI(msgURI); | function checkMsgHdrPropertyIsNot(aProperty, aValue){ // we want to get the msg hdr for the currently selected message, // get the appropiate property on it and then test against value. var msgURI = GetLoadedMessage(); if (msgURI && !(/type=application\/x-message-display/.test(msgURI))) { var msgHdr = messe... |
if (this.NotifyClearAddresses != undefined) | if ("NotifyClearAddresses" in this) | function CheckNotify(){ if (this.NotifyClearAddresses != undefined) NotifyClearAddresses();} |
var browserGlue = Components.classes["@mozilla.org/browser/browserglue;1"] .getService(Components.interfaces.nsIBrowserGlue); browserGlue.checkDefaultBrowser(true, window); | var shellSvc = Components.classes["@mozilla.org/browser/shell-service;1"] .getService(Components.interfaces.nsIShellService); var brandBundle = document.getElementById("bundleBrand"); var shellBundle = document.getElementById("bundleShell"); var brandShortName = brandBundle.getString("brandShortName"); var promptTitle ... | checkNow: function () { var browserGlue = Components.classes["@mozilla.org/browser/browserglue;1"] .getService(Components.interfaces.nsIBrowserGlue); browserGlue.checkDefaultBrowser(true, window); } |
var shellSvc = Components.classes["@mozilla.org/browser/shell-service;1"] .getService(Components.interfaces.nsIShellService); var brandBundle = document.getElementById("bundleBrand"); var shellBundle = document.getElementById("bundleShell"); var brandShortName = brandBundle.getString("brandShortName"); var promptTitle ... | var browserGlue = Components.classes["@mozilla.org/browser/browserglue;1"] .getService(Components.interfaces.nsIBrowserGlue); browserGlue.checkDefaultBrowser(true, window); | checkNow: function () { var shellSvc = Components.classes["@mozilla.org/browser/shell-service;1"] .getService(Components.interfaces.nsIShellService); var brandBundle = document.getElementById("bundleBrand"); var shellBundle = document.getElementById("bundleShell"); var brandSh... |
var browserEnableHTTP11 = document.getElementById("httpVersion11"); var browserEnableKeepAlive = document.getElementById("browserEnableKeepAlive"); var browserEnablePipelining = document.getElementById("browserEnablePipelining"); | var enableHTTP11 = document.getElementById("httpVersion11"); var enableKeepAlive = document.getElementById("enableKeepAlive"); var enablePipelining = document.getElementById("enablePipelining"); | function checkPipelining(){ try { var browserEnableHTTP11 = document.getElementById("httpVersion11"); var browserEnableKeepAlive = document.getElementById("browserEnableKeepAlive"); var browserEnablePipelining = document.getElementById("browserEnablePipelining"); if (browserEnableHTTP11.selected && browser... |
if (browserEnableHTTP11.selected && browserEnableKeepAlive.checked) { browserEnablePipelining.removeAttribute("disabled"); } else { browserEnablePipelining.setAttribute("disabled", "true"); browserEnablePipelining.setAttribute("checked", "false"); } | var doDisable = !(enableHTTP11.selected && enableKeepAlive.checked); enablePipelining.disabled = doDisable; if (doDisable) enablePipelining.checked = false; | function checkPipelining(){ try { var browserEnableHTTP11 = document.getElementById("httpVersion11"); var browserEnableKeepAlive = document.getElementById("browserEnableKeepAlive"); var browserEnablePipelining = document.getElementById("browserEnablePipelining"); if (browserEnableHTTP11.selected && browser... |
document.getElementById( "repeat-time-warning" ).setAttribute( "collapsed", "false" ); | document.getElementById( "repeat-time-warning" ).removeAttribute( "collapsed" ); | function checkRecurTime(){ var recurEndDate = getDateTimeFieldValue( "repeat-end-date-text" ); var endDate = getDateTimeFieldValue( "end-time-text" ); var recurForever = getFieldValue( "repeat-forever-radio", "selected" ); if( recurEndDate.getTime() < endDate.getTime() && recurForever == false ) { doc... |
if (item == "NC:BookmarksRoot") | if (item.Value == "NC:BookmarksRoot") { | checkSelection: function (aSelection) { if (aSelection.length == 0) return; aSelection.type = new Array(aSelection.length); aSelection.protocol = new Array(aSelection.length); aSelection.isContainer = new Array(aSelection.length); aSelection.isImmutable = new Array(aSele... |
aSelection.containsRF = true; } | checkSelection: function (aSelection) { if (aSelection.length == 0) return; aSelection.type = new Array(aSelection.length); aSelection.protocol = new Array(aSelection.length); aSelection.isContainer = new Array(aSelection.length); aSelection.isImmutable = new Array(aSele... | |
var state = (recurEndDate.getTime() < endDate.getTime() && !recurForever && recur) ; | var state = ( ( recurEndDate.getFullYear() < endDate.getFullYear() || recurEndDate.getMonth() != endDate.getMonth() || recurEndDate.getDate() != endDate.getDate() ) && !recurForever && recur) ; | function checkSetRecurTime(){ var recurEndDate = document.getElementById( "repeat-end-date-picker" ).value; var endDate = document.getElementById( "end-date-picker" ).value; var recurForever = getFieldValue( "repeat-forever-radio", "selected" ); var recur = getFieldValue( "repeat-checkbox", "checked" ); du... |
alert( "dates are same, check end time is "+CheckEndTime ); | function checkSetTimeDate(){ var CheckEndDate = checkEndDate(); var CheckEndTime = checkEndTime(); if ( CheckEndDate < 0 ) { // end before start setDateError(true); setTimeError(false); return false; } else if ( CheckEndDate == 0 ) { setDateError(false); // start & end same ... | |
var spellChecker = window.editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); | var spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); | function CheckSpelling(){ var spellChecker = window.editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (spellChecker) { dump("Check Spelling starting...\n"); // Start the spell checker module. Return is first misspelled word firstMisspelledWord = spellChecker.StartSpellChecking(); ... |
window.editorShell.CloseSpellChecking(); | spellChecker.CloseSpellChecking(); | function CheckSpelling(){ var spellChecker = window.editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (spellChecker) { dump("Check Spelling starting...\n"); // Start the spell checker module. Return is first misspelled word firstMisspelledWord = spellChecker.StartSpellChecking(); ... |
window.spellChecker = spellChecker; | function CheckSpelling(){ var spellChecker = window.editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (spellChecker) { dump("Check Spelling starting...\n"); // Start the spell checker module. Return is first misspelled word firstMisspelledWord = spellChecker.StartSpellChecking(); ... | |
document.getElementById( "ok" ).setAttribute( "disabled", true ); | document.getElementById( "calendar-new-taskwindow" ).getButton( "accept" ).setAttribute( "disabled", true ); | function checkStartAndDueDates(){ var StartDate = getDateTimeFieldValue( "start-date-text" ); var DueDate = getDateTimeFieldValue( "due-date-text" ); if( DueDate.getTime() < StartDate.getTime() ) { //show alert message, disable OK button document.getElementById( "start-date-warning" ).removeAttribute(... |
document.getElementById( "ok" ).removeAttribute( "disabled" ); | document.getElementById( "calendar-new-taskwindow" ).getButton( "accept" ).removeAttribute( "disabled" ); | function checkStartAndDueDates(){ var StartDate = getDateTimeFieldValue( "start-date-text" ); var DueDate = getDateTimeFieldValue( "due-date-text" ); if( DueDate.getTime() < StartDate.getTime() ) { //show alert message, disable OK button document.getElementById( "start-date-warning" ).removeAttribute(... |
cdump('testname: ' + testcase.name + ' ' + | cdump('test: ' + testcase.path + ' ' + | function checkTestCompleted(){ var win = gSpider.mDocument.defaultView; if (win.wrappedJSObject) { win = win.wrappedJSObject; } if (win.gPageCompleted) { gPageCompleted = true; var testcases = win.testcases; for (var i = 0; i < testcases.length; i++) { var testcase = testcases[i]; cdump('... |
(testcase.passed ? 'PASSED':'FAILED') + ' ' + | 'result: ' + (testcase.passed ? 'PASSED':'FAILED') + ' ' + 'type: browser ' + | function checkTestCompleted(){ var win = gSpider.mDocument.defaultView; if (win.wrappedJSObject) { win = win.wrappedJSObject; } if (win.gPageCompleted) { gPageCompleted = true; var testcases = win.testcases; for (var i = 0; i < testcases.length; i++) { var testcase = testcases[i]; cdump('... |
if (typeof testcases == 'undefined') { return; } | function checkTestCompleted(){ var win = gSpider.mDocument.defaultView; if (win.wrappedJSObject) { win = win.wrappedJSObject; } if (win.gPageCompleted) { gPageCompleted = true; var testcases = win.testcases; for (var i = 0; i < testcases.length; i++) { var testcase = testcases[i]; cdump('... | |
var type = vals[0]; var slot = vals[1]; if (! accountValues[type]) return true; if (slot == "realHostName") { oldHost = accountValues[type][slot]; newHost = getFormElementValue(pageElements[i]); hIndx = i; | if (vals.length >= 2) { var type = vals[0]; var slot = vals[1]; if (!(type in accountValues) || !accountValues[type]) return true; if (slot == "realHostName") { oldHost = accountValues[type][slot]; newHost = getFormElementValue(pageElements[i]); hIndx = i; } else if (slot == "realUsername") { oldUser = accountValue... | function checkUserServerChanges(showAlert) { var accountValues = getValueArrayFor(currentServerId); var pageElements = getPageFormElements(); if (pageElements == null) return true; // Get the new username, hostname and type from the page var newUser, newHost, newType, oldUser, oldHost; var uIndx, hIndx; for (var... |
else if (slot == "realUsername") { oldUser = accountValues[type][slot]; newUser = getFormElementValue(pageElements[i]); uIndx = i; } else if (slot == "type") newType = getFormElementValue(pageElements[i]); | function checkUserServerChanges(showAlert) { var accountValues = getValueArrayFor(currentServerId); var pageElements = getPageFormElements(); if (pageElements == null) return true; // Get the new username, hostname and type from the page var newUser, newHost, newType, oldUser, oldHost; var uIndx, hIndx; for (var... | |
var newServer = accountManager.findRealServer(newUser, newHost, newType); | var newServer = accountManager.findRealServer(newUser, newHost, newType, 0); | function checkUserServerChanges(showAlert) { if (smtpService.defaultServer) { try { var smtpHostName = top.frames["contentFrame"].document.getElementById("smtp.hostname"); if (hostnameIsIllegal(smtpHostName.value)) { var alertTitle = gBrandBundle.getString("brandShortName"); var alertMsg = g... |
if (smtpService.defaultServer) { try { var smtpHostName = top.frames["contentFrame"].document.getElementById("smtp.hostname"); if (hostnameIsIllegal(smtpHostName.value)) { var alertTitle = gBrandBundle.getString("brandShortName"); var alertMsg = gPrefsBundle.getString("enterValidHostname"); if (gPromptService) gPrompt... | function checkUserServerChanges(showAlert) { var accountValues = getValueArrayFor(currentServerId); if (!accountValues) return true; var pageElements = getPageFormElements(); if (pageElements == null) return true; // Get the new username, hostname and type from the page var newUser, newHost, newType, oldUser,... | |
if (errno != expectedErrno) throw getWcapErrorCode(errno); | if (errno != expectedErrno) { var rc; try { rc = getWcapErrorCode(errno); } catch (exc) { throw new Components.Exception( "No WCAP error no.", Components.results.NS_ERROR_INVALID_ARG ); } throw new Components.Exception( wcapErrorToString(rc), rc ); } | function checkWcapErrno( errno, expectedErrno ){ if (expectedErrno == undefined) expectedErrno = 0; // i.e. Command successful. if (errno != expectedErrno) throw getWcapErrorCode(errno);} |
if (expectedErrno == undefined) { expectedErrno = 0; } if (errno != expectedErrno) { | if (expectedErrno == undefined) expectedErrno = 0; if (errno != expectedErrno) | function checkWcapErrno( errno, expectedErrno ){ if (expectedErrno == undefined) { expectedErrno = 0; } if (errno != expectedErrno) { throw getWcapErrorCode(errno); }} |
} | function checkWcapErrno( errno, expectedErrno ){ if (expectedErrno == undefined) { expectedErrno = 0; } if (errno != expectedErrno) { throw getWcapErrorCode(errno); }} | |
if (word != "") { | if (!word) { | function CheckWord(){ word = dialog.ReplaceWordInput.value; if (word != "") { isMisspelled = spellChecker.CheckCurrentWord(word); if (isMisspelled) { MisspelledWord = word; FillSuggestedList(); SetReplaceEnable(); } else { ClearTreelist(dialog.SuggestedList); var item = AppendStringT... |
isMisspelled = editorShell.CheckCurrentWord(word); | isMisspelled = spellChecker.CheckCurrentWord(word); | function CheckWord(){ dump("SpellCheck: CheckWord\n"); word = dialog.wordInput.value; if (word != "") { dump("CheckWord: Word in edit field="+word+"\n"); isMisspelled = editorShell.CheckCurrentWord(word); if (isMisspelled) { dump("CheckWord says word was misspelled\n"); misspelledWord = word; ... |
dump("CheckWord says word was misspelled\n"); | function CheckWord(){ word = dialog.ReplaceWordInput.value; if (word != "") { //dump("CheckWord: Word in edit field="+word+"\n"); isMisspelled = spellChecker.CheckCurrentWord(word); if (isMisspelled) { dump("CheckWord says word was misspelled\n"); MisspelledWord = word; FillSuggestedList(); ... | |
SetReplaceEnable(); | function CheckWord(){ word = dialog.ReplaceWordInput.value; if (word != "") { //dump("CheckWord: Word in edit field="+word+"\n"); isMisspelled = spellChecker.CheckCurrentWord(word); if (isMisspelled) { dump("CheckWord says word was misspelled\n"); MisspelledWord = word; FillSuggestedList(); ... | |
toolkit.CloseWindow( window ); | function choose() { /* Use existing browser "open" logic. */ browser.openWindow(); //toolkit.CloseWindow( window );} | |
this.userChoseApp = true; | this.choseApp = true; | chooseApp: function() { var nsIFilePicker = Components.interfaces.nsIFilePicker; var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance( nsIFilePicker ); fp.init( this.mDialog, this.getString( "chooseAppFilePickerTitle" ), nsIFilePicker.modeOpen ... |
this.dialogElement( "appName" ).value = this.chosenApp.unicodePath; | this.updateApplicationName(this.chosenApp.unicodePath); | chooseApp: function() { var nsIFilePicker = Components.interfaces.nsIFilePicker; var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance( nsIFilePicker ); fp.init( this.mDialog, this.getString( "chooseAppFilePickerTitle" ), nsIFilePicker.modeOpen ... |
fp.init(window, "Choose File...", nsIFilePicker.modeGetFolder); | var bundle = document.getElementById("bundle_cckwizard"); fp.init(window, bundle.getString("chooseDirectory"), nsIFilePicker.modeGetFolder); | function choosedir(labelname){ try { var keepgoing = true; while (keepgoing) { var nsIFilePicker = Components.interfaces.nsIFilePicker; var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, "Choose File...", nsIFilePicker.modeGetFolder); fp.ap... |
dialog.BackgroundImage = fileName; dialog.BackgroundImageInput.value = fileName; dialog.ColorPreview.setAttribute(backgroundStr, fileName); var styleValue = colorStyle+dialog.backgroundColor+";"; if (ValidateImage()) { styleValue += backImageStyle+dialog.BackgroundImage+");"; } dump(styleValue+"=style value when sett... | dialog.BackgroundImageInput = filename; ValidateAndPreviewImage(true); | function chooseFile(){ // Get a local file, converted into URL format fileName = GetLocalFileURL("img"); if (fileName && fileName != "") { dialog.BackgroundImage = fileName; dialog.BackgroundImageInput.value = fileName; dialog.ColorPreview.setAttribute(backgroundStr, fileName); // First make a string wi... |
ChangeText(); | function chooseFile(){ // Get a local file, converted into URL format fileName = GetLocalFileURL("html"); if (fileName) { dialog.hrefInput.value = fileName; } // Put focus into the input field SetTextfieldFocus(dialog.hrefInput);} | |
fp.init(window, "Choose File...", nsIFilePicker.modeOpen); | var bundle = document.getElementById("bundle_cckwizard"); fp.init(window, bundle.getString("chooseFile"), nsIFilePicker.modeOpen); | function choosefile(labelname){ try { var nsIFilePicker = Components.interfaces.nsIFilePicker; var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, "Choose File...", nsIFilePicker.modeOpen); fp.appendFilters(nsIFilePicker.filterAll); if (fp.show() == nsI... |
{preselectedURI:window.arguments[0].preselectedURI, | {serverURI:folder.rootFolder.URI, | function chooseFoldersToSearch(){ var dialog = window.openDialog("chrome://messenger/content/virtualFolderListDialog.xul", "", "chrome,titlebar,modal,centerscreen,resizable", {preselectedURI:window.arguments[0].preselectedURI, ... |
fp.init(window, "Choose File...", nsIFilePicker.modeOpen); | var bundle = document.getElementById("bundle_cckwizard"); fp.init(window, bundle.getString("chooseImage"), nsIFilePicker.modeOpen); | function chooseimage(labelname, imagename){ try { var nsIFilePicker = Components.interfaces.nsIFilePicker; var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, "Choose File...", nsIFilePicker.modeOpen); fp.appendFilters(nsIFilePicker.filterImages); if (f... |
function chooseProfileFolder(folder, showPopup) | function chooseProfileFolder( aRootFolder ) | function chooseProfileFolder(folder, showPopup){ if(showPopup) { try { var fileSpec = Components.classes["component://netscape/filespecwithui"].createInstance(); if(fileSpec) { fileSpec = fileSpec.QueryInterface(Components.interfaces.nsIFileSpecWithUI); folder = fileSpec.chooseDirectory( bund... |
if(showPopup) { | if( !aRootFolder ) { | function chooseProfileFolder(folder, showPopup){ if(showPopup) { try { var fileSpec = Components.classes["component://netscape/filespecwithui"].createInstance(); if(fileSpec) { fileSpec = fileSpec.QueryInterface(Components.interfaces.nsIFileSpecWithUI); folder = fileSpec.chooseDirectory( bund... |
folder = fileSpec.chooseDirectory( bundle.GetStringFromName("chooseFolder")); | fileSpec.URLString = fileSpec.chooseDirectory( bundle.GetStringFromName("chooseFolder")); aRootFolder = fileSpec.nativePath; | function chooseProfileFolder(folder, showPopup){ if(showPopup) { try { var fileSpec = Components.classes["component://netscape/filespecwithui"].createInstance(); if(fileSpec) { fileSpec = fileSpec.QueryInterface(Components.interfaces.nsIFileSpecWithUI); folder = fileSpec.chooseDirectory( bund... |
else folder = null; | else aRootFolder = null; | function chooseProfileFolder(folder, showPopup){ if(showPopup) { try { var fileSpec = Components.classes["component://netscape/filespecwithui"].createInstance(); if(fileSpec) { fileSpec = fileSpec.QueryInterface(Components.interfaces.nsIFileSpecWithUI); folder = fileSpec.chooseDirectory( bund... |
folder = null; | aRootFolder = null; | function chooseProfileFolder(folder, showPopup){ if(showPopup) { try { var fileSpec = Components.classes["component://netscape/filespecwithui"].createInstance(); if(fileSpec) { fileSpec = fileSpec.QueryInterface(Components.interfaces.nsIFileSpecWithUI); folder = fileSpec.chooseDirectory( bund... |
if( folder != undefined && folder ) { | if( aRootFolder ) { | function chooseProfileFolder(folder, showPopup){ if(showPopup) { try { var fileSpec = Components.classes["component://netscape/filespecwithui"].createInstance(); if(fileSpec) { fileSpec = fileSpec.QueryInterface(Components.interfaces.nsIFileSpecWithUI); folder = fileSpec.chooseDirectory( bund... |
if (showPopup) { try { var spec = Components.classes["component: spec = spec.QueryInterface(Components.interfaces.nsIFileSpec); spec.URLString = folder; folder = spec.nativePath; } catch (ex) { dump("failed to convert URL to native path\n"); } } folderText.setAttribute( "value",folder ); if( showPopup ) folderText.setA... | folderText.setAttribute( "rootFolder", aRootFolder ); if ( aRootFolder != top.profile.defaultProfileParentDir.nativePath ) document.getElementById( "useDefault" ).removeAttribute("disabled"); | function chooseProfileFolder(folder, showPopup){ if(showPopup) { try { var fileSpec = Components.classes["component://netscape/filespecwithui"].createInstance(); if(fileSpec) { fileSpec = fileSpec.QueryInterface(Components.interfaces.nsIFileSpecWithUI); folder = fileSpec.chooseDirectory( bund... |
if ( aRootFolder != top.profile.defaultProfileParentDir.path ) | if ( aRootFolder != top.profile.defaultProfileParentDir.unicodePath ) | function chooseProfileFolder( aRootFolder ){ if( !aRootFolder ) { try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(Components.interfaces.nsIFilePicker); fp.init(window, bundle.GetStringFromName("chooseFolder"), Components.interfaces.nsIFilePicker.modeGetFolder); fp.append... |
fp.init(window, bundle.GetStringFromName("chooseFolder"), Components.interfaces.nsIFilePicker.modeGetFolder); | fp.init(window, gNewProfile1_2Bundle.getString("chooseFolder"), Components.interfaces.nsIFilePicker.modeGetFolder); | function chooseProfileFolder( aRootFolder ){ if( !aRootFolder ) { try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(Components.interfaces.nsIFilePicker); fp.init(window, bundle.GetStringFromName("chooseFolder"), Components.interfaces.nsIFilePicker.modeGetFolder); fp.append... |
function CIRCChannel (parent, encodedName, unicodeName) | function CIRCChannel(parent, unicodeName, encodedName) | function CIRCChannel (parent, encodedName, unicodeName){ this.normalizedName = parent.toLowerCase(encodedName); this.name = this.normalizedName; if (this.normalizedName in parent.channels) return parent.channels[this.normalizedName]; this.parent = parent; this.encodedName = encodedName; if (uni... |
this.normalizedName = parent.toLowerCase(encodedName); this.name = this.normalizedName; | function CIRCChannel (parent, encodedName, unicodeName){ this.normalizedName = parent.toLowerCase(encodedName); this.name = this.normalizedName; if (this.normalizedName in parent.channels) return parent.channels[this.normalizedName]; this.parent = parent; this.encodedName = encodedName; if (uni... | |
if (this.normalizedName in parent.channels) return parent.channels[this.normalizedName]; | if (!encodedName && !unicodeName) throw "Hey! Come on, I need either an encoded or a Unicode name."; if (!encodedName) encodedName = fromUnicode(unicodeName, parent); var canonicalName = parent.toLowerCase(encodedName); if (canonicalName in parent.channels) return parent.channels[canonicalName]; | function CIRCChannel (parent, encodedName, unicodeName){ this.normalizedName = parent.toLowerCase(encodedName); this.name = this.normalizedName; if (this.normalizedName in parent.channels) return parent.channels[this.normalizedName]; this.parent = parent; this.encodedName = encodedName; if (uni... |
if (unicodeName) this.unicodeName = unicodeName; else this.unicodeName = toUnicode(encodedName, this); this.displayName = this.unicodeName; | this.canonicalName = canonicalName; this.unicodeName = unicodeName || toUnicode(encodedName, this); this.viewName = this.unicodeName; | function CIRCChannel (parent, encodedName, unicodeName){ this.normalizedName = parent.toLowerCase(encodedName); this.name = this.normalizedName; if (this.normalizedName in parent.channels) return parent.channels[this.normalizedName]; this.parent = parent; this.encodedName = encodedName; if (uni... |
this.parent.channels[this.normalizedName] = this; | this.parent.channels[this.canonicalName] = this; | function CIRCChannel (parent, encodedName, unicodeName){ this.normalizedName = parent.toLowerCase(encodedName); this.name = this.normalizedName; if (this.normalizedName in parent.channels) return parent.channels[this.normalizedName]; this.parent = parent; this.encodedName = encodedName; if (uni... |
if ("onInit" in this) this.onInit(); | function CIRCChannel (parent, name, charset){ var encodedName = name; var unicodeName = toUnicode(name, charset); name = name.toLowerCase(); if (name in parent.channels) return parent.channels[name]; this.parent = parent; this.name = name; // used internally, lowercased this.unicodeName = un... | |
function CIRCChanUser (parent, nick, modes) | function CIRCChanUser(parent, unicodeName, encodedName, modes) | function CIRCChanUser (parent, nick, modes){ var properNick = nick; nick = parent.parent.toLowerCase(nick); if (nick in parent.users) { var existingUser = parent.users[nick]; if (modes) { // If we start with a single character mode, assume we're replacing // the li... |
var properNick = nick; nick = parent.parent.toLowerCase(nick); | function CIRCChanUser (parent, nick, modes){ var properNick = nick; nick = parent.parent.toLowerCase(nick); if (nick in parent.users) { var existingUser = parent.users[nick]; if (modes) { // If we start with a single character mode, assume we're replacing // the li... | |
if (nick in parent.users) | if (!encodedName && !unicodeName) throw "Hey! Come on, I need either an encoded or a Unicode name."; else if (encodedName && !unicodeName) unicodeName = toUnicode(encodedName, parent); else if (!encodedName && unicodeName) encodedName = fromUnicode(unicodeName, parent); var canonicalName = parent.parent.toLowerCase(... | function CIRCChanUser (parent, nick, modes){ var properNick = nick; nick = parent.parent.toLowerCase(nick); if (nick in parent.users) { var existingUser = parent.users[nick]; if (modes) { // If we start with a single character mode, assume we're replacing // the li... |
var existingUser = parent.users[nick]; | var existingUser = parent.users[canonicalName]; | function CIRCChanUser (parent, nick, modes){ var properNick = nick; nick = parent.parent.toLowerCase(nick); if (nick in parent.users) { var existingUser = parent.users[nick]; if (modes) { // If we start with a single character mode, assume we're replacing // the li... |
var protoUser = new CIRCUser (parent.parent, properNick); | var protoUser = new CIRCUser(parent.parent, unicodeName, encodedName); | function CIRCChanUser (parent, nick, modes){ var properNick = nick; nick = parent.parent.toLowerCase(nick); if (nick in parent.users) { var existingUser = parent.users[nick]; if (modes) { // If we start with a single character mode, assume we're replacing // the li... |
parent.users[nick] = this; | parent.users[this.canonicalName] = this; | function CIRCChanUser (parent, nick, modes){ var properNick = nick; nick = parent.parent.toLowerCase(nick); if (nick in parent.users) { var existingUser = parent.users[nick]; if (modes) { // If we start with a single character mode, assume we're replacing // the li... |
this._lastID = Math.round(Math.random() * DCC_ID_MAX); | function CIRCDCC(parent){ this.parent = parent; this.users = new Object(); this.chats = new Array(); this.files = new Array(); this.last = null; this.lastTime = null; this.sendChunk = 1024; this.maxUnAcked = 0; this.requestTimeout = 3 * 60 * 1000; // 3 minutes. // Can't do ... | |
this.name = user.properNick; this.displayName = "DCC: " + user.properNick; | this.unicodeName = user.unicodeName; this.viewName = "DCC: " + user.unicodeName; | function CIRCDCCChat(parent, user, port){ // user == CIRCDCCUser object. // port == port as specified in CTCP DCC message. this.READ_TIMEOUT = 50; // Link up all our data. this.parent = parent; this.eventPump = parent.parent.eventPump; this.user = user; this.localIP = this.parent.localIP... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.