rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
appendContainedDocuments: function(array, docShell, type) | appendContainedDocuments: function appendContainedDocuments(array, docShell, type) | appendContainedDocuments: function(array, docShell, type) { // Load all the window's content docShells var containedDocShells = docShell.getDocShellEnumerator(type, nsIDocShell.ENUMERATE_FORWARDS); while (containedDocShells.hasMoreElements()) { try { // Get ... |
break; case "image/svg+xml": bundleName = "WebPageSVGOnlyFilter"; filterString = "*.svg; *.svgz"; | function appendFiltersForContentType(aFilePicker, aContentType, aFileExtension, aSaveMode){ var bundle = getStringBundle(); // The bundle name for saving only a specific content type. var bundleName; // The corresponding filter string for a specific content type. var filterString; // XXX all the cases that are ha... | |
break; case "image/svg+xml": bundleName = "WebPageSVGOnlyFilter"; filterString = "*.svg; *.svgz"; | function appendFiltersForContentType(aFilePicker, aContentType, aFileExtension, aSaveMode){ var bundle = getStringBundle(); // The bundle name for saving only a specific content type. var bundleName; // The corresponding filter string for a specific content type. var filterString; // XXX all the cases that are ha... | |
var desc = mimeInfo.Description; | var desc = mimeInfo.description; | function appendFiltersForContentType(aFilePicker, aContentType, aFileExtension, aSaveMode){ var bundle = getStringBundle(); switch (aContentType) { case "text/html": if (aSaveMode == MODE_COMPLETE) aFilePicker.appendFilter(bundle.GetStringFromName("WebPageCompleteFilter"), "*.htm; *.html"); aFilePicke... |
function appendFiltersForContentType(aFilePicker, aContentType, aSaveMode) | function appendFiltersForContentType(aFilePicker, aContentType, aFileExtension, aSaveMode) | function appendFiltersForContentType(aFilePicker, aContentType, aSaveMode){ var bundle = getStringBundle(); switch (aContentType) { case "text/html": if (aSaveMode == MODE_COMPLETE) aFilePicker.appendFilter(bundle.GetStringFromName("WebPageCompleteFilter"), "*.htm; *.html"); aFilePicker.appendFilter(b... |
var mimeInfo = getMIMEInfoForType(aContentType); | var mimeInfo = getMIMEInfoForType(aContentType, aFileExtension); | function appendFiltersForContentType(aFilePicker, aContentType, aSaveMode){ var bundle = getStringBundle(); switch (aContentType) { case "text/html": if (aSaveMode == MODE_COMPLETE) aFilePicker.appendFilter(bundle.GetStringFromName("WebPageCompleteFilter"), "*.htm; *.html"); aFilePicker.appendFilter(b... |
else aFilePicker.appendFilter(bundle.GetStringFromName("AllFilesFilter"), "*.*"); | aFilePicker.appendFilter(bundle.GetStringFromName("AllFilesFilter"), "*.*"); | function appendFiltersForContentType(aFilePicker, aContentType, aSaveMode){ var bundle = getStringBundle(); switch (aContentType) { case "text/html": if (aSaveMode == MODE_COMPLETE) aFilePicker.appendFilter(bundle.GetStringFromName("WebPageCompleteFilter"), "*.htm; *.html"); aFilePicker.appendFilter(b... |
fontName = fontName.QueryInterface(Components.interfaces.nsISupportsWString); | fontName = fontName.QueryInterface(Components.interfaces.nsISupportsString); | appendFontNames: function ( aDataObject ) { var popupNode = document.createElement( "menupopup" ); var strDefaultFontFace = ""; var fontName; while (aDataObject.hasMoreElements()) { fontName = aDataObject.getNext(); fontName = fontName.QueryI... |
editorShell.InsertElement(element, head, position, true); | var editor = GetCurrentEditor(); try { editor.insertElement(element, head, position, true); } catch (e) {} | function AppendHeadElement(element){ var head = GetHeadElement(); if (head) { var position = 0; if (head.hasChildNodes()) position = head.childNodes.length; // Use editor's undoable transaction // Last param "true" says "don't change the selection" editorShell.InsertElement(element, head, positio... |
var c = document.getElementById("console"); var el = document.createElement("message"); | var c = document.getElementById("consoleTreeChildren"); var item = document.createElement("treeitem"); var row = document.createElement("treerow"); var cell = document.createElement("treecell"); cell.setAttribute("class", "treecell-error"); | function appendMessage(messageObject){ var c = document.getElementById("console"); var el = document.createElement("message"); var msgContent; var text; try { // Try to QI it to a script error to get more info. var nsIScriptError = Components.interfaces.nsIScriptError; var scriptErro... |
text = scriptError.category + ": "; text += "JavaScript " + (warning ? "Warning: " : "Error: "); text += scriptError.sourceName; text += " line " + scriptError.lineNumber + ", column " + scriptError.columnNumber + ": " + scriptError.message; text += " Source line: " + scriptError.sourceLine; msgContent = document.crea... | cell.setAttribute("type", warning ? "warning" : "error"); cell.setAttribute("typetext", warning ? "Warning: " : "Error: "); cell.setAttribute("url", scriptError.sourceName); cell.setAttribute("line", scriptError.lineNumber); cell.setAttribute("col", scriptError.columnNumber); cell.setAttribute("msg", scriptError.messa... | function appendMessage(messageObject){ var c = document.getElementById("console"); var el = document.createElement("message"); var msgContent; var text; try { // Try to QI it to a script error to get more info. var nsIScriptError = Components.interfaces.nsIScriptError; var scriptErro... |
msgContent = document.createTextNode(text); | cell.setAttribute("value", text); | function appendMessage(messageObject){ var c = document.getElementById("console"); var el = document.createElement("message"); var msgContent; var text; try { // Try to QI it to a script error to get more info. var nsIScriptError = Components.interfaces.nsIScriptError; var scriptErro... |
el.appendChild(msgContent); c.appendChild(el); | row.appendChild(cell); item.appendChild(row); c.appendChild(item); | function appendMessage(messageObject){ var c = document.getElementById("console"); var el = document.createElement("message"); var msgContent; var text; try { // Try to QI it to a script error to get more info. var nsIScriptError = Components.interfaces.nsIScriptError; var scriptErro... |
num_errors++; if(num_errors>200) { deleteOne(); } | function appendMessage(messageObject){ var c = document.getElementById("consoleTreeChildren"); var item = document.createElement("treeitem"); var row = document.createElement("treerow"); var cell = document.createElement("treecell"); cell.setAttribute("class", "treecell-error"); var msgContent; var... | |
var label = gStringBundle.GetStringFromName(paperObj.name) itemNode.setAttribute("label", label); itemNode.setAttribute("value", i); popupNode.appendChild(itemNode); } catch (e) {} | label = gStringBundle.GetStringFromName(paperObj.name) } catch (e) { if (paperObj.inches) { label = paperObj.name + " (" + paperObj.width + "x" + paperObj.height + " in.)"; } else { label = paperObj.name + " (" + paperObj.width + "x" + paperObj.height + " mm)"; } } itemNode.setAttribute("label", label); itemNode.setAt... | appendPaperNames: function (aDataObject) { var popupNode = document.createElement("menupopup"); for (var i=0;i<aDataObject.length;i++) { var paperObj = aDataObject[i]; var itemNode = document.createElement("menuitem"); try { var label ... |
label = paperObj.name + " (" + paperObj.width + "x" + paperObj.height + " in.)"; | label = paperObj.name + " (" + round10(paperObj.width) + "x" + round10(paperObj.height) + " inch)"; | appendPaperNames: function (aDataObject) { var popupNode = document.createElement("menupopup"); for (var i=0;i<aDataObject.length;i++) { var paperObj = aDataObject[i]; var itemNode = document.createElement("menuitem"); var label; try { ... |
doEnablePrintToFile(false); | appendPrinterNames: function (aDataObject) { var popupNode = document.createElement("menupopup"); var strDefaultPrinterName = ""; var printerName; // build popup menu from printer names while (aDataObject.hasMoreElements()) { printerName = aDat... | |
printerName = printerName.QueryInterface(Components.interfaces.nsISupportsWString); | printerName = printerName.QueryInterface(Components.interfaces.nsISupportsString); | appendPrinterNames: function (aDataObject) { var popupNode = document.createElement("menupopup"); var strDefaultPrinterName = ""; var printerName; // build popup menu from printer names while (aDataObject.hasMoreElements()) { printerName = aDat... |
function AppendRecentMenuitem(accessKey, menupopup, title, url) | function AppendRecentMenuitem(menupopup, title, url, menuIndex) | function AppendRecentMenuitem(accessKey, menupopup, title, url){ if (menupopup) { var menuItem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menuitem"); if (menuItem) { // Build the menuitem using the title (or url) and accesskey var itemString; i... |
var itemString; if (accessKey > 9) { itemString = " "+title; if (title.length < 1) itemString = " "+url; } else { itemString = accessKey+" "+title; if (title.length < 1) itemString = accessKey+" "+url; menuItem.setAttribute("accesskey", accessKey); } | var accessKey; if (menuIndex <= 9) accessKey = String(menuIndex); else if (menuIndex == 10) accessKey = "0"; else accessKey = " "; var itemString = accessKey+" "; if (title) itemString += title; else itemString += url; | function AppendRecentMenuitem(accessKey, menupopup, title, url){ if (menupopup) { var menuItem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menuitem"); if (menuItem) { // Build the menuitem using the title (or url) and accesskey var itemString; i... |
menuItem.setAttribute("oncommand", "EditorOpenUrl(getAttribute('data'))"); | if (accessKey != " ") menuItem.setAttribute("accesskey", accessKey); menuItem.setAttribute("oncommand", "EditorOpenUrl(getAttribute('data'))"); | function AppendRecentMenuitem(accessKey, menupopup, title, url){ if (menupopup) { var menuItem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menuitem"); if (menuItem) { // Build the menuitem using the title (or url) and accesskey var itemString; i... |
menuItem.setAttribute("crop", "center"); | function AppendRecentMenuitem(menupopup, title, url, menuIndex){ if (menupopup) { var menuItem = document.createElementNS(XUL_NS, "menuitem"); if (menuItem) { var accessKey; if (menuIndex <= 9) accessKey = String(menuIndex); else if (menuIndex == 10) accessKey = "0"; else ... | |
{ dump("Failed to create menupoup\n"); | function AppendStringToMenulist(menulist, string){ if (menulist) { var menupopup = menulist.firstChild; // May not have any popup yet -- so create one if (!menupopup) { menupopup = document.createElementNS(XUL_NS, "menupopup"); if (menupopup) menulist.appendChild(menupopup); else ... | |
} | function AppendStringToMenulist(menulist, string){ if (menulist) { var menupopup = menulist.firstChild; // May not have any popup yet -- so create one if (!menupopup) { menupopup = document.createElementNS(XUL_NS, "menupopup"); if (menupopup) menulist.appendChild(menupopup); else ... | |
menupopup = document.createElement("menupopup"); | menupopup = document.createElementNS("http: | function AppendStringToMenulist(menulist, string){ if (menulist) { var menupopup = menulist.firstChild; // May not have any popup yet -- so create one if (!menupopup) { menupopup = document.createElement("menupopup"); if (menupopup) menulist.appendChild(menupopup); else { ... |
menuItem = document.createElement("menuitem"); | menuItem = document.createElementNS("http: | function AppendStringToMenulist(menulist, string){ if (menulist) { var menupopup = menulist.firstChild; // May not have any popup yet -- so create one if (!menupopup) { menupopup = document.createElement("menupopup"); if (menupopup) menulist.appendChild(menupopup); else { ... |
treechildren = document.createElement("treechildren"); | treechildren = document.createElementNS("http: | function AppendStringToTreelist(tree, string){ if (tree) { var treechildren = tree.firstChild; if (!treechildren) { treechildren = document.createElement("treechildren"); if (treechildren) tree.appendChild(treechildren); else { dump("Failed to create <treechildren>\n"); ... |
var treeitem = document.createElement("treeitem"); var treerow = document.createElement("treerow"); var treecell = document.createElement("treecell"); | var treeitem = document.createElementNS("http: var treerow = document.createElementNS("http: var treecell = document.createElementNS("http: | function AppendStringToTreelist(tree, string){ if (tree) { var treechildren = tree.firstChild; if (!treechildren) { treechildren = document.createElement("treechildren"); if (treechildren) tree.appendChild(treechildren); else { dump("Failed to create <treechildren>\n"); ... |
menupopup = document.createElement("menupopup"); | menupopup = document.createElementNS("http: | function AppendValueAndDataToMenulist(menulist, valueStr, dataStr){ if (menulist) { var menupopup = menulist.firstChild; // May not have any popup yet -- so create one if (!menupopup) { menupopup = document.createElement("menupopup"); if (menupopup) menulist.appendChild(menupopup); e... |
menuItem = document.createElement("menuitem"); | menuItem = document.createElementNS("http: | function AppendValueAndDataToMenulist(menulist, valueStr, dataStr){ if (menulist) { var menupopup = menulist.firstChild; // May not have any popup yet -- so create one if (!menupopup) { menupopup = document.createElement("menupopup"); if (menupopup) menulist.appendChild(menupopup); e... |
CurrentStyleIndex = newStyleIndex; | function ApplyAttributesToOneCell(destElement){ if (dialog.CellHeightCheckbox.checked) CloneAttribute(destElement, globalCellElement, "height"); if (dialog.CellWidthCheckbox.checked) CloneAttribute(destElement, globalCellElement, "width"); if (dialog.RowSpanCheckbox.checked && dialog.RowSpanCheckbox.getAttribu... | |
if (selectedCellCount == 1) | if (gSelectedCellCount == 1) | function ApplyCellAttributes(){ var selectedCell = editorShell.GetFirstSelectedCell(); if (!selectedCell) return; if (selectedCellCount == 1) { // When only one cell is selected, simply clone entire element, // thus CSS and JS from Advanced edit is copied editorShell.CloneAttributes(selectedCell, g... |
if (dialog.CellStyleCheckbox.checked) { var currentStyleIndex = (selectedCell.nodeName.toLowerCase() == "th") ? 1 : 0; if (dialog.CellStyleList.selectedIndex != currentStyleIndex) { selectedCell = editorShell.SwitchTableCellHeaderType(selectedCell); } } | function ApplyCellAttributes(){ var selectedCell = editorShell.GetFirstSelectedCell(); if (!selectedCell) return; if (selectedCellCount == 1) { // When only one cell is selected, simply clone entire element, // thus CSS and JS from Advanced edit is copied editorShell.CloneAttributes(selectedCell, g... | |
imageElement.setAttribute("src",dialog.Src.value); imageElement.setAttribute("alt",dialog.AltText.value); | element.setAttribute("src",dialog.Src.value); | function applyChanges(){ // TODO: BE SURE Src AND AltText are completed! imageElement.setAttribute("src",dialog.Src.value); // We must convert to "file:///" format else image doesn't load! imageElement.setAttribute("alt",dialog.AltText.value); if (insertNew) { dump("Src="+imageElement.getAttribute("src")+" Al... |
dump("Src="+imageElement.getAttribute("src")+" Alt="+imageElement.getAttribute("alt")+"\n"); appCore.insertElement(imageElement, true) | appCore.insertElement(element, true) | function applyChanges(){ // TODO: BE SURE Src AND AltText are completed! imageElement.setAttribute("src",dialog.Src.value); // We must convert to "file:///" format else image doesn't load! imageElement.setAttribute("alt",dialog.AltText.value); if (insertNew) { dump("Src="+imageElement.getAttribute("src")+" Al... |
} | function applyChanges(){ // TODO: BE SURE Src AND AltText are completed! imageElement.setAttribute("src",dialog.Src.value); // We must convert to "file:///" format else image doesn't load! imageElement.setAttribute("alt",dialog.AltText.value); if (insertNew) { dump("Src="+imageElement.getAttribute("src")+" Al... | |
imageElement.setAttribute("src",dialog.Src.value); | imageElement.setAttribute("src",dialog.srcInput.value); | function applyChanges(){ // TODO: BE SURE Src AND AltText are completed! imageElement.setAttribute("src",dialog.Src.value); // We must convert to "file:///" format else image doesn't load! imageElement.setAttribute("alt",dialog.AltText.value); if (insertNew) { dump("Src="+imageElement.getAttribute("src")+" Al... |
imageElement.setAttribute("alt",dialog.AltText.value); | imageElement.setAttribute("alt",dialog.altTextInput.value); | function applyChanges(){ // TODO: BE SURE Src AND AltText are completed! imageElement.setAttribute("src",dialog.Src.value); // We must convert to "file:///" format else image doesn't load! imageElement.setAttribute("alt",dialog.AltText.value); if (insertNew) { dump("Src="+imageElement.getAttribute("src")+" Al... |
appCore.insertElement(imageElement, true) | appCore.insertElement(imageElement, true); appCore.selectElement(imageElement); imageWasInserted = true; | function applyChanges(){ // TODO: BE SURE Src AND AltText are completed! imageElement.setAttribute("src",dialog.Src.value); // We must convert to "file:///" format else image doesn't load! imageElement.setAttribute("alt",dialog.AltText.value); if (insertNew) { dump("Src="+imageElement.getAttribute("src")+" Al... |
initDialog(); return true; | function applyChanges(){ // TODO: BE SURE Src AND AltText are completed! imageElement.setAttribute("src",dialog.Src.value); // We must convert to "file:///" format else image doesn't load! imageElement.setAttribute("alt",dialog.AltText.value); if (insertNew) { dump("Src="+imageElement.getAttribute("src")+" Al... | |
return true; | function applyChanges(){ // Coalesce into one undo transaction appCore.beginBatchChanges(); // Set the HREF directly on the editor document's anchor node // or on the newly-created node if insertNew is true anchorElement.setAttribute("href",dialog.hrefInput.value); // Get text to use for a new link if (insertNe... | |
Components.interfaces.nsISupportsWString).data; | Components.interfaces.nsISupportsString).data; | function applySkin(){ var data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; if (data.name == null) return; const kPrefSvcContractID = "@mozilla.org/preferences;1"; const kPrefSvcIID = Components.interfaces.nsIPref; const kPrefSvc = Components.classes[kPref... |
var str = Components.classes["@mozilla.org/supports-wstring;1"] .createInstance(Components.interfaces.nsISupportsWString); | var str = Components.classes["@mozilla.org/supports-string;1"] .createInstance(Components.interfaces.nsISupportsString); | function applySkin(){ var data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; if (data.name == null) return; const kPrefSvcContractID = "@mozilla.org/preferences;1"; const kPrefSvcIID = Components.interfaces.nsIPref; const kPrefSvc = Components.classes[kPref... |
kPrefSvc.setComplexValue("general.skins.selectedSkin", Components.interfaces.nsISupportsWString, str); | kPrefSvc.setComplexValue("general.skins.selectedSkin", Components.interfaces.nsISupportsString, str); | function applySkin(){ var data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; if (data.name == null) return; const kPrefSvcContractID = "@mozilla.org/preferences;1"; const kPrefSvcIID = Components.interfaces.nsIPref; const kPrefSvc = Components.classes[kPref... |
var msg = navbundle.getFormattedString("switchskins", [brandName], 1); | var msg = navbundle.getFormattedString("switchskins", [brandName]); | function applySkin(){ var tree = document.getElementById("skinsTree"); var selectedSkinItem = tree.selectedItems[0]; var skinName = selectedSkinItem.getAttribute("name"); // XXX - this sucks and should only be temporary. kPrefSvc.SetUnicharPref("general.skins.selectedSkin", skinName); tree.selectItem(selectedSkin... |
var appShell = Components.classes['@mozilla.org/appshell/appShellService;1'].getService(); appShell = appShell.QueryInterface(Components.interfaces.nsIAppShellService); | var appStartup = Components.classes["@mozilla.org/toolkit/app-startup;1"] .getService(Components.interfaces.nsIAppStartup); | function applyTheme(themeName){ var id = themeName.getAttribute('id'); var name=id.substring('urn:mozilla.skin.'.length, id.length); if (!name) return; var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"] .getService(Components.interfaces.nsIChromeRegistrySea); var oldTheme = fal... |
appShell.nativeAppSupport.isServerMode = false; | appStartup.nativeAppSupport.isServerMode = false; | function applyTheme(themeName){ var id = themeName.getAttribute('id'); var name=id.substring('urn:mozilla.skin.'.length, id.length); if (!name) return; var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"] .getService(Components.interfaces.nsIChromeRegistrySea); var oldTheme = fal... |
function arrayIndexOf (ary, elem) | function arrayIndexOf (ary, elem, start) | function arrayIndexOf (ary, elem){ if (!ary) return -1; for (var i in ary) if (ary[i] == elem) return i; return -1;} |
for (var i in ary) | var len = ary.length; if (typeof start == "undefined") start = 0; for (var i = start; i < len; ++i) { | function arrayIndexOf (ary, elem){ if (!ary) return -1; for (var i in ary) if (ary[i] == elem) return i; return -1;} |
} | function arrayIndexOf (ary, elem){ if (!ary) return -1; for (var i in ary) if (ary[i] == elem) return i; return -1;} | |
var change = promptSvc.confirmCheck(window, title, changeEngineMsg, | change = promptSvc.confirmCheck(window, title, changeEngineMsg, | function AskChangeDefaultEngine(aSelectedEngine){ const kDontAskAgainPref = "browser.search.set_default.dont_ask_again"; const kDefaultEnginePref = "browser.search.defaultengine"; // don't prompt user if selection is same as old default engine var oldDefault = nsPreferences.copyUnicharPref(kDefaultEnginePref); if... |
while ((fName != null) && pathMentioned(fName)) { fName = prompt("Please enter file name only. This file will be saved by default to " + top.globals.getConfigFolder(top.globals), sgName); } while ((fName != null) && ((fName.substring(fName.length-4, fName.length) != ".IAS") && (fName.substring(fName.length-4, fName.... | while ((fName != null) && (((fName.substring(fName.length-4, fName.length) != ".IAS") && (fName.substring(fName.length-4, fName.length) != ".ias")) || pathMentioned(fName))) | function askIASFileNameAndSave(){ var sName = getGlobal("SiteName"); var save = null; netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" ); //flush data from currenly open tab into globals if (parent.tabs && parent.tabs.tabbody && parent.tabs.tabbody.saveData) { parent.tabs.tabbody.saveData(); } /... |
fName = prompt("Enter the fileName for this configuration (must end with .IAS)", sgName); | fName = prompt("Please enter file name only (must end with .IAS). This file will be saved by default to " + top.globals.getConfigFolder(top.globals), sgName); | function askIASFileNameAndSave(){ var sName = getGlobal("SiteName"); var save = null; netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" ); //flush data from currenly open tab into globals if (parent.tabs && parent.tabs.tabbody && parent.tabs.tabbody.saveData) { parent.tabs.tabbody.saveData(); } /... |
while ((fName != null) && pathMentioned(fName)) { fName = prompt("Please enter file name only. This file will be saved by default to " + top.globals.getConfigFolder(top.globals), sgName); } while ((fName != null) && ((fName.substring(fName.length-4, fName.length) != ".NCI") && (fName.substring(fName.length-4, fName.... | while ((fName != null) && (((fName.substring(fName.length-4, fName.length) != ".NCI") && (fName.substring(fName.length-4, fName.length) != ".nci")) || (pathMentioned(fName)))) | function askNCIFileNameAndSave(){ var sName = getGlobal("SiteName"); var save = null; netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" ); //flush data from currenly open tab into globals if (parent.tabs && parent.tabs.tabbody && parent.tabs.tabbody.saveData) { parent.tabs.tabbody.saveData(); } /... |
fName = prompt("Enter the fileName for this configuration (must end with .NCI)", sgName); | fName = prompt("Please enter file name only (must end with .NCI). This file will be saved by default to " + top.globals.getConfigFolder(top.globals), sgName); | function askNCIFileNameAndSave(){ var sName = getGlobal("SiteName"); var save = null; netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" ); //flush data from currenly open tab into globals if (parent.tabs && parent.tabs.tabbody && parent.tabs.tabbody.saveData) { parent.tabs.tabbody.saveData(); } /... |
while ((fName != null) && (fName.substring(fName.length-4, fName.length) != ".NCI")) | while ((fName != null) && ((fName.substring(fName.length-4, fName.length) != ".NCI") && (fName.substring(fName.length-4, fName.length) != ".nci"))) | function askNCIFileNameAndSave(){ var sName = getGlobal("SiteName"); var save = null; //flush data from currenly open tab into globals if (parent.tabs && parent.tabs.tabbody && parent.tabs.tabbody.saveData) { parent.tabs.tabbody.saveData(); } //first check if there is a sitename, if not, prompt for one if ((sName... |
top.globals.document.setupPlugin.FlushCache(); alert("This file is saved as " + top.globals.getConfigFolder(self) + fName); | function askNCIFileNameAndSave(){ var sName = getGlobal("SiteName"); var save = null; //flush data from currenly open tab into globals if (parent.tabs && parent.tabs.tabbody && parent.tabs.tabbody.saveData) { parent.tabs.tabbody.saveData(); } //first check if there is a sitename, if not, prompt for one if ((sName... | |
throw Components.Exception('Not initilized'); | throw Components.Exception('Not initialized'); | asyncCall: function(listener, context, methodName, methodArgs, count) { debug('asyncCall'); // Check for call in progress. if (this._inProgress) throw Components.Exception('Call in progress!'); // Check for the server URL; if (!this._serverUrl) throw Componen... |
this._errorMsg = null; | this._responseStatus = null; this._responseString = null; | asyncCall: function(listener, context, methodName, methodArgs, count) { debug('asyncCall'); // Check for call in progress. if (this._inProgress) throw Components.Exception('Call in progress!'); // Check for the server URL; if (!this._serverUrl) throw Componen... |
var xmlWriter = new XMLWriter(); | var xmlWriter = new XMLWriter(this._encoding); | asyncCall: function(listener, context, methodName, methodArgs, count) { debug('asyncCall'); // Check for call in progress. if (this._inProgress) throw Components.Exception('Call in progress!'); // Check for the server URL; if (!this._serverUrl) throw Componen... |
var chann = this._getChannel(requestBody); chann.asyncOpen(this, context); | this.xmlhttp = new XMLHttpRequest(); if (this._useAuth) { this.xmlhttp.open('POST', this._serverUrl, true, this._username, this._password); } else { this.xmlhttp.open('POST', this._serverUrl); } this.xmlhttp.onload = this._onload; this.xmlhttp.onerror = this._onerror; this.xmlhttp.parent = this; this.xmlhttp.setRequest... | asyncCall: function(listener, context, methodName, methodArgs, count) { debug('asyncCall'); // Check for call in progress. if (this._inProgress) throw Components.Exception('Call in progress!'); // Check for the server URL; if (!this._serverUrl) throw Componen... |
this._context = context; | asyncCall: function(listener, context, methodName, methodArgs, count) { debug('asyncCall'); // Check for call in progress. if (this._inProgress) throw Components.Exception('Call in progress!'); // Check for the server URL; if (!this._serverUrl) throw Componen... | |
generator.setPropertyAsAString("agent", trimString(s)); | generator.QueryInterface(Ci.nsIFeedGenerator); generator.agent = trimString(s); | function atomGenerator(s, generator) { generator.setPropertyAsAString("agent", trimString(s)); return generator;} |
currentAttachment = filePicker.chooseFile("Enter file to attach"); | currentAttachment = filePicker.chooseFile(Bundle.GetStringFromName("&chooseFileToAttach;")); | function AttachFile(){ dump("AttachFile()\n"); currentAttachment = ""; // Get a local file, converted into URL format try { var filePicker = Components.classes["component://netscape/filespecwithui"].createInstance(); filePicker = filePicker.QueryInterface(Components.interfaces.nsIFileSpecWithUI); ... |
catch (ex) { dump("failed to get the local file to attach\n"); } | catch (ex) { dump("failed to get the local file to attach\n"); } if (currentAttachment == "") return; | function AttachFile(){// dump("AttachFile()\n"); currentAttachment = ""; //Get file using nsIFilePicker and convert to URL try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, gComposeMsgsBundle.getString("chooseFileToAttach"), nsIFilePicker.modeOpen); ... |
AddAttachment(currentAttachment, null); | { var attachment = Components.classes["@mozilla.org/messengercompose/attachment;1"].createInstance(Components.interfaces.nsIMsgAttachment); attachment.url = currentAttachment; AddAttachment(attachment); } | function AttachFile(){// dump("AttachFile()\n"); currentAttachment = ""; //Get file using nsIFilePicker and convert to URL try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, gComposeMsgsBundle.getString("chooseFileToAttach"), nsIFilePicker.modeOpen); ... |
filePicker = filePicker.QueryInterface(Components.interfaces.nsIFileSpecWithUI); currentAttachment = filePicker.chooseFile(Bundle.GetStringFromName("&chooseFileToAttach;")); | filePicker = filePicker.QueryInterface(Components.interfaces.nsIFileSpecWithUI); currentAttachment = filePicker.chooseFile(Bundle.GetStringFromName("chooseFileToAttach")); | function AttachFile(){ dump("AttachFile()\n"); currentAttachment = ""; // Get a local file, converted into URL format try { var filePicker = Components.classes["component://netscape/filespecwithui"].createInstance(); filePicker = filePicker.QueryInterface(Components.interfaces.nsIFileSpecWithUI); ... |
promptService.Alert(window, errorTitle, errorMsg); | promptService.alert(window, errorTitle, errorMsg); | function AttachFile(){// dump("AttachFile()\n"); currentAttachment = ""; //Get file using nsIFilePicker and convert to URL try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, gComposeMsgsBundle.getString("chooseFileToAttach"), nsIFilePicker.modeOpen); ... |
fp.init(window, Bundle.GetStringFromName("chooseFileToAttach"), nsIFilePicker.modeOpen); | fp.init(window, gComposeMsgsBundle.getString("chooseFileToAttach"), nsIFilePicker.modeOpen); | function AttachFile(){// dump("AttachFile()\n"); currentAttachment = ""; //Get file using nsIFilePicker and convert to URL try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, Bundle.GetStringFromName("chooseFileToAttach"), nsIFilePicker.modeOpen); fp.a... |
var errorTitle = Bundle.GetStringFromName("DuplicateFileErrorDlogTitle"); var errorMsg = Bundle.GetStringFromName("DuplicateFileErrorDlogMessage"); | var errorTitle = gComposeMsgsBundle.getString("DuplicateFileErrorDlogTitle"); var errorMsg = gComposeMsgsBundle.getString("DuplicateFileErrorDlogMessage"); | function AttachFile(){// dump("AttachFile()\n"); currentAttachment = ""; //Get file using nsIFilePicker and convert to URL try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, Bundle.GetStringFromName("chooseFileToAttach"), nsIFilePicker.modeOpen); fp.a... |
var result = {url: ""}; window.openDialog("chrome: if (result.url != "") AddAttachment(result.url); | if (commonDialogsService) { var result = {value:0}; if (commonDialogsService.Prompt( window, Bundle.GetStringFromName("attachPageDlogTitle"), Bundle.GetStringFromName("attachPageDlogMessage"), null, result)) { AddAttachment(result.value); } } | function AttachPage(){ var result = {url: ""}; window.openDialog("chrome://messenger/content/messengercompose/MsgAttachPage.xul", "attachPageDialog", "chrome,modal", result); if (result.url != "") AddAttachment(result.url);} |
AddAttachment(result.value, null); | var attachment = Components.classes["@mozilla.org/messengercompose/attachment;1"].createInstance(Components.interfaces.nsIMsgAttachment); attachment.url = result.value; AddAttachment(attachment); | function AttachPage(){ if (!gPromptService) { gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); gPromptService = gPromptService.QueryInterface(Components.interfaces.nsIPromptService); } if (gPromptService) { var result = {value:"http://"... |
if (promptService.Prompt( | if (promptService.prompt( | function AttachPage(){ if (promptService) { var result = {value:0}; if (promptService.Prompt( window, gComposeMsgsBundle.getString("attachPageDlogTitle"), gComposeMsgsBundle.getString("attachPageDlogMessage"), "", 0, null, result)) { Ad... |
Bundle.GetStringFromName("attachPageDlogTitle"), Bundle.GetStringFromName("attachPageDlogMessage"), | gComposeMsgsBundle.getString("attachPageDlogTitle"), gComposeMsgsBundle.getString("attachPageDlogMessage"), | function AttachPage(){ if (commonDialogsService) { var result = {value:0}; if (commonDialogsService.Prompt( window, Bundle.GetStringFromName("attachPageDlogTitle"), Bundle.GetStringFromName("attachPageDlogMessage"), null, result)) { AddAttachment(resu... |
ac.AutoComplete(inputElement, inputElement.value, AddressAutoCompleteListener); | ac.autoComplete(inputElement, inputElement.value, AddressAutoCompleteListener); | function AutoCompleteAddress(inputElement){ ///////////// (select_doc_id, doc_id) dump("inputElement = " + inputElement + "\n"); var row = awGetRowByInputElement(inputElement); var select = awGetPopupElement(row); dump("select = " + select + "\n"); dump("select.value = " + select.value + "\n"); if (select.value ==... |
gAutoSaveTimeout = setTimeout("AutoSave()", gAutoSaveInterval); | gAutoSaveTimeout = setTimeout(AutoSave, gAutoSaveInterval); | function AutoSave(){ if (gMsgCompose.editor && (gContentChanged || gMsgCompose.bodyModified)) GenericSendMessage(nsIMsgCompDeliverMode.AutoSaveAsDraft); gAutoSaveTimeout = setTimeout("AutoSave()", gAutoSaveInterval);} |
var x = gCurrX - gStartX; var y = gCurrY - gStartY; const speed = 4; if (Math.abs(x) >= speed || Math.abs(y) >= speed) | var x = accelerate(gCurrX, gStartX); var y = accelerate(gCurrY, gStartY); if (x || y) | function autoScrollLoop(){ var x = gCurrX - gStartX; var y = gCurrY - gStartY; const speed = 4; if (Math.abs(x) >= speed || Math.abs(y) >= speed) gIgnoreMouseEvents = false; gScrollingView.scrollBy(x / speed, y / speed);} |
gScrollingView.scrollBy(x / speed, y / speed); | var desiredScrollX = gAccumulatedScrollErrorX + x; var actualScrollX = roundToZero(desiredScrollX); gAccumulatedScrollErrorX = (desiredScrollX - actualScrollX); var desiredScrollY = gAccumulatedScrollErrorY + y; var actualScrollY = roundToZero(desiredScrollY); gAccumulatedScrollErrorY = (desiredScrollY - actualScrollY)... | function autoScrollLoop(){ var x = gCurrX - gStartX; var y = gCurrY - gStartY; const speed = 4; if (Math.abs(x) >= speed || Math.abs(y) >= speed) gIgnoreMouseEvents = false; gScrollingView.scrollBy(x / speed, y / speed);} |
input[0].value = ""; | function awAppendNewRow(setFocus){ var body = document.getElementById('addressWidgetBody'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).selectedItem.getAttribute("data"); newNode = awCopyNode(treeitem1, body, 0); top.MAX_RECIPIENTS++;... | |
newNode = awCopyNode(treeitem1, body, 0); | var newNode = awCopyNode(treeitem1, body, 0); | function awAppendNewRow(setFocus){ var body = document.getElementById('addressList'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { newNode = awCopyNode(treeitem1, body, 0); top.MAX_RECIPIENTS++; var input = newNode.getElementsByTagName(awInputElementName()); if ( input && input.length =... |
_awDisableAutoComplete(select[0], input[0]); | _awSetAutoComplete(select[0], input[0]); | function awAppendNewRow(setFocus){ var body = document.getElementById('addressWidgetBody'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).selectedItem.getAttribute("data"); newNode = awCopyNode(treeitem1, body, 0); top.MAX_RECIPIENTS++;... |
awTestRowSequence(); | function awCleanupRows(){ var maxRecipients = top.MAX_RECIPIENTS; var rowID = 1; for (var row = 1; row <= maxRecipients; row ++) { var inputElem = awGetInputElement(row); if (inputElem.value == "" && row < maxRecipients) awRemoveRow(row); else { inputElem.setAttribute("id", "msgRecipient#" + r... | |
var nextRow = awGetInputElement(row+1); var index = 1; if (!nextRow) { nextRow = awGetInputElement(row-1); index = -1; | if (top.MAX_RECIPIENTS <= 1) { inputElement.value = ""; return; | function awDeleteHit(inputElement){ var row = awGetRowByInputElement(inputElement); var nextRow = awGetInputElement(row+1); var index = 1; if (!nextRow) { nextRow = awGetInputElement(row-1); index = -1; } if (nextRow) { awSetFocus(row+index, nextRow) if (row) awCleanupRows(row); } else input... |
if (nextRow) { awSetFocus(row+index, nextRow) if (row) awCleanupRows(row); } | if (row > 1) awSetFocus(row - 1, awGetInputElement(row - 1)) | function awDeleteHit(inputElement){ var row = awGetRowByInputElement(inputElement); var nextRow = awGetInputElement(row+1); var index = 1; if (!nextRow) { nextRow = awGetInputElement(row-1); index = -1; } if (nextRow) { awSetFocus(row+index, nextRow) if (row) awCleanupRows(row); } else input... |
inputElement.value = ""; | awSetFocus(1, awGetInputElement(2)) awDeleteRow(row); | function awDeleteHit(inputElement){ var row = awGetRowByInputElement(inputElement); var nextRow = awGetInputElement(row+1); var index = 1; if (!nextRow) { nextRow = awGetInputElement(row-1); index = -1; } if (nextRow) { awSetFocus(row+index, nextRow) if (row) awCleanupRows(row); } else input... |
Components.interfaces.nsISupportsWString); | Components.interfaces.nsISupportsString); | function awRecipientErrorCommand(errItem, element){ // remove the angle brackets from the general error message to construct // the title for the alert. someday we'll pass this info using a real // exception object, and then this code can go away. // var generalErrString; if (errItem.value != "") { ... |
case KeyEvent.DOM_VK_UP: awArrowHit(element, -1); break; case KeyEvent.DOM_VK_DOWN: awArrowHit(element, 1); break; | function awRecipientKeyPress(event, element){ switch(event.keyCode) { case KeyEvent.DOM_VK_RETURN: case KeyEvent.DOM_VK_TAB: { // if the user text contains a comma or a line return, ignore if (element.value.search(',') != -1) { var addresses = element.value; element.value = ""; // clear out the ... | |
case 46: case 8: if (!element.value && !this.lastVal) awDeleteHit(element); break; | function awRecipientKeyPress(event, element){ switch(event.keyCode) { case 13: awReturnHit(element); break; case 9: awTabFromRecipient(element, event); break; case 46: case 8: if (!element.value && !this.lastVal) awDeleteHit(element); break; } this.lastVal = element.value;} | |
this.lastVal = element.value; | function awRecipientKeyPress(event, element){ switch(event.keyCode) { case 13: awReturnHit(element); break; case 9: awTabFromRecipient(element, event); break; case 46: case 8: if (!element.value && !this.lastVal) awDeleteHit(element); break; } this.lastVal = element.value;} | |
_awDisableAutoComplete(popupElem, inputElem); | _awSetAutoComplete(popupElem, inputElem); | function awSetInputAndPopupValue(inputElem, inputValue, popupElem, popupValue, rowNumber){ // remove leading spaces while (inputValue[0] == " " ) inputValue = inputValue.substring(1, inputValue.length); inputElem.setAttribute("value", inputValue); inputElem.value = inputValue; popupElem.selectedItem = popupElem.ch... |
print('Visited b4'); | writeLineToLog('Visited b4'); | function b4(){ print('Visited b4');} |
print('Visited b_after'); | writeLineToLog('Visited b_after'); | function b_after(){ print('Visited b_after');} |
if (fp.show() == nsIFilePicker.returnOK || fp.show() == nsIFilePicker.returnReplace) { | var rv = fp.show(); if (rv == nsIFilePicker.returnOK || rv == nsIFilePicker.returnReplace) { | function backupCerts(){ getSelectedCerts(); var numcerts = selected_certs.length; var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties"); var fp = Components.classes[nsFilePicker].createInstance(nsIFilePicker); fp.init(window, bundle.GetStringFromName("chooseP12BackupFileDialog"), ... |
return listener.onStartRequest(this, ctxt); | throw Components.results.NS_ERROR_NOT_IMPLEMENTED; | function bc_asyncRead(listener, ctxt){ return listener.onStartRequest(this, ctxt);} |
var uri = ios.newURI(spec,null); | var uri = ios.newURI(spec,null,null); | function bc_connect(host, port, bind, tcp_flag, observer){ if (typeof tcp_flag == "undefined") tcp_flag = false; this.host = host.toLowerCase(); this.port = port; this.bind = bind; this.tcp_flag = tcp_flag; // Lets get a transportInfo for this var pps = Components.classes["@mozilla.org/network... |
function bc_open() | function bc_open(observer, ctxt) | function bc_open(){ throw Components.results.NS_ERROR_NOT_IMPLEMENTED;} |
throw Components.results.NS_ERROR_NOT_IMPLEMENTED; | spawnChatZilla(this.URI.spec); throw Components.results.NS_ERROR_NO_CONTENT; | function bc_open(){ throw Components.results.NS_ERROR_NOT_IMPLEMENTED;} |
throw Components.results.NS_ERROR_NO_CONTENT; | Components.returnCode = NS_ERROR_NO_CONTENT; | function bc_open(observer, ctxt){ spawnChatZilla(this.URI.spec); throw Components.results.NS_ERROR_NO_CONTENT;} |
return( false); } var dragService = Components.classes["@mozilla.org/widget/dragservice;1"].getService(); if ( dragService ) dragService = dragService.QueryInterface(Components.interfaces.nsIDragService); if ( !dragService ) { return(false); | return false; | function BeginDrag( event){ top.dragStart = false; var tree = document.getElementById("fieldList"); if ( event.target == tree ) { return( true); // continue propagating the event } if (!tree) { return( false); } var dragService = Components.classes["@mozilla.org/widget/dragservice;1"].getService... |
if ( trans ) trans = trans.QueryInterface(Components.interfaces.nsITransferable); if ( !trans ) { return(false); } | trans = trans.QueryInterface(Components.interfaces.nsITransferable); | function BeginDrag( event){ top.dragStart = false; var tree = document.getElementById("fieldList"); if ( event.target == tree ) { return( true); // continue propagating the event } if (!tree) { return( false); } var dragService = Components.classes["@mozilla.org/widget/dragservice;1"].getService... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.