rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
isEmailScam = !/^addbook:/.test(forms[index].action); | isEmailScam = forms[index].action != "" && !/^addbook:/.test(forms[index].action); | function isMsgEmailScam(aUrl){ var isEmailScam = false; if (!aUrl || !gPrefBranch.getBoolPref("mail.phishing.detection.enabled")) return isEmailScam; // Ignore nntp and RSS messages var folder = aUrl.folder; if (folder.server.type == 'nntp' || folder.server.type == 'rss') return isEmailScam; // loop throug... |
var folder = aUrl.folder; if (folder.server.type == 'nntp' || folder.server.type == 'rss') return isEmailScam; | try { var serverType = aUrl.folder.server.type; if (serverType == 'nntp' || serverType == 'rss') return isEmailScam; } catch (ex) {} | function isMsgEmailScam(aUrl){ var isEmailScam = false; if (!aUrl || !gPrefBranch.getBoolPref("mail.phishing.detection.enabled")) return isEmailScam; // Ignore nntp and RSS messages var folder = aUrl.folder; if (folder.server.type == 'nntp' || folder.server.type == 'rss') return isEmailScam; // loop throug... |
return (messageUri.substring(0,14) == "news_message:/") | return (messageUri.substring(0,14) == "news-message:/") | function IsNewsMessage(messageUri){ if (!messageUri) return false; return (messageUri.substring(0,14) == "news_message:/")} |
return ((uri.substring(0,6) == "news:/") || (uri.substring(0,14) == "news_message:/")); | return ((uri.substring(0,6) == "news:/") || (uri.substring(0,14) == "news-message:/")); | function isNewsURI(uri){ if (!uri || uri[0] != 'n') { return false; } else { return ((uri.substring(0,6) == "news:/") || (uri.substring(0,14) == "news_message:/")); }} |
var month = date.getUTCMonth() + 1; datetime += (month < 10 ? '0' + month : month); | var month = String(date.getUTCMonth() + 1); datetime += (month.length == 1 ? '0' + month : month); | function iso8601Format(date) { var datetime = date.getUTCFullYear(); var month = date.getUTCMonth() + 1; datetime += (month < 10 ? '0' + month : month); var day = date.getUTCDate(); datetime += (day < 10 ? '0' + day : day); datetime += 'T'; var hour = date.getUTCHours(); datetime += (hour < 10 ... |
if (item.id != item.parentItem.id) throw new Error("proxy has different id than its parent!"); | if (item.id != item.parentItem.id) { throw new Components.Exception( "proxy has different id than its parent!"); } | function isParent( item ){ if (item.id != item.parentItem.id) throw new Error("proxy has different id than its parent!"); if (item.parentItem.recurrenceId) { throw new Error("parent has recurrenceId: " + item.parentItem.recurrenceId); } return (!item.recurrenceId);} |
throw new Error("parent has recurrenceId: " + item.parentItem.recurrenceId); | throw new Components.Exception("parent has recurrenceId: " + item.parentItem.recurrenceId); | function isParent( item ){ if (item.id != item.parentItem.id) throw new Error("proxy has different id than its parent!"); if (item.parentItem.recurrenceId) { throw new Error("parent has recurrenceId: " + item.parentItem.recurrenceId); } return (!item.recurrenceId);} |
return this.getProperty(aResource, NC_NS+"FolderType") == "NC:PersonalToolbarFolder" | return this.getProperty(aResource, NC_NS+"FolderType") == "NC:PersonalToolbarFolder"; | isPersonalToolbarFolder: function (aResource) { return this.getProperty(aResource, NC_NS+"FolderType") == "NC:PersonalToolbarFolder" }, |
hrefURL = ioService.newURI(href, null, null); | var hrefURL = ioService.newURI(href, null, null); | function isPhishingURL(aLinkNode, aSilentMode, aHref){ if (!gPrefBranch.getBoolPref("mail.phishing.detection.enabled")) return false; var phishingType = kPhishingNotSuspicious; var href = aHref || aLinkNode.href; if (!href) return false; var linkTextURL = {}; var unobscuredHostName = {}; var isPhishingURL ... |
return true; | return false; | function isPhishingURL(aLinkNode, aSilentMode){ if (!gPrefBranch.getBoolPref("mail.phishing.detection.enabled")) return true; var phishingType = kPhishingNotSuspicious; var href = aLinkNode.href; var linkTextURL = {}; var hrefURL = Components.classes["@mozilla.org/network/standard-url;1"]. create... |
unobscuredHostName.value = hrefURL.host; | if (hrefURL.schemeIs('http') || hrefURL.schemeIs('https')) { unobscuredHostName.value = hrefURL.host; | function isPhishingURL(aLinkNode, aSilentMode){ if (!gPrefBranch.getBoolPref("mail.phishing.detection.enabled")) return false; var phishingType = kPhishingNotSuspicious; var href = aLinkNode.href; var linkTextURL = {}; var unobscuredHostName = {}; var ioService = Components.classes["@mozilla.org/network/io-ser... |
var isPhishingURL = phishingType != kPhishingNotSuspicious; | isPhishingURL = phishingType != kPhishingNotSuspicious; | function isPhishingURL(aLinkNode, aSilentMode){ if (!gPrefBranch.getBoolPref("mail.phishing.detection.enabled")) return false; var phishingType = kPhishingNotSuspicious; var href = aLinkNode.href; var linkTextURL = {}; var unobscuredHostName = {}; var ioService = Components.classes["@mozilla.org/network/io-ser... |
if (!aSilentMode && isPhishingURL) isPhishingURL = confirmSuspiciousURL(phishingType, unobscuredHostName.value); | if (!aSilentMode && isPhishingURL) isPhishingURL = confirmSuspiciousURL(phishingType, unobscuredHostName.value); } | function isPhishingURL(aLinkNode, aSilentMode){ if (!gPrefBranch.getBoolPref("mail.phishing.detection.enabled")) return false; var phishingType = kPhishingNotSuspicious; var href = aLinkNode.href; var linkTextURL = {}; var unobscuredHostName = {}; var ioService = Components.classes["@mozilla.org/network/io-ser... |
isPreferred: function(contentType, command, windowTarget, desiredContentType) | isPreferred: function(contentType, command, desiredContentType) | isPreferred: function(contentType, command, windowTarget, desiredContentType) { // seems like we should be getting this from helper apps or something switch(contentType) { case "text/html": case "text/xul": case "text/rdf": case "... |
dragAndDropEnabled = false; | var dragAndDropEnabled = false; | function isPToolbarDNDEnabled() { var prefs = nsJSComponentManager.getService("component://netscape/preferences", "nsIPref"); dragAndDropEnabled = false; try { dragAndDropEnabled = prefs.GetBoolPref("browser.... |
var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); if (!htmlEditor) return false; var anchorCell = htmlEditor.getElementOrParentByTagName("td", selection.anchorNode); var focusCell = htmlEditor.getElementOrParentByTagName("td", selection.focusNode); | var anchorCell = gEditor.getElementOrParentByTagName("td", selection.anchorNode); var focusCell = gEditor.getElementOrParentByTagName("td", selection.focusNode); | function IsSelectionInOneCell(){ var selection = gEditor.selection; if (selection && selection.rangeCount == 1) { // We have a "normal" single-range selection if (!selection.isCollapsed && selection.anchorNode != selection.focusNode) { // Check if both nodes are within the same cell var html... |
var isValid = new Array(aSelection.length); for (var i=0; i<aSelection.length; ++i) isValid[i] = false; if (!BookmarksUtils.isValidTargetContainer(aTarget.parent, aSelection)) | if (!BookmarksUtils.isValidTargetContainer(aTarget.parent, aSelection)) { var isValid = new Array(aSelection.length); for (var i=0; i<aSelection.length; ++i) isValid[i] = false; | isSelectionValidForInsertion: function (aSelection, aTarget, aAction) { var isValid = new Array(aSelection.length); for (var i=0; i<aSelection.length; ++i) isValid[i] = false; if (!BookmarksUtils.isValidTargetContainer(aTarget.parent, aSelection)) return isValid; for (i=0; i<aSelection.length; ... |
for (i=0; i<aSelection.length; ++i) { if (!aSelection.isValid[i]) continue; if (!BookmarksUtils.isChildOfContainer(aSelection.item[i], aTarget.parent) || aAction == "move" && aSelection.parent[i] == aTarget.parent || aSelection.isContainer[i]) isValid[i] = true; | isSelectionValidForInsertion: function (aSelection, aTarget, aAction) { var isValid = new Array(aSelection.length); for (var i=0; i<aSelection.length; ++i) isValid[i] = false; if (!BookmarksUtils.isValidTargetContainer(aTarget.parent, aSelection)) return isValid; for (i=0; i<aSelection.length; ... | |
return isValid; | return aSelection.isValid; | isSelectionValidForInsertion: function (aSelection, aTarget, aAction) { var isValid = new Array(aSelection.length); for (var i=0; i<aSelection.length; ++i) isValid[i] = false; if (!BookmarksUtils.isValidTargetContainer(aTarget.parent, aSelection)) return isValid; for (i=0; i<aSelection.length; ... |
if (!msgFolder || ((msgFolder.flags & flags) == 0)) { | if (!msgFolder) { | function IsSpecialFolder(msgFolder, flags){ if (!msgFolder || ((msgFolder.flags & flags) == 0)) { return false; } else { return true; }} |
return true; | if ((flags & MSG_FOLDER_FLAG_SENTMAIL) && (msgFolder.flags & MSG_FOLDER_FLAG_INBOX)) { return false; } else { return true; } | function IsSpecialFolder(msgFolder, flags){ if (!msgFolder || ((msgFolder.flags & flags) == 0)) { return false; } else { return true; }} |
var selectedFolder = GetThreadPaneFolder(); if (!selectedFolder || ((selectedFolder.flags & flags) == 0)) { return false; } else { return true; } | var selectedFolder = GetThreadPaneFolder(); return IsSpecialFolder(selectedFolder, flags); | function IsSpecialFolderSelected(flags){ var selectedFolder = GetThreadPaneFolder(); if (!selectedFolder || ((selectedFolder.flags & flags) == 0)) { return false; } else { return true; }} |
function( url, dataConvFunc, receiverFunc, ignoredWcapErrors ) | function( url, dataConvFunc, receiverFunc ) | issueAsyncRequest: function( url, dataConvFunc, receiverFunc, ignoredWcapErrors ) { this.issueRequest( url, issueAsyncUtf8Request, dataConvFunc, receiverFunc, ignoredWcapErrors ); }, |
this.issueRequest( url, issueAsyncUtf8Request, dataConvFunc, receiverFunc, ignoredWcapErrors ); | this.issueRequest( url, issueAsyncRequest, dataConvFunc, receiverFunc ); | issueAsyncRequest: function( url, dataConvFunc, receiverFunc, ignoredWcapErrors ) { this.issueRequest( url, issueAsyncUtf8Request, dataConvFunc, receiverFunc, ignoredWcapErrors ); }, |
function( url, issueFunc, dataConvFunc, receiverFunc, ignoredWcapErrors ) | function( url, issueFunc, dataConvFunc, receiverFunc ) | issueRequest: function( url, issueFunc, dataConvFunc, receiverFunc, ignoredWcapErrors ) { var sessionId = this.session.getSessionId(); if (sessionId == null) return; // return silently, ignore error var this_ = this; issueFunc( url + ("&id=" + sessionI... |
if (sessionId == null) return; | issueRequest: function( url, issueFunc, dataConvFunc, receiverFunc, ignoredWcapErrors ) { var sessionId = this.session.getSessionId(); if (sessionId == null) return; // return silently, ignore error var this_ = this; issueFunc( url + ("&id=" + sessionI... | |
function( utf8Data ) { | function( data ) { | issueRequest: function( url, issueFunc, dataConvFunc, receiverFunc, ignoredWcapErrors ) { var sessionId = this.session.getSessionId(); if (sessionId == null) return; // return silently, ignore error var this_ = this; issueFunc( url + ("&id=" + sessionI... |
var errno = dataConvFunc( utf8Data, wcapResponse ); if (errno == 1) { sessionId = this_.session.getSessionId( sessionId ); if (sessionId != null) { | try { wcapResponse.data = dataConvFunc( data, wcapResponse ); } catch (exc) { if (exc == Components.interfaces. calIWcapErrors.WCAP_LOGIN_FAILED) { this_.session.getSessionId( sessionId ); | issueRequest: function( url, issueFunc, dataConvFunc, receiverFunc, ignoredWcapErrors ) { var sessionId = this.session.getSessionId(); if (sessionId == null) return; // return silently, ignore error var this_ = this; issueFunc( url + ("&id=" + sessionI... |
url, issueFunc, dataConvFunc, receiverFunc, ignoredWcapErrors ); | url, issueFunc, dataConvFunc, receiverFunc ); | issueRequest: function( url, issueFunc, dataConvFunc, receiverFunc, ignoredWcapErrors ) { var sessionId = this.session.getSessionId(); if (sessionId == null) return; // return silently, ignore error var this_ = this; issueFunc( url + ("&id=" + sessionI... |
} | } throw exc; | issueRequest: function( url, issueFunc, dataConvFunc, receiverFunc, ignoredWcapErrors ) { var sessionId = this.session.getSessionId(); if (sessionId == null) return; // return silently, ignore error var this_ = this; issueFunc( url + ("&id=" + sessionI... |
else if (ignoredWcapErrors) { for each ( var err in ignoredWcapErrors ) { if (err == errno) { errno = 0; break; } } } checkWcapErrno( errno ); | issueRequest: function( url, issueFunc, dataConvFunc, receiverFunc, ignoredWcapErrors ) { var sessionId = this.session.getSessionId(); if (sessionId == null) return; // return silently, ignore error var this_ = this; issueFunc( url + ("&id=" + sessionI... | |
this_.logError( "issueRequest(): exception occured upon response\n" + utf8Data ); | issueRequest: function( url, issueFunc, dataConvFunc, receiverFunc, ignoredWcapErrors ) { var sessionId = this.session.getSessionId(); if (sessionId == null) return; // return silently, ignore error var this_ = this; issueFunc( url + ("&id=" + sessionI... | |
if (exc == Components.interfaces. calIWcapErrors.WCAP_LOGIN_FAILED) { | if (testResultCode( exc, Components.interfaces. calIWcapErrors.WCAP_LOGIN_FAILED)) { | issueRequest: function( url, issueFunc, dataConvFunc, receiverFunc ) { var sessionId = this.getSessionId(); var this_ = this; issueFunc( url + ("&id=" + sessionId), function( data ) { var wcapResponse = new WcapResponse(); try { ... |
function( url, dataConvFunc, receiverFunc, ignoredWcapErrors ) | function( url, dataConvFunc, receiverFunc ) | issueSyncRequest: function( url, dataConvFunc, receiverFunc, ignoredWcapErrors ) { var ret; this.issueRequest( url, issueSyncUtf8Request, dataConvFunc, function( wcapResponse ) { ret = wcapResponse; if (receiverFunc) { ... |
var ret; | var ret = null; | issueSyncRequest: function( url, dataConvFunc, receiverFunc, ignoredWcapErrors ) { var ret; this.issueRequest( url, issueSyncUtf8Request, dataConvFunc, function( wcapResponse ) { ret = wcapResponse; if (receiverFunc) { ... |
url, issueSyncUtf8Request, | url, issueSyncRequest, | issueSyncRequest: function( url, dataConvFunc, receiverFunc, ignoredWcapErrors ) { var ret; this.issueRequest( url, issueSyncUtf8Request, dataConvFunc, function( wcapResponse ) { ret = wcapResponse; if (receiverFunc) { ... |
ret = wcapResponse; | issueSyncRequest: function( url, dataConvFunc, receiverFunc, ignoredWcapErrors ) { var ret; this.issueRequest( url, issueSyncUtf8Request, dataConvFunc, function( wcapResponse ) { ret = wcapResponse; if (receiverFunc) { ... | |
}, ignoredWcapErrors ); | ret = wcapResponse.data; } ); | issueSyncRequest: function( url, dataConvFunc, receiverFunc, ignoredWcapErrors ) { var ret; this.issueRequest( url, issueSyncUtf8Request, dataConvFunc, function( wcapResponse ) { ret = wcapResponse; if (receiverFunc) { ... |
throw status; | throw new Components.Exception( bLogging ? ("issueSyncRequest( \"" + url + "\" ) failed.") : "issueSyncRequest() failed.", status ); | function issueSyncRequest( url, receiverFunc, bLogging ){ if (bLogging == undefined) bLogging = true; if (bLogging && LOG_LEVEL > 0) { logMessage( "issueSyncRequest( \"" + url + "\" )", "opening channel." ); } var channel = getIoService().newChannel( url, "" /* charse... |
var str = issueSyncUtf8Request( url, null, bLogging ); if (str != null) { var xml = getDomParser().parseFromString( str, "text/xml" ); if (receiverFunc != null) { receiverFunc( xml ); } return xml; | var str = issueSyncRequest( url, null, bLogging ); var xml = getDomParser().parseFromString( str, "text/xml" ); if (receiverFunc) { receiverFunc( xml ); | function issueSyncXMLRequest( url, receiverFunc, bLogging ){ var str = issueSyncUtf8Request( url, null, bLogging ); if (str != null) { var xml = getDomParser().parseFromString( str, "text/xml" ); if (receiverFunc != null) { receiverFunc( xml ); } return xml; } return n... |
return null; | return xml; | function issueSyncXMLRequest( url, receiverFunc, bLogging ){ var str = issueSyncUtf8Request( url, null, bLogging ); if (str != null) { var xml = getDomParser().parseFromString( str, "text/xml" ); if (receiverFunc != null) { receiverFunc( xml ); } return xml; } return n... |
return true; | isTesting = false; try { isTesting = PROT_GlobalStore.getPref_("safebrowsing.testing") } catch (e) {} return isTesting; | PROT_GlobalStore.isTesting = function() { return true;} |
var searchSelect = document.getElementById('context-searchselect'); | isTextSelection : function() { var result = false; var selection = this.searchSelected(); var searchSelect = document.getElementById('context-searchselect'); var bundle = srGetStrBundle("chrome://communicator/locale/contentAreaCommands.properties"); var searchSelectText; if... | |
searchSelect.setAttribute("label", searchSelectText); | this.setItemAttr("context-searchselect", "label", searchSelectText); | isTextSelection : function() { var result = false; var selection = this.searchSelected(); var searchSelect = document.getElementById('context-searchselect'); var bundle = srGetStrBundle("chrome://communicator/locale/contentAreaCommands.properties"); var searchSelectText; if... |
var image = imageName.trimString(); | var image = TrimString(imageName); | function IsValidImage(imageName){ var image = imageName.trimString(); if ( !image ) return false; /* look for an extension */ var tailindex = image.lastIndexOf("."); if ( tailindex == 0 || tailindex == -1 ) /* -1 is not found */ return false; /* move past period, get the substring from the first character a... |
return false; if (aFolder.Value == "NC:BookmarksTopRoot") | isValidTargetContainer: function (aFolder, aSelection) { if (!aFolder) return false; if (aFolder.Value == "NC:BookmarksRoot") return true; // don't insert items in an invalid container // 'file:' and 'find:' items have a 'Bookmark' type var type = BookmarksUtils.resolveType(aFolder); if (... | |
function IsWhitespace(character) | function IsWhitespace(string) | function IsWhitespace(character){ var result = character.match(/\s/); if (result == null) return false; return true;} |
var result = character.match(/\s/); if (result == null) return false; return true; | return /^\s/.test(string); | function IsWhitespace(character){ var result = character.match(/\s/); if (result == null) return false; return true;} |
this.display (getMsg("cli_ijoinMsg3", e.channel.unicodeName), "INFO"); | e.channel.displayHere (getMsg("cli_ijoinMsg3", e.channel.unicodeName), "INFO"); | function joinChannel(e, namelist, key, charset){ if (!e.network || !e.network.isConnected()) { if (!e.network) client.currentObject.display (getMsg("cli_ijoinMsg"), "ERROR"); else client.currentObject.display (getMsg("cli_ijoinMsg2", ... |
debug ("date: " + date + " newDate: " + newDate + " newDate.jsDate: "+ newDate.jsDate + "\n"); | function jsDateToDateTime(date){ var newDate = createDateTime(); newDate.jsDate = date; debug ("date: " + date + " newDate: " + newDate + " newDate.jsDate: "+ newDate.jsDate + "\n"); return newDate;} | |
this.URI.spec + "</b>><br>"; | safeHTML(this.URI.spec) + "</b>><br>"; | function jsdch_aopen (streamListener, context){ this.streamListener = streamListener; this.context = context; if (this.loadGroup) this.loadGroup.addRequest (this, null); var window = findDebuggerWindow(); var ary = this.URI.spec.match (/x-jsd:([^:]+)/); var exception; if (window && "cons... |
str += "<b>Internal error: " + exception + "</b><br><pre>" + exception.stack; | str += "<b>Internal error: " + safeHTML(exception) + "</b><br><pre>" + safeHTML(exception.stack); | function jsdch_aopen (streamListener, context){ this.streamListener = streamListener; this.context = context; if (this.loadGroup) this.loadGroup.addRequest (this, null); var window = findDebuggerWindow(); var ary = this.URI.spec.match (/x-jsd:([^:]+)/); var exception; if (window && "cons... |
MsgJunkMailInfo(true); | function JunkSelectedMessages(setAsJunk){ gDBView.doCommand(setAsJunk ? nsMsgViewCommandType.junk : nsMsgViewCommandType.unjunk);} | |
getJunkmailComponent(); var messages = GetSelectedMessages(); gJunkmailComponent.batchUpdate = true; for ( var msg in messages ) { var message = messenger.messageServiceFromURI(messages[msg]) .messageURIToMsgHdr(messages[msg]); mark(message, setAsJunk, null); } gJunkmailComponent.batchUpdate = false; | function JunkSelectedMessages(setAsJunk){ getJunkmailComponent(); var messages = GetSelectedMessages(); // start the batch of messages // gJunkmailComponent.batchUpdate = true; // mark each one // for ( var msg in messages ) { var message = messenger.messageServiceFromURI(messages[msg]) ... | |
gDBView.doCommand(setAsJunk ? nsMsgViewCommandType.junk : nsMsgViewCommandType.unjunk); | if (setAsJunk) MarkSelectedMessagesRead(true); gDBView.doCommand(setAsJunk ? nsMsgViewCommandType.junk : nsMsgViewCommandType.unjunk); | function JunkSelectedMessages(setAsJunk){ MsgJunkMailInfo(true); gDBView.doCommand(setAsJunk ? nsMsgViewCommandType.junk : nsMsgViewCommandType.unjunk); // XXX TODO // consider whether these messages should be // marked as read (if markAsReadOnSpam is set)} |
opener.open( UrlToGoTo, "calendar-opened-window" ); | window.open( UrlToGoTo, "calendar-opened-window" ); launch = true; | function launchBrowser(){ //get the URL from the text box var UrlToGoTo = document.getElementById( "uri-field" ).value; //launch the browser to that URL opener.open( UrlToGoTo, "calendar-opened-window" );} |
if( navigator.vendor != "Mozilla Sunbird" ) { var navWindow; | var navWindow; try { var wm = (Components .classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator)); navWindow = wm.getMostRecentWindow("navigator:browser"); } catch (e) { dump("launchBrowser (getMostRecentWindow) exception:\n" + e + "\n"); } if (navWindow) { if ("delayed... | function launchBrowser(UrlToGoTo){ if( navigator.vendor != "Mozilla Sunbird" ) { var navWindow; // if not, get the most recently used browser window try { var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); ... |
try { var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); navWindow = wm.getMostRecentWindow("navigator:browser"); } catch (e) { dump("launchBrowser: Exception: " + e + "\n"); } if (navWindow) { if ("delayedOpenTab" in navWindow) navWindow.delaye... | var messenger; try { var messenger = (Components .classes["@mozilla.org/messenger;1"] .createInstance()); messenger = messenger.QueryInterface(Components.interfaces.nsIMessenger); } catch (e) { dump("launchBrowser (messenger) exception:\n"+e+"\n"); } if (messenger) { messenger.launchExternalURL(UrlToGoTo); return; } | function launchBrowser(UrlToGoTo){ if( navigator.vendor != "Mozilla Sunbird" ) { var navWindow; // if not, get the most recently used browser window try { var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); ... |
var ass = Components.classes["@mozilla.org/appshell/appShellService;1"].getService(Components.interfaces.nsIAppShellService); w = ass.hiddenDOMWindow; w.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", UrlToGoTo ); } } else { try { var messenger = Components.classes["@mozilla.org/messenger;1"].createInst... | var externalLoader = (Components .classes["@mozilla.org/uriloader/external-protocol-service;1"] .getService(Components.interfaces.nsIExternalProtocolService)); var nsURI = (Components .classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService) .newURI(UrlToGoTo, null, null)); externalL... | function launchBrowser(UrlToGoTo){ if( navigator.vendor != "Mozilla Sunbird" ) { var navWindow; // if not, get the most recently used browser window try { var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); ... |
OpenOrFocusWindow({onOkCallback: refreshCustomMailViews, onCancelCallback: cancelCustomMailViews}, 'mailnews:mailviewlist', 'chrome: | window.openDialog("chrome: | function LaunchCustomizeDialog(){ OpenOrFocusWindow({onOkCallback: refreshCustomMailViews, onCancelCallback: cancelCustomMailViews}, 'mailnews:mailviewlist', 'chrome://messenger/content/mailViewList.xul'); // window.openDialog('chrome://messenger/content/mailViewList.xul', "", 'centerscreen,resizeable,titlebar,chrome... |
window.openDialog("chrome: | window.openDialog("chrome: "mailnews:mailviewlist", "chrome,modal,titlebar,resizable,centerscreen", {onCloseCallback: ViewChangeByCustomValue}); | function LaunchCustomizeDialog(){ // made it modal, see bug #191188 window.openDialog("chrome://messenger/content/mailViewList.xul", "mailnews:mailviewlist", "chrome,modal,titlebar,resizable,centerscreen", {onCloseCallback: refreshCustomMailViews});} |
OpenOrFocusWindow({onOkCallback: refreshCustomMailViews}, 'mailnews:mailviewlist', 'chrome: | OpenOrFocusWindow({onOkCallback: refreshCustomMailViews, onCancelCallback: cancelCustomMailViews}, 'mailnews:mailviewlist', 'chrome: | function LaunchCustomizeDialog(){ OpenOrFocusWindow({onOkCallback: refreshCustomMailViews}, 'mailnews:mailviewlist', 'chrome://messenger/content/mailViewList.xul'); // window.openDialog('chrome://messenger/content/mailViewList.xul', "", 'centerscreen,resizeable,titlebar,chrome', {onOkCallback: refreshCustomMailViews}... |
var fileInst = new FilePath(path); | fileInst = new FilePath(path); | leaf : function (path) { if(!path){ dump('Please enter a file path as arg\n'); return null; } var fileInst = new FilePath(path); return fileInst.leafName;}, |
today = new Date() BirthDay = new Date(document_1.live.age.value) | var today = new Date() var BirthDay = new Date(document_1.live.age.value) var timeold = (today.getTime() - BirthDay.getTime()); var sectimeold = timeold / 1000; var secondsold = Math.floor(sectimeold); var msPerDay = 24 * 60 * 60 * 1000 ; | function lifetimer(){ today = new Date() BirthDay = new Date(document_1.live.age.value) timeold = (today.getTime() - BirthDay.getTime()); sectimeold = timeold / 1000; secondsold = Math.floor(sectimeold); msPerDay = 24 * 60 * 60 * 1000 ; timeold = (today.getTime() - Birth... |
sectimeold = timeold / 1000; secondsold = Math.floor(sectimeold); msPerDay = 24 * 60 * 60 * 1000 ; timeold = (today.getTime() - BirthDay.getTime()); e_daysold = timeold / msPerDay; daysold = Math.floor(e_daysold); e_hrsold = (e_daysold - daysold)*24; hrsold = Math.floor(e_hrsold); minsold = Math.floor((e_hrsold - hrsol... | var e_daysold = timeold / msPerDay; var daysold = Math.floor(e_daysold); var e_hrsold = (e_daysold - daysold)*24; var hrsold = Math.floor(e_hrsold); var minsold = Math.floor((e_hrsold - hrsold)*60); | function lifetimer(){ today = new Date() BirthDay = new Date(document_1.live.age.value) timeold = (today.getTime() - BirthDay.getTime()); sectimeold = timeold / 1000; secondsold = Math.floor(sectimeold); msPerDay = 24 * 60 * 60 * 1000 ; timeold = (today.getTime() - Birth... |
timerID = setTimeout("lifetimer()",1000) | var timerID = setTimeout("lifetimer()",1000) | function lifetimer(){ today = new Date() BirthDay = new Date(document_1.live.age.value) timeold = (today.getTime() - BirthDay.getTime()); sectimeold = timeold / 1000; secondsold = Math.floor(sectimeold); msPerDay = 24 * 60 * 60 * 1000 ; timeold = (today.getTime() - Birth... |
var text = this.gatherTextUnder( this.link ); | var text = gatherTextUnder( this.link ); | linkText : function () { var text = this.gatherTextUnder( this.link ); return text; }, |
function list_formatToHtml(aStream, aStart, aEnd, aCount, aItems) { | function list_formatToHtml(aStream, aStart, aEnd, aCount, aItems, aTitle) { | function list_formatToHtml(aStream, aStart, aEnd, aCount, aItems) { var htmlexporter = Components.classes["@mozilla.org/calendar/export;1?type=htmllist"] .createInstance(Components.interfaces.calIExporter); htmlexporter.exportToStream(aStream, aCount, aItems);}; |
htmlexporter.exportToStream(aStream, aCount, aItems); | htmlexporter.exportToStream(aStream, aCount, aItems, aTitle); | function list_formatToHtml(aStream, aStart, aEnd, aCount, aItems) { var htmlexporter = Components.classes["@mozilla.org/calendar/export;1?type=htmllist"] .createInstance(Components.interfaces.calIExporter); htmlexporter.exportToStream(aStream, aCount, aItems);}; |
var body = document.getElementById("fieldBody"); | function ListFields() { if (top.fieldMap == null) return; var body = document.getElementById("fieldBody"); var count = top.fieldMap.mapSize; var index; var i; for (i = 0; i < count; i++) { index = top.fieldMap.GetFieldMap( i); AddFieldToList( body, top.fieldMap.GetFieldDescription( index), index, top.fie... | |
AddFieldToList( body, top.fieldMap.GetFieldDescription( index), index, top.fieldMap.GetFieldActive( i)); | AddFieldToList( gListbox, top.fieldMap.GetFieldDescription( index), index, top.fieldMap.GetFieldActive( i)); | function ListFields() { if (top.fieldMap == null) return; var body = document.getElementById("fieldBody"); var count = top.fieldMap.mapSize; var index; var i; for (i = 0; i < count; i++) { index = top.fieldMap.GetFieldMap( i); AddFieldToList( body, top.fieldMap.GetFieldDescription( index), index, top.fie... |
AddFieldToList( body, top.fieldMap.GetFieldDescription( i), i, false); | AddFieldToList( gListbox, top.fieldMap.GetFieldDescription( i), i, false); | function ListFields() { if (top.fieldMap == null) return; var body = document.getElementById("fieldBody"); var count = top.fieldMap.mapSize; var index; var i; for (i = 0; i < count; i++) { index = top.fieldMap.GetFieldMap( i); AddFieldToList( body, top.fieldMap.GetFieldDescription( index), index, top.fie... |
var rSource = RDF.GetResource(NODE_ID(aElement)); | var rSource = RDF.GetResource(aElement.id); | function LITERAL (aDB, aElement, aPropertyID){ var RDF = BookmarksUIElement.prototype.RDF; var rSource = RDF.GetResource(NODE_ID(aElement)); var rProperty = RDF.GetResource(aPropertyID); var node = aDB.GetTarget(rSource, rProperty, true); return node ? node.QueryInterface(Components.interfaces.nsIRDFLiteral).Value... |
gNavigatorBundle = document.getElementById("bundle_browser"); | function load(){ var panelBrowser = document.getElementById('web-panels-browser'); panelBrowser.webProgress.addProgressListener(panelProgressListener, Components.interfaces.nsIWebProgress.NOTIFY_ALL); if (panelBrowser.getAttribute("cachedurl")) panelBrowser.webNavigation.loadURI(panelBrowser.getAttribute("cachedu... | |
aEvent.preventBubble(); | aEvent.stopPropagation(); | loadBookmark: function (aEvent, aTarget, aDS) { if (aTarget.getAttribute("class") == "openintabs-menuitem") aTarget = aTarget.parentNode.parentNode; // Check for invalid bookmarks (most likely a static menu item like "Manage Bookmarks") if (!this.isBTBookmark(aTarget.id)) return; var rSou... |
setFieldValue( "repeat-length-units", gEvent.recurUnits ); | if( gEvent.recurUnits ) setFieldValue( "repeat-length-units", gEvent.recurUnits ); else setFieldValue( "repeat-length-units", "weeks" ); | function loadCalendarEventDialog(){ // Get arguments, see description at top of file var args = window.arguments[0]; gMode = args.mode; gOnOkFunction = args.onOk; gEvent = args.calendarEvent; // mode is "new or "edit" - show proper header var titleDataItem = null; if( "new" == args.mode ) ... |
setFieldValue( "repeat-forever-radio", (gEvent.recurForever != undefined && gEvent.recurForever != false), "checked" ); setFieldValue( "repeat-until-radio", (gEvent.recurForever == undefined || gEvent.recurForever == false), "checked" ); | setFieldValue( "repeat-forever-radio", (gEvent.recurForever != undefined && gEvent.recurForever != false), "selected" ); setFieldValue( "repeat-until-radio", (gEvent.recurForever == undefined || gEvent.recurForever == false), "selected" ); | function loadCalendarEventDialog(){ // Get arguments, see description at top of file var args = window.arguments[0]; gMode = args.mode; gCategoryManager = args.CategoryManager; // remember function to call when OK is clicked gOnOkFunction = args.onOk; gEvent = args.calendarEvent; // mode ... |
doSetOKCancel( onOKCommand, 0 ); | function loadCalendarEventDialog(){ // Get arguments, see description at top of file var args = window.arguments[0]; gMode = args.mode; gOnOkFunction = args.onOk; gEvent = args.calendarEvent; // mode is "new or "edit" - show proper header var titleDataItem = null; if( "new" == args.mode ) ... | |
gArgs = window.arguments[0]; gStartDate = gArgs.selectedDate ; gSelectedEvents = gArgs.selectedEvents ; | function loadCalendarPrintDialog(){ // load up the sent arguments. gArgs = window.arguments[0]; gStartDate = gArgs.selectedDate ; gSelectedEvents = gArgs.selectedEvents ; // set the date to the currently selected date document.getElementById( "start-date-picker" ).value = selectedDate; // start focus on title v... | |
document.getElementById( "start-date-picker" ).value = selectedDate; | document.getElementById( "start-date-picker" ).value = gCalendarWindow.currentView.selectedDate; document.getElementById( "end-date-picker" ).value = gCalendarWindow.currentView.selectedDate; | function loadCalendarPrintDialog(){ // load up the sent arguments. gArgs = window.arguments[0]; gStartDate = gArgs.selectedDate ; gSelectedEvents = gArgs.selectedEvents ; // set the date to the currently selected date document.getElementById( "start-date-picker" ).value = selectedDate; // start focus on title v... |
var firstFocus = document.getElementById( "title-field" ); firstFocus.focus(); | var firstFocus = document.getElementById( "title-field" ).focus(); if (gCalendarWindow.EventSelection.selectedEvents.length == 0) document.getElementById("list").setAttribute("disabled", true); | function loadCalendarPrintDialog(){ // load up the sent arguments. gArgs = window.arguments[0]; gStartDate = gArgs.selectedDate ; gSelectedEvents = gArgs.selectedEvents ; // set the date to the currently selected date document.getElementById( "start-date-picker" ).value = selectedDate; // start focus on title v... |
if (!gCalendarWindow.EventSelection.selectedEvents.length) { | if (!theView.getSelectedItems({}).length) { | function loadCalendarPrintDialog(){ // set the datepickers to the currently selected dates var theView = window.opener.currentView(); document.getElementById("start-date-picker").value = theView.startDay.jsDate; document.getElementById("end-date-picker").value = theView.endDay.jsDate; if (!gCalendarWindo... |
document.getElementById( "publish-url-textbox" ).value = opener.getCharPref( opener.gCalendarWindow.calendarPreferences.calendarPref, "publish.path", "" ); document.getElementById( "publish-remotefilename-textbox" ).value = opener.getCharPref( opener.gCalendarWindow.calendarPreferences.calendarPref, "publish.filename",... | if( args.publishObject ) { document.getElementById( "publish-url-textbox" ).value = args.publishObject.url; document.getElementById( "publish-remotefilename-textbox" ).value = args.publishObject.filename; document.getElementById( "publish-username-textbox" ).value = args.publishObject.username; document.getElementById(... | function loadCalendarPublishDialog(){ // Get arguments, see description at top of file var args = window.arguments[0]; gOnOkFunction = args.onOk; //get default values from the prefs document.getElementById( "publish-url-textbox" ).value = opener.getCharPref( opener.gCalendarWindow.calendarPreferences... |
document.getElementById( "publish-remotePath-textbox" ).value = opener.getCharPref( opener.gCalendarWindow.calendarPreferences.calendarPref, "publish.path", "" ); | function loadCalendarPublishDialog(){ // Get arguments, see description at top of file var args = window.arguments[0]; gOnOkFunction = args.onOk; if( args.publishObject ) { gPublishObject = args.publishObject; if ( args.publishObject.remotePath ) document.getElementById( "publish-r... | |
this.categoriesStringBundle = srGetStrBundle("chrome: var categoriesString = this.categoriesStringBundle.GetStringFromName("categories" ); var categoriesList = categoriesString.split( "," ); var oldMenulist = document.getElementById( "categories-menulist-menupopup" ); while( oldMenulist.hasChildNodes() ) oldMenulist.r... | function loadCalendarToDoDialog(){ // Get arguments, see description at top of file var args = window.arguments[0]; gMode = args.mode; gOnOkFunction = args.onOk; gToDo = args.calendarToDo; // mode is "new or "edit" - show proper header var titleDataItem = null; if( "new" == args.mode ) { ... | |
case gToDo.ICAL_STATUS_NEEDSACTION: setFieldValue( "status-field", "ICAL_STATUS_NEEDSACTION" ); break; case gToDo.ICAL_STATUS_INPROGRESS: setFieldValue( "status-field", "ICAL_STATUS_INPROGRESS" ); break; case gToDo.ICAL_STATUS_COMPLETED: setFieldValue( "status-field", "ICAL_STATUS_COMPLETED" ); break; | function loadCalendarToDoDialog(){ // Get arguments, see description at top of file var args = window.arguments[0]; gMode = args.mode; gOnOkFunction = args.onOk; gToDo = args.calendarToDo; // mode is "new or "edit" - show proper header var titleDataItem = null; if( "new" == args.mode ) { ... | |
setFieldValue( "status-field", "ICAL_STATUS_CANCELLED" ); | setFieldValue( "cancelled-checkbox", true, "checked" ); | function loadCalendarToDoDialog(){ // Get arguments, see description at top of file var args = window.arguments[0]; gMode = args.mode; gOnOkFunction = args.onOk; gToDo = args.calendarToDo; // mode is "new or "edit" - show proper header var titleDataItem = null; if( "new" == args.mode ) { ... |
orphanTreeView = Components.classes[nsCertTree] .createInstance(nsICertTree); orphanTreeView.loadCertsFromCache(certcache, nsIX509Cert.UNKNOWN_CERT); document.getElementById('orphan-tree') .treeBoxObject.view = orphanTreeView; | function LoadCerts(){ window.crypto.enableSmartCardEvents = true; document.addEventListener("smartcard-insert", onSmartCardChange, false); document.addEventListener("smartcard-remove", onSmartCardChange, false); certdb = Components.classes[nsX509CertDB].getService(nsIX509CertDB); var certcache = Components.classes... | |
var bundle = srGetStrBundle("chrome: var verifiedColText; if (certdb.ocspOn) { verifiedColText = bundle.GetStringFromName("certmgr.verifiedNoOCSP"); } else { verifiedColText = bundle.GetStringFromName("certmgr.verified"); } var verifiedCol = document.getElementById('verifiedcol'); verifiedCol.setAttribute('label', veri... | function LoadCerts(){ certdb = Components.classes[nsX509CertDB].getService(nsIX509CertDB); caOutlinerView = Components.classes[nsCertOutliner] .createInstance(nsICertOutliner); caOutlinerView.loadCerts(nsIX509Cert.CA_CERT); document.getElementById('ca-outliner') .outlinerBoxObject.view = caOutl... | |
var dataObject = window.opener.top.hPrefWindow.wsm.dataManager.pageData[window.location.href]; | var dataObject = window.opener.top.hPrefWindow.wsm.dataManager.pageData[window.location.href].userData; | function loadCookies() { if (!cookieBundle) cookieBundle = document.getElementById("cookieBundle"); if (!cookiesTree) cookiesTree = document.getElementById("cookiesTree"); var dataObject = window.opener.top.hPrefWindow.wsm.dataManager.pageData[window.location.href]; if (!('cookies' in dataObject)) { // loa... |
lastCookieSortColumn = 'status'; | function loadCookies() { // load cookies into a table var enumerator = cookiemanager.enumerator; var count = 0; var showPolicyField = false; while (enumerator.hasMoreElements()) { var nextCookie = enumerator.getNext(); nextCookie = nextCookie.QueryInterface(Components.interfaces.nsICookie); var host = nex... | |
prepareForViewChange(); | PrepareForViewChange(); | function LoadCustomMailView(index){ prepareForViewChange(); var searchTermsArrayForQS = CreateGroupedSearchTerms(gMailViewList.getMailViewAt(index).searchTerms); createSearchTermsWithList(searchTermsArrayForQS); AddVirtualFolderTerms(searchTermsArrayForQS); gDefaultSearchViewTerms = searchTermsArrayForQS;} |
var regFile = globals.getFolder( self ) + "isp/en/" + globals.selectedISP + "/client_data/config/config.ias.r"; | var acctSetupFolder = globals.getFolder( self ) + "isp/" + language + "/" + globals.selectedISP + "/client_data/config/"; var regFile = acctSetupFolder + "config.ias.r"; | function loadData(){ netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" ); if ( parent.controls.generateControls ) parent.controls.generateControls(); if ( globals.document.vars.editMode.value != "yes" ) { // only connect to reggie if editmode is off var connectStatusFlag = globals.document.setupPlug... |
var profileDir = parent.parent.globals.document.setupPlugin.GetCurrentProfileDirectory(); | var profileDir = parent.parent.globals.currentProfileDirectory; parent.parent.globals.debug("****Priofile Dir = " + profileDir); | function loadData(){ var cleanFlag = false; var configuredFlag = false; var newProfileFlag = false; var configFilename = ""; netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" ); var acctSetupFile = parent.parent.globals.getAcctSetupFilename( self ); var editMode = parent.parent.globals.document.vars.ed... |
var regFile = globals.getFolder( self ) + "isp/" + language + "/" + globals.selectedISP + "/client_data/config/config.ias.r"; | var acctSetupFolder = globals.getFolder( self ) + "isp/" + language + "/" + globals.selectedISP + "/client_data/config/"; var regFile = acctSetupFolder + "config.ias.r"; | function loadData(){ netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" ); if ( parent.controls.generateControls ) parent.controls.generateControls(); if ( documentVars.editMode.value != "yes" ) { // only connect to reggie if editmode is off var connectStatusFlag = plugin.IsDialerConnected(); if ( c... |
gStartTime = startTime; gEndTime = endTime; | var kDefaultTimezone = calendarDefaultTimezone(); gStartTimezone = startTime.timezone; gEndTimezone = endTime.timezone; gStartTime = startTime.getInTimezone(kDefaultTimezone); gEndTime = endTime.getInTimezone(kDefaultTimezone); | function loadDateTime(item) { if (isEvent(item)) { var startTime = item.startDate; var endTime = item.endDate; var duration = endTime.subtractDate(startTime); // Check if an all-day event has been passed in (to adapt endDate). if (startTime.isDate) { startTime = startTime.clone(); endTime ... |
if (hasEntryDate) | if (hasEntryDate) { | function loadDateTime(item) { if (isEvent(item)) { var startTime = item.startDate; var endTime = item.endDate; var duration = endTime.subtractDate(startTime); // Check if an all-day event has been passed in (to adapt endDate). if (startTime.isDate) { startTime = startTime.clone(); endTime ... |
if (hasDueDate) | if (hasDueDate) { | function loadDateTime(item) { if (isEvent(item)) { var startTime = item.startDate; var endTime = item.endDate; var duration = endTime.subtractDate(startTime); // Check if an all-day event has been passed in (to adapt endDate). if (startTime.isDate) { startTime = startTime.clone(); endTime ... |
gEndTimezone = endTime.timezone; endTime = endTime.getInTimezone(kDefaultTimezone); } | function loadDateTime(item) { if (isEvent(item)) { var startTime = item.startDate; var endTime = item.endDate; var duration = endTime.subtractDate(startTime); // Check if an all-day event has been passed in (to adapt endDate). if (startTime.isDate) { startTime = startTime.clone(); endTime ... | |
} else { gEndTimezone = kDefaultTimezone; | function loadDateTime(item) { if (isEvent(item)) { var startTime = item.startDate; var endTime = item.endDate; var duration = endTime.subtractDate(startTime); // Check if an all-day event has been passed in (to adapt endDate). if (startTime.isDate) { startTime = startTime.clone(); endTime ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.