rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
if (parent.hPrefWindow.getPrefIsLocked("network.image.imageBehavior")) { | if (parent.hPrefWindow.getPrefIsLocked("permissions.default.image")) { | function Startup(){ updateButtons('popup', 'install', 'javascript'); gImagesPref = document.getElementById("enableImagePref"); gImagesEnabled = document.getElementById("enableImages"); gImagesRestricted = document.getElementById("enableRestricted"); var prefValue = gImagesPref.getAttribute("value"); if (!prefVa... |
document.getElementById("createinlabel").setAttribute("collapsed", "true"); document.getElementById("createinbuttonbox").setAttribute("hidden", "true"); | function Startup(){ doSetOKCancel(onOK); gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); gFolderTree = document.getElementById("folders"); var shouldSetOKButton = true; if ("arguments" in window) { // If we're being opened as a folder selection window if (window.arg... | |
if (window.arguments[2]) { | if (window.arguments[2]) | function Startup(){ doSetOKCancel(onOK); gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); gFolderTree = document.getElementById("folders"); var shouldSetOKButton = true; if ("arguments" in window) { // If we're being opened as a folder selection window if (window.arg... |
document.getElementById("createin").setAttribute("hidden", "true"); document.getElementById("folderbox").setAttribute("hidden", "true"); } | function Startup(){ doSetOKCancel(onOK); gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); gFolderTree = document.getElementById("folders"); var shouldSetOKButton = true; if ("arguments" in window) { // If we're being opened as a folder selection window if (window.arg... | |
dialog.alignImage = document.getElementById( "alignImage" ); dialog.alignText = document.getElementById( "alignText" ); dialog.editImageMap = document.getElementById( "editImageMap" ); dialog.removeImageMap = document.getElementById( "removeImageMap" ); | function Startup(){ //XXX Very weird! When calling this with an existing image, // we get called twice. That causes dialog layout // to explode to fullscreen! if (StartupCalled) { dump("*** CALLING IMAGE DIALOG Startup() AGAIN! ***\n"); return; } StartupCalled = true; if (!InitEditorShell()) retu... | |
dialog.PreviewImage = document.getElementById( "preview-image" ); dialog.PreviewBox = document.getElementById( "preview-image-box" ); | function Startup(){ //XXX Very weird! When calling this with an existing image, // we get called twice. That causes dialog layout // to explode to fullscreen! if (StartupCalled) { dump("*** CALLING IMAGE DIALOG Startup() AGAIN! ***\n"); return; } StartupCalled = true; if (!InitEditorShell()) retu... | |
gOriginalSrc = dialog.srcInput.value; | function Startup(){ //XXX Very weird! When calling this with an existing image, // we get called twice. That causes dialog layout // to explode to fullscreen! if (StartupCalled) { dump("*** CALLING IMAGE DIALOG Startup() AGAIN! ***\n"); return; } StartupCalled = true; if (!InitEditorShell()) retu... | |
bookmarksTree.setAttribute("ref", window.arguments[0]); const krNameArc = gBookmarksShell.RDF.GetResource(NC_NS + "Name"); const krRoot = gBookmarksShell.RDF.GetResource(window.arguments[0]); var rName = gBookmarksShell.db.GetTarget(krRoot, krNameArc, true); rName = rName.QueryInterface(Components.interfaces.nsIRDFLite... | var uri = window.arguments[0]; bookmarksTree.setAttribute("ref", uri); var title = ""; if (uri.substring(0,5) == "find:") { title = gBookmarksShell.getLocaleString("search_results_title"); windowNode.setAttribute("windowtype", "bookmarks:searchresults"); } else { const krNameArc = gBookmarksShell.RDF.GetResource(NC_N... | function Startup(){ // Create the Bookmarks Shell var bookmarksTree = document.getElementById("bookmarksTree"); gBookmarksShell = new BookmarksWindowTree (bookmarksTree.database); // Set up the tree controller bookmarksTree.controllers.appendController(gBookmarksShell.controller); const windowNode = document.getE... |
windowNode.setAttribute("title", titleString.replace(/%folder_name%/gi, rName)); | windowNode.setAttribute("title", titleString.replace(/%folder_name%/gi, title)); | function Startup(){ // Create the Bookmarks Shell var bookmarksTree = document.getElementById("bookmarksTree"); gBookmarksShell = new BookmarksWindowTree (bookmarksTree.database); // Set up the tree controller bookmarksTree.controllers.appendController(gBookmarksShell.controller); const windowNode = document.getE... |
var kids = document.getElementById("treechildren-bookmarks"); if (kids.firstChild) bookmarksTree.selectItem(kids.firstChild); | function Startup(){ // Create the Bookmarks Shell var bookmarksTree = document.getElementById("bookmarksTree"); gBookmarksShell = new BookmarksWindowTree (bookmarksTree.database); // Set up the tree controller bookmarksTree.controllers.appendController(gBookmarksShell.controller); const windowNode = document.getE... | |
pref = Components.classes['@mozilla.org/preferences;1']; pref = pref.getService(); pref = pref.QueryInterface(Components.interfaces.nsIPref); | pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); | function Startup(){ signonviewer = Components.classes["@mozilla.org/signonviewer/signonviewer-world;1"].createInstance(); signonviewer = signonviewer.QueryInterface(Components.interfaces.nsISignonViewer); passwordmanager = Components.classes["@mozilla.org/passwordmanager;1"].getService(); passwordmanager = password... |
if (!pref.GetBoolPref("wallet.enabled")) { | if (!pref.getBoolPref("wallet.enabled")) { | function Startup(){ signonviewer = Components.classes["@mozilla.org/signonviewer/signonviewer-world;1"].createInstance(); signonviewer = signonviewer.QueryInterface(Components.interfaces.nsISignonViewer); passwordmanager = Components.classes["@mozilla.org/passwordmanager;1"].getService(); passwordmanager = password... |
encrypted = pref.GetBoolPref("wallet.crypto"); | encrypted = pref.getBoolPref("wallet.crypto"); | function Startup(){ signonviewer = Components.classes["@mozilla.org/signonviewer/signonviewer-world;1"].createInstance(); signonviewer = signonviewer.QueryInterface(Components.interfaces.nsISignonViewer); passwordmanager = Components.classes["@mozilla.org/passwordmanager;1"].getService(); passwordmanager = password... |
dialog.TableImageInput = document.getElementById("TableImageInput"); dialog.TableImageButton = document.getElementById("TableImageButton"); | function Startup(){ if (!InitEditorShell()) return; selection = editorShell.editorSelection; if (!selection) return; dialog = new Object; if (!dialog) window.close(); // Get dialog widgets - Table Panel dialog.TableRowsInput = document.getElementById("TableRowsInput"); dialog.TableColumnsInput = document.get... | |
dialog.TableImageCheckbox = document.getElementById("TableImageCheckbox"); | function Startup(){ if (!InitEditorShell()) return; selection = editorShell.editorSelection; if (!selection) return; dialog = new Object; if (!dialog) window.close(); // Get dialog widgets - Table Panel dialog.TableRowsInput = document.getElementById("TableRowsInput"); dialog.TableColumnsInput = document.get... | |
dialog.CellImageInput = document.getElementById("CellImageInput"); dialog.CellImageButton = document.getElementById("CellImageButton"); | function Startup(){ if (!InitEditorShell()) return; selection = editorShell.editorSelection; if (!selection) return; dialog = new Object; if (!dialog) window.close(); // Get dialog widgets - Table Panel dialog.TableRowsInput = document.getElementById("TableRowsInput"); dialog.TableColumnsInput = document.get... | |
dialog.CellImageCheckbox = document.getElementById("CellImageCheckbox"); | function Startup(){ if (!InitEditorShell()) return; selection = editorShell.editorSelection; if (!selection) return; dialog = new Object; if (!dialog) window.close(); // Get dialog widgets - Table Panel dialog.TableRowsInput = document.getElementById("TableRowsInput"); dialog.TableColumnsInput = document.get... | |
dialog.TableRowsInput.focus(); | SetTextfieldFocus(dialog.TableRowsInput); | function Startup(){ if (!InitEditorShell()) return; selection = editorShell.editorSelection; if (!selection) return; dialog = new Object; if (!dialog) window.close(); // Get dialog widgets - Table Panel dialog.TableRowsInput = document.getElementById("TableRowsInput"); dialog.TableColumnsInput = document.get... |
defaultFont = document.getElementById( "proportionalFont" ); | function Startup() { variableSize = document.getElementById( "sizeVar" ); fixedSize = document.getElementById( "sizeMono" ); minSize = document.getElementById( "minSize" ); languageList = document.getElementById( "selectLangs" ); gPrefutilitiesBundle = document.getElementById("bundle_prefutiliti... | |
if( document.getElementById( "useCustomColors" ).data == 0 ) | if( document.getElementById( "useCustomColors" ).data == "true" ) | function Startup(){ dialog = new Object; if (!dialog) return false; dialog.ColorPreview = document.getElementById("ColorPreview"); dialog.NormalText = document.getElementById("NormalText"); dialog.LinkText = document.getElementById("LinkText"); dialog.ActiveLinkText = document.getElementById("ActiveLinkText");... |
okButton.setAttribute("value", GetString("Insert")); | okButton.setAttribute("label", GetString("Insert")); | function Startup(){ if (!InitEditorShell()) return; StartupLatin(); doSetOKCancel(onOK, Cancel); // Dialog is non-modal: // Change "Ok" to "Insert, change "Cancel" to "Close" var okButton = document.getElementById("ok"); if (okButton) okButton.setAttribute("value", GetString("Insert")); var cancelButton =... |
cancelButton.setAttribute("value", GetString("Close")); | cancelButton.setAttribute("label", GetString("Close")); | function Startup(){ if (!InitEditorShell()) return; StartupLatin(); doSetOKCancel(onOK, Cancel); // Dialog is non-modal: // Change "Ok" to "Insert, change "Cancel" to "Close" var okButton = document.getElementById("ok"); if (okButton) okButton.setAttribute("value", GetString("Insert")); var cancelButton =... |
var dialogElement = document.documentElement; | function Startup(){ initServices(); initBMService(); gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); gCB_AddGroup = document.getElementById("addgroup"); var bookmarkView = document.getElementById("bookmarks-view"); var shouldSetOKButton = true; var dialogElement = documen... | |
dialogElement.setAttribute("title", dialogElement.getAttribute("title-selectFolder")); | document.title = document.documentElement.getAttribute("selectFolderTitle"); | function Startup(){ initServices(); initBMService(); gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); gCB_AddGroup = document.getElementById("addgroup"); var bookmarkView = document.getElementById("bookmarks-view"); var shouldSetOKButton = true; var dialogElement = documen... |
var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); if (!prefService) throw Components.results.NS_ERROR_FAILURE; pref = prefService.getBranch(null); | function Startup(){ // init globals gNavigatorBundle = document.getElementById("bundle_navigator"); gBrandBundle = document.getElementById("bundle_brand"); gNavigatorRegionBundle = document.getElementById("bundle_navigator_region"); gBrandRegionBundle = document.getElementById("bundle_brand_region"); gBrowser = d... | |
SetTextboxFocus(gDialog.sepRadioGroup); | function Startup(){ if (!GetCurrentEditor()) { window.close(); return; } gDialog.sepRadioGroup = document.getElementById("SepRadioGroup"); gDialog.sepCharacterInput = document.getElementById("SepCharacterInput"); gDialog.deleteSepCharacter = document.getElementById("DeleteSepCharacter"); gDialog.coll... | |
initConsoleListener(); | function Startup() { window.XULBrowserWindow = new nsXULBrowserWindow(); // TileWindow(); // Make sure window fits on screen initially //FitToScreen(); // Create the browser instance component. createBrowserInstance(); window.content.appCore= appCore; if (appCore == null) { // Give up... | |
document.documentElement.setAttribute("title", extensionsStrings.getString(gWindowState + "Title")); | document.title = extensionsStrings.getString(gWindowState + "Title"); | function Startup() { gWindowState = window.location.search.substr("?type=".length, window.location.search.length); var isExtensions = gWindowState == "extensions"; gURIPrefix = isExtensions ? "urn:mozilla:extension:" : "urn:mozilla:theme:"; gDSRoot = isExtensions ? "urn:mozilla:extension:root" : "urn:mozilla... |
if ("arguments" in window && window.arguments.length >= 3 && window.arguments[2] == true || !window.locationbar.visible) | if (window.arguments[0] == "about:blank" && window.locationbar.visible) setTimeout(WindowFocusTimerCallback, 0, gURLBar); else | function Startup(){ // init globals gNavigatorBundle = document.getElementById("bundle_navigator"); gBrandBundle = document.getElementById("bundle_brand"); gNavigatorRegionBundle = document.getElementById("bundle_navigator_region"); gBrandRegionBundle = document.getElementById("bundle_brand_region"); gBrowser = d... |
else setTimeout(WindowFocusTimerCallback, 0, gURLBar); | function Startup(){ // init globals gNavigatorBundle = document.getElementById("bundle_navigator"); gBrandBundle = document.getElementById("bundle_brand"); gNavigatorRegionBundle = document.getElementById("bundle_navigator_region"); gBrandRegionBundle = document.getElementById("bundle_brand_region"); gBrowser = d... | |
dialog.AdvancedEditButton = document.getElementById( "AdvancedEditButton" ); | function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Create dialog object to store controls for easy access dialog = new Object; dialog.srcInput = document.getElementById( "srcInput" ); dialog.altTextInput = document.getElementById( "altTextInput" ); dialog.MoreFewer... | |
dialog.rowsInput.value = 1; dialog.columnsInput.value = 2; | function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); dump(tagName+" = InsertTable tagName\n"); tableElement = editorShell.CreateElementWithDefaults(tagName); if(!tableElement) { dump("Failed to create a new table!\n"); window.close(); } // Create dialog object to store control... | |
windowNode.setAttribute("title", titleString); | document.title = titleString; | function Startup(){ const windowNode = document.getElementById("bookmark-window"); const bookmarksView = document.getElementById("bookmarks-view"); const bookmarksFolder = document.getElementById("bookmark-folders-view"); var titleString; // If we've been opened with a parameter, root the tree on it. if ("argumen... |
LatinC = document.getElementById("LatinC"); | function StartupLatin(){ LatinC = document.getElementById("LatinC"); LatinL = document.getElementById("LatinL"); LatinM = document.getElementById("LatinM"); LatinL_Label = document.getElementById("LatinL_Label"); LatinM_Label = document.getElementById("LatinM_Label"); UpdateLatinL(); UpdateLatinM(); UpdateLat... | |
UpdateLatinL(); UpdateLatinM(); UpdateLatinC(); | var Symbol = document.getElementById("Symbol"); var AccentUpper = document.getElementById("AccentUpper"); var AccentLower = document.getElementById("AccentUpper"); var Upper = document.getElementById("Upper"); var Lower = document.getElementById("Lower"); CategoryGroup = document.getElementById("CatG... | function StartupLatin(){ LatinC = document.getElementById("LatinC"); LatinL = document.getElementById("LatinL"); LatinM = document.getElementById("LatinM"); LatinL_Label = document.getElementById("LatinL_Label"); LatinM_Label = document.getElementById("LatinM_Label"); UpdateLatinL(); UpdateLatinM(); UpdateLat... |
{ var w = openDialog("chrome: var testsFilter = { glob: w, flags: jsdIFilter.FLAG_ENABLED | jsdIFilter.FLAG_PASS, urlPattern: null, startLine: 0, endLine: 0 }; /* make sure this filter goes at the top, so the system * "chrome: */ console.jsds.insertFilter (testsFilter, null); } | treeTest(); | function startupTests(){ if (0) { var w = openDialog("chrome://venkman/content/tests/tree.xul", "", ""); var testsFilter = { glob: w, flags: jsdIFilter.FLAG_ENABLED | jsdIFilter.FLAG_PASS, urlPattern: null, startLine: 0, endL... |
if (gChangeTable[gServerURI] == undefined) { gChangeTable[gServerURI] = {}; gChangeTable[gServerURI][name] = state; } else { if (gChangeTable[gServerURI][name] == undefined) { gChangeTable[gServerURI][name] = state; } else { var oldValue = gChangeTable[gServerURI][name]; if (oldValue != state) { gChangeTable[gServerURI... | if (gServerURI in gChangeTable) { if (name in gChangeTable[gServerURI]) { var oldValue = gChangeTable[gServerURI][name]; if (oldValue != state) delete gChangeTable[gServerURI][name]; } else { gChangeTable[gServerURI][name] = state; } } else { gChangeTable[gServerURI] = {}; gChangeTable[gServerURI][name] = state; } | function StateChanged(name,state){ //dump("StateChanged(" + name + "," + state + ")\n"); if (gChangeTable[gServerURI] == undefined) { gChangeTable[gServerURI] = {}; gChangeTable[gServerURI][name] = state; } else { if (gChangeTable[gServerURI][name] == undefined) { gChangeTable[gServerURI][name... |
function stateFound(content, captureOrPrefill, threshhold) { bestState = hide; | function stateFound(content, threshhold) { var captureStateFound = false; var prefillStateFound = false; bestState = bothHide; | function stateFound(content, captureOrPrefill, threshhold) { bestState = hide; if (!content || !content.document) { return false; } var document = content.document; if (!("forms" in document)) { // this will occur if document is xul document instead of html document for exampl... |
return false; | return bothFalse; | function stateFound(content, captureOrPrefill, threshhold) { bestState = hide; if (!content || !content.document) { return false; } var document = content.document; if (!("forms" in document)) { // this will occur if document is xul document instead of html document for exampl... |
return true; | return bothTrue; | function stateFound(content, captureOrPrefill, threshhold) { bestState = hide; if (!content || !content.document) { return false; } var document = content.document; if (!("forms" in document)) { // this will occur if document is xul document instead of html document for exampl... |
var state; | function stateFound(content, captureOrPrefill, threshhold) { bestState = hide; if (!content || !content.document) { return false; } var document = content.document; if (!("forms" in document)) { // this will occur if document is xul document instead of html document for exampl... | |
if (stateFound(framesArray[frame], captureOrPrefill, threshhold)) { return true; | rv = stateFound(framesArray[frame], threshhold); captureStateFound |= rv.capture; prefillStateFound |= rv.prefill; if (captureStateFound && prefillStateFound) { return bothTrue; | function stateFound(content, captureOrPrefill, threshhold) { bestState = hide; if (!content || !content.document) { return false; } var document = content.document; if (!("forms" in document)) { // this will occur if document is xul document instead of html document for exampl... |
if (stateFoundInFormsArray(frameDocument.forms, captureOrPrefill, threshhold)) { | rv = stateFoundInFormsArray(frameDocument.forms, threshhold); captureStateFound |= rv.capture; prefillStateFound |= rv.prefill; if (captureStateFound && prefillStateFound) { | function stateFound(content, captureOrPrefill, threshhold) { bestState = hide; if (!content || !content.document) { return false; } var document = content.document; if (!("forms" in document)) { // this will occur if document is xul document instead of html document for exampl... |
if (stateFoundInFormsArray(document.forms, captureOrPrefill, threshhold)) { return true; | rv = stateFoundInFormsArray(document.forms, threshhold); captureStateFound |= rv.capture; prefillStateFound |= rv.prefill; if (captureStateFound && prefillStateFound) { return bothTrue; | function stateFound(content, captureOrPrefill, threshhold) { bestState = hide; if (!content || !content.document) { return false; } var document = content.document; if (!("forms" in document)) { // this will occur if document is xul document instead of html document for exampl... |
function stateFoundInFormsArray(formsArray, captureOrPrefill, threshhold) { var state = getStateFromFormsArray(formsArray, captureOrPrefill, threshhold); if (state == enable) { bestState = enable; if (elementCount > threshhold) { return true; | function stateFoundInFormsArray(formsArray, threshhold) { var rv = bothFalse; var state = getStateFromFormsArray(formsArray, threshhold); for (var i in state) { if (state[i] == enable) { bestState[i] = enable; if (elementCount > threshhold) { rv[i] = true; } } else if (state[i] == disable && bestState[i] == hide) { bes... | function stateFoundInFormsArray(formsArray, captureOrPrefill, threshhold) { var state = getStateFromFormsArray(formsArray, captureOrPrefill, threshhold); if (state == enable) { bestState = enable; if (elementCount > threshhold) { return true; } } else if (state ==... |
} else if (state == disable && bestState == hide) { bestState = disable; | function stateFoundInFormsArray(formsArray, captureOrPrefill, threshhold) { var state = getStateFromFormsArray(formsArray, captureOrPrefill, threshhold); if (state == enable) { bestState = enable; if (elementCount > threshhold) { return true; } } else if (state ==... | |
return false; | return rv; | function stateFoundInFormsArray(formsArray, captureOrPrefill, threshhold) { var state = getStateFromFormsArray(formsArray, captureOrPrefill, threshhold); if (state == enable) { bestState = enable; if (elementCount > threshhold) { return true; } } else if (state ==... |
state = | var state = | function stateFoundInFormsArray(formsArray, captureOrPrefill, threshhold) { state = getStateFromFormsArray(formsArray, captureOrPrefill, threshhold); if (state == enable) { if (elementCount > threshhold) { bestState = enable; return true; } bestState = enable;... |
--console._stopLevel; | function step (){ console.jsds.interruptHook = console._executionHook; var topFrame = console.frames[0]; console._stepPast = topFrame.script.fileName + topFrame.line; disableDebugCommands() console.jsds.exitNestedEventLoop();} | |
console._stepPast = topFrame.script.fileName + topFrame.line; | console._stepPast = topFrame.script.fileName if (console.sourceView.prettyPrint) { console._stepPast += topFrame.script.pcToLine(topFrame.pc, PCMAP_PRETTYPRINT); } else { console._stepPast += topFrame.line; } | function step (){ setStopState(true); var topFrame = console.frames[0]; console._stepPast = topFrame.script.fileName + topFrame.line; disableDebugCommands() --console._stopLevel; console.stackView.saveState(); console.jsds.exitNestedEventLoop();} |
updateMotifSettings(); | function stock_initOutputWindow(newClient, newView, newClickHandler){ function initHeader() { /* it's better if we wait a half a second before poking at these * dom nodes. */ setHeaderState(view.prefs["displayHeader"]); updateHeader(); var div = document.getElementById("message... | |
removeEventListener('contextmenu', handleMouseUpDown, true); | function stopScrolling(){ if (gScrollingView) { gScrollingView = null; removeEventListener('mousemove', handleMouseMove, true); removeEventListener('mousedown', handleMouseUpDown, true); removeEventListener('mouseup', handleMouseUpDown, true); clearInterval(gAutoScrollTimer); }} | |
var item = gItemsToStore[gItemsToStoreIndex++]; | var item = gItemsToStore[gItemsToStoreIndex]; | function storeNextItem(){ var item = gItemsToStore[gItemsToStoreIndex++]; item.store(); item.markValid(); // eventually we'll report individual progress here.... if (gItemsToStoreIndex < gItemsToStore.length) { if ('setTimeout' in this) setTimeout(storeNextItem, 50); // fire off a timer for the next item... |
if (item.feed.downloadCallback.onFeedItemStored) item.feed.downloadCallback.onFeedItemStored(item.feed, gItemsToStoreIndex, gItemsToStore.length); gItemsToStoreIndex++ | function storeNextItem(){ var item = gItemsToStore[gItemsToStoreIndex++]; item.store(); item.markValid(); // eventually we'll report individual progress here.... if (gItemsToStoreIndex < gItemsToStore.length) { if ('setTimeout' in this) setTimeout(storeNextItem, 50); // fire off a timer for the next item... | |
str.init(file, 0, 0, 0); | str.init(file, PR_RDONLY, 0, 0); | function stream_for_file(file) { var str = Components.classes["@mozilla.org/network/file-input-stream;1"] .createInstance(Components.interfaces.nsIFileInputStream); str.init(file, 0, 0, 0); return str;} |
d = stream.read(1).charCodeAt(0); | var d = stream.read(1).charCodeAt(0); | function streamToBase64(stream, writer) { while (stream.available()) { var data = []; while (data.length < BASE64CHUNK && stream.available()) { d = stream.read(1).charCodeAt(0); // reading a 0 results in NaN, compensate. data = data.concat(isNaN(d) ? 0 : d); } ... |
convStream.init( inStream, charset, 0, 0x0000 ); | convStream.init( inStream, charset, 0, 63 ); | function streamToString( inStream, charset ){ if (LOG_LEVEL > 2) { logMessage( "streamToString()", "inStream.available() = " + inStream.available() + ", charset = " + charset ); } // byte-array to string: var convStream = Components.classes["@mozilla.org/i... |
function StripPassword(url, passwordObj) | function StripPassword(urlspec, passwordObj) | function StripPassword(url, passwordObj){ url = TrimString(url); if (!url || IsUrlAboutBlank(url)) return url; if (passwordObj) passwordObj.value = ""; // "@" must exist else we will never detect password var atIndex = url.indexOf("@"); if (atIndex > 0) { try { var IOService = GetIOService(); ... |
url = TrimString(url); if (!url || IsUrlAboutBlank(url)) return url; | urlspec = TrimString(urlspec); if (!urlspec || IsUrlAboutBlank(urlspec)) return urlspec; | function StripPassword(url, passwordObj){ url = TrimString(url); if (!url || IsUrlAboutBlank(url)) return url; if (passwordObj) passwordObj.value = ""; // "@" must exist else we will never detect password var atIndex = url.indexOf("@"); if (atIndex > 0) { try { var IOService = GetIOService(); ... |
var atIndex = url.indexOf("@"); | var atIndex = urlspec.indexOf("@"); | function StripPassword(url, passwordObj){ url = TrimString(url); if (!url || IsUrlAboutBlank(url)) return url; if (passwordObj) passwordObj.value = ""; // "@" must exist else we will never detect password var atIndex = url.indexOf("@"); if (atIndex > 0) { try { var IOService = GetIOService(); ... |
return url; | return urlspec; | function StripPassword(url, passwordObj){ url = TrimString(url); if (!url || IsUrlAboutBlank(url)) return url; if (passwordObj) passwordObj.value = ""; // "@" must exist else we will never detect password var atIndex = url.indexOf("@"); if (atIndex > 0) { try { var IOService = GetIOService(); ... |
var password = IOService.extractUrlPart(url, IOService.url_Password); | var password = IOService.newURI(urlspec, null, null).password; | function StripPassword(url, passwordObj){ url = TrimString(url); if (!url || IsUrlAboutBlank(url)) return url; if (passwordObj) passwordObj.value = ""; // "@" must exist else we will never detect password var atIndex = url.indexOf("@"); if (atIndex > 0) { try { var IOService = GetIOService(); ... |
var colon = url.lastIndexOf(":", atIndex); | var colon = urlspec.lastIndexOf(":", atIndex); | function StripPassword(url, passwordObj){ url = TrimString(url); if (!url || IsUrlAboutBlank(url)) return url; if (passwordObj) passwordObj.value = ""; // "@" must exist else we will never detect password var atIndex = url.indexOf("@"); if (atIndex > 0) { try { var IOService = GetIOService(); ... |
return url.slice(0, colon) + url.slice(atIndex); | return urlspec.slice(0, colon) + urlspec.slice(atIndex); | function StripPassword(url, passwordObj){ url = TrimString(url); if (!url || IsUrlAboutBlank(url)) return url; if (passwordObj) passwordObj.value = ""; // "@" must exist else we will never detect password var atIndex = url.indexOf("@"); if (atIndex > 0) { try { var IOService = GetIOService(); ... |
function StripUsernamePassword(url, usernameObj, passwordObj) | function StripUsernamePassword(urlspec, usernameObj, passwordObj) | function StripUsernamePassword(url, usernameObj, passwordObj){ url = TrimString(url); if (!url || IsUrlAboutBlank(url)) return url; if (usernameObj) usernameObj.value = ""; if (passwordObj) passwordObj.value = ""; // "@" must exist else we will never detect username or password var atIndex = url.indexOf(... |
url = TrimString(url); if (!url || IsUrlAboutBlank(url)) return url; | urlspec = TrimString(urlspec); if (!urlspec || IsUrlAboutBlank(urlspec)) return urlspec; | function StripUsernamePassword(url, usernameObj, passwordObj){ url = TrimString(url); if (!url || IsUrlAboutBlank(url)) return url; if (usernameObj) usernameObj.value = ""; if (passwordObj) passwordObj.value = ""; // "@" must exist else we will never detect username or password var atIndex = url.indexOf(... |
var atIndex = url.indexOf("@"); | var atIndex = urlspec.indexOf("@"); | function StripUsernamePassword(url, usernameObj, passwordObj){ url = TrimString(url); if (!url || IsUrlAboutBlank(url)) return url; if (usernameObj) usernameObj.value = ""; if (passwordObj) passwordObj.value = ""; // "@" must exist else we will never detect username or password var atIndex = url.indexOf(... |
return url; | return urlspec; | function StripUsernamePassword(url, usernameObj, passwordObj){ url = TrimString(url); if (!url || IsUrlAboutBlank(url)) return url; if (usernameObj) usernameObj.value = ""; if (passwordObj) passwordObj.value = ""; // "@" must exist else we will never detect username or password var atIndex = url.indexOf(... |
var username = IOService.extractUrlPart(url, IOService.url_Username); var password = IOService.extractUrlPart(url, IOService.url_Password); | var uri = IOService.newURI(urlspec, null, null); var username = uri.username; var password = uri.password; | function StripUsernamePassword(url, usernameObj, passwordObj){ url = TrimString(url); if (!url || IsUrlAboutBlank(url)) return url; if (usernameObj) usernameObj.value = ""; if (passwordObj) passwordObj.value = ""; // "@" must exist else we will never detect username or password var atIndex = url.indexOf(... |
var usernameStart = url.indexOf(username); | var usernameStart = urlspec.indexOf(username); | function StripUsernamePassword(url, usernameObj, passwordObj){ url = TrimString(url); if (!url || IsUrlAboutBlank(url)) return url; if (usernameObj) usernameObj.value = ""; if (passwordObj) passwordObj.value = ""; // "@" must exist else we will never detect username or password var atIndex = url.indexOf(... |
return url.slice(0, usernameStart) + url.slice(atIndex+1); | return urlspec.slice(0, usernameStart) + urlspec.slice(atIndex+1); | function StripUsernamePassword(url, usernameObj, passwordObj){ url = TrimString(url); if (!url || IsUrlAboutBlank(url)) return url; if (usernameObj) usernameObj.value = ""; if (passwordObj) passwordObj.value = ""; // "@" must exist else we will never detect username or password var atIndex = url.indexOf(... |
return url; var IOService = GetIOService(); if (!IOService) | function StripUsernamePassword(url, usernameObj, passwordObj){ url = TrimString(url); if (!url || IsUrlAboutBlank(url)) return url; var IOService = GetIOService(); if (!IOService) return url; if (usernameObj) usernameObj.value = ""; if (passwordObj) passwordObj.value = ""; // "@" must exist else we w... | |
var startU = {value :0}; var username = IOService.extractUrlPart(url, IOService.url_Username, startU, {end:0}); var password = IOService.extractUrlPart(url, IOService.url_Password, {start:0}, {end:0}); | var IOService = GetIOService(); if (!IOService) return url; var username = IOService.extractUrlPart(url, IOService.url_Username); var password = IOService.extractUrlPart(url, IOService.url_Password); | function StripUsernamePassword(url, usernameObj, passwordObj){ url = TrimString(url); if (!url || IsUrlAboutBlank(url)) return url; var IOService = GetIOService(); if (!IOService) return url; if (usernameObj) usernameObj.value = ""; if (passwordObj) passwordObj.value = ""; // "@" must exist else we w... |
return url.slice(0, startU.value) + url.slice(atIndex+1); | { var usernameStart = url.indexOf(username); if (usernameStart != -1) return url.slice(0, usernameStart) + url.slice(atIndex+1); } | function StripUsernamePassword(url, usernameObj, passwordObj){ url = TrimString(url); if (!url || IsUrlAboutBlank(url)) return url; var IOService = GetIOService(); if (!IOService) return url; if (usernameObj) usernameObj.value = ""; if (passwordObj) passwordObj.value = ""; // "@" must exist else we w... |
var url = ""; | var urlspec = ""; | function StripUsernamePasswordFromURI(uri){ var url = ""; if (uri) { try { url = uri.spec; var userPass = uri.userPass; if (userPass) { start = url.indexOf(userPass); url = url.slice(0, start) + url.slice(start+userPass.length+1); } } catch (e) {} } return url;} |
url = uri.spec; | urlspec = uri.spec; | function StripUsernamePasswordFromURI(uri){ var url = ""; if (uri) { try { url = uri.spec; var userPass = uri.userPass; if (userPass) { start = url.indexOf(userPass); url = url.slice(0, start) + url.slice(start+userPass.length+1); } } catch (e) {} } return url;} |
start = url.indexOf(userPass); url = url.slice(0, start) + url.slice(start+userPass.length+1); | start = urlspec.indexOf(userPass); urlspec = urlspec.slice(0, start) + urlspec.slice(start+userPass.length+1); | function StripUsernamePasswordFromURI(uri){ var url = ""; if (uri) { try { url = uri.spec; var userPass = uri.userPass; if (userPass) { start = url.indexOf(userPass); url = url.slice(0, start) + url.slice(start+userPass.length+1); } } catch (e) {} } return url;} |
return url; | return urlspec; | function StripUsernamePasswordFromURI(uri){ var url = ""; if (uri) { try { url = uri.spec; var userPass = uri.userPass; if (userPass) { start = url.indexOf(userPass); url = url.slice(0, start) + url.slice(start+userPass.length+1); } } catch (e) {} } return url;} |
textbox.setAttribute("size", 5); | textbox.setAttribute("width", gContextMenuNode.boxObject.width); textbox.className = "struct-textbox"; | function StructChangeTag(){ var textbox = document.createElementNS(XUL_NS, "textbox"); textbox.setAttribute("value", gContextMenuNode.getAttribute("value")); textbox.setAttribute("size", 5); gContextMenuNode.parentNode.insertBefore(textbox, gContextMenuNode); textbox.addEventListener("keypress", OnKeyPress, false... |
gContextMenuNode.parentNode.insertBefore(textbox, gContextMenuNode); | gContextMenuNode.parentNode.replaceChild(textbox, gContextMenuNode); | function StructChangeTag(){ var textbox = document.createElementNS(XUL_NS, "textbox"); textbox.setAttribute("value", gContextMenuNode.getAttribute("value")); textbox.setAttribute("size", 5); gContextMenuNode.parentNode.insertBefore(textbox, gContextMenuNode); textbox.addEventListener("keypress", OnKeyPress, false... |
textbox.setAttribute("style", "font-size: smaller"); gContextMenuNode.parentNode.removeChild(gContextMenuNode); | textbox.addEventListener("blur", ResetStructToolbar, true); | function StructChangeTag(){ var textbox = document.createElementNS(XUL_NS, "textbox"); textbox.setAttribute("value", gContextMenuNode.getAttribute("value")); textbox.setAttribute("size", 5); gContextMenuNode.parentNode.insertBefore(textbox, gContextMenuNode); textbox.addEventListener("keypress", OnKeyPress, false... |
function stylesheetFillPopup(forDocument, menuPopup, itemNoOptStyles) | function stylesheetFillPopup(menuPopup) | function stylesheetFillPopup(forDocument, menuPopup, itemNoOptStyles){ var children = menuPopup.childNodes; var i; for (i = 0; i < children.length; ++i) { var child = children[i]; if (child.getAttribute("class") == "authssmenuitem") menuPopup.removeChild(child); } var noOptionalStyles = true; var style... |
var children = menuPopup.childNodes; var i; for (i = 0; i < children.length; ++i) { var child = children[i]; if (child.getAttribute("class") == "authssmenuitem") menuPopup.removeChild(child); } | var itemNoOptStyles = menuPopup.firstChild; while (itemNoOptStyles.nextSibling) menuPopup.removeChild(itemNoOptStyles.nextSibling); | function stylesheetFillPopup(forDocument, menuPopup, itemNoOptStyles){ var children = menuPopup.childNodes; var i; for (i = 0; i < children.length; ++i) { var child = children[i]; if (child.getAttribute("class") == "authssmenuitem") menuPopup.removeChild(child); } var noOptionalStyles = true; var style... |
var styleSheets = forDocument.styleSheets; | var styleSheets = getAllStyleSheets(window._content); | function stylesheetFillPopup(forDocument, menuPopup, itemNoOptStyles){ var children = menuPopup.childNodes; var i; for (i = 0; i < children.length; ++i) { var child = children[i]; if (child.getAttribute("class") == "authssmenuitem") menuPopup.removeChild(child); } var noOptionalStyles = true; var style... |
for (i = 0; i < styleSheets.length; ++i) { | for (var i = 0; i < styleSheets.length; ++i) { | function stylesheetFillPopup(forDocument, menuPopup, itemNoOptStyles){ var children = menuPopup.childNodes; var i; for (i = 0; i < children.length; ++i) { var child = children[i]; if (child.getAttribute("class") == "authssmenuitem") menuPopup.removeChild(child); } var noOptionalStyles = true; var style... |
var menuItem = document.createElement("menuitem"); | var menuItem = itemNoOptStyles.cloneNode(false); | function stylesheetFillPopup(forDocument, menuPopup, itemNoOptStyles){ var children = menuPopup.childNodes; var i; for (i = 0; i < children.length; ++i) { var child = children[i]; if (child.getAttribute("class") == "authssmenuitem") menuPopup.removeChild(child); } var noOptionalStyles = true; var style... |
menuItem.setAttribute("type", "radio"); | function stylesheetFillPopup(forDocument, menuPopup, itemNoOptStyles){ var children = menuPopup.childNodes; var i; for (i = 0; i < children.length; ++i) { var child = children[i]; if (child.getAttribute("class") == "authssmenuitem") menuPopup.removeChild(child); } var noOptionalStyles = true; var style... | |
menuItem.setAttribute("class", "authssmenuitem"); menuItem.setAttribute("name", "authorstyle"); menuItem.setAttribute("oncommand", "stylesheetSwitch(_content.document, this.getAttribute('data'))"); | function stylesheetFillPopup(forDocument, menuPopup, itemNoOptStyles){ var children = menuPopup.childNodes; var i; for (i = 0; i < children.length; ++i) { var child = children[i]; if (child.getAttribute("class") == "authssmenuitem") menuPopup.removeChild(child); } var noOptionalStyles = true; var style... | |
function stylesheetFillPopup(forDocument, menuPopup, itemNoOptStyles) | function stylesheetFillPopup(menuPopup) | function stylesheetFillPopup(forDocument, menuPopup, itemNoOptStyles){ var children = menuPopup.childNodes; var i; for (i = 0; i < children.length; ++i) { var child = children[i]; if (child.getAttribute("class") == "authssmenuitem") menuPopup.removeChild(child); } var noOptionalStyles = true; var style... |
var children = menuPopup.childNodes; var i; for (i = 0; i < children.length; ++i) { var child = children[i]; if (child.getAttribute("class") == "authssmenuitem") menuPopup.removeChild(child); } | var itemNoOptStyles = menuPopup.firstChild; while (itemNoOptStyles.nextSibling) menuPopup.removeChild(itemNoOptStyles.nextSibling); | function stylesheetFillPopup(forDocument, menuPopup, itemNoOptStyles){ var children = menuPopup.childNodes; var i; for (i = 0; i < children.length; ++i) { var child = children[i]; if (child.getAttribute("class") == "authssmenuitem") menuPopup.removeChild(child); } var noOptionalStyles = true; var style... |
var styleSheets = forDocument.styleSheets; | var styleSheets = getAllStyleSheets(window._content); | function stylesheetFillPopup(forDocument, menuPopup, itemNoOptStyles){ var children = menuPopup.childNodes; var i; for (i = 0; i < children.length; ++i) { var child = children[i]; if (child.getAttribute("class") == "authssmenuitem") menuPopup.removeChild(child); } var noOptionalStyles = true; var style... |
for (i = 0; i < styleSheets.length; ++i) { | for (var i = 0; i < styleSheets.length; ++i) { | function stylesheetFillPopup(forDocument, menuPopup, itemNoOptStyles){ var children = menuPopup.childNodes; var i; for (i = 0; i < children.length; ++i) { var child = children[i]; if (child.getAttribute("class") == "authssmenuitem") menuPopup.removeChild(child); } var noOptionalStyles = true; var style... |
var menuItem = document.createElement("menuitem"); | var menuItem = itemNoOptStyles.cloneNode(false); | function stylesheetFillPopup(forDocument, menuPopup, itemNoOptStyles){ var children = menuPopup.childNodes; var i; for (i = 0; i < children.length; ++i) { var child = children[i]; if (child.getAttribute("class") == "authssmenuitem") menuPopup.removeChild(child); } var noOptionalStyles = true; var style... |
menuItem.setAttribute("type", "radio"); | function stylesheetFillPopup(forDocument, menuPopup, itemNoOptStyles){ var children = menuPopup.childNodes; var i; for (i = 0; i < children.length; ++i) { var child = children[i]; if (child.getAttribute("class") == "authssmenuitem") menuPopup.removeChild(child); } var noOptionalStyles = true; var style... | |
menuItem.setAttribute("class", "authssmenuitem"); menuItem.setAttribute("name", "authorstyle"); menuItem.setAttribute("oncommand", "stylesheetSwitch(_content.document, this.getAttribute('data'))"); | function stylesheetFillPopup(forDocument, menuPopup, itemNoOptStyles){ var children = menuPopup.childNodes; var i; for (i = 0; i < children.length; ++i) { var child = children[i]; if (child.getAttribute("class") == "authssmenuitem") menuPopup.removeChild(child); } var noOptionalStyles = true; var style... | |
lastWithSameTitle.setAttribute("checked", false); | lastWithSameTitle.removeAttribute("checked"); | function stylesheetFillPopup(forDocument, menuPopup, itemNoOptStyles){ var children = menuPopup.childNodes; var i; for (i = 0; i < children.length; ++i) { var child = children[i]; if (child.getAttribute("class") == "authssmenuitem") menuPopup.removeChild(child); } var noOptionalStyles = true; var style... |
var menuItem = itemNoOptStyles.cloneNode(false); | var menuItem = document.createElement("menuitem"); menuItem.setAttribute("type", "radio"); | function stylesheetFillPopup(menuPopup){ var itemNoOptStyles = menuPopup.firstChild; while (itemNoOptStyles.nextSibling) menuPopup.removeChild(itemNoOptStyles.nextSibling); var noOptionalStyles = true; var styleSheets = getAllStyleSheets(window._content); var currentStyleSheets = []; for (var i = 0; i < styleS... |
menuItem.setAttribute("value", currentStyleSheet.title); | menuItem.setAttribute("label", currentStyleSheet.title); | function stylesheetFillPopup(forDocument, menuPopup, itemNoOptStyles){ var children = menuPopup.childNodes; var i; for (i = 0; i < children.length; ++i) { var child = children[i]; if (child.getAttribute("class") == "authssmenuitem") menuPopup.removeChild(child); } var noOptionalStyles = true; var style... |
var styleSheets = getAllStyleSheets(window._content); | var styleSheets = getAllStyleSheets(window.content); | function stylesheetFillPopup(menuPopup){ var itemNoOptStyles = menuPopup.firstChild; while (itemNoOptStyles.nextSibling) menuPopup.removeChild(itemNoOptStyles.nextSibling); var noOptionalStyles = true; var styleSheets = getAllStyleSheets(window._content); var currentStyleSheets = []; for (var i = 0; i < styleS... |
var folder = GetMsgFolderFromUri(serverURI); | var folder = GetMsgFolderFromUri(serverURI, true); | function SubscribeOKCallback(changeTable){ for (var serverURI in changeTable) { var folder = GetMsgFolderFromUri(serverURI); var server = folder.server; var subscribableServer = server.QueryInterface(Components.interfaces.nsISubscribableServer); for (var name in changeTable[serverURI]) { ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.