rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
gBMtxmgr.doTransaction(transaction)
BMSVC.transactionManager.doTransaction(transaction);
removeSelection: function (aAction, aSelection) { var transaction = new BookmarkRemoveTransaction(aAction); transaction.item = new Array(aSelection.length); transaction.parent = new Array(aSelection.length); transaction.index = new Array(aSelection.length); transaction.isValid = BookmarksUti...
var transaction = new BookmarkRemoveTransaction(aAction); transaction.item = []; transaction.parent = []; transaction.index = []; transaction.removedProp = [];
if (aSelection.length > 1) gBkmkTxnSvc.startBatch(); if (aSelection.length > this.BATCH_LIMIT && aAction != "move") BMDS.beginUpdateBatch();
removeSelection: function (aAction, aSelection) { var transaction = new BookmarkRemoveTransaction(aAction); transaction.item = []; transaction.parent = []; transaction.index = []; transaction.removedProp = []; for (var i = 0; i < aSelection.length; ++i) { // try to put back aSelection.pa...
transaction.item .push(aSelection.item[i]); transaction.parent.push(aSelection.parent[i]); transaction.index .push(RDFC.IndexOf(aSelection.item[i]));
removeSelection: function (aAction, aSelection) { var transaction = new BookmarkRemoveTransaction(aAction); transaction.item = []; transaction.parent = []; transaction.index = []; transaction.removedProp = []; for (var i = 0; i < aSelection.length; ++i) { // try to put back aSelection.pa...
var propArray = []; propArray.push([aSelection.item[i], null, null, null, null, null, null]);
propArray = [aSelection.item[i], null, null, null, null, null, null];
removeSelection: function (aAction, aSelection) { var transaction = new BookmarkRemoveTransaction(aAction); transaction.item = []; transaction.parent = []; transaction.index = []; transaction.removedProp = []; for (var i = 0; i < aSelection.length; ++i) { // try to put back aSelection.pa...
propArray[0][j+1] = oldValue.QueryInterface(kRDFLITIID);
propArray[j+1] = oldValue.QueryInterface(kRDFLITIID);
removeSelection: function (aAction, aSelection) { var transaction = new BookmarkRemoveTransaction(aAction); transaction.item = []; transaction.parent = []; transaction.index = []; transaction.removedProp = []; for (var i = 0; i < aSelection.length; ++i) { // try to put back aSelection.pa...
transaction.removedProp.push(propArray); } else { transaction.removedProp.push(null);
removeSelection: function (aAction, aSelection) { var transaction = new BookmarkRemoveTransaction(aAction); transaction.item = []; transaction.parent = []; transaction.index = []; transaction.removedProp = []; for (var i = 0; i < aSelection.length; ++i) { // try to put back aSelection.pa...
BMSVC.transactionManager.doTransaction(transaction);
if (aSelection.length > 1) gBkmkTxnSvc.endBatch(); if (aSelection.length > this.BATCH_LIMIT && aAction != "move") BMDS.beginUpdateBatch();
removeSelection: function (aAction, aSelection) { var transaction = new BookmarkRemoveTransaction(aAction); transaction.item = []; transaction.parent = []; transaction.index = []; transaction.removedProp = []; for (var i = 0; i < aSelection.length; ++i) { // try to put back aSelection.pa...
var titleMsg = gPrefApplicationsBundle.getString("removeHandlerTitle"); var dialogMsg = gPrefApplicationsBundle.getString("removeHandler"); dialogMsg = dialogMsg.replace(/%n/g, "\n"); var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService); va...
var uri = gList.selectedItems[0].id; var handlerOverride = new HandlerOverride(uri); if ( !handlerOverride.useSystemDefault && !handlerOverride.saveToDisk ) { var titleMsg = gPrefApplicationsBundle.getString("removeHandlerTitle"); var dialogMsg = gPrefApplicationsBundle.getString("removeHandler"); dialogMsg = dialogMsg...
function removeType(){ var titleMsg = gPrefApplicationsBundle.getString("removeHandlerTitle"); var dialogMsg = gPrefApplicationsBundle.getString("removeHandler"); dialogMsg = dialogMsg.replace(/%n/g, "\n"); var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.inter...
removeOverride(handlerOverride.mimeType); gList.setAttribute("ref", "urn:mimetypes"); selectApplication();
function removeType(){ var titleMsg = gPrefApplicationsBundle.getString("removeHandlerTitle"); var dialogMsg = gPrefApplicationsBundle.getString("removeHandler"); dialogMsg = dialogMsg.replace(/%n/g, "\n"); var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.inter...
var lString = bundle.GetStringFromName("migratebeforerename");
var lString = gProfileManagerBundle.getString("migratebeforerename");
function RenameProfile(){ renameButton = document.getElementById("renbutton"); if( renameButton.getAttribute("disabled") == "true" ) return; var profileTree = document.getElementById( "profiles" ); var selected = profileTree.selectedItems[0]; if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no"...
lString = lString.replace(/%brandShortName%/, brandBundle.GetStringFromName("brandShortName")); var title = bundle.GetStringFromName("migratetitle");
lString = lString.replace(/%brandShortName%/, gBrandBundle.getString("brandShortName")); var title = gProfileManagerBundle.getString("migratetitle");
function RenameProfile(){ renameButton = document.getElementById("renbutton"); if( renameButton.getAttribute("disabled") == "true" ) return; var profileTree = document.getElementById( "profiles" ); var selected = profileTree.selectedItems[0]; if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no"...
var dialogTitle = bundle.GetStringFromName("renameprofiletitle"); var msg = bundle.GetStringFromName("renameProfilePrompt");
var dialogTitle = gProfileManagerBundle.getString("renameprofiletitle"); var msg = gProfileManagerBundle.getString("renameProfilePrompt");
function RenameProfile(){ renameButton = document.getElementById("renbutton"); if( renameButton.getAttribute("disabled") == "true" ) return; var profileTree = document.getElementById( "profiles" ); var selected = profileTree.selectedItems[0]; if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no"...
var aString = bundle.GetStringFromName("invalidCharA"); var bString = bundle.GetStringFromName("invalidCharB");
var aString = gProfileManagerBundle.getString("invalidCharA"); var bString = gProfileManagerBundle.getString("invalidCharB");
function RenameProfile(){ renameButton = document.getElementById("renbutton"); if( renameButton.getAttribute("disabled") == "true" ) return; var profileTree = document.getElementById( "profiles" ); var selected = profileTree.selectedItems[0]; if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no"...
var lString = bundle.GetStringFromName("profileExists"); var profileExistsTitle = bundle.GetStringFromName("profileExistsTitle");
var lString = gProfileManagerBundle.getString("profileExists"); var profileExistsTitle = gProfileManagerBundle.getString("profileExistsTitle");
function RenameProfile(){ renameButton = document.getElementById("renbutton"); if( renameButton.getAttribute("disabled") == "true" ) return; var profileTree = document.getElementById( "profiles" ); var selected = profileTree.selectedItems[0]; if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no"...
var newName = prompt( bundle.GetStringFromName("renameprofilepromptA") + oldName + bundle.GetStringFromName("renameprofilepromptB"), "" );
var newName = prompt( bundle.GetStringFromName("renameprofilepromptA") + oldName + bundle.GetStringFromName("renameprofilepromptB"), oldName );
function RenameProfile(){ renameButton = document.getElementById("renbutton"); if( renameButton.getAttribute("disabled") == "true" ) return; var profileTree = document.getElementById( "profiles" ); if( !profileTree.selectedItems.length ) { alert( bundle.GetStringFromName("noneselectedrename") ); return; }...
var msg = bundle.GetStringFromName("renameprofilepromptA") + oldName + bundle.GetStringFromName("renameprofilepromptB");
var msg = bundle.GetStringFromName("renameProfilePrompt"); msg = msg.replace(/%oldProfileName%/gi, oldName);
function RenameProfile(){ renameButton = document.getElementById("renbutton"); if( renameButton.getAttribute("disabled") == "true" ) return; var profileTree = document.getElementById( "profiles" ); var selected = profileTree.selectedItems[0]; if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no"...
if (promptService.Confirm(window, title, lString))
if (promptService.confirm(window, title, lString))
function RenameProfile(){ renameButton = document.getElementById("renbutton"); if( renameButton.getAttribute("disabled") == "true" ) return; var profileTree = document.getElementById( "profiles" ); var selected = profileTree.selectedItems[0]; if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no"...
var rv = promptService.Prompt(window, dialogTitle, msg, "", 0, oldName, result);
var rv = promptService.prompt(window, dialogTitle, msg, "", 0, oldName, result);
function RenameProfile(){ renameButton = document.getElementById("renbutton"); if( renameButton.getAttribute("disabled") == "true" ) return; var profileTree = document.getElementById( "profiles" ); var selected = profileTree.selectedItems[0]; if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no"...
promptService.Alert(window, profileExistsTitle, lString);
promptService.alert(window, profileExistsTitle, lString);
function RenameProfile(){ renameButton = document.getElementById("renbutton"); if( renameButton.getAttribute("disabled") == "true" ) return; var profileTree = document.getElementById( "profiles" ); var selected = profileTree.selectedItems[0]; if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no"...
renameButton = document.getElementById("renbutton");
var renameButton = document.getElementById("renbutton");
function RenameProfile(){ var lString, oldName, newName; renameButton = document.getElementById("renbutton"); if (renameButton.getAttribute("disabled") == "true" ) return false; var profileList = document.getElementById( "profiles" ); var selected = profileList.selectedItems[0]; var profilename = selected.getA...
if (MisspelledWord != "" && MisspelledWord != newWord)
if (MisspelledWord && MisspelledWord != newWord)
function Replace(){ newWord = dialog.ReplaceWordInput.value; if (MisspelledWord != "" && MisspelledWord != newWord) { editorShell.BeginBatchChanges(); isMisspelled = spellChecker.ReplaceWord(MisspelledWord, newWord, false); editorShell.EndBatchChanges(); } NextWord();}
function Replace()
function Replace(newWord)
function Replace(){ var newWord = gDialog.ReplaceWordInput.value; if (gMisspelledWord && gMisspelledWord != newWord) { var editor = GetCurrentEditor(); editor.beginTransaction(); try { gSpellChecker.ReplaceWord(gMisspelledWord, newWord, false); } catch (e) {} editor.endTransaction(); } NextWord...
var newWord = gDialog.ReplaceWordInput.value;
if (!newWord) return;
function Replace(){ var newWord = gDialog.ReplaceWordInput.value; if (gMisspelledWord && gMisspelledWord != newWord) { var editor = GetCurrentEditor(); editor.beginTransaction(); try { gSpellChecker.ReplaceWord(gMisspelledWord, newWord, false); } catch (e) {} editor.endTransaction(); } NextWord...
isMisspelled = editorShell.ReplaceWord(misspelledWord, newWord, false);
isMisspelled = spellChecker.ReplaceWord(misspelledWord, newWord, false);
function Replace(){ dump("SpellCheck: Replace\n"); newWord = dialog.wordInput.value; if (misspelledWord != "" && misspelledWord != newWord) { isMisspelled = editorShell.ReplaceWord(misspelledWord, newWord, false); } NextWord();}
if (MisspelledWord != "" && MisspelledWord != newWord)
if (MisspelledWord && MisspelledWord != newWord)
function ReplaceAll(){ newWord = dialog.ReplaceWordInput.value; if (MisspelledWord != "" && MisspelledWord != newWord) { editorShell.BeginBatchChanges(); isMisspelled = spellChecker.ReplaceWord(MisspelledWord, newWord, true); editorShell.EndBatchChanges(); } NextWord();}
isMisspelled = editorShell.ReplaceWord(misspelledWord, newWord, true);
isMisspelled = spellChecker.ReplaceWord(misspelledWord, newWord, true);
function ReplaceAll(){ dump("SpellCheck: ReplaceAll\n"); newWord = dialog.wordInput.value; if (misspelledWord != "" && misspelledWord != newWord) { isMisspelled = editorShell.ReplaceWord(misspelledWord, newWord, true); } NextWord();}
dump("SpellCheck: ReplaceAll\n");
function ReplaceAll(){ dump("SpellCheck: ReplaceAll\n"); newWord = dialog.ReplaceWordInput.value; if (MisspelledWord != "" && MisspelledWord != newWord) { editorShell.BeginBatchChanges(); isMisspelled = spellChecker.ReplaceWord(MisspelledWord, newWord, true); editorShell.EndBatchChanges(); } NextWord();}
return match;
function replaceParam(match, longName, shortName) { if (typeof longName != "undefined" && longName) { // Remember to encode these, don't want some dodgy # breaking stuff. if (longName in longCodes) return encode(longCodes[longName]); dd("Unknown long ...
dd("Unknown match: " + match);
else { dd("Unknown match: " + match); }
function replaceParam(match, longName, shortName) { if (typeof longName != "undefined" && longName) { // Remember to encode these, don't want some dodgy # breaking stuff. if (longName in longCodes) return encode(longCodes[longName]); dd("Unknown long ...
if (typeof testcases == 'undefined') { return; }
win.reportCallBack = function (testwin) { if (testwin.wrappedJSObject) { testwin = testwin.wrappedJSObject; } var testcases = testwin.testcases; for (var i = 0; i < testcases.length; i++) { var testcase = testcases[i]; cdump('test: ' + testcase.path + ' ' + ...
(testcase.passed ? 'PASSED':'FAILED') + ' ' +
'result: ' + (testcase.passed ? 'PASSED':'FAILED') + ' ' + 'type: browser ' +
win.reportCallBack = function (testwin) { if (testwin.wrappedJSObject) { testwin = testwin.wrappedJSObject; } var testcases = testwin.testcases; for (var i = 0; i < testcases.length; i++) { var testcase = testcases[i]; cdump('test: ' + testcase.path + ' ' + ...
cdump('testname: ' + testcase.name + ' ' +
cdump('test: ' + testcase.path + ' ' +
win.reportCallBack = function (testwin) { if (testwin.wrappedJSObject) { testwin = testwin.wrappedJSObject; } var testcases = testwin.testcases; for (var i = 0; i < testcases.length; i++) { var testcase = testcases[i]; cdump('testname: ' + testcase.name + ' ' ...
else { writeLineToLog('PASSED! ' + description); }
function reportCompare (expected, actual, description){ var expected_t = typeof expected; var actual_t = typeof actual; var output = ""; if ((VERBOSE) && (typeof description != "undefined")) printStatus ("Comparing '" + description + "'"); if (expected_t != actual_t) output += "Type mis...
writeLineToLog(description + ' PASSED');
writeLineToLog('PASSED! ' + description);
function reportCompare (expected, actual, description){ var expected_t = typeof expected; var actual_t = typeof actual; var output = ""; if ((VERBOSE) && (typeof description != "undefined")) printStatus ("Comparing '" + description + "'"); if (expected_t != actual_t) output += "Type mis...
var screenX = gToolbox.boxObject.screenX + ((gToolbox.boxObject.width - kWindowWidth) / 2);
var screenX = gToolbox.boxObject.screenX + ((gToolbox.boxObject.width - parseInt(document.documentElement.style.width)) / 2);
function repositionDialog(){ // Position the dialog touching the bottom of the toolbox and centered with // it. We must resize the window smaller first so that it is positioned // properly. var screenX = gToolbox.boxObject.screenX + ((gToolbox.boxObject.width - kWindowWidth) / 2); var screenY = gToolbox.boxObje...
var newHeight = kWindowHeight; if (newHeight >= screen.availHeight - screenY - kVSizeSlop) { newHeight = screen.availHeight - screenY - kVSizeSlop; } window.resizeTo(kWindowWidth, newHeight);
function repositionDialog(){ // Position the dialog touching the bottom of the toolbox and centered with // it. We must resize the window smaller first so that it is positioned // properly. var screenX = gToolbox.boxObject.screenX + ((gToolbox.boxObject.width - kWindowWidth) / 2); var screenY = gToolbox.boxObje...
folder.builder.rebuild();
function RerootFolder(uri, newFolder, isThreaded, sortID, sortDirection){ dump('In reroot folder\n'); var folder = GetThreadTreeFolder(); ClearThreadTreeSelection(); //Set the window's new open folder. msgWindow.openFolder = newFolder; //Set threaded state ShowThreads(isThreaded); //Clear the new messages of ...
function RerootFolder(uri, newFolder, isThreaded, sortID)
function RerootFolder(uri, newFolder, isThreaded, sortID, sortDirection)
function RerootFolder(uri, newFolder, isThreaded, sortID){ dump('In reroot folder\n'); var folder = GetThreadTreeFolder(); ClearThreadTreeSelection(); //Set the window's new open folder. msgWindow.openFolder = newFolder; //Set threaded state ShowThreads(isThreaded); folder.setAttribute('ref', uri); UpdateSta...
msgNavigationService.EnsureDocumentIsLoaded(document);
function RerootFolder(uri, newFolder, isThreaded, sortID){ dump('In reroot folder\n'); var folder = GetThreadTreeFolder(); ClearThreadTreeSelection(); //Set the window's new open folder. msgWindow.openFolder = newFolder; //Set threaded state ShowThreads(isThreaded); folder.setAttribute('ref', uri); UpdateSta...
if (oldFolder.hasNewMessages) {
function RerootFolder(uri, newFolder, viewType, viewFlags, sortType, sortOrder){ viewDebug("In reroot folder, sortType = " + sortType + "viewType = " + viewType + "\n"); if (sortType == 0) { try { var msgdb = newFolder.getMsgDatabase(msgWindow); var dbFolderInfo = msgdb.dBFolderInfo; sortType =...
}
function RerootFolder(uri, newFolder, viewType, viewFlags, sortType, sortOrder){ viewDebug("In reroot folder, sortType = " + sortType + "viewType = " + viewType + "\n"); if (sortType == 0) { try { var msgdb = newFolder.getMsgDatabase(msgWindow); var dbFolderInfo = msgdb.dBFolderInfo; sortType =...
var wallet = Components.classes['@mozilla.org/wallet/wallet-service;1']; if (wallet) { wallet = wallet.getService(Components.interfaces.nsIWalletService); wallet.WALLET_DeleteAll(); }
function resetPassword(){ var pk11db = Components.classes[nsPK11TokenDB].getService(nsIPK11TokenDB); var token = pk11db.findTokenByName(tokenName); token.reset(); var bundle = document.getElementById("pippki_bundle"); var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); ...
"centerscreen,chrome,resizable=1,modal=1,dialog=1");
"chrome,centerscreen,modal");
function ResetPW(){ window.open("chrome://pippki/content/resetpassword.xul", internal_token.tokenName, "centerscreen,chrome,resizable=1,modal=1,dialog=1");}
if (button.boxObject.x + button.boxObject.width > width) {
if (i == buttons.childNodes.length - 1) chevronWidth = 0; if (button.boxObject.x + button.boxObject.width + chevronWidth > width) {
resizeFunc: function(event) { var buttons = document.getElementById("bookmarks-ptf"); if (!buttons) return; var chevron = document.getElementById("bookmarks-chevron"); var width = buttons.boxObject.x + buttons.boxObject.width; chevron.collapsed = true; var overflowed = false; for (var i=0...
var type = this.getProperty(aResource, RDF_NS+"type", aDS);
var type = this.getProperty(aResource, gRDF_NS+"type", aDS);
resolveType: function (aResource, aDS) { var type = this.getProperty(aResource, RDF_NS+"type", aDS); if (type != "") type = type.split("#")[1]; if (type == "Folder") { if (aResource == BMSVC.getBookmarksToolbarFolder()) type = "PersonalToolbarFolder"; } if (type == "") { // we're...
var child = this.getProperty(aResource, NC_NS+"child", aDS);
var child = this.getProperty(aResource, gNC_NS+"child", aDS);
resolveType: function (aResource, aDS) { var type = this.getProperty(aResource, RDF_NS+"type", aDS); if (type != "") type = type.split("#")[1]; if (type == "Folder") { if (aResource == BMSVC.getBookmarksToolbarFolder()) type = "PersonalToolbarFolder"; } if (type == "") { // we're...
if (this.getProperty(aResource, NC_NS+"URL") != null)
if (this.getProperty(aResource, gNC_NS+"URL") != null)
resolveType: function (aResource, aDS) { var type = this.getProperty(aResource, RDF_NS+"type", aDS); if (type != "") type = type.split("#")[1]; if (type == "Folder") { if (aResource == BMSVC.getBookmarksToolbarFolder()) type = "PersonalToolbarFolder"; } if (type == "") { // we're...
var type = this.getProperty(aResource, RDF_NS+"type")
var type = this.getProperty(aResource, RDF_NS+"type");
resolveType: function (aResource) { var type = this.getProperty(aResource, RDF_NS+"type") if (type != "") type = type.split("#")[1] if (type == "Folder") { if (this.isPersonalToolbarFolder(aResource)) type = "PersonalToolbarFolder"; else if (this.isFolderGroup(aResource)) type =...
type = type.split("#")[1]
type = type.split("#")[1];
resolveType: function (aResource) { var type = this.getProperty(aResource, RDF_NS+"type") if (type != "") type = type.split("#")[1] if (type == "Folder") { if (this.isPersonalToolbarFolder(aResource)) type = "PersonalToolbarFolder"; else if (this.isFolderGroup(aResource)) type =...
wcapResponse, calId, iListener, requestId );
wcapResponse, calId, listener, requestId );
function resp( wcapResponse ) { this_.getFreeBusyTimes_resp( wcapResponse, calId, iListener, requestId ); }
if (gUpdatesOnly) { window.close(); return; }
function restartApp() { const nsIAppStartup = Components.interfaces.nsIAppStartup; if (gUpdatesOnly) { window.close(); return; } // Notify all windows that an application quit has been requested. var os = Components.classes["@mozilla.org/observer-service;1"] .getService(Components.interfa...
var prefColor; var description;
function restoreColorAndDescriptionToDefaults(){ var prefColor; var description; var pickerColor; var dataColor; var labelDescription; var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); var prefs = prefService...
var dataColor;
function restoreColorAndDescriptionToDefaults(){ var prefColor; var description; var pickerColor; var dataColor; var labelDescription; var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); var prefs = prefService...
var prefs = prefService.getDefaultBranch(null);
var prefDescription = prefService.getDefaultBranch("mailnews.labels.description."); var prefColor = prefService.getDefaultBranch("mailnews.labels.color.");
function restoreColorAndDescriptionToDefaults(){ var prefColor; var description; var pickerColor; var dataColor; var labelDescription; var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); var prefs = prefService...
description = prefs.getComplexValue("mailnews.labels.description." + i, Components.interfaces.nsIPrefLocalizedString).data;
function restoreColorAndDescriptionToDefaults(){ var prefColor; var description; var pickerColor; var dataColor; var labelDescription; var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); var prefs = prefService...
labelDescription.value = description;
if (!labelDescription.disabled) labelDescription.value = prefDescription.getComplexValue(i, Components.interfaces.nsIPrefLocalizedString).data;
function restoreColorAndDescriptionToDefaults(){ var prefColor; var description; var pickerColor; var dataColor; var labelDescription; var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); var prefs = prefService...
prefColor = prefs.getCharPref("mailnews.labels.color." + i); pickerColor = document.getElementById("labelColorPicker" + i); pickerColor.color = prefColor; setColorWell(pickerColor);
pickerColor = document.getElementById("label" + i + "Color"); if (!pickerColor.disabled) pickerColor.color = prefColor.getCharPref(i);
function restoreColorAndDescriptionToDefaults(){ var prefColor; var description; var pickerColor; var dataColor; var labelDescription; var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); var prefs = prefService...
repositionDialog();
function restoreDefaultSet(){ // Save disabled/command states, because we're // going to recreate the wrappers and lose this var savedAttributes = saveItemAttributes(["itemdisabled", "itemcommand"]); // Restore the defaultset for fixed toolbars. var toolbar = gToolbox.firstChild; while (toolbar) { if (isCustom...
if (top.frames["contentFrame"].onPreInit)
if ("onPreInit" in top.frames["contentFrame"])
function restorePage(pageId, serverId) { if (!serverId) return; var accountValues = getValueArrayFor(serverId); var pageElements = getPageFormElements(); if (pageElements == null) return; var account = getAccountFromServerId(serverId); if (top.frames["contentFrame"].onPreInit) top.frames["contentFrame"].onPreI...
var type = vals[0]; var slot = vals[1]; if (pageElements[i].localName != "button") { var value = getAccountValue(account, accountValues, type, slot, pageElements[i].getAttribute("preftype"), (pageElements[i].getAttribute("genericattr") == "true")); setFormElementValue(pageElements[i], value); } updateElementWithKeys(...
if (vals.length >= 2) { var type = vals[0]; var slot = vals[1]; if (pageElements[i].localName != "button") { var value = getAccountValue(account, accountValues, type, slot, pageElements[i].getAttribute("preftype"), (pageElements[i].getAttribute("genericattr") == "true")); setFormElementValue(pageElements[i], value); ...
function restorePage(pageId, serverId) { if (!serverId) return; var accountValues = getValueArrayFor(serverId); var pageElements = getPageFormElements(); if (pageElements == null) return; var account = getAccountFromServerId(serverId); if (top.frames["contentFrame"].onPreInit) top.frames["contentFrame"].onPreI...
if (top.frames["contentFrame"].onInit)
if ("onInit" in top.frames["contentFrame"])
function restorePage(pageId, serverId) { if (!serverId) return; var accountValues = getValueArrayFor(serverId); var pageElements = getPageFormElements(); if (pageElements == null) return; var account = getAccountFromServerId(serverId); if (top.frames["contentFrame"].onPreInit) top.frames["contentFrame"].onPreI...
var value = getAccountValue(account, accountValues, type, slot);
var value = getAccountValue(account, accountValues, type, slot, pageElements[i].getAttribute("preftype"), (pageElements[i].getAttribute("genericattr") == "true"));
function restorePage(pageId, serverId) { if (!serverId) return; var accountValues = getValueArrayFor(serverId); var pageElements = getPageFormElements(); if (pageElements == null) return; var account = getAccountFromServerId(serverId); if (top.frames["contentFrame"].onPreInit) top.frames["contentFrame"].onPreI...
return true;
return;
function restorePage(pageId, serverId) { if (!serverId) return; var accountValues = getValueArrayFor(serverId); if (!accountValues) return true; var pageElements = getPageFormElements(); if (pageElements == null) return; var account = getAccountFromServerId(serverId); if ("onPreInit" in top.frames["contentFr...
if (pageElements == null) return;
if (!pageElements) return;
function restorePage(pageId, serverId) { if (!serverId) return; var accountValues = getValueArrayFor(serverId); if (!accountValues) return true; var pageElements = getPageFormElements(); if (pageElements == null) return; var account = getAccountFromServerId(serverId); if ("onPreInit" in top.frames["contentFr...
UpdateSortIndicators(sortType, sortOrder);
function restorePreSearchView(){ var selectedHdr = null; //save selection try { selectedHdr = gDBView.hdrForFirstSelectedMessage; } catch (ex) {} //we might have to sort the view coming out of quick search var sortType = gDBView.sortType; var sortOrder = gDBView.sortOrder; var viewFlags = gDBView.viewFla...
UpdateSortIndicators(sortType, sortOrder);
function restorePreSearchView(){ var selectedHdr = null; //save selection try { selectedHdr = gDBView.hdrForFirstSelectedMessage; } catch (ex) {} //we might have to sort the view coming out of quick search var sortType = gDBView.sortType; var sortOrder = gDBView.sortOrder; var viewFlags = gDBView.viewFla...
else if(!gThreadPaneDeleteOrMoveOccurred && (treeSelection.currentIndex < 0))
else if(treeSelection.currentIndex < 0)
function RestoreSelectionWithoutContentLoad(tree){ var treeBoxObj = tree.treeBoxObject; var treeSelection = treeBoxObj.selection; // make sure that currentIndex is valid so that we don't try to restore // a selection of an invalid row. if((!treeSelection.isSelected(treeSelection.currentIndex)) && (...
if ( top.gUpdateCardView ) top.gUpdateCardView(); if ( top.gDialogResultsPaneSelectionChanged ) top.gDialogResultsPaneSelectionChanged();
if ("gUpdateCardView" in top) top.gUpdateCardView(); if ("gDialogResultsPaneSelectionChanged" in top) top.gDialogResultsPaneSelectionChanged();
function ResultsPaneSelectionChange(){ if ( top.gUpdateCardView ) top.gUpdateCardView(); if ( top.gDialogResultsPaneSelectionChanged ) top.gDialogResultsPaneSelectionChanged();}
if (msgCompose)
if (gMsgCompose)
function ReturnReceiptMenuSelect(){ if (msgCompose) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { if (msgCompFields.returnReceipt) { msgCompFields.returnReceipt = false; } else { msgCompFields.returnReceipt = true; } } }}
var msgCompFields = msgCompose.compFields;
var msgCompFields = gMsgCompose.compFields;
function ReturnReceiptMenuSelect(){ if (msgCompose) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { if (msgCompFields.returnReceipt) { msgCompFields.returnReceipt = false; } else { msgCompFields.returnReceipt = true; } } }}
var should_popopen = true; var should_unhide = true; var searchPanel = document.getElementById("urn:sidebar:panel:search");
function RevealSearchPanel(){ // rjc Note: the following is all a hack until the sidebar has appropriate APIs // to check whether its shown/hidden, open/closed, and can show a particular panel var sidebar = document.getElementById("sidebar-box"); var sidebar_splitter = document.getElementById("sidebar-splitter"); var s...
var sidebar = document.getElementById("sidebar-box"); var sidebar_splitter = document.getElementById("sidebar-splitter"); var searchPanel = document.getElementById("urn:sidebar:panel:search"); if (sidebar && sidebar_splitter && searchPanel) { var is_hidden = sidebar.getAttribute("hidden"); if (is_hidden && is_hidden =...
if (searchPanel) { SidebarSelectPanel(searchPanel, should_popopen, should_unhide); }
function RevealSearchPanel(){ // rjc Note: the following is all a hack until the sidebar has appropriate APIs // to check whether its shown/hidden, open/closed, and can show a particular panel var sidebar = document.getElementById("sidebar-box"); var sidebar_splitter = document.getElementById("sidebar-splitter"); var s...
if(!path){ dump("Missing path in argument . . .\n\n"); return;
if(!path) { dump("Missing path in argument . . .\n\n"); return false;
rm : function (path) { this.close(); if(!path){ dump("Missing path in argument . . .\n\n"); return; } if(!this.exists(path)) return; try{ this.fileInst = new FilePath(path); if(this.fileInst.isDirectory()){ dump("Sorry file is a directory. Try rmdir() instead . . .\n...
return;
return false;
rm : function (path) { this.close(); if(!path){ dump("Missing path in argument . . .\n\n"); return; } if(!this.exists(path)) return; try{ this.fileInst = new FilePath(path); if(this.fileInst.isDirectory()){ dump("Sorry file is a directory. Try rmdir() instead . . .\n...
if(this.fileInst.isDirectory()){ dump("Sorry file is a directory. Try rmdir() instead . . .\n"); return;
if(this.fileInst.isDirectory()) { dump("Sorry file is a directory. Try rmdir() instead . . .\n"); return false;
rm : function (path) { this.close(); if(!path){ dump("Missing path in argument . . .\n\n"); return; } if(!this.exists(path)) return; try{ this.fileInst = new FilePath(path); if(this.fileInst.isDirectory()){ dump("Sorry file is a directory. Try rmdir() instead . . .\n...
return true;
rm : function (path) { this.close(); if(!path){ dump("Missing path in argument . . .\n\n"); return; } if(!this.exists(path)) return; try{ this.fileInst = new FilePath(path); if(this.fileInst.isDirectory()){ dump("Sorry file is a directory. Try rmdir() instead . . .\n...
if(!path){ dump("Missing path in argument . . .\n\n"); return; }
if(!path) { dump("Missing path in argument . . .\n\n"); return false; }
rmdir : function (path) { this.close(); if(!path){ dump("Missing path in argument . . .\n\n"); return; } if(!this.exists(path)) return; try{ this.fileInst = new FilePath(path); this.fileInst['delete'](true); } catch (error){ dump("**** ERROR:"+error+"\n\n"); } ...
if(!this.exists(path)) return;
if(!this.exists(path)) return false;
rmdir : function (path) { this.close(); if(!path){ dump("Missing path in argument . . .\n\n"); return; } if(!this.exists(path)) return; try{ this.fileInst = new FilePath(path); this.fileInst['delete'](true); } catch (error){ dump("**** ERROR:"+error+"\n\n"); } ...
try{ this.fileInst = new FilePath(path); this.fileInst['delete'](true); }
try
rmdir : function (path) { this.close(); if(!path){ dump("Missing path in argument . . .\n\n"); return; } if(!this.exists(path)) return; try{ this.fileInst = new FilePath(path); this.fileInst['delete'](true); } catch (error){ dump("**** ERROR:"+error+"\n\n"); } ...
catch (error){ dump("**** ERROR:"+error+"\n\n"); } this.close();
{ this.fileInst = new FilePath(path); this.fileInst['delete'](true); } catch (error){ dump("**** ERROR:"+error+"\n\n"); } this.close(); return true;
rmdir : function (path) { this.close(); if(!path){ dump("Missing path in argument . . .\n\n"); return; } if(!this.exists(path)) return; try{ this.fileInst = new FilePath(path); this.fileInst['delete'](true); } catch (error){ dump("**** ERROR:"+error+"\n\n"); } ...
this.outliner.rowCountChanged(index, count);
this.tree.rowCountChanged(index, count);
rowCountChanged: function(index, count) { this.outliner.rowCountChanged(index, count); },
(const new const function f(a,b){return a+b;}.(a<<b)::c[1,2].class@(T+V));
(const new const function f(a,b){return a+b;}.(a<<b)::c[1,2].class@(T));
function run() { a.b::c.d[e](f,g)[h].i; (const new const function f(a,b){return a+b;}.(a<<b)::c[1,2].class@(T+V));
var ctx = pps.asyncResolve(uri, 0, new TestResolveCallback());
var req = pps.asyncResolve(uri, 0, new TestResolveCallback());
function run_pac_test() { var pac = 'data:text/plain,' + 'function FindProxyForURL(url, host) {' + ' return "PROXY foopy:8080; DIRECT";' + '}'; var uri = ios.newURI("http://www.mozilla.org/", null, null); var prefs = Components.classes["@mozilla.org/preferences-service;1"] ...
do_check_eq(pi, null);
do_check_neq(pi, null); do_check_eq(pi.type, "unknown");
function run_pac_test() { var pac = 'data:text/plain,' + 'function FindProxyForURL(url, host) {' + ' return "PROXY foopy:8080; DIRECT";' + '}'; var uri = ios.newURI("http://www.mozilla.org/", null, null); var prefs = Components.classes["@mozilla.org/preferences-service;1"] ...
x = false; try { chan.setRequestHeader("foopy", "b\u0000az", false); } catch (e) { x = true; } if (!x) do_throw("header value with null-byte not rejected");
function run_test() { var ios = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var chan = ios.newChannel("http://www.mozilla.org/", null, null) .QueryInterface(Components.interfaces.nsIHttpChannel); check_header(chan, "host...
x = false; try { chan.setRequestHeader("foopy\u0080", "baz", false); } catch (e) { x = true; } if (!x) do_throw("header name with non-ASCII not rejected");
function run_test() { var ios = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var chan = ios.newChannel("http://www.mozilla.org/", null, null) .QueryInterface(Components.interfaces.nsIHttpChannel); check_header(chan, "host...
var x = false; try { chan.setRequestHeader("foo:py", "baz", false); } catch (e) { x = true; } if (!x) do_throw("header with colon not rejected"); x = false; try { chan.setRequestHeader("foopy", "b\naz", false); } catch (e) { x = true; } if (!x) do_throw("header value with newline not rejected");
function run_test() { var ios = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var chan = ios.newChannel("http://www.mozilla.org/", null, null) .QueryInterface(Components.interfaces.nsIHttpChannel); check_header(chan, "host...
var url = ioService.getURLSpecFromFile(file); url = url.replace("file:
var url = fileHandler.getURLSpecFromFile(file);
runSearch: function() { var path = null; // TODO: should persist last path chosen in a pref var file = FilePickerUtils.pickFile("Find Search File", path, ["filterXML"], "Open"); if (file) { var ioService = XPCU.getService("@mozilla.org/network/io-service;1","nsIIOService"); var url = ioService.get...
for (var j = 0; j <= 10000; j += 1000)
for (var j = 1000; j <= 10000; j += 1000)
function runTest() { for (var j = 0; j <= 10000; j += 1000) { neurodna(j); }}
bloke.selected = true;
function s2v_cleardeck (){ for (var i = 0; i < this.sourceTabList.length; ++i) { var sourceTab = this.sourceTabList[i]; sourceTab.tab = null; sourceTab.iframe = null; this.onSourceTabUnloaded (this.sourceTabList[i], Components.results.NS_OK); } if...
if (this.tabs.childNodes.length == 1) { var bloke = getChildById (this.tabs, "source2-bloke"); if (bloke) this.tabs.removeChild(bloke); }
var bloke = getChildById (this.tabs, "source2-bloke"); if (bloke) this.tabs.removeChild(bloke);
function s2v_createframe (sourceTab, index, raiseFlag){ if (!ASSERT(this.deck, "we're deckless")) return null; if (this.tabs.childNodes.length == 1) { var bloke = getChildById (this.tabs, "source2-bloke"); if (bloke) this.tabs.removeChild(bloke); } var document = this.curr...
var tab = document.createElement ("tab");
var tab = document.createElement ("tab"); tab.selected = false;
function s2v_createframe (sourceTab, index, raiseFlag){ if (!ASSERT(this.deck, "we're deckless")) return null; if (this.tabs.childNodes.length == 1) { var bloke = getChildById (this.tabs, "source2-bloke"); if (bloke) this.tabs.removeChild(bloke); } var document = this.curr...
tab.setAttribute ("crop", "center");
tab.setAttribute ("align", "center");
function s2v_createframe (sourceTab, index, raiseFlag){ if (!ASSERT(this.deck, "we're deckless")) return null; if (this.tabs.childNodes.length == 1) { var bloke = getChildById (this.tabs, "source2-bloke"); if (bloke) this.tabs.removeChild(bloke); } var document = this.curr...
tab.setAttribute ("label", sourceTab.sourceText.shortName);
tab.setAttribute("onclick", "console.views.source2.onTabClick(event)"); var tabicon = document.createElement("image"); tabicon.setAttribute("class", "tab-icon"); tab.appendChild(tabicon); var label = document.createElement("label"); tab.label = label; label.setAttribute("value", sourceTab.sourceText.shortName); label....
function s2v_createframe (sourceTab, index, raiseFlag){ if (!ASSERT(this.deck, "we're deckless")) return null; if (this.tabs.childNodes.length == 1) { var bloke = getChildById (this.tabs, "source2-bloke"); if (bloke) this.tabs.removeChild(bloke); } var document = this.curr...
if (!this.tabs.firstChild.hasAttribute("first-tab")) { this.tabs.firstChild.setAttribute("first-tab", "true"); if (this.tabs.firstChild.nextSibling) this.tabs.firstChild.nextSibling.removeAttribute("first-tab"); }
function s2v_createframe (sourceTab, index, raiseFlag){ if (!ASSERT(this.deck, "we're deckless")) return null; if (this.tabs.childNodes.length == 1) { var bloke = getChildById (this.tabs, "source2-bloke"); if (bloke) this.tabs.removeChild(bloke); } var document = this.curr...
this.lastSelectedTab = this.tabs.selectedIndex;
if (this.sourceTabList.length > 0) this.lastSelectedTab = this.tabs.selectedIndex;
function s2v_hide (){ this.lastSelectedTab = this.tabs.selectedIndex; this.clearOutputDeck(); this.deck = null; this.tabs = null;}
sourceTab.tab.setAttribute("label", sourceText.shortName);
sourceTab.tab.label.setAttribute("value", sourceText.shortName);
function s2v_loadsource (sourceText, index){ var sourceTab; if (index in this.sourceTabList) { sourceTab = this.sourceTabList[index]; sourceTab.content = null; sourceTab.sourceText = sourceText; if ("currentContent" in this) { if (!ASSERT(sourceTab.tab,...
this.removeSourceTabAtIndex(index); e.preventBubble()
this.removeSourceTabAtIndex(index); e.stopPropagation();
function s2v_onclose(e){ var index = this.getIndexOfTab(e.target.parentNode); this.removeSourceTabAtIndex(index); e.preventBubble()}
if (index == 0 && this.tabs.firstChild) this.tabs.firstChild.setAttribute("first-tab", "true");
function s2v_removeindex (index){ var sourceTab = this.sourceTabList[index]; if (this.highlightTab == sourceTab) this.unmarkHighlight(); sourceTab.tab = null; sourceTab.iframe = null; sourceTab.content = null; sourceTab.stopNode = null; arrayRemoveAt (this.sourceTabList, index); if (this....
var version; var help;
function s2v_show (){ var source2View = this; function tryAgain () { //dd ("source2 view trying again..."); source2View.onShow(); }; var version; var help; try { this.tabs = getChildById (this.currentContent, "source2-tabs"); this.deck = getChildById (this.curre...