rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
args.eventSource = gEventSource;
function print(){ var args = new Object(); args.eventSource = gEventSource; args.selectedEvents = gCalendarWindow.EventSelection.selectedEvents ; args.selectedDate=gNewDateVariable = gCalendarWindow.getSelectedDate(); var Offset = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, ...
var ccalendar = getDisplayComposite();
var ccalendar = getCompositeCalendar();
function printCalendar() { var ccalendar = getDisplayComposite(); var start; var end; var eventList; var listener = { mEventArray: new Array(), onOperationComplete: function (aCalendar, aStatus, aOperationType, aId, aDateTime) { printInitWindow(listener.mEventArray, start, end); ...
displayEnd = gCalendarWindow.currentView.lastDateOfView;
displayEnd = gCalendarWindow.currentView.endExDateOfView;
function printCalendar() { var ccalendar = getDisplayComposite(); var listener = { mEventArray: new Array(), onOperationComplete: function (aCalendar, aStatus, aOperationType, aId, aDateTime) { printInitWindow(listener.mEventArray); }, onGetResult: function (aCalendar, aStatus, aItemType, aDetail, a...
printEngine = Components.classes[printEngineProgID].createInstance();
printEngine = Components.classes[printEngineContractID].createInstance();
function PrintEngineCreateGlobals(){ /* get the print engine instance */ printEngine = Components.classes[printEngineProgID].createInstance(); printEngine = printEngine.QueryInterface(Components.interfaces.nsIMsgPrintEngine);}
numMessages, messageList, statusFeedback);
numMessages, messageList, statusFeedback, gPrintSettings);
function PrintEnginePrint(){ var messageList = GetSelectedMessages(); var numMessages = messageList.length; if (numMessages == 0) { dump("PrintEnginePrint(): No messages selected.\n"); return false; } printEngineWindow = window.openDialog("chrome://messenger/content/msgPrintEngine.xul", ...
msg = msg.toString();
function printStatus (msg){ var lines = msg.split ("\n"); var l; for (var i=0; i<lines.length; i++) writeLineToLog (STATUS + lines[i]);}
msg = msg.toString();
function printStatus (msg){ var lines = msg.split ("\n"); var l; for (var i=0; i<lines.length; i++) print (STATUS + lines[i]);}
switch (target.getAttribute('id')) { case "priority_lowest": msgCompFields.priority = "lowest"; break; case "priority_low": msgCompFields.priority = "low"; break; case "priority_normal": msgCompFields.priority = "normal"; break; case "priority_high": msgCompFields.priority = "high"; break; case "p...
msgCompFields.priority = target.getAttribute('value'); updatePriorityToolbarButton(target.getAttribute('value'));
function PriorityMenuSelect(target){ if (gMsgCompose) { var msgCompFields = gMsgCompose.compFields; if (msgCompFields) switch (target.getAttribute('id')) { case "priority_lowest": msgCompFields.priority = "lowest"; break; case "priority_low": msgCompFields.priority = "low"; b...
hideElement("alarm-length-field"); hideElement("alarm-length-units"); hideElement("alarm-box-email");
disableElement("alarm-length-field"); disableElement("alarm-length-units"); disableElement("alarm-email-field-label"); disableElement("alarm-email-field");
function processAlarmType(){ var alarmMenu = document.getElementById("alarm-type"); if( alarmMenu.selectedItem ) { debug("processAlarmType: " + alarmMenu.selectedItem.value ); switch( alarmMenu.selectedItem.value ) { case "none": hideElement("alarm-length-field"); hideEl...
showElement("alarm-length-field"); showElement("alarm-length-units"); hideElement("alarm-box-email");
enableElement("alarm-length-field"); enableElement("alarm-length-units"); disableElement("alarm-email-field-label"); disableElement("alarm-email-field");
function processAlarmType(){ var alarmMenu = document.getElementById("alarm-type"); if( alarmMenu.selectedItem ) { debug("processAlarmType: " + alarmMenu.selectedItem.value ); switch( alarmMenu.selectedItem.value ) { case "none": hideElement("alarm-length-field"); hideEl...
showElement("alarm-length-field"); showElement("alarm-length-units"); showElement("alarm-box-email");
enableElement("alarm-length-field"); enableElement("alarm-length-units"); enableElement("alarm-email-field-label"); enableElement("alarm-email-field");
function processAlarmType(){ var alarmMenu = document.getElementById("alarm-type"); if( alarmMenu.selectedItem ) { debug("processAlarmType: " + alarmMenu.selectedItem.value ); switch( alarmMenu.selectedItem.value ) { case "none": hideElement("alarm-length-field"); hideEl...
window.sizeToContent();
function processAlarmType(){ var alarmMenu = document.getElementById("alarm-type"); if( alarmMenu.selectedItem ) { debug("processAlarmType: " + alarmMenu.selectedItem.value ); switch( alarmMenu.selectedItem.value ) { case "none": hideElement("alarm-length-field"); hideEl...
var title;
function processComponentType(componentType){ var title; var componentMenu = document.getElementById("component-type"); debug("processComponentType: " + componentType ); switch( componentType ) { case "event": // Set the menu properly if it isn't already if( componentMenu.selectedItem.value...
window.sizeToContent();
function processComponentType(componentType){ var title; var componentMenu = document.getElementById("component-type"); debug("processComponentType: " + componentType ); switch( componentType ) { case "event": // Set the menu properly if it isn't already if( componentMenu.selectedItem.value...
profile.createNewProfile(aProfName, aProfDir, langcode, useExistingDir);
profile.createNewProfileWithLocales(aProfName, aProfDir, langcode, regioncode, useExistingDir);
function processCreateProfileData( aProfName, aProfDir, langcode, regioncode){ try { // note: deleted check for empty profName string here as this should be // done by panel. -bmg (31/10/99) // todo: move this check into the panel itself, activated ontyping :P // this should definetly be moved ...
dump("*** going to create a new profile called " + aProfName + " in folder: " + aProfDir + "\n");
function processCreateProfileData( aProfName, aProfDir ){ try { // note: deleted check for empty profName string here as this should be // done by panel. -bmg (31/10/99) // todo: move this check into the panel itself, activated ontyping :P // this should definetly be moved to that page.. but how ...
var fileSpec = Components.classes["component:
var fileSpec = Components.classes["@mozilla.org/file/local;1"].createInstance();
function processCreateProfileData( aProfName, aProfDir, langcode){ try { // note: deleted check for empty profName string here as this should be // done by panel. -bmg (31/10/99) // todo: move this check into the panel itself, activated ontyping :P // this should definetly be moved to that page.....
setTagHeader();
processHeaders: function(headerNameEnumerator, headerValueEnumerator, dontCollectAddress) { this.onStartHeaders(); const kMailboxSeparator = ", "; var index = 0; while (headerNameEnumerator.hasMore()) { var header = new Object; header.headerValue = headerValueEnum...
currentHeaderData[lowerCaseHeaderName + index] = header;
currentHeaderData[lowerCaseHeaderName + index++] = header;
processHeaders: function(headerNameEnumerator, headerValueEnumerator, dontCollectAddress) { this.onStartHeaders(); while (headerNameEnumerator.hasMore()) { var header = new Object; header.headerValue = headerValueEnumerator.getNext(); header.headerName = headerNameEn...
if (url.search(/^irc:\/?\/?$/i) == -1)
if (url.search(/^irc:\/?\/?\/?$/i) == -1)
function processStartupURLs(){ var wentSomewhere = false; if ("arguments" in window && 0 in window.arguments && typeof window.arguments[0] == "object" && "url" in window.arguments[0]) { var url = window.arguments[0].url; if (url.search(/^irc:\/?\/?$/i) == -1) { /* ...
if (rule.selectorText)
if (rule instanceof CSSStyleRule)
function processStyleRules(rules) { for (var i = 0; i < rules.length; ++i) { var rule = rules.item(i); if (rule.selectorText) { ary = rule.selectorText. match(/\.chatzilla-highlight\[name=\"?([^\"]+)\"?\]/i); if (ary)...
ary = rule.selectorText.
var ary = rule.selectorText.
function processStyleRules(rules) { for (var i = 0; i < rules.length; ++i) { var rule = rules.item(i); if (rule.selectorText) { ary = rule.selectorText. match(/\.chatzilla-highlight\[name=\"?([^\"]+)\"?\]/i); if (ary)...
else if (rule.styleSheet)
else if (rule instanceof CSSImportRule)
function processStyleRules(rules) { for (var i = 0; i < rules.length; ++i) { var rule = rules.item(i); if (rule.selectorText) { ary = rule.selectorText. match(/\.chatzilla-highlight\[name=\"?([^\"]+)\"?\]/i); if (ary)...
processStyleRules(rule.styleSheet.rules);
processStyleRules(rule.styleSheet.cssRules);
function processStyleRules(rules) { for (var i = 0; i < rules.length; ++i) { var rule = rules.item(i); if (rule.selectorText) { ary = rule.selectorText. match(/\.chatzilla-highlight\[name=\"?([^\"]+)\"?\]/i); if (ary)...
else if (/\.csv\.tpl$/.test(this.reportTemplate.__url__)) this.escape = safeCSV;
function ProfileReport (reportTemplate, file, rangeList, scriptInstanceList){ this.reportTemplate = reportTemplate; this.file = file; this.rangeList = rangeList; this.scriptInstanceList = scriptInstanceList; this.key = "total"; // Escape bad characters for HTML and XML profiles. if (/\.(html|xml)\....
var buttonPressed = {value:0};
function PromptDownloadMessages(){ InitPrompts(); InitServices(); if(gPromptService) { var buttonPressed = {value:0}; var checkValue = {value:true}; gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('downloadMessagesWindowTitle'), gOffli...
gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('downloadMessagesWindowTitle'), gOfflinePromptsBundle.getString('downloadMessagesLabel'), (gPromptService.BUTTON_TITLE_IS_STRING * gPromptService.BUTTON_POS_0) + (gPromptService.BUTTON_TITLE_IS_STRING * gPromptService.BUTTON_POS_2) + (gPromptService.BUTTO...
var buttonPressed = gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('downloadMessagesWindowTitle'), gOfflinePromptsBundle.getString('downloadMessagesLabel'), gPromptService.BUTTON_TITLE_IS_STRING * (gPromptService.BUTTON_POS_0 + gPromptService.BUTTON_POS_1 + gPromptService.BUTTON_POS_2), gOfflinePrompt...
function PromptDownloadMessages(){ InitPrompts(); InitServices(); if(gPromptService) { var buttonPressed = {value:0}; var checkValue = {value:true}; gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('downloadMessagesWindowTitle'), gOffli...
return false;
function PromptDownloadMessages(){ InitPrompts(); InitServices(); if(gPromptService) { var buttonPressed = {value:0}; var checkValue = {value:true}; gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('downloadMessagesWindowTitle'), gOffli...
var value = prompt("Enter the attribute value:", attr.nodeValue); if (value) {
if (!gPromptService) { gPromptService = XPCU.getService(kPromptServiceCID, "nsIPromptService"); } var attrValue = { value: attr.nodeValue }; var dummy = { value: false }; var bundle = this.mPanel.panelset.stringBundle; var msg = bundle.getString("enterAttrName.message"); var title = bundle.getString("editAttribute.ti...
promptFor: function() { var attr = viewer.selectedAttribute; if (attr) { var value = prompt("Enter the attribute value:", attr.nodeValue); if (value) { this.subject = viewer.subject; this.newValue = value; this.previousValue = attr.nodeValue; this.subject.setAttribute(attr...
this.newValue = value;
this.newValue = attrValue.value;
promptFor: function() { var attr = viewer.selectedAttribute; if (attr) { var value = prompt("Enter the attribute value:", attr.nodeValue); if (value) { this.subject = viewer.subject; this.newValue = value; this.previousValue = attr.nodeValue; this.subject.setAttribute(attr...
this.subject.setAttribute(attr.nodeName, value);
this.subject.setAttribute(attr.nodeName, attrValue.value);
promptFor: function() { var attr = viewer.selectedAttribute; if (attr) { var value = prompt("Enter the attribute value:", attr.nodeValue); if (value) { this.subject = viewer.subject; this.newValue = value; this.previousValue = attr.nodeValue; this.subject.setAttribute(attr...
if (!gPromptService) { gPromptService = XPCU.getService(kPromptServiceCID, "nsIPromptService"); }
var bundle = viewer.pane.panelset.stringBundle; var title = bundle.getString("editAttribute.title"); var doc = attr.ownerDocument; var out = { name: attr.nodeName, value: attr.nodeValue, namespaceURI: attr.namespaceURI, accepted: false };
promptFor: function() { var attr = viewer.selectedAttribute.node; if (attr) { if (!gPromptService) { gPromptService = XPCU.getService(kPromptServiceCID, "nsIPromptService"); } var attrValue = { value: attr.nodeValue }; var dummy = { value: false }; var bundle = viewer.pane.panel...
var attrValue = { value: attr.nodeValue }; var dummy = { value: false };
window.openDialog("chrome: "edit", "chrome,modal,centerscreen", out, title, doc);
promptFor: function() { var attr = viewer.selectedAttribute.node; if (attr) { if (!gPromptService) { gPromptService = XPCU.getService(kPromptServiceCID, "nsIPromptService"); } var attrValue = { value: attr.nodeValue }; var dummy = { value: false }; var bundle = viewer.pane.panel...
var bundle = viewer.pane.panelset.stringBundle; var msg = bundle.getString("enterAttrValue.message"); var title = bundle.getString("editAttribute.title"); if (gPromptService.prompt(window, title, msg, attrValue, null, dummy)) { this.subject = viewer.subject; this.newValue = attrValue.value; this.previousValue = attr.n...
if (out.accepted) { this.subject = viewer.subject; this.newValue = out.value; this.newNamespaceURI = out.namespaceURI; this.previousValue = attr.nodeValue; this.previousNamespaceURI = attr.namespaceURI; if (this.previousNamespaceURI == this.newNamespaceURI) { this.subject.setAttribu...
promptFor: function() { var attr = viewer.selectedAttribute.node; if (attr) { if (!gPromptService) { gPromptService = XPCU.getService(kPromptServiceCID, "nsIPromptService"); } var attrValue = { value: attr.nodeValue }; var dummy = { value: false }; var bundle = viewer.pane.panel...
this.newNamespaceURI = out.namespaceURI;
this.newNamespaceURI = out.namespaceURI || null;
promptFor: function() { var attr = viewer.selectedAttribute.node; if (attr) { var bundle = viewer.pane.panelset.stringBundle; var title = bundle.getString("editAttribute.title"); var doc = attr.ownerDocument; var out = { name: attr.nodeName, value: attr.nodeValue, names...
var bundle = Components.classes[ "@mozilla.org/intl/stringbundle;1" ] .getService( Components.interfaces.nsIStringBundleService ) .createBundle( "chrome:
promptForSaveToFile: function(aLauncher, aContext, aDefaultFile, aSuggestedFileExtension) { var result = ""; // Use file picker to show dialog. var nsIFilePicker = Components.interfaces.nsIFilePicker; var picker = Components.classes[ "@mozilla.org/filepicker;1" ] .c...
var prefs = Components.classes[ "@mozilla.org/preferences-service;1" ] .getService( Components.interfaces.nsIPrefBranch );
promptForSaveToFile: function(aLauncher, aContext, aDefaultFile, aSuggestedFileExtension) { var result = ""; // Use file picker to show dialog. var nsIFilePicker = Components.interfaces.nsIFilePicker; var picker = Components.classes[ "@mozilla.org/filepicker;1" ] .c...
var startDir = prefs.getComplexValue("browser.download.dir", Components.interfaces.nsILocalFile); if ( startDir.exists() ) { picker.displayDirectory = startDir; } } catch( exception ) { }
if (dir.exists()) picker.displayDirectory = dir; } catch (e) { }
promptForSaveToFile: function(aLauncher, aContext, aDefaultFile, aSuggestedFileExtension) { var result = ""; // Use file picker to show dialog. var nsIFilePicker = Components.interfaces.nsIFilePicker; var picker = Components.classes[ "@mozilla.org/filepicker;1" ] .c...
var dlgResult = picker.show(); if ( dlgResult == nsIFilePicker.returnCancel ) {
if (picker.show() == nsIFilePicker.returnCancel || !picker.file) {
promptForSaveToFile: function(aLauncher, aContext, aDefaultFile, aSuggestedFileExtension) { var result = ""; // Use file picker to show dialog. var nsIFilePicker = Components.interfaces.nsIFilePicker; var picker = Components.classes[ "@mozilla.org/filepicker;1" ] .c...
result = picker.file; if ( result ) { var newDir = result.parent; prefs.setComplexValue("browser.download.dir", Components.interfaces.nsILocalFile, newDir); } return result;
return picker.file;
promptForSaveToFile: function(aLauncher, aContext, aDefaultFile, aSuggestedFileExtension) { var result = ""; // Use file picker to show dialog. var nsIFilePicker = Components.interfaces.nsIFilePicker; var picker = Components.classes[ "@mozilla.org/filepicker;1" ] .c...
var buttonPressed = {value:0};
function PromptGetMessagesOffline(){ InitPrompts(); if (gPromptService) { var buttonPressed = {value:0}; var checkValue = {value:false}; gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('getMessagesOfflineWindowTitle'), gOfflinePromptsBu...
gPromptService.confirmEx(window,
buttonPressed = gPromptService.confirmEx(window,
function PromptGetMessagesOffline(){ InitPrompts(); if (gPromptService) { var buttonPressed = {value:0}; var checkValue = {value:false}; gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('getMessagesOfflineWindowTitle'), gOfflinePromptsBu...
null, null, null, checkValue, buttonPressed); if(buttonPressed) { return buttonPressed.value; }
null, null, null, checkValue);
function PromptGetMessagesOffline(){ InitPrompts(); if (gPromptService) { var buttonPressed = {value:0}; var checkValue = {value:false}; gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('getMessagesOfflineWindowTitle'), gOfflinePromptsBu...
return buttonPressed;
function PromptGetMessagesOffline(){ InitPrompts(); if (gPromptService) { var buttonPressed = {value:0}; var checkValue = {value:false}; gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('getMessagesOfflineWindowTitle'), gOfflinePromptsBu...
var buttonPressed = {value:0};
function PromptSendMessages(){ InitPrompts(); InitServices(); if (gPromptService) { var buttonPressed = {value:0}; var checkValue = {value:true}; gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('sendMessagesWindowTitle'), gOfflinePromp...
gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('sendMessagesWindowTitle'), gOfflinePromptsBundle.getString('sendMessagesLabel'), (gPromptService.BUTTON_TITLE_IS_STRING * gPromptService.BUTTON_POS_0) + (gPromptService.BUTTON_TITLE_IS_STRING * gPromptService.BUTTON_POS_2) + (gPromptService.BUTTON_TITLE_...
var buttonPressed = gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('sendMessagesWindowTitle'), gOfflinePromptsBundle.getString('sendMessagesLabel'), gPromptService.BUTTON_TITLE_IS_STRING * (gPromptService.BUTTON_POS_0 + gPromptService.BUTTON_POS_1 + gPromptService.BUTTON_POS_2), gOfflinePromptsBundle....
function PromptSendMessages(){ InitPrompts(); InitServices(); if (gPromptService) { var buttonPressed = {value:0}; var checkValue = {value:true}; gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('sendMessagesWindowTitle'), gOfflinePromp...
return false;
function PromptSendMessages(){ InitPrompts(); InitServices(); if (gPromptService) { var buttonPressed = {value:0}; var checkValue = {value:true}; gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('sendMessagesWindowTitle'), gOfflinePromp...
var buttonPressed = {value:0};
function PromptSendMessagesOffline(){ InitPrompts(); if (gPromptService) { var buttonPressed = {value:0}; var checkValue= {value:false}; gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('sendMessagesOfflineWindowTitle'), gOfflinePromptsB...
gPromptService.confirmEx(window,
buttonPressed = gPromptService.confirmEx(window,
function PromptSendMessagesOffline(){ InitPrompts(); if (gPromptService) { var buttonPressed = {value:0}; var checkValue= {value:false}; gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('sendMessagesOfflineWindowTitle'), gOfflinePromptsB...
if(buttonPressed) { return buttonPressed.value; }
function PromptSendMessagesOffline(){ InitPrompts(); if (gPromptService) { var buttonPressed = {value:0}; var checkValue= {value:false}; gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('sendMessagesOfflineWindowTitle'), gOfflinePromptsB...
return buttonPressed;
function PromptSendMessagesOffline(){ InitPrompts(); if (gPromptService) { var buttonPressed = {value:0}; var checkValue= {value:false}; gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('sendMessagesOfflineWindowTitle'), gOfflinePromptsB...
this.prefs_.addObserver(kPhishWardenEnabledPref, BindToObject(this.loadDataProviderPrefs_, this));
function PROT_DataProvider() { this.prefs_ = new G_Preferences(); this.loadDataProviderPrefs_(); // Watch for changes in the data provider and update accordingly. this.prefs_.addObserver(kDataProviderIdPref, BindToObject(this.loadDataProviderPrefs_, this));}
this.updateserverURL_ = null;
this.updateserverURL_ = this.prefs_.getPref(kUpdateServerUrl, null);
function PROT_ListManager() { this.debugZone = "listmanager"; G_debugService.enableZone(this.debugZone); this.currentUpdateChecker_ = null; // set when we toggle updates this.prefs_ = new G_Preferences(); this.updateserverURL_ = null; // The lists we know about and the parses we can use to read // them. Defaul...
this.listManager_.setUpdateUrl(gDataProvider.getUpdateURL());
function PROT_ListWarden() { this.debugZone = "listwarden"; var listManager = Cc["@mozilla.org/url-classifier/listmanager;1"] .getService(Ci.nsIUrlListManager); this.listManager_ = listManager; // If we add support for changing local data providers, we need to add a // pref observer that sets ...
this.progressListener_.delay = 1500;
function PROT_PhishingWarden() { PROT_ListWarden.call(this); this.debugZone = "phishwarden"; this.testing_ = false; this.browserViews_ = []; // Use this to query preferences this.prefs_ = new G_Preferences(); // Only one displayer so far; perhaps we'll have others in the future this.displayers_ = { "afterloa...
wpService.addProgressListener(this, wp.NOTIFY_STATE_REQUEST);
wpService.addProgressListener(this, wp.NOTIFY_STATE_DOCUMENT);
function PROT_PhishingWarden() { PROT_ListWarden.call(this); this.debugZone = "phishwarden"; this.testing_ = false; this.browserViews_ = []; // Use this to query preferences this.prefs_ = new G_Preferences(); // Only one displayer so far; perhaps we'll have others in the future this.displayers_ = { "afterloa...
this.debugZone = "phisdisplayer";
this.debugZone = "phishdisplayer";
function PROT_PhishMsgDisplayerBase(msgDesc, browser, doc, url) { this.debugZone = "phisdisplayer"; this.msgDesc_ = msgDesc; // currently unused this.browser_ = browser; this.doc_ = doc; this.url_ = url; // We'll need to manipulate the XUL in safebrowsing-overlay.xul this.messageId...
this.faqLinkId_ = "safebrowsing-palm-faq-link";
function PROT_PhishMsgDisplayerBase(msgDesc, browser, doc, url) { this.debugZone = "phishdisplayer"; this.msgDesc_ = msgDesc; // currently unused this.browser_ = browser; this.doc_ = doc; this.url_ = url; // We'll need to manipulate the XUL in safebrowsing-overlay.xul this.messageI...
this.contentStackId_ = "safebrowsing-content-stack";
function PROT_PhishMsgDisplayerCanvas(msgDesc, browser, doc, url) { PROT_PhishMsgDisplayerBase.call(this, msgDesc, browser, doc, url); this.dimAreaId_ = "safebrowsing-dim-area-canvas"; this.contentStackId_ = "safebrowsing-content-stack"; this.pageCanvasId_ = "safebrowsing-page-canvas"; this.xhtmlNS_ = "http://www....
debug("Proxy = " + proxy);
ProxyForURL: function(url, host, port, type) { /* If we're not done loading the pac yet, wait (ideally). For now, just return DIRECT to avoid loops. A simple mutex between ProxyForURL and LoadPACFromURL locks-up the browser. */ if (!this.done) { host.value = nu...
openDialog("chrome:
openDialog("chrome: "chrome,titlebar,modal,resizable", args );
function publishCalendarData(){ var args = new Object(); args.onOk = self.publishCalendarDataDialogResponse; openDialog("chrome://calendar/content/publishDialog.xul", "caPublishEvents", "chrome,titlebar,modal", args );}
openDialog("chrome:
openDialog("chrome: "chrome,titlebar,modal,resizable", args ); return;
function publishEntireCalendar(cal){ var args = new Object(); var publishObject = new Object( ); args.onOk = self.publishEntireCalendarDialogResponse; publishObject.calendar = cal; // restore the remote ics path preference from the calendar passed in var remotePath = getCalendarManager().getCalendarP...
var sub = this.length; for (var i = 0; i < push.arguments.length; ++i) { this[sub] = push.arguments[i]; sub++; }
var sub = this.length; for (var i = 0; i < push.arguments.length; ++i) { this[sub] = push.arguments[i]; sub++;
Array.prototype.push = function() { var sub = this.length; for (var i = 0; i < push.arguments.length; ++i) { this[sub] = push.arguments[i]; sub++; } }
}
Array.prototype.push = function() { var sub = this.length; for (var i = 0; i < push.arguments.length; ++i) { this[sub] = push.arguments[i]; sub++; } }
var fn = args && args[args.length-1]; var fn2 = args && args[args.length-2];
var fn = args && args.length > 1 && args[args.length-1]; var fn2 = args && args.length > 2 && args[args.length-2];
pushStack: function(a,args) { var fn = args && args[args.length-1]; var fn2 = args && args[args.length-2]; if ( fn && fn.constructor != Function ) fn = null; if ( fn2 && fn2.constructor != Function ) fn2 = null; if ( !fn ) { if ( !this.stack ) this.stack = []; this.stack.push( this.get() ); this.set( a );...
if ( fn.constructor == Function )
if ( typeof fn == "function" )
pushStack: function(a,args) { var fn = args && args[args.length-1]; if ( !fn || fn.constructor != Function ) { if ( !this.stack ) this.stack = []; this.stack.push( this.get() ); this.get( a ); } else { var old = this.get(); this.get( a ); if ( fn.constructor == Function ) this.each( fn ); this.get(...
pushStack: function(a,args) { var fn = args && args[args.length-1]; var fn2 = args && args[args.length-2]; if ( fn && fn.constructor != Function ) fn = null; if ( fn2 && fn2.constructor != Function ) fn2 = null; if ( !fn ) { if ( !this.stack ) this.stack = []; this.stack.push( this.get() ); this.get( a ); } else { va...
pushStack: function(a) { if ( !this.stack ) this.stack = []; this.stack.push( this.get() ); return this.set( a );
pushStack: function(a,args) { var fn = args && args[args.length-1]; var fn2 = args && args[args.length-2]; if ( fn && fn.constructor != Function ) fn = null; if ( fn2 && fn2.constructor != Function ) fn2 = null; if ( !fn ) { if ( !this.stack ) this.stack = []; this.stack.push( this.get() ); this.get( a );...
},
}
pushStack: function(a,args) { var fn = args && args[args.length-1]; if ( !fn || fn.constructor != Function ) { if ( !this.stack ) this.stack = []; this.stack.push( this.get() ); this.get( a ); } else { var old = this.get(); this.get( a ); if ( fn.constructor == Function ) return this.each( fn ); th...
return this.each( fn );
this.each( fn );
pushStack: function(a,args) { var fn = args && args[args.length-1]; if ( !fn || fn.constructor != Function ) { if ( !this.stack ) this.stack = []; this.stack.push( this.get() ); this.get( a ); } else { var old = this.get(); this.get( a ); if ( fn.constructor == Function ) return this.each( fn ); th...
if ( !fn || fn.constructor != Function ) {
if ( !fn ) {
pushStack: function(a,args) { var fn = args && args[args.length-1]; if ( !fn || fn.constructor != Function ) { if ( !this.stack ) this.stack = []; this.stack.push( this.get() ); this.get( a ); } else { var old = this.get(); this.get( a ); if ( typeof fn == "function" ) this.each( fn ); this.get( ol...
if ( typeof fn == "function" ) this.each( fn ); this.get( old );
if ( fn2 && a.length || !fn2 ) this.each( fn2 || fn ).get( old ); else this.get( old ).each( fn );
pushStack: function(a,args) { var fn = args && args[args.length-1]; if ( !fn || fn.constructor != Function ) { if ( !this.stack ) this.stack = []; this.stack.push( this.get() ); this.get( a ); } else { var old = this.get(); this.get( a ); if ( typeof fn == "function" ) this.each( fn ); this.get( ol...
var fn = args ? (args.constructor == Function ? args : args[args.length-1]) : function(){};
var fn = args[args.length-1];
pushStack: function(a,args) { var fn = args ? (args.constructor == Function ? args : args[args.length-1]) : function(){}; if ( !fn ) { if ( !this.stack ) this.stack = []; this.stack.push( this.get() ); this.get( a ); } else { var old = this.get(); this.get( a ); if ( fn.constructor == Function ) retu...
if ( !fn ) {
if ( !fn || fn.constructor != Function ) {
pushStack: function(a,args) { var fn = args ? (args.constructor == Function ? args : args[args.length-1]) : function(){}; if ( !fn ) { if ( !this.stack ) this.stack = []; this.stack.push( this.get() ); this.get( a ); } else { var old = this.get(); this.get( a ); if ( fn.constructor == Function ) retu...
for (var i = min; i < max; ++i)
min = min.value; max = max.value; dd ("range " + range + ", " + min + "..." + max); for (var i = min; i <= max; ++i)
function pv_getcx(cx){ if (!cx) cx = new Object(); var selection = this.outliner.selection; var rec = this.childData.locateChildByVisualRow(selection.currentIndex); if (!rec) { dd ("no current index."); return cx; } cx.target = rec; if (rec instanceof TOLabelRecord) ...
cx.breakpointIndexList.push(rec.childIndex); } else dd ("row " + i + " is NOT a bprecord");
function pv_getcx(cx){ if (!cx) cx = new Object(); var selection = this.outliner.selection; var rec = this.childData.locateChildByVisualRow(selection.currentIndex); if (!rec) { dd ("no current index."); return cx; } cx.target = rec; if (rec instanceof TOLabelRecord) ...
dd ("get project context...");
function pv_getcx(cx){ dd ("get project context..."); if (!cx) cx = new Object(); var selection = this.outliner.selection; var rec = this.childData.locateChildByVisualRow(selection.currentIndex); if (!rec) { dd ("no current index."); return cx; } cx.target = rec; ...
if (rv.reason != PICK_OK)
if (!rv.ok)
function pwin_onPrefBrowse(button){ var spec = "$all"; if (button.hasAttribute("spec")) spec = button.getAttribute("spec") + " " + spec; var type = button.getAttribute("kind"); var edit = button.previousSibling.lastChild; var rv; if (type == "folder") { var current = getFileFromUR...
if (rv.reason == PICK_OK)
if (rv.ok)
function pwin_onPrefListAdd(object){ var list = getRelatedItem(object, "list"); var newItem; switch (list.getAttribute("kind")) { case "url": var item = prompt(MSG_PREFS_LIST_ADD); if (item) { newItem = document.createElement("listitem"); ...
return [f - d];
return (f - d);
function q1(n) { var c = []; c[Math.pow(10, n)] = 1; c = c.join(" "); var d = Date.now(); var e = c.match(/(.*)foo$/); var f = Date.now(); return [f - d];}
return [f - d];
return (f - d);
function q2(n) { var c = []; c[Math.pow(10, n)] = 1; c = c.join(" "); var d = Date.now(); var e = /foo$/.test(c) && c.match(/(.*)foo$/); var f = Date.now(); return [f - d];}
if (!iid.equals(nsISupports) && !iid.equals(nsIActiveXSecurityPolicy) && !iid.equals(nsIObserver)) throw Components.results.NS_ERROR_NO_INTERFACE; return this;
if (iid.equals(nsISupports) || iid.equals(nsIActiveXSecurityPolicy) || iid.equals(nsIObserver)) return this; Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE; return null;
QueryInterface: function(iid) { if (!iid.equals(nsISupports) && !iid.equals(nsIActiveXSecurityPolicy) && !iid.equals(nsIObserver)) throw Components.results.NS_ERROR_NO_INTERFACE; return this; }
if (!aIID.equals(Components.interfaces.nsIUpdateCheckListener) && !aIID.equals(Components.interfaces.nsISupports)) throw Components.results.NS_ERROR_NO_INTERFACE; return this; }
if (!iid.equals(Components.interfaces.nsIRequestObserver) && !iid.equals(Components.interfaces.nsIProgressEventSink) && !iid.equals(Components.interfaces.nsISupports)) throw Components.results.NS_ERROR_NO_INTERFACE; return this; }
QueryInterface: function(iid) { if (!aIID.equals(Components.interfaces.nsIUpdateCheckListener) && !aIID.equals(Components.interfaces.nsISupports)) throw Components.results.NS_ERROR_NO_INTERFACE; return this; }
QueryInterface: function(iid) { if (iid.equals(Components.interfaces.nsIURIContentListener) || iid.equals(Components.interfaces.nsISupportsWeakReference) || iid.equals(Components.interfaces.nsISupports)) return this; throw Components.results.NS_NOINTERFACE; },
QueryInterface : function(aIID) { if (aIID.equals(nsCI.nsIBrowserDOMWindow) || aIID.equals(nsCI.nsISupports)) return this; throw Components.results.NS_NOINTERFACE; },
QueryInterface: function(iid) { if (iid.equals(Components.interfaces.nsIURIContentListener) || iid.equals(Components.interfaces.nsISupportsWeakReference) || iid.equals(Components.interfaces.nsISupports)) return this; throw Components.results.NS_NOINTERFACE; },
if (!iid.equals(Components.interfaces.nsISupports) && !iid.equals(Components.interfaces.nsIXPIProgressDialog)) throw Components.results.NS_ERROR_NO_INTERFACE;
if (iid.equals(Components.interfaces.nsISupports) || iid.equals(Components.interfaces.nsIXPIProgressDialog)) return this;
QueryInterface: function( iid ) { if (!iid.equals(Components.interfaces.nsISupports) && !iid.equals(Components.interfaces.nsIXPIProgressDialog)) throw Components.results.NS_ERROR_NO_INTERFACE; return this; }
return this;
Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE; return null;
QueryInterface: function( iid ) { if (!iid.equals(Components.interfaces.nsISupports) && !iid.equals(Components.interfaces.nsIXPIProgressDialog)) throw Components.results.NS_ERROR_NO_INTERFACE; return this; }
if (!iid.equals(Components.interfaces.nsICmdLineHandler) && !iid.equals(Components.interfaces.nsISupports)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this;
if (iid.equals(Components.interfaces.nsICmdLineHandler) || iid.equals(Components.interfaces.nsISupports)) return this; Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE; return null;
QueryInterface: function (iid) { if (!iid.equals(Components.interfaces.nsICmdLineHandler) && !iid.equals(Components.interfaces.nsISupports)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this; },
if (!iid.equals(Components.interfaces.nsIRequestObserver) && !iid.equals(Components.interfaces.nsISupports) && !iid.equals(Components.interfaces.nsIInterfaceRequestor)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this;
if (iid.equals(Components.interfaces.nsIRequestObserver) || iid.equals(Components.interfaces.nsISupports) || iid.equals(Components.interfaces.nsIInterfaceRequestor)) return this; Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE; return null;
QueryInterface: function (iid) { if (!iid.equals(Components.interfaces.nsIRequestObserver) && !iid.equals(Components.interfaces.nsISupports) && !iid.equals(Components.interfaces.nsIInterfaceRequestor)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this; },
!aIID.equals(Components.interfaces.calICompositeObserver) &&
QueryInterface: function (aIID) { if (!aIID.equals(Components.interfaces.nsISupports) && !aIID.equals(Components.interfaces.calIObserver)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this; },
if (!iid.equals(nsIObserver) && !iid.equals(nsIServerSocketListener) && !iid.equals(nsISupports)) throw Components.results.NS_ERROR_NO_INTERFACE; return this;
if (iid.equals(nsIObserver) || iid.equals(nsIServerSocketListener) || iid.equals(nsISupports)) return this; Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE; return null;
QueryInterface: function(iid) { if (!iid.equals(nsIObserver) && !iid.equals(nsIServerSocketListener) && !iid.equals(nsISupports)) throw Components.results.NS_ERROR_NO_INTERFACE; return this; },
if (!aIID.equals(Components.interfaces.nsIObserver) && !aIID.equals(Components.interfaces.nsIProfileStartupListener) && !aIID.equals(Components.interfaces.nsISupports)) throw Components.results.NS_ERROR_NO_INTERFACE;
if (aIID.equals(Components.interfaces.nsIObserver) || aIID.equals(Components.interfaces.nsIProfileStartupListener) || aIID.equals(Components.interfaces.nsISupports)) return this;
QueryInterface: function(aIID) { if (!aIID.equals(Components.interfaces.nsIObserver) && !aIID.equals(Components.interfaces.nsIProfileStartupListener) && !aIID.equals(Components.interfaces.nsISupports)) throw Components.results.NS_ERROR_NO_INTERFACE; return this; }
return this;
Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE; return null;
QueryInterface: function(aIID) { if (!aIID.equals(Components.interfaces.nsIObserver) && !aIID.equals(Components.interfaces.nsIProfileStartupListener) && !aIID.equals(Components.interfaces.nsISupports)) throw Components.results.NS_ERROR_NO_INTERFACE; return this; }
if (aIId.equals(Components.interfaces.nsIStreamListener))
if (aIId.equals(Components.interfaces.nsIStreamListener) || aIId.equals(Components.interfaces.nsISupports))
QueryInterface: function(aIId, instance) { if (aIId.equals(Components.interfaces.nsIStreamListener)) return this; if (aIId.equals(Components.interfaces.nsISupports)) return this; dump("QueryInterface " + aIId + "\n"); throw Components.results.NS_NOINTERFACE; },
if (aIId.equals(Components.interfaces.nsISupports)) return this; dump("QueryInterface " + aIId + "\n"); throw Components.results.NS_NOINTERFACE;
Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE; return null;
QueryInterface: function(aIId, instance) { if (aIId.equals(Components.interfaces.nsIStreamListener)) return this; if (aIId.equals(Components.interfaces.nsISupports)) return this; dump("QueryInterface " + aIId + "\n"); throw Components.results.NS_NOINTERFACE; },
!iid.equals(Components.interfaces.nsIInterfaceRequestor) && !iid.equals(Components.interfaces.nsIAuthPrompt)) {
!iid.equals(Components.interfaces.nsIInterfaceRequestor)) {
QueryInterface: function (iid) { if (!iid.equals(Components.interfaces.nsIRequestObserver) && !iid.equals(Components.interfaces.nsISupports) && !iid.equals(Components.interfaces.nsIInterfaceRequestor) && !iid.equals(Components.interfaces.nsIAuthPrompt)) { throw Components.results.NS_ERROR...
QueryInterface: function(theUID, theResult)
QueryInterface: function(aUID, theResult)
QueryInterface: function(theUID, theResult) { if (theUID == Components.interfaces.nsITransaction || theUID == Components.interfaces.nsISupports) return this; return nsnull; },
if (theUID == Components.interfaces.nsITransaction || theUID == Components.interfaces.nsISupports) return this;
if (aUID.equals(Components.interfaces.nsITransaction) || aUID.equals(Components.interfaces.nsISupports)) return this;
QueryInterface: function(theUID, theResult) { if (theUID == Components.interfaces.nsITransaction || theUID == Components.interfaces.nsISupports) return this; return nsnull; },
return nsnull;
Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE; return null;
QueryInterface: function(theUID, theResult) { if (theUID == Components.interfaces.nsITransaction || theUID == Components.interfaces.nsISupports) return this; return nsnull; },
iid.equals(Components.interfaces.nsISupports)) {
iid.equals(Components.interfaces.nsISupports))
QueryInterface: function (iid) { if (iid.equals(Components.interfaces.nsISupportsWeakReference) || iid.equals(Components.interfaces.nsISupports)) { return this; } throw Components.results.NS_ERROR_NO_INTERFACE; }
} throw Components.results.NS_ERROR_NO_INTERFACE;
Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE; return null;
QueryInterface: function (iid) { if (iid.equals(Components.interfaces.nsISupportsWeakReference) || iid.equals(Components.interfaces.nsISupports)) { return this; } throw Components.results.NS_ERROR_NO_INTERFACE; }
if (!iid.equals(Components.interfaces.nsICloseAllWindows) && !iid.equals(Components.interfaces.nsISupports)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this;
if (iid.equals(Components.interfaces.nsICloseAllWindows) || iid.equals(Components.interfaces.nsISupports)) return this; Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE; return null;
QueryInterface: function (iid) { if (!iid.equals(Components.interfaces.nsICloseAllWindows) && !iid.equals(Components.interfaces.nsISupports)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this; },