rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
if (startpage == "chrome: { pref.clearUserPref("mailnews.start_page.url"); startpage = pref.getComplexValue("mailnews.start_page.url", Components.interfaces.nsIPrefLocalizedString).data; } | function loadStartPage() { try { gMessageNotificationBar.clearMsgNotifications(); var startpageenabled = pref.getBoolPref("mailnews.start_page.enabled"); if (startpageenabled) { var startpage = pref.getComplexValue("mailnews.start_page.url", Components.interfaces.nsIPrefLocalizedString).data; ... | |
startpageenabled= pref.GetBoolPref("mailnews.start_page.enabled"); | var startpageenabled= pref.GetBoolPref("mailnews.start_page.enabled"); | function loadStartPage() { try { startpageenabled= pref.GetBoolPref("mailnews.start_page.enabled"); if (startpageenabled) { startpage = pref.CopyCharPref("mailnews.start_page.url"); if (startpage != "") { window.frames["messagepane"].location = startpage; dump("st... |
startpage = pref.CopyCharPref("mailnews.start_page.url"); | var startpage = pref.CopyCharPref("mailnews.start_page.url"); | function loadStartPage() { try { startpageenabled= pref.GetBoolPref("mailnews.start_page.enabled"); if (startpageenabled) { startpage = pref.CopyCharPref("mailnews.start_page.url"); if (startpage != "") { window.frames["messagepane"].location = startpage; dump("st... |
messenger.loadURL(window, url); | messenger.loadExternalURL(window, url); | function loadThrobberUrl(urlPref){ var url; try { url = gPrefs.getComplexValue(urlPref, Components.interfaces.nsIPrefLocalizedString).data; messenger.loadURL(window, url); } catch (ex) {}} |
getWebNavigation().loadURI(uri, nsIWebNavigation.LOAD_FLAGS_NONE, referrer, null, null); | getBrowser().loadURI(uri, referrer); | function loadURI(uri, referrer){ try { getWebNavigation().loadURI(uri, nsIWebNavigation.LOAD_FLAGS_NONE, referrer, null, null); } catch (e) { }} |
var appCore = getNavigatorWindowAppCore(); if (appCore) appCore.loadUrl(url); else { var navWindow = getNavigatorWindow(true); navWindow._content.location.href = url; } | var navigatorWindow = getNavigatorWindow(true); navigatorWindow.loadURI(url); | function loadURLInContent(url){ var appCore = getNavigatorWindowAppCore(); if (appCore) appCore.loadUrl(url); else { var navWindow = getNavigatorWindow(true); navWindow._content.location.href = url; }} |
var userInputFile = document.setupPlugin.GetCurrentProfileDirectory(); | userInputFile = currentProfileDirectory; | function loadUserInput(){ netscape.security.PrivilegeManager.enablePrivilege("AccountSetup"); if (document.vars.inited.value != "yes") { document.vars.inited.value = "yes"; var cookieWarning = navigator.preference("network.cookie.warnAboutCookies"); if (cookieWarning == true) { document.vars.cookieWarning.value = ... |
gLoadPlaceHolder = false; | function loadWebPanel(aURI) { try { document.getElementById('webpanels-browser').webNavigation.loadURI(aURI, nsIWebNavigation.LOAD_FLAGS_NONE, null, null, null); } catch (e) {}} | |
this.localFile.initWithUnicodePath(file); | this.localFile.initWithPath(file); | function LocalFile(file, mode, perms, tmp){ const classes = Components.classes; const interfaces = Components.interfaces; const LOCALFILE_CTRID = "@mozilla.org/file/local;1"; const FILEIN_CTRID = "@mozilla.org/network/file-input-stream;1"; const FILEOUT_CTRID = "@mozilla.org/network/file-output-stream;1"... |
this.outputStream.init(this.localFile, mode, perms); | this.outputStream.init(this.localFile, mode, perms, 0); | function LocalFile(file, mode, perms, tmp){ const classes = Components.classes; const interfaces = Components.interfaces; const LOCALFILE_CTRID = "@mozilla.org/file/local;1"; const FILEIN_CTRID = "@mozilla.org/network/file-input-stream;1"; const FILEOUT_CTRID = "@mozilla.org/network/file-output-stream;1"... |
var navigatorData = gData.navigatorData; var homePage = document.getElementById("browserStartupHomepage"); navigatorData.homePages = [ homePage.value ]; | function locationInputHandler(){ updateHomePageButtons();} | |
"accessingServerFailedError.text", [uri.hostPort], 1 ), | "accessingServerFailedError.text", [sessionUri.hostPort], 1 ), | login_: function( sessionUri, user, pw ) { if (this.m_sessionId != null) { this.logout(); } var str; var icalRootComp = null; try { // currently, xml parsing at an early stage during process startup // does not work reliably, so use libical p... |
this.m_loginUser = null; this.m_loginPW = null; | logout: function() { this.log("logout"); this.m_calPropsTimer.cancel(); // stop any timed calprops getters this.asyncQueue.reset(); // stop any queued actions if (this.m_sessionId) { this.log( "attempting to log out..." ); // although io service's offl... | |
this.m_defaultCalId = null; | logout: function() { if (this.m_sessionId != null) { // although io service's offline flag is already // set BEFORE notification (about to go offline, nsIOService.cpp). // WTF. var url = (this.sessionUri.spec + "logout.wcap?fmt-out=text%... | |
if (!view.displayCalendar) { | if (!view.initialized) { | function ltnMinimonthPick(minimonth){ if (gMiniMonthLoading) return; var jsDate = minimonth.value; var cdt = new CalDateTime(); cdt.year = jsDate.getFullYear(); cdt.month = jsDate.getMonth(); cdt.day = jsDate.getDate(); cdt.isDate = true; if (document.getElementById("displayDeck").selecte... |
document.getElementById("ltnDateTextPicker").value = jsDate; | function ltnMinimonthPick(minimonth){ if (gMiniMonthLoading) return; var jsDate = minimonth.value; var cdt = new CalDateTime(); cdt.year = jsDate.getFullYear(); cdt.month = jsDate.getMonth(); cdt.day = jsDate.getDate(); cdt.isDate = true; if (document.getElementById("displayDeck").selecte... | |
showCalenadrView('month'); | showCalendarView('month'); | function ltnMinimonthPick(minimonth){ if (gMiniMonthLoading) return; var cdt = new CalDateTime(); cdt.jsDate = minimonth.value; cdt = cdt.getInTimezone(calendarDefaultTimezone()); cdt.isDate = true; if (document.getElementById("displayDeck").selectedPanel != document.getElementById("cal... |
.addEventListener("dayselect", ltnObserveViewDaySelect, false); | .addEventListener("dayselect", observeViewDaySelect, false); | function ltnOnLoad(event){ gMiniMonthLoading = true; var today = new Date(); var nextmo = nextMonth(today); document.getElementById("ltnMinimonth").value = today; gMiniMonthLoading = false; // nuke the onload, or we get called every time there's // any load that occurs document.removeEventListen... |
currentCalendar = ltnSelectedCalendar(); openDialog("chrome: | publishEntireCalendar(ltnSelectedCalendar()); | function ltnPublishCalendar(){ currentCalendar = ltnSelectedCalendar(); openDialog("chrome://calendar/content/calendar-publish-dialog.xul", "caPublishEvents", "chrome,titlebar,modal", currentCalendar);} |
document.getElementById("calendarTree").view.selection.select(0); | var index = getIndexForCalendar(getCompositeCalendar().defaultCalendar); var indexToSelect = (index != - 1) ? index : 0; document.getElementById("calendarTree").view.selection.select(indexToSelect); | function ltnSetTreeView(){ document.getElementById("calendarTree").view = ltnCalendarTreeView; // Ensure that a calendar is selected in calendar tree after startup. if (document.getElementById("calendarTree").currentIndex == -1) { document.getElementById("calendarTree").view.selection.select(0); }} |
return true; | return false; | function MailCheckBeforeOfflineChange(){ var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var goingOnline = ioService.offline; var bundle = srGetStrBundle("chrome://communicator/locale/utilityOverlay.properties");// m... |
return true; | function MailCheckBeforeOfflineChange(){ var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var goingOnline = ioService.offline; var bundle = srGetStrBundle("chrome://communicator/locale/utilityOverlay.properties");// m... | |
if (prefBranch && prefBranch.prefIsLocked("defaultMailClient")) { if (prefBranch.getBoolPref("defaultMailClient")) | if (prefBranch && prefBranch.prefIsLocked("default_mail_client")) { if (prefBranch.getBoolPref("default_mail_client")) | function mailnewsOverlayInit() { try { var mapiRegistry = Components.classes[ "@mozilla.org/mapiregistry;1" ]. getService( Components.interfaces.nsIMapiRegistry ); } catch(ex){ mapiRegistry = null; } const prefbase = "system.windows.lock_ui."; var mailnewsEnableMapi = d... |
if (prefBranch && prefBranch.prefIsLocked("default_mail_client")) { if (prefBranch.getBoolPref("default_mail_client")) mapiRegistry.setDefaultMailClient(); else mapiRegistry.unsetDefaultMailClient(); | if (prefBranch && prefBranch.prefIsLocked("defaultMailClient")) { mapiRegistry.isDefaultMailClient = prefBranch.getBoolPref("defaultMailClient") ; | function mailnewsOverlayInit() { try { var mapiRegistry = Components.classes[ "@mozilla.org/mapiregistry;1" ]. getService( Components.interfaces.nsIMapiRegistry ); } catch(ex){ mapiRegistry = null; } const prefbase = "system.windows.lock_ui."; var mailnewsEnableMapi = d... |
mailnewsEnableMapi.removeAttribute("checked"); | mailnewsEnableMapi.setAttribute("checked", "false"); | function mailnewsOverlayInit() { try { var mapiRegistry = Components.classes[ "@mozilla.org/mapiregistry;1" ]. getService( Components.interfaces.nsIMapiRegistry ); } catch(ex){ mapiRegistry = null; } const prefbase = "system.windows.lock_ui."; var mailnewsEnableMapi = d... |
if ( mailToList ) | params = Components.classes["@mozilla.org/messengercompose/composeparams;1"].createInstance(Components.interfaces.nsIMsgComposeParams); if (params) | mailTo: function(mailToList) { dump("mailto(" + mailToList + ")\n"); var msgComposeService = Components.classes["@mozilla.org/messengercompose;1"].getService(); msgComposeService = msgComposeService.QueryInterface(Components.interfaces.nsIMsgComposeService); if ( !msgComposeService ) ... |
msgComposeService.OpenComposeWindowWithValues(null, Components.interfaces.nsIMsgCompType.New, Components.interfaces.nsIMsgCompFormat.Default, mailToList, null, null, null, null, null, null, null); } else | params.type = Components.interfaces.nsIMsgCompType.New; params.format = Components.interfaces.nsIMsgCompFormat.Default; composeFields = Components.classes["@mozilla.org/messengercompose/composefields;1"].createInstance(Components.interfaces.nsIMsgCompFields); if (composeFields) | mailTo: function(mailToList) { dump("mailto(" + mailToList + ")\n"); var msgComposeService = Components.classes["@mozilla.org/messengercompose;1"].getService(); msgComposeService = msgComposeService.QueryInterface(Components.interfaces.nsIMsgComposeService); if ( !msgComposeService ) ... |
msgComposeService.OpenComposeWindow(null, null, Components.interfaces.nsIMsgCompType.New, Components.interfaces.nsIMsgCompFormat.Default, null, null); | if (mailToList) params.composeFields = composeFields; msgComposeService.OpenComposeWindowWithParams(null, params); } | mailTo: function(mailToList) { dump("mailto(" + mailToList + ")\n"); var msgComposeService = Components.classes["@mozilla.org/messengercompose;1"].getService(); msgComposeService = msgComposeService.QueryInterface(Components.interfaces.nsIMsgComposeService); if ( !msgComposeService ) ... |
if (document.getElementById("mailviews-container")) viewPickerOnLoad(); gSearchInput = null; if (document.getElementById("search-container")) GetSearchInput(); | function MailToolboxCustomizeDone(aToolboxChanged){ // Update global UI elements that may have been added or removed // Re-enable parts of the UI we disabled during the dialog var menubar = document.getElementById("mail-menubar"); for (var i = 0; i < menubar.childNodes.length; ++i) menubar.childNodes[i].setAttri... | |
if ("onOkCallback" in args) gOkCallback = window.arguments[0].onOkCallback; if ("onCancelCallback" in args) gCancelCallback = window.arguments[0].onCancelCallback; | if ("onCloseCallback" in args) gCloseCallback = window.arguments[0].onCloseCallback; | function mailViewListOnLoad(){ gMailListView = Components.classes["@mozilla.org/messenger/mailviewlist;1"].getService(Components.interfaces.nsIMsgMailViewList);; gListBox = document.getElementById('mailViewList'); if ("arguments" in window && window.arguments[0]) { var args = window.arguments[0]; if ("onOkC... |
doSetOKCancel(onOK, onCancel); | function mailViewListOnLoad(){ gMailListView = Components.classes["@mozilla.org/messenger/mailviewlist;1"].getService(Components.interfaces.nsIMsgMailViewList);; gListBox = document.getElementById('mailViewList'); if ("arguments" in window && window.arguments[0]) { var args = window.arguments[0]; if ("onOkC... | |
client.eventPump.stepEvents(); setTimeout ("mainStep()", client.STEP_TIMEOUT); | try { var count = client.eventPump.stepEvents(); if (count > 0) setTimeout("mainStep()", client.STEP_TIMEOUT); else setTimeout("mainStep()", client.STEP_TIMEOUT / 5); } catch(ex) { dd("Exception in mainStep!"); dd(formatException(ex)); setTimeout("mainStep()", client.STEP_TIMEOUT); } | function mainStep(){ client.eventPump.stepEvents(); setTimeout ("mainStep()", client.STEP_TIMEOUT);} |
var docUri = IOService.newURI(docUrl, null); | var docUri = IOService.newURI(docUrl, null, null); | function MakeAbsoluteUrl(url){ var resultUrl = TrimString(url); if (!resultUrl) return resultUrl; // Check if URL is already absolute, i.e., it has a scheme var urlScheme = GetScheme(resultUrl); if (urlScheme) return resultUrl; var docUrl = GetDocumentBaseUrl(); var docScheme = GetScheme(docUrl); // Can't... |
log ("got ds:", ds.firstTime, ds.lastTime, ds.data.length); | log ("got ds: (", module.id, ")", ds.firstTime, ds.lastTime, ds.data.length); | var makeCallback = function (module) { return function (testid, ds) { try { ds.color = module.color; if (baselineDataSet) ds = ds.createRelativeTo(baselineDataSet); log ("got ds:", ds.firstTime, ds.lastTime... |
graphModule.average) | module.average) | var makeCallback = function (module) { return function (testid, ds) { try { ds.color = module.color; if (baselineDataSet) ds = ds.createRelativeTo(baselineDataSet); log ("got ds:", ds.firstTime, ds.lastTime... |
log ("got avgds:", avgds.firstTime, avgds.lastTime, avgds.data.length); | log ("got avgds: (", module.id, ")", avgds.firstTime, avgds.lastTime, avgds.data.length); | var makeCallback = function (module) { return function (testid, ds) { try { ds.color = module.color; if (baselineDataSet) ds = ds.createRelativeTo(baselineDataSet); log ("got ds:", ds.firstTime, ds.lastTime... |
var lastModified; | function makeDocument(page, root){ var title = page.title; var url = page.URL; var lastModified; var lastMod = page.lastModified // get string of last modified date var lastModdate = Date.parse(lastMod) // convert modified string to date var lastModified; if (lastModdate) { var date = new Date(lastModdate... | |
var url = theDocument.location; document.getElementById("urltext").value = url; | var url = theDocument.location.toString(); setItemValue("urltext", url, gStrings.unknown); | function makeGeneralTab(){ var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); document.getElementById("titletext").value = title; var url = theDocument.location; document.getElementById("urltext").value = url; var mode = ("compatMo... |
var referrer = ("referrer" in theDocument && theDocument.referrer) || theBundle.getString("generalNoReferrer"); document.getElementById('refertext').value = referrer; | var referrer = ("referrer" in theDocument && theDocument.referrer); setItemValue("refertext", referrer); | function makeGeneralTab(){ var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); document.getElementById("titletext").value = title; var url = theDocument.location; document.getElementById("urltext").value = url; var mode = ("compatMo... |
var mimeType = theDocument.contentType || gStrings.unknown; document.getElementById("typetext").value = mimeType; | var mimeType = theDocument.contentType; setItemValue("typetext", mimeType, gStrings.unknown); | function makeGeneralTab(){ var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); document.getElementById("titletext").value = title; var url = theDocument.location; document.getElementById("urltext").value = url; var mode = ("compatMo... |
var sourceText = theBundle.getString("generalNotCached"); var expirationText = theBundle.getString("generalNoExpiration"); var sizeText = gStrings.unknown; | var sourceText; var expirationText; var sizeText; | function makeGeneralTab(){ var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); document.getElementById("titletext").value = title; var url = theDocument.location; document.getElementById("urltext").value = url; var mode = ("compatMo... |
var cacheEntryDescriptor = httpCacheSession.openCacheEntry(url, Components.interfaces.nsICache.ACCESS_READ, false); | var cacheEntryDescriptor = httpCacheSession.openCacheEntry(cacheKey, Components.interfaces.nsICache.ACCESS_READ, false); | function makeGeneralTab(){ var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); document.getElementById("titletext").value = title; var url = theDocument.location; document.getElementById("urltext").value = url; var mode = ("compatMo... |
pageSize = cacheEntryDescriptor.dataSize; kbSize = pageSize / 1024; sizeText = theBundle.getFormattedString("generalSize", [Math.round(kbSize*100)/100, pageSize]); expirationText = formatDate(cacheEntryDescriptor.expirationTime*1000, gStrings.notSet); | function makeGeneralTab(){ var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); document.getElementById("titletext").value = title; var url = theDocument.location; document.getElementById("urltext").value = url; var mode = ("compatMo... | |
cacheEntryDescriptor = ftpCacheSession.openCacheEntry(url, Components.interfaces.nsICache.ACCESS_READ, false); | cacheEntryDescriptor = ftpCacheSession.openCacheEntry(cacheKey, Components.interfaces.nsICache.ACCESS_READ, false); | function makeGeneralTab(){ var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); document.getElementById("titletext").value = title; var url = theDocument.location; document.getElementById("urltext").value = url; var mode = ("compatMo... |
sourceText = theBundle.getString("generalNotCached"); | function makeGeneralTab(){ var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); document.getElementById("titletext").value = title; var url = theDocument.location; document.getElementById("urltext").value = url; var mode = ("compatMo... | |
document.getElementById("sourcetext").value = sourceText; document.getElementById("expirestext").value = expirationText; document.getElementById("sizetext").value = sizeText; | if (cacheEntryDescriptor) { pageSize = cacheEntryDescriptor.dataSize; kbSize = pageSize / 1024; sizeText = theBundle.getFormattedString("generalSize", [formatNumber(Math.round(kbSize*100)/100), formatNumber(pageSize)]); expirationText = formatDate(cacheEntryDescriptor.expirationTime*kmsPerSec, gStrings.notSet); } set... | function makeGeneralTab(){ var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); document.getElementById("titletext").value = title; var url = theDocument.location; document.getElementById("urltext").value = url; var mode = ("compatMo... |
metaView.rowCountChanged(0, length); | function makeGeneralTab(){ var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); document.getElementById("titletext").value = title; var url = theDocument.location; document.getElementById("urltext").value = url; var mode = ("compatMo... | |
var referrer = (theDocument.referrer) ? theDocument.referrer : theBundle.getString("generalNoReferrer"); | var referrer = ("referrer" in theDocument && theDocument.referrer) || theBundle.getString("generalNoReferrer"); | function makeGeneralTab(){ var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); document.getElementById("titletext").value = title; var url = theDocument.location; document.getElementById("urltext").value = url; var mode = ("compatMo... |
var url = theDocument.location; document.getElementById("urltext").value = url; | var url = theDocument.location.toString(); setItemValue("urltext", url, gStrings.unknown); | function makeGeneralTab(){ var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); document.getElementById("titletext").value = title; var url = theDocument.location; document.getElementById("urltext").value = url; var mode = ("compatMo... |
var referrer = ("referrer" in theDocument && theDocument.referrer) || theBundle.getString("generalNoReferrer"); document.getElementById('refertext').value = referrer; | var referrer = ("referrer" in theDocument && theDocument.referrer); setItemValue("refertext", referrer); | function makeGeneralTab(){ var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); document.getElementById("titletext").value = title; var url = theDocument.location; document.getElementById("urltext").value = url; var mode = ("compatMo... |
var mimeType = theDocument.contentType || gStrings.unknown; document.getElementById("typetext").value = mimeType; | var mimeType = theDocument.contentType; setItemValue("typetext", mimeType, gStrings.unknown); | function makeGeneralTab(){ var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); document.getElementById("titletext").value = title; var url = theDocument.location; document.getElementById("urltext").value = url; var mode = ("compatMo... |
var sourceText = theBundle.getString("generalNotCached"); var expirationText = theBundle.getString("generalNoExpiration"); var sizeText = gStrings.unknown; | var sourceText; var expirationText; var sizeText; | function makeGeneralTab(){ var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); document.getElementById("titletext").value = title; var url = theDocument.location; document.getElementById("urltext").value = url; var mode = ("compatMo... |
var cacheEntryDescriptor = httpCacheSession.openCacheEntry(url, Components.interfaces.nsICache.ACCESS_READ, false); | var cacheEntryDescriptor = httpCacheSession.openCacheEntry(cacheKey, Components.interfaces.nsICache.ACCESS_READ, false); | function makeGeneralTab(){ var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); document.getElementById("titletext").value = title; var url = theDocument.location; document.getElementById("urltext").value = url; var mode = ("compatMo... |
pageSize = cacheEntryDescriptor.dataSize; kbSize = pageSize / 1024; sizeText = theBundle.getFormattedString("generalSize", [Math.round(kbSize*100)/100, pageSize]); expirationText = formatDate(cacheEntryDescriptor.expirationTime*1000, gStrings.notSet); | function makeGeneralTab(){ var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); document.getElementById("titletext").value = title; var url = theDocument.location; document.getElementById("urltext").value = url; var mode = ("compatMo... | |
cacheEntryDescriptor = ftpCacheSession.openCacheEntry(url, Components.interfaces.nsICache.ACCESS_READ, false); | cacheEntryDescriptor = ftpCacheSession.openCacheEntry(cacheKey, Components.interfaces.nsICache.ACCESS_READ, false); | function makeGeneralTab(){ var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); document.getElementById("titletext").value = title; var url = theDocument.location; document.getElementById("urltext").value = url; var mode = ("compatMo... |
sourceText = theBundle.getString("generalNotCached"); | function makeGeneralTab(){ var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); document.getElementById("titletext").value = title; var url = theDocument.location; document.getElementById("urltext").value = url; var mode = ("compatMo... | |
document.getElementById("sourcetext").value = sourceText; document.getElementById("expirestext").value = expirationText; document.getElementById("sizetext").value = sizeText; | if (cacheEntryDescriptor) { pageSize = cacheEntryDescriptor.dataSize; kbSize = pageSize / 1024; sizeText = theBundle.getFormattedString("generalSize", [formatNumber(Math.round(kbSize*100)/100), formatNumber(pageSize)]); expirationText = formatDate(cacheEntryDescriptor.expirationTime*kmsPerSec, gStrings.notSet); } set... | function makeGeneralTab(){ var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); document.getElementById("titletext").value = title; var url = theDocument.location; document.getElementById("urltext").value = url; var mode = ("compatMo... |
var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); | function makeGeneralTab(){ var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); do... | |
var mimeType = theDocument.contentType || unknown; | var mimeType = theDocument.contentType || gStrings.unknown; | function makeGeneralTab(){ var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); do... |
var metaView = new pageInfoTreeView(["meta-name","meta-content"], COPYCOL_META_CONTENT); | function makeGeneralTab(){ var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); do... | |
{ | function makeGeneralTab(){ var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); do... | |
} | function makeGeneralTab(){ var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); do... | |
var modifiedText = formatDate(theDocument.lastModified, notSet); | var modifiedText = formatDate(theDocument.lastModified, gStrings.notSet); | function makeGeneralTab(){ var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); do... |
var sizeText = unknown; | var sizeText = gStrings.unknown; | function makeGeneralTab(){ var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); do... |
expirationText = formatDate(cacheEntryDescriptor.expirationTime*1000, notSet); | expirationText = formatDate(cacheEntryDescriptor.expirationTime*1000, gStrings.notSet); | function makeGeneralTab(){ var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle"); do... |
if (this.mOrganizer) this.mOrganizer.makeImmutable(); | makeItemBaseImmutable: function() { // make all our components immutable this.mCreationDate.makeImmutable(); if (this.mRecurrenceInfo) this.mRecurrenceInfo.makeImmutable(); if (this.mAlarmTime) this.mAlarmTime.makeImmutable(); for (var i = 0; i < this.mAttend... | |
for (var i = 0; i < this.mAttendees.length; i++) this.mAttendees[i].makeImmutable(); | if (this.mAttendees) { for (var i = 0; i < this.mAttendees.length; i++) this.mAttendees[i].makeImmutable(); } | makeItemBaseImmutable: function() { if (this.mImmutable) throw Components.results.NS_ERROR_OBJECT_IS_IMMUTABLE; // make all our components immutable if (this.mRecurrenceInfo) this.mRecurrenceInfo.makeImmutable(); if (this.mOrganizer) this.mOrganizer.makeI... |
if (this.mAlarmTime) this.mAlarmTime.makeImmutable(); | makeItemBaseImmutable: function() { if (this.mImmutable) throw Components.results.NS_ERROR_OBJECT_IS_IMMUTABLE; // make all our components immutable if (this.mRecurrenceInfo) this.mRecurrenceInfo.makeImmutable(); if (this.mAlarmTime) this.mAlarmTime.makeI... | |
if (this.alarmOffset) { this.alarmOffset.makeImmutable(); if (this.alarmLastAck) { this.alarmLastAck.makeImmutable(); } } | makeItemBaseImmutable: function() { if (this.mImmutable) throw Components.results.NS_ERROR_OBJECT_IS_IMMUTABLE; // make all our components immutable if (this.mRecurrenceInfo) this.mRecurrenceInfo.makeImmutable(); if (this.mAlarmTime) this.mAlarmTime.makeI... | |
linkView.AddRow([++linkIndex, linktext, elem.href, linkX, ""]); | linkView.addRow([++linkIndex, linktext, elem.href, linkX, ""]); | function makeLinkTab(){ //var start = new Date(); var theBundle = document.getElementById("pageinfobundle"); var linkTree = document.getElementById("linktree"); var linkView = new pageInfoTreeView(["link-number","link-name","link-address","link-type"], COPYCOL_LINK_ADDRESS); linkTree.treeBoxObject.view = linkView;... |
break; case "input": imageView.addRow([++imageIndex, elem.src, mediaInput]); | function makeMediaTab(){ var theBundle = document.getElementById("pageinfobundle"); var imageOutliner = document.getElementById("imageoutliner"); var imageView = new pageInfoOutlinerView(["image-number","image-address","image-type"]); imageOutliner.outlinerBoxObject.view = imageView; imageList = grabAllMedia(theWi... | |
function makeName(type, num) { return 'calBackupData_'+psuedoID+'_'+type+num.toString()+'.ics'; | function makeName(type) { return 'calBackupData_'+pseudoID+'_'+type+'.ics'; | function makeName(type, num) { return 'calBackupData_'+psuedoID+'_'+type+num.toString()+'.ics'; } |
if (item.nodeName.toLowerCase() == "link") | var nn = item.nodeName.toLowerCase(); if (nn == "link" || nn == "input") | function makePreview(item){ var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); var url = ("src" in item && item.src) || ("code" in item && item.code) || ("data" in item && item.data) || ("href" in item && item.href) ||... |
newImage = document.createElementNS("http: newImage.src = getAbsoluteURL(item.href, item); | newImage = new Image(); newImage.src = getAbsoluteURL(item.href || item.src, item); | function makePreview(item){ var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); var url = ("src" in item && item.src) || ("code" in item && item.code) || ("data" in item && item.data) || ("href" in item && item.href) ||... |
newImage.width = ("width" in item && item.width) || unknown; newImage.height = ("height" in item && item.height) || unknown; | if ("width" in item && item.width) newImage.width = item.width; if ("height" in item && item.height) newImage.height = item.height; | function makePreview(item){ var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); var url = ("src" in item && item.src) || ("code" in item && item.code) || ("data" in item && item.data) || ("href" in item && item.href) ||... |
var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); var emptyString = theBundle.getString("emptystring"); var url = ("src" in item && item.src) || ("code" in item && item.code) || ("data" in item && item.data) || ("href" i... | var url = ("src" in item && item.src) || ("code" in item && item.code) || ("data" in item && item.data) || ("href" in item && item.href) || gStrings.unknown; | function makePreview(item){ var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); var emptyString = theBundle.getString("emptystring"); var url = ("src" in item && item.src) || ("code" in item && item.code) || ("data" in... |
document.getElementById("imagetitletext").value = item.title || notSet; | document.getElementById("imagetitletext").value = item.title || gStrings.notSet; | function makePreview(item){ var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); var emptyString = theBundle.getString("emptystring"); var url = ("src" in item && item.src) || ("code" in item && item.code) || ("data" in... |
altText = notSet; | altText = gStrings.notSet; | function makePreview(item){ var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); var emptyString = theBundle.getString("emptystring"); var url = ("src" in item && item.src) || ("code" in item && item.code) || ("data" in... |
textbox.value = emptyString; | textbox.value = gStrings.emptyString; | function makePreview(item){ var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); var emptyString = theBundle.getString("emptystring"); var url = ("src" in item && item.src) || ("code" in item && item.code) || ("data" in... |
document.getElementById("imagelongdesctext").value = ("longDesc" in item && item.longDesc) || notSet; | document.getElementById("imagelongdesctext").value = ("longDesc" in item && item.longDesc) || gStrings.notSet; | function makePreview(item){ var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); var emptyString = theBundle.getString("emptystring"); var url = ("src" in item && item.src) || ("code" in item && item.code) || ("data" in... |
var mimeType = unknown; | var mimeType = gStrings.unknown; | function makePreview(item){ var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); var emptyString = theBundle.getString("emptystring"); var url = ("src" in item && item.src) || ("code" in item && item.code) || ("data" in... |
mimeType = ("type" in item && item.type) || ("codeType" in item && item.codeType) || ("contentType" in item && item.contentType) || unknown; | mimeType = ("type" in item && item.type) || ("codeType" in item && item.codeType) || ("contentType" in item && item.contentType) || gStrings.unknown; | function makePreview(item){ var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); var emptyString = theBundle.getString("emptystring"); var url = ("src" in item && item.src) || ("code" in item && item.code) || ("data" in... |
var expirationText = theBundle.getString("unknown"); var sizeText = theBundle.getString("unknown"); | var expirationText = gStrings.unknown; var sizeText = gStrings.unknown; | function makePreview(item){ var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); var emptyString = theBundle.getString("emptystring"); var url = ("src" in item && item.src) || ("code" in item && item.code) || ("data" in... |
expirationText = formatDate(cacheEntryDescriptor.expirationTime*1000, notSet); | expirationText = formatDate(cacheEntryDescriptor.expirationTime*1000, gStrings.notSet); | function makePreview(item){ var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var notSet = theBundle.getString("notset"); var emptyString = theBundle.getString("emptystring"); var url = ("src" in item && item.src) || ("code" in item && item.code) || ("data" in... |
var meter = document.getElementById("piProgress"); meter.setAttribute("value", 1); setTimeout(doGrab, 1, iterator, meter, 0); | setTimeout(doGrab, 16, iterator); | function makeTabs(aDocument, aWindow){ if (aWindow && aWindow.frames.length > 0) { var num = aWindow.frames.length; for (var i = 0; i < num; i++) makeTabs(aWindow.frames[i].document, aWindow.frames[i]); // recurse through the frames } var formTree = document.getElementById("formtree"); var linkTree = d... |
if (formView.initialized || linkView.initialized || imageView.initialized) return; | function makeTabs(aDocument, aWindow){ if (formView.initialized || linkView.initialized || imageView.initialized) return; if (aWindow && aWindow.frames.length > 0) { var num = aWindow.frames.length; for (var i = 0; i < num; i++) makeTabs(aWindow.frames[i].document, aWindow.frames[i]); // recurse throu... | |
while (iterator.nextNode()) ; | function makeTabs(aDocument, aWindow){ if (formView.initialized || linkView.initialized || imageView.initialized) return; if (aWindow && aWindow.frames.length > 0) { var num = aWindow.frames.length; for (var i = 0; i < num; i++) makeTabs(aWindow.frames[i].document, aWindow.frames[i]); // recurse throu... | |
formView.rowCountChanged(0, formView.rowCount); formView.selection.select(0); formView.initialized = 1; | var meter = document.getElementById("piProgress"); | function makeTabs(aDocument, aWindow){ if (formView.initialized || linkView.initialized || imageView.initialized) return; if (aWindow && aWindow.frames.length > 0) { var num = aWindow.frames.length; for (var i = 0; i < num; i++) makeTabs(aWindow.frames[i].document, aWindow.frames[i]); // recurse throu... |
linkView.rowCountChanged(0, linkView.rowCount); linkView.selection.select(0); linkView.initialized = 1; | meter.setAttribute("value", 1); | function makeTabs(aDocument, aWindow){ if (formView.initialized || linkView.initialized || imageView.initialized) return; if (aWindow && aWindow.frames.length > 0) { var num = aWindow.frames.length; for (var i = 0; i < num; i++) makeTabs(aWindow.frames[i].document, aWindow.frames[i]); // recurse throu... |
imageView.rowCountChanged(0, imageView.rowCount); imageView.selection.select(0); imageView.initialized = 1; | setTimeout(doGrab, 1, iterator, meter, 0); | function makeTabs(aDocument, aWindow){ if (formView.initialized || linkView.initialized || imageView.initialized) return; if (aWindow && aWindow.frames.length > 0) { var num = aWindow.frames.length; for (var i = 0; i < num; i++) makeTabs(aWindow.frames[i].document, aWindow.frames[i]); // recurse throu... |
setTimeout(doGrab, 1, iterator); | setTimeout(doGrab, 16, iterator); | function makeTabs(aDocument, aWindow){ if (aWindow && aWindow.frames.length > 0) { var num = aWindow.frames.length; for (var i = 0; i < num; i++) makeTabs(aWindow.frames[i].document, aWindow.frames[i]); // recurse through the frames } var formTree = document.getElementById("formtree"); var linkTree = d... |
function makeURI(aURL, aOriginCharset) | function makeURI(aURL, aOriginCharset, aBaseURI) | function makeURI(aURL, aOriginCharset){ var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); return ioService.newURI(aURL, aOriginCharset, null);} |
return ioService.newURI(aURL, aOriginCharset, null); | return ioService.newURI(aURL, aOriginCharset, aBaseURI); | function makeURI(aURL, aOriginCharset){ var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); return ioService.newURI(aURL, aOriginCharset, null);} |
var baseURI = ioService.newURI(base, null); | var baseURI = ioService.newURI(base, null, null); | makeURLAbsolute : function ( base, url ) { // Construct nsIURL. var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var baseURI = ioService.newURI(base, null); return ioService.newURI(baseU... |
return ioService.newURI(baseURI.resolve(url), null).spec; | return ioService.newURI(baseURI.resolve(url), null, null).spec; | makeURLAbsolute : function ( base, url ) { // Construct nsIURL. var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var baseURI = ioService.newURI(base, null); return ioService.newURI(baseU... |
var baseURI = ioService.newURI(base, null); | var baseURI = ioService.newURI(base, null, null); | function makeURLAbsolute( base, url ) { // Construct nsIURL. var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var baseURI = ioService.newURI(base, null); return ioService.newURI(baseURI.resolve(url), null).spec; } |
return ioService.newURI(baseURI.resolve(url), null).spec; | return ioService.newURI(baseURI.resolve(url), null, null).spec; | function makeURLAbsolute( base, url ) { // Construct nsIURL. var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var baseURI = ioService.newURI(base, null); return ioService.newURI(baseURI.resolve(url), null).spec; } |
addAlarmNode( xmlDocument, eventNode, calendarEvent.alarmLength, calendarEvent.alarmUnits ); addRRuleNode( xmlDocument, eventNode ); | function makeXmlNode( xmlDocument, calendarEvent ){ // Adds a property node to a event node // do not add empty properties, valueType is optional var addPropertyNode = function( xmlDocument, eventNode, name, value, valueType ) { if(!value) return; var propertyNode = xmlDocument.createElement(... | |
var accountName = document.getElementById("server.prettyName").value; | function manageIdentities(){ // We want to save the current identity information before bringing up the multiple identities // UI. This ensures that the changes are reflected in the identity list dialog // onSave(); var accountName = document.getElementById("server.prettyName").value; var account = parent.getCurre... | |
var account = parent.getCurrentAccount(); | function manageIdentities(){ // We want to save the current identity information before bringing up the multiple identities // UI. This ensures that the changes are reflected in the identity list dialog // onSave(); var accountName = document.getElementById("server.prettyName").value; var account = parent.getCurre... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.