rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
pref = pref.QueryInterface(Components.interfaces.nsIPref); | pref = pref.QueryInterface(Components.interfaces.nsIPrefBranch); | function ComposerSelectDetector(event){ //dump("Charset Detector menu item pressed: " + event.target.getAttribute('id') + "\n"); var uri = event.target.getAttribute("id"); var prefvalue = uri.substring('chardet.'.length, uri.length); if("off" == prefvalue) { // "off" is special value to turn off the detect... |
pref.SetCharPref("intl.charset.detector", prefvalue); | pref.setCharPref("intl.charset.detector", prefvalue); | function ComposerSelectDetector(event){ //dump("Charset Detector menu item pressed: " + event.target.getAttribute('id') + "\n"); var uri = event.target.getAttribute("id"); var prefvalue = uri.substring('chardet.'.length, uri.length); if("off" == prefvalue) { // "off" is special value to turn off the detect... |
LoadIdentity(true); | function ComposeStartup(){ dump("Compose: ComposeStartup\n"); //dump("Get arguments\n"); var args = GetArgs(); //dump("fill in Identity menulist\n"); var identityList = document.getElementById("msgIdentity"); var identityListPopup = document.getElementById("msgIdentityPopup"); if (identityListPopup) { ... | |
if (args.body) msgCompFields.SetBody(args.body); | if (args.body) { if (args.bodyislink == "true" && msgCompose.composeHTML) { msgCompFields.SetBody("<A HREF=\"" + args.body + "\">" + unescape(args.body) + "</A>"); } else { msgCompFields.SetBody(args.body); } } | function ComposeStartup(){ dump("Compose: ComposeStartup\n"); // Get arguments var args = GetArgs(); // fill in Identity combobox var identitySelect = document.getElementById("msgIdentity"); if (identitySelect) { fillIdentitySelect(identitySelect); } var identity; if (args.preselectid) i... |
var editorShell = Components.classes["@mozilla.org/editor/editorshell;1"].createInstance(); editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); | var editorElement = document.getElementById("content-frame"); if (!editorElement) { dump("Failed to get editor element!\n"); return; } var editorShell = editorElement.editorShell; | function ComposeStartup(){ dump("Compose: ComposeStartup\n"); //dump("Get arguments\n"); var args = GetArgs(); //dump("fill in Identity menulist\n"); var identityList = document.getElementById("msgIdentity"); var identityListPopup = document.getElementById("msgIdentityPopup"); if (identityListPopup) { ... |
window.editorShell.Init(); | function ComposeStartup(){ dump("Compose: ComposeStartup\n"); //dump("Get arguments\n"); var args = GetArgs(); //dump("fill in Identity menulist\n"); var identityList = document.getElementById("msgIdentity"); var identityListPopup = document.getElementById("msgIdentityPopup"); if (identityListPopup) { ... | |
dump("Compose: ComposeStartup\n"); | function ComposeStartup(){ dump("Compose: ComposeStartup\n"); var params = null; // New way to pass parameters to the compose window as a nsIMsgComposeParameters object var args = null; // old way, parameters are passed as a string if (window.arguments && window.arguments[0]) { try { params = window.argum... | |
catch(ex){} if (params == null) args = GetArgs(window.arguments[0]); | catch(ex) { } if (!params) args = GetArgs(window.arguments[0]); | function ComposeStartup(){ dump("Compose: ComposeStartup\n"); var params = null; // New way to pass parameters to the compose window as a nsIMsgComposeParameters object var args = null; // old way, parameters are passed as a string if (window.arguments && window.arguments[0]) { try { params = window.argum... |
if (params.identity == null) { | if (!params.identity) { | function ComposeStartup(){ dump("Compose: ComposeStartup\n"); var params = null; // New way to pass parameters to the compose window as a nsIMsgComposeParameters object var args = null; // old way, parameters are passed as a string if (window.arguments && window.arguments[0]) { try { params = window.argum... |
try { window.updateCommands("create"); } catch(e) {} | function ComposeStartup(){ dump("Compose: ComposeStartup\n"); var params = null; // New way to pass parameters to the compose window as a nsIMsgComposeParameters object var args = null; // old way, parameters are passed as a string if (window.arguments && window.arguments[0]) { try { params = window.argum... | |
window.editorShell.wrapColumn = msgCompose.wrapLength; | try { window.editorShell.wrapColumn = msgCompose.wrapLength; } catch (e) { dump("### window.editorShell.wrapColumn exception text: " + e + " - failed\n"); } | function ComposeStartup(){ dump("Compose: StartUp\n"); // Get arguments var args = GetArgs(); dump("[type=" + args.type + "]\n"); dump("[format=" + args.format + "]\n"); dump("[originalMsg=" + args.originalMsg + "]\n"); if (msgComposeService) { msgCompose = msgComposeService.InitCompose(window, args.originalMsg, args.... |
window.editorShell.SetEditorType("htmlMail"); | window.editorShell.SetEditorType("html"); | function ComposeStartup(){ dump("Compose: ComposeStartup\n"); // Get arguments var args = GetArgs(); // fill in Identity combobox var identitySelect = document.getElementById("msgIdentity"); if (identitySelect) { fillIdentitySelect(identitySelect); } // fill in Recipient type combobox FillR... |
identitySelect.value = args.preselectid; | identity = getIdentityForKey(args.preselectid); | function ComposeStartup(){ dump("Compose: ComposeStartup\n"); // Get arguments var args = GetArgs(); // fill in Identity combobox var identitySelect = document.getElementById("msgIdentity"); if (identitySelect) { fillIdentitySelect(identitySelect); // because of bug #14312, a default option was in the s... |
identitySelect.selectedIndex = 0; | { identity = msgService.currentIdentity; } identitySelect.value = identity.key; | function ComposeStartup(){ dump("Compose: ComposeStartup\n"); // Get arguments var args = GetArgs(); // fill in Identity combobox var identitySelect = document.getElementById("msgIdentity"); if (identitySelect) { fillIdentitySelect(identitySelect); // because of bug #14312, a default option was in the s... |
var identity = getIdentityForKey(args.preselectid); | function ComposeStartup(){ dump("Compose: ComposeStartup\n"); // Get arguments var args = GetArgs(); // fill in Identity combobox var identitySelect = document.getElementById("msgIdentity"); if (identitySelect) { fillIdentitySelect(identitySelect); // because of bug #14312, a default option was in the s... | |
document.getElementById("FormatToolbar").setAttribute("hidden", true); | function ComposeStartup(){ dump("Compose: ComposeStartup\n"); // Get arguments var args = GetArgs(); // fill in Identity combobox var identitySelect = document.getElementById("msgIdentity"); if (identitySelect) { fillIdentitySelect(identitySelect); } // fill in Recipient type combobox FillR... | |
msgCompFields.SetBody("<BR><A HREF=\"" + body + "\">" + cleanBody + "</A><BR>"); | msgCompFields.SetBody('<a href="' + body + '">' + cleanBody + '</a><br>'); | function ComposeStartup(){ dump("Compose: ComposeStartup\n"); var params = null; // New way to pass parameters to the compose window as a nsIMsgComposeParameters object var args = null; // old way, parameters are passed as a string if (window.arguments && window.arguments[0]) { try { params = window.arg... |
msgCompFields.SetBody("\n<" + body + ">\n"); | msgCompFields.SetBody('<' + body + '>\n'); | function ComposeStartup(){ dump("Compose: ComposeStartup\n"); var params = null; // New way to pass parameters to the compose window as a nsIMsgComposeParameters object var args = null; // old way, parameters are passed as a string if (window.arguments && window.arguments[0]) { try { params = window.arg... |
RemoveDirectoryServerObserver("mail.identity." + currentIdentity.key); | RemoveDirectoryServerObserver("mail.identity." + gCurrentIdentity.key); | function ComposeUnload(){ dump("\nComposeUnload from XUL\n"); RemoveMessageComposeOfflineObserver(); RemoveDirectoryServerObserver(null); RemoveDirectoryServerObserver("mail.identity." + currentIdentity.key); if (currentAutocompleteDirectory) RemoveDirectorySettingsObserver(currentAutocompleteDirectory);... |
RemoveMessageComposeOfflineObserver(); | function ComposeUnload(){ dump("\nComposeUnload from XUL\n"); msgCompose.UnregisterStateListener(stateListener);} | |
msgCompose.UnregisterStateListener(stateListener); | function ComposeUnload(calledFromExit){ dump("\nComposeUnload from XUL\n"); if (msgCompose && msgComposeService) msgComposeService.DisposeCompose(msgCompose, false); //...and what's about the editor appcore, how can we release it?} | |
var rv; | function con_eval(__s, __o){ var __ex; try { if (__o && "eval" in __o) rv = __o.eval(__s); else rv = eval(__s); } catch (__ex) { dd ("doEval caught: " + __ex); if (__ex && typeof __ex == "object" && "fileName" in __ex && __ex.fileNam... | |
if (__o && "eval" in __o) rv = __o.eval(__s); | if (__o) { rv = eval(__s, __o); } | function con_eval(__s, __o){ var __ex; try { if (__o && "eval" in __o) rv = __o.eval(__s); else rv = eval(__s); } catch (__ex) { dd ("doEval caught: " + __ex); if (__ex && typeof __ex == "object" && "fileName" in __ex && __ex.fileNam... |
} | function con_eval(__s, __o){ var __ex; try { if (__o && "eval" in __o) rv = __o.eval(__s); else rv = eval(__s); } catch (__ex) { dd ("doEval caught: " + __ex); if (__ex && typeof __ex == "object" && "fileName" in __ex && __ex.fileNam... | |
if (__ex && __ex.fileName && | if (__ex && typeof ex == "object" && "fileName" in __ex && | function con_eval(__s){ var __ex; try { return eval(__s); } catch (__ex) { dd ("doEval caught: " + __ex); if (__ex && __ex.fileName && __ex.fileName.search (/venkman-eval.js$/) != -1) { __ex.fileName = MSG_VAL_CONSOLE; __ex.lineNumbe... |
dd ("doEval caught: " + __ex); | function con_eval(__s){ var __ex; try { return eval(__s); } catch (__ex) { if (__ex.fileName && __ex.fileName.search (/venkman-eval.js$/) != -1) { __ex.fileName = MSG_VAL_CONSOLE; __ex.lineNumber = 1; } throw __ex; } } | |
var source = console.scripts[currentFrame.script.fileName]; if (source) | var scriptRec = console.scripts[currentFrame.script.fileName]; if (scriptRec) | function con_fchanged (currentFrame, currentFrameIndex){ var stack = console.stackView.stack; if (currentFrame) { var frameRecord = stack.childData[currentFrameIndex]; var vr = frameRecord.calculateVisualRow(); console.stackView.selectedIndex = vr; console.stackView.scrollTo (vr... |
console.sourceView.displaySource(source); | console.sourceView.setCurrentSourceProvider(scriptRec); | function con_fchanged (currentFrame, currentFrameIndex){ var stack = console.stackView.stack; if (currentFrame) { var frameRecord = stack.childData[currentFrameIndex]; var vr = frameRecord.calculateVisualRow(); console.stackView.selectedIndex = vr; console.stackView.scrollTo (vr... |
console.onInputCommand (e); | ary = console._commands.list (e.command); switch (ary.length) { case 0: display (getMsg(MSN_ERR_NO_COMMAND, e.command), MT_ERROR); break; case 1: if (typeof console[ary[0].func] == "undefined") display (getMsg(MSN_ERR_NOTIMPLEMENTED, ary[0].name), MT_ERROR); else { e.commandEntry = ary[0]; console[ary[0].func](e) } b... | function con_icline (e){ if (console._inputHistory.length == 0 || console._inputHistory[0] != e.line) console._inputHistory.unshift (e.line); if (console._inputHistory.length > console.prefs["input.history.max"]) console._inputHistory.pop(); console._lastHistoryReferenced = -1; console._in... |
str += str ? ", " + ary[i].name : ary[i].name; | str += str ? MSG_COMMASP + ary[i].name : ary[i].name; | function con_icommand (e){ var ary = console._commands.list (e.command); switch (ary.length) { case 0: display (getMsg(MSN_ERR_NO_COMMAND, e.command), MT_ERROR); break; case 1: if (typeof console[ary[0].func] == "undefined") ... |
var idx = parseInt(e.inputData); if (idx < 0) | var idx = parseInt(e.inputData); if (isNaN(idx)) | function con_iframe (e){ if (!console.frames) { display (MSG_ERR_NO_STACK, MT_ERROR); return false; } var idx = parseInt(e.inputData); if (idx < 0) idx = getCurrentFrameIndex(); setCurrentFrameByIndex(idx); displayFrame (console.frames[idx], idx, true); focusSource (... |
display (getMsg(MSN_ERR_INVALID_PARAM, [MSG_VAL_EXPR, String(v)]), | var str = (v instanceof jsdIValue) ? formatValue(v) : String(v) display (getMsg(MSN_ERR_INVALID_PARAM, [MSG_VAL_EXPR, str]), | function con_iprops (e, forceDebuggerScope){ if (!e.inputData) { display (getMsg(MSN_ERR_REQUIRED_PARAM, MSG_VAL_EXPR)); return false; } var v; if (forceDebuggerScope) v = evalInDebuggerScope (e.inputData); else v = evalInTargetScope (e.inputData); if (!(v instan... |
init(); | try { init(); } catch (ex) { window.alert (getMsg (MSN_ERR_STARTUP, formatException(ex))); } | function con_load (e){ dd ("Application venkman, 'JavaScript Debugger' loaded."); init(); } |
sourceView.displaySource (scriptRec); | sourceView.setCurrentSourceProvider (scriptRec); | function con_projsel (e){ if (console.projectView.selectedIndex == -1) return; console.scriptsView.selectedIndex = -1; console.stackView.selectedIndex = -1; console.sourceView.selectedIndex = -1; var rowIndex = console.projectView.selectedIndex; if (rowIndex == -1 || rowIndex > conso... |
} | function con_scptsel (e){ if (console.scriptsView.selectedIndex == -1) return; console.projectView.selectedIndex = -1; console.stackView.selectedIndex = -1; console.sourceView.selectedIndex = -1; var rowIndex = console.scriptsView.selectedIndex; if (rowIndex == -1 || rowIndex > console.scrip... | |
console.ui["menu_initAtStartup"].setAttribute ("checked", | console.ui["menu_InitAtStartup"].setAttribute ("checked", | function con_showdebug (){ console.ui["menu_initAtStartup"].setAttribute ("checked", console.jsds.initAtStartup); var check; switch (getThrowMode()) { case TMODE_IGNORE: check = "menu_TModeIgnore"; break; case TMODE_TR... |
if (colID == "breakpoint-col") | if (!console.sourceView.prettyPrint && colID == "breakpoint-col") | function con_sourceclick (e){ var target = e.originalTarget; if (target.localName == "outlinerbody") { var row = new Object(); var colID = new Object(); var childElt = new Object(); var outliner = console.sourceView.outliner; outliner.getCellAt(e.clientX, e.client... |
if (row.value == -1) return; | function con_sourceclick (e){ var target = e.originalTarget; if (target.localName == "outlinerbody") { var row = new Object(); var colID = new Object(); var childElt = new Object(); var outliner = console.sourceView.outliner; outliner.getCellAt(e.clientX, e.client... | |
if (row.value == -1) return; | function con_sourcesel (e){ if (console.sourceView.selectedIndex == -1) return; console.scriptsView.selectedIndex = -1; console.stackView.selectedIndex = -1; console.projectView.selectedIndex = -1; if (console.sourceView.outliner.selection.getRangeCount() > 1) { var row = new Objec... | |
source = console.scripts[row.frame.script.fileName]; if (!source) | var scriptContainer = console.scripts[row.frame.script.fileName]; if (!scriptContainer) | function con_stacksel (e){ if (console.stackView.selectedIndex == -1) return; console.scriptsView.selectedIndex = -1; console.projectView.selectedIndex = -1; console.sourceView.selectedIndex = -1; var rowIndex = console.stackView.selectedIndex; if (rowIndex == -1 || rowIndex > console.stackVie... |
sourceView.displaySource(source); | var scriptRecord = scriptContainer.locateChildByScript (row.frame.script); if (!scriptRecord) { dd ("frame with unknown script"); return; } sourceView.setCurrentSourceProvider(scriptRecord); | function con_stacksel (e){ if (console.stackView.selectedIndex == -1) return; console.scriptsView.selectedIndex = -1; console.projectView.selectedIndex = -1; console.sourceView.selectedIndex = -1; var rowIndex = console.stackView.selectedIndex; if (rowIndex == -1 || rowIndex > console.stackVie... |
console.highlightEnd = script.baseLineNumber - 1 + script.lineExtent; | console.highlightEnd = script.baseLineNumber + script.lineExtent - 2; | function con_stacksel (e){ if (console.stackView.selectedIndex == -1) return; console.scriptsView.selectedIndex = -1; console.projectView.selectedIndex = -1; console.sourceView.selectedIndex = -1; var rowIndex = console.stackView.selectedIndex; if (rowIndex == -1 || rowIndex > console.stackVie... |
sourceView.displaySource(console.scripts[creatorURL]); | sourceView.setCurrentSourceProvider(console.scripts[creatorURL]); | function con_stacksel (e){ if (console.stackView.selectedIndex == -1) return; console.scriptsView.selectedIndex = -1; console.projectView.selectedIndex = -1; console.sourceView.selectedIndex = -1; var rowIndex = console.stackView.selectedIndex; if (rowIndex == -1 || rowIndex > console.stackVie... |
[partialCommand, "[" + cmds.join(", ") + "]"])); | [partialCommand, "[" + cmds.join(MSG_COMMASP) + "]"])); | function con_tabcomplete (e){ var selStart = e.target.selectionStart; var selEnd = e.target.selectionEnd; var v = e.target.value; if (selStart != selEnd) { /* text is highlighted, just move caret to end and exit */ e.target.selectionStart = e.target.selectionEnd = ... |
if (win.location.href == "about:blank" || win.location.href == "") | if ("ChromeWindow" in win && win instanceof win.ChromeWindow && (win.location.href == "about:blank" || win.location.href == "")) | function con_winopen (win){ if (win.location.href == "about:blank" || win.location.href == "") { //dd ("not loaded yet?"); setTimeout (con_winopen, 100, win); return; } //dd ("window opened: " + win); // + ", " + getInterfaces(win)); console.windows.appendChild (new WindowRecord(... |
console.windows.appendChild (new WindowRecord(win)); | console.windows.appendChild (new WindowRecord(win, "")); console.windows.hookedWindows.push(win); | function con_winopen (win){ if (win.location.href == "about:blank" || win.location.href == "") { //dd ("not loaded yet?"); setTimeout (con_winopen, 100, win); return; } //dd ("window opened: " + win); // + ", " + getInterfaces(win)); console.windows.appendChild (new WindowRecord(... |
var winRecord = console.windows.locateChildByWindow(win); if (!ASSERT(winRecord, "onWindowClose: Can't find window record.")) return; console.windows.removeChildAtIndex(winRecord.childIndex); | if (win.location.href != "chrome: { var winRecord = console.windows.locateChildByWindow(win); if (!ASSERT(winRecord, "onWindowClose: Can't find window record.")) return; console.windows.removeChildAtIndex(winRecord.childIndex); var idx = arrayIndexOf(console.windows.hookedWindows, win); if (idx != -1) arrayRemoveAt(con... | function con_winunload (win){ //dd ("window closed: " + win); var winRecord = console.windows.locateChildByWindow(win); if (!ASSERT(winRecord, "onWindowClose: Can't find window record.")) return; console.windows.removeChildAtIndex(winRecord.childIndex); console.scriptsView.freeze();} |
if (confirmedEntry) return (confirmedEntry == "1" ? true : false); var prompt = getWindowWatcher().getNewPrompter(null); var bundle = getWcapBundle(); var dontAskAgain = { value: false }; var bConfirmed = prompt.confirmCheck( bundle.GetStringFromName("noHttpsConfirmation.label"), bundle.formatStringFromName("noHttpsCo... | if (confirmedEntry) { bConfirmed = (confirmedEntry == "1" ? true : false); } else { var prompt = getWindowWatcher().getNewPrompter(null); var bundle = getWcapBundle(); var dontAskAgain = { value: false }; var bConfirmed = prompt.confirmCheck( bundle.GetStringFromName("noHttpsConfirmation.label"), bundle.formatStringFro... | function confirmInsecureLogin( uri ){ if (g_confirmedHttpLogins == null) { g_confirmedHttpLogins = {}; var confirmedHttpLogins = getPref( "calendar.wcap.confirmed_http_logins", ""); var tuples = confirmedHttpLogins.split(','); for each ( var tuple in tuples ) { var a... |
logMessage("confirmInsecureLogin(" + host + ")", "returned: " + bConfirmed); | function confirmInsecureLogin( uri ){ if (g_confirmedHttpLogins == null) { g_confirmedHttpLogins = {}; var confirmedHttpLogins = getPref( "calendar.wcap.confirmed_http_logins", ""); var tuples = confirmedHttpLogins.split(','); for each ( var tuple in tuples ) { var a... | |
var dialogMsg = null; | var dialogMsg; | function confirmSuspiciousURL(aPhishingType, aSuspiciousHostName){ var brandShortName = gBrandBundle.getString("brandShortName"); var titleMsg = gMessengerBundle.getString("confirmPhishingTitle"); var dialogMsg = null; switch (aPhishingType) { case kPhishingWithIPAddress: case kPhishingWithMismatchedHosts: ... |
var bundle = getBundle(); | var bundle = getWcapBundle(); | function confirmUnsecureLogin( uri ){ var host = uri.hostPort; for each ( var hostEntry in g_httpHosts ) { if (hostEntry.m_host == host) { return hostEntry.m_bConfirmed; } } var prompt = getWindowWatcher().getNewPrompter(null); var bundle = getBundle(); var bConfirmed = prompt... |
var sBundle = srGetStrBundle("chrome: var titleMsg = sBundle.GetStringFromName("confirmUnsubscribeTitle"); var dialogMsg = sBundle.formatStringFromName("confirmUnsubscribeText", [ folder.name], 1); | var titleMsg = gMessengerBundle.getString("confirmUnsubscribeTitle"); var dialogMsg = gMessengerBundle.getFormattedString("confirmUnsubscribeText", [ folder.name]); | function ConfirmUnsubscribe(folder){ var sBundle = srGetStrBundle("chrome://messenger/locale/messenger.properties"); var titleMsg = sBundle.GetStringFromName("confirmUnsubscribeTitle"); var dialogMsg = sBundle.formatStringFromName("confirmUnsubscribeText", [ folder.name]... |
var sBundle = srGetStrBundle("chrome: var titleMsg = gMessengerBundle.GetStringFromName("confirmUnsubscribeTitle"); | if (!gMessengerBundle) gMessengerBundle = document.getElementById("bundle_messenger"); var titleMsg = gMessengerBundle.getString("confirmUnsubscribeTitle"); | function ConfirmUnsubscribe(folder){ var sBundle = srGetStrBundle("chrome://messenger/locale/messenger.properties"); var titleMsg = gMessengerBundle.GetStringFromName("confirmUnsubscribeTitle"); var dialogMsg = gMessengerBundle.getFormattedString("confirmUnsubscribeText", ... |
return false; | function ConfirmWithTitle(title, message, okButtonText, cancelButtonText){ var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); promptService = promptService.QueryInterface(Components.interfaces.nsIPromptService); if (promptService) { var result = {value:0}; var okFl... | |
constrainChecked = constrainChecked && !dialog.constrainCheckbox.disabled; | function constrainProportions( srcID, destID ){ srcElement = document.getElementById ( srcID ); if ( !srcElement ) return; forceInteger( srcID ); // now find out if we should be constraining or not var constrainChecked = (dialog.constrainCheckbox.checked); if ( !constrainChecked ) return; destElement... | |
disableDebugCommands() | disableDebugCommands(); --console._stopLevel; | function cont (){ console._stackOutlinerView.setStack(null); disableDebugCommands() console.jsds.exitNestedEventLoop(); return true;} |
var href = hrefForClickEvent(event); if (href) { handleLinkClick(event, href, null); return true; | var linkNode = linkNodeForClickEvent(event); if (linkNode && linkNode.href) { handleLinkClick(event, linkNode.href, null); return isPhishingURL(linkNode, false); | function contentAreaClick(event) { var href = hrefForClickEvent(event); if (href) { handleLinkClick(event, href, null); return true; } return true; } |
if (!linkNode.href) return true; | if (!wrapper.href) return true; | function contentAreaClick(event, fieldNormalClicks) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": case "area": case "link": if (target.hasAttribute("href")) ... |
var url = getShortcutOrURI(linkNode.href, postData); | var url = getShortcutOrURI(wrapper.href, postData); | function contentAreaClick(event, fieldNormalClicks) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": case "area": case "link": if (target.hasAttribute("href")) ... |
markLinkVisited(linkNode.href, linkNode); | markLinkVisited(wrapper.href, linkNode); | function contentAreaClick(event, fieldNormalClicks) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": case "area": case "link": if (target.hasAttribute("href")) ... |
linkNode.getAttribute("title"), linkNode.href, null, null, null, null, true); | wrapper.getAttribute("title"), wrapper.href, null, null, null, null, true); | function contentAreaClick(event, fieldNormalClicks) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": case "area": case "link": if (target.hasAttribute("href")) ... |
openWebPanel(gNavigatorBundle.getString("webPanels"), linkNode.href); | openWebPanel(gNavigatorBundle.getString("webPanels"), wrapper.href); | function contentAreaClick(event, fieldNormalClicks) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": case "area": case "link": if (target.hasAttribute("href")) ... |
else handleLinkClick(event, linkNode.href, linkNode); | else { handleLinkClick(event, wrapper.href, linkNode); } | function contentAreaClick(event, fieldNormalClicks) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": case "area": case "link": if (target.hasAttribute("href")) ... |
href = linkNode.getAttributeNS("http: | var wrapper = new XPCNativeWrapper(linkNode, "getAttributeNS()"); href = wrapper.getAttributeNS("http: | function contentAreaClick(event, fieldNormalClicks) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": case "area": case "link": if (target.hasAttribute("href")) ... |
href = makeURLAbsolute(target.baseURI,href); | var baseURI = new XPCNativeWrapper(linkNode, "baseURI").baseURI; href = makeURLAbsolute(baseURI, href); | function contentAreaClick(event, fieldNormalClicks) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": case "area": case "link": if (target.hasAttribute("href")) ... |
"centerscreen,chrome,dialog,resizable,dependent", wrapper.getAttribute("title"), wrapper.href, null, null, null, null, true); | "centerscreen,chrome,dialog,resizable,dependent", dialogArgs); | function contentAreaClick(event, fieldNormalClicks) { if (!event.isTrusted) { return true; } var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": case "area": case "lin... |
switch (target.localName.toLowerCase()) { | var local_name = target.localName; if (local_name) { local_name.toLowerCase(); } switch (local_name) { | function contentAreaClick(event) { var target = event.target; var linkNode; switch (target.localName.toLowerCase()) { case "a": linkNode = target; break; case "area": if (target.href) linkNode = target; break; case "input": if ((event.target.type.... |
"centerscreen,chrome,dialog=yes,resizable=no,dependent", | "centerscreen,chrome,dialog,resizable,dependent", | function contentAreaClick(event, fieldNormalClicks) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": case "area": case "link": if (target.hasAttribute("href")) ... |
if (middleMousePaste(event)) { event.preventBubble(); } | middleMousePaste(event); | function contentAreaClick(event, fieldNormalClicks) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": case "area": case "link": if (target.hasAttribute("href")) ... |
var linkNode = linkNodeForClickEvent(event); if (linkNode && linkNode.href) | var href = hRefForClickEvent(event); if (href) | function contentAreaClick(event) { var linkNode = linkNodeForClickEvent(event); if (linkNode && linkNode.href) { handleLinkClick(event, linkNode.href, null); // block the link click if we determine that this URL // is phishy (i.e. a potential email scam) if (!event.button) // left cl... |
handleLinkClick(event, linkNode.href, null); | handleLinkClick(event, href, null); | function contentAreaClick(event) { var linkNode = linkNodeForClickEvent(event); if (linkNode && linkNode.href) { handleLinkClick(event, linkNode.href, null); // block the link click if we determine that this URL // is phishy (i.e. a potential email scam) if (!event.button) // left cl... |
return !isPhishingURL(linkNode, false); | return gPhishingDetector.warnOnSuspiciousLinkClick(href); | function contentAreaClick(event) { var linkNode = linkNodeForClickEvent(event); if (linkNode && linkNode.href) { handleLinkClick(event, linkNode.href, null); // block the link click if we determine that this URL // is phishy (i.e. a potential email scam) if (!event.button) // left cl... |
local_name.toLowerCase(); | local_name = local_name.toLowerCase(); | function contentAreaClick(event) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name.toLowerCase(); } switch (local_name) { case "a": linkNode = target; break; case "area": if (target.href) linkNod... |
var saveFrameItem = document.getElementById("savepage"); var focusedWindow = document.commandDispatcher.focusedWindow; if (isDocumentFrame(focusedWindow)) { | if (isDocumentFrame(document.commandDispatcher.focusedWindow)) { | function contentAreaFrameFocus(){ var saveFrameItem = document.getElementById("savepage"); var focusedWindow = document.commandDispatcher.focusedWindow; if (isDocumentFrame(focusedWindow)) { gFocusedURL = focusedWindow.location.href; saveFrameItem.removeAttribute("hidden"); }} |
var saveFrameItem = document.getElementById("savepage"); | function contentAreaFrameFocus(){ var saveFrameItem = document.getElementById("savepage"); var focusedWindow = document.commandDispatcher.focusedWindow; if (isDocumentFrame(focusedWindow)) { gFocusedURL = focusedWindow.location.href; saveFrameItem.removeAttribute("hidden"); }} | |
gFocusedDocument = focusedWindow.document; | function contentAreaFrameFocus(){ var focusedWindow = document.commandDispatcher.focusedWindow; if (isDocumentFrame(focusedWindow)) { gFocusedURL = focusedWindow.location.href; }} | |
helpExternal.webNavigation.loadURI(target.href, loadFlags, null, null, null); | helpExternal.webNavigation.loadURI(uri, loadFlags, null, null, null); | function contentClick(event) { // is this a left click on a link? if (event.shiftKey || event.ctrlKey || event.altKey || event.metaKey || event.button != 0) return true; // is this a link? var target = event.target; while (!(target instanceof HTMLAnchorElement)) if (!(target = target.parentNode)) return... |
newItem.status = "NONE"; | newItem.isCompleted = false; | function contextChangeProgress( event, Progress ){ var tree = document.getElementById( ToDoUnifinderTreeName ); var start = new Object(); var end = new Object(); var numRanges = tree.view.selection.getRangeCount(); var toDoItem; if(numRanges == 0) return; startBatchTransaction(); for (var t = 0; t ... |
newItem.status = "COMPLETED"; | newItem.isCompleted = true; | function contextChangeProgress( event, Progress ){ var tree = document.getElementById( ToDoUnifinderTreeName ); var start = new Object(); var end = new Object(); var numRanges = tree.view.selection.getRangeCount(); var toDoItem; if(numRanges == 0) return; startBatchTransaction(); for (var t = 0; t ... |
newItem.completedDate = null; | function contextChangeProgress( event, Progress ){ var tree = document.getElementById( ToDoUnifinderTreeName ); var start = new Object(); var end = new Object(); var numRanges = tree.view.selection.getRangeCount(); var toDoItem; if(numRanges == 0) return; startBatchTransaction(); for (var t = 0; t ... | |
case "senderCol": sortKey = nsMsgViewSortType.byAuthor; | case "senderOrRecipientCol": if (IsSpecialFolderSelected(MSG_FOLDER_FLAG_SENTMAIL | MSG_FOLDER_FLAG_DRAFTS | MSG_FOLDER_FLAG_QUEUE)) { sortKey = nsMsgViewSortType.byRecipient; } else { sortKey = nsMsgViewSortType.byAuthor; } | function ConvertColumnIDToSortType(columnID){ var sortKey; switch (columnID) { case "dateCol": sortKey = nsMsgViewSortType.byDate; break; case "senderCol": sortKey = nsMsgViewSortType.byAuthor; break; case "subjectCol": sortKey = nsMsgViewSortType.bySubject; break; case "unre... |
case "scoreCol": sortKey = nsMsgViewSortType.byScore; | case "junkStatusCol": sortKey = nsMsgViewSortType.byJunkStatus; | function ConvertColumnIDToSortType(columnID){ var sortKey; switch (columnID) { case "dateCol": sortKey = nsMsgViewSortType.byDate; break; case "senderCol": sortKey = nsMsgViewSortType.byAuthor; break; case "recipientCol": sortKey = nsMsgViewSortType.byRecipient; break; case "su... |
case "scoreCol": sortKey = nsMsgViewSortType.byScore; break; | function ConvertColumnIDToSortType(columnID){ var sortKey; switch (columnID) { case "dateCol": sortKey = nsMsgViewSortType.byDate; break; case "senderOrRecipientCol": if (IsSpecialFolderSelected(MSG_FOLDER_FLAG_SENTMAIL | MSG_FOLDER_FLAG_DRAFTS | MSG_FOLDER_FLAG_QUEUE)) { sortKey = nsMsgVie... | |
var year, month, date; | function convertDateToString(time){ var year, month, date; initializeSearchDateFormat(); year = 1900 + time.getYear(); month = time.getMonth() + 1; // since js month is 0-11 date = time.getDate(); var dateStr; var sep = gSearchDateSeparator; switch (gSearchDateFormat) { case 1: dateStr = year + sep + ... | |
year = 1900 + time.getYear(); month = time.getMonth() + 1; date = time.getDate(); | var year = time.getFullYear(); var month = time.getMonth() + 1; if ( gSearchDateLeadingZeros && month < 10 ) month = "0" + month; var date = time.getDate(); if ( gSearchDateLeadingZeros && date < 10 ) date = "0" + date; | function convertDateToString(time){ var year, month, date; initializeSearchDateFormat(); year = 1900 + time.getYear(); month = time.getMonth() + 1; // since js month is 0-11 date = time.getDate(); var dateStr; var sep = gSearchDateSeparator; switch (gSearchDateFormat) { case 1: dateStr = year + sep + ... |
return aVal * 254; | return aVal * 25.4; | function convertMarginInchesToUnits(aVal, aIsMetric){ if (aIsMetric) { return aVal * 254; } else { return aVal; }} |
columnID = "senderCol"; | case nsMsgViewSortType.byRecipient: columnID = "senderOrRecipientCol"; | function ConvertSortTypeToColumnID(sortKey){ var columnID; // hack to turn this into an integer, if it was a string // it would be a string if it came from localStore.rdf sortKey = sortKey - 0; switch (sortKey) { case nsMsgViewSortType.byDate: columnID = "dateCol"; break; case nsMsgViewSortType.byA... |
case nsMsgViewSortType.byScore: columnID = "scoreCol"; | case nsMsgViewSortType.byJunkStatus: columnID = "junkStatusCol"; | function ConvertSortTypeToColumnID(sortKey){ var columnID; // hack to turn this into an integer, if it was a string // it would be a string if it came from localStore.rdf sortKey = sortKey - 0; switch (sortKey) { case nsMsgViewSortType.byDate: columnID = "dateCol"; break; case nsMsgViewSortType.byA... |
case nsMsgViewSortType.byScore: columnID = "scoreCol"; break; | function ConvertSortTypeToColumnID(sortKey){ var columnID; // hack to turn this into an integer, if it was a string // it would be a string if it came from localStore.rdf sortKey = sortKey - 0; switch (sortKey) { case nsMsgViewSortType.byDate: columnID = "dateCol"; break; case nsMsgViewSortType.byA... | |
itipItem.initialize(data); | itipItem.init(data); | convertToHTML: function(contentType, data) { var event = Cc["@mozilla.org/calendar/event;1"] .createInstance(Ci.calIEvent); event.icalString = data; var html = createHtml(event); try { // Bug 351610: This mechanism is a little flawed var itipItem ... |
observer.notifyObservers(itipItem, "onITipItemCreation", 0); | observer.notifyObservers(itipItem, "onItipItemCreation", 0); | convertToHTML: function(contentType, data) { var event = Cc["@mozilla.org/calendar/event;1"] .createInstance(Ci.calIEvent); event.icalString = data; var html = createHtml(event); try { // Bug 351610: This mechanism is a little flawed var itipItem ... |
return aVal / 254; | return aVal / 25.4; | function convertUnitsMarginToInches(aVal, aIsMetric){ if (aIsMetric) { return aVal / 254; } else { return aVal; }} |
params.SetInt(nsICookieAcceptDialog.ACCEPT_COOKIE, 1); | if (document.getElementById('acceptSession').checked) params.SetInt(nsICookieAcceptDialog.ACCEPT_COOKIE, nsICookiePromptService.ACCEPT_SESSION_COOKIE); else params.SetInt(nsICookieAcceptDialog.ACCEPT_COOKIE, nsICookiePromptService.ACCEPT_COOKIE); | function cookieAccept(){ // say that the cookie was accepted params.SetInt(nsICookieAcceptDialog.ACCEPT_COOKIE, 1); // And remember that when needed params.SetInt(nsICookieAcceptDialog.REMEMBER_DECISION, document.getElementById('persistDomainAcceptance').checked); window.close();} |
var number; | var number, cookie, id; | function CookieColumnSort(column) { var number; var cookietree = document.getElementById("cookietree"); var selected = cookietree.selectedIndex; var cookielist = document.getElementById('cookieList'); var childnodes = cookielist.childNodes; if (selected >= 0) { var cookie = childnodes[selected]; var id = co... |
var cookie = childnodes[selected]; var id = cookie.getAttribute("id"); | cookie = childnodes[selected]; id = cookie.getAttribute("id"); | function CookieColumnSort(column) { var number; var cookietree = document.getElementById("cookietree"); var selected = cookietree.selectedIndex; var cookielist = document.getElementById('cookieList'); var childnodes = cookielist.childNodes; if (selected >= 0) { var cookie = childnodes[selected]; var id = co... |
var cookie = childnodes[i]; var id = cookie.getAttribute("id"); | cookie = childnodes[i]; id = cookie.getAttribute("id"); | function CookieColumnSort(column) { var number; var cookietree = document.getElementById("cookietree"); var selected = cookietree.selectedIndex; var cookielist = document.getElementById('cookieList'); var childnodes = cookielist.childNodes; if (selected >= 0) { var cookie = childnodes[selected]; var id = co... |
params.SetInt(nsICookieAcceptDialog.ACCEPT_COOKIE, 0); | params.SetInt(nsICookieAcceptDialog.ACCEPT_COOKIE, nsICookiePromptService.DENY_COOKIE); | function cookieDeny(){ // say that the cookie was rejected params.SetInt(nsICookieAcceptDialog.ACCEPT_COOKIE, 0); // And remember that when needed params.SetInt(nsICookieAcceptDialog.REMEMBER_DECISION, document.getElementById('persistDomainAcceptance').checked); window.close();} |
document.getElementById("removeCookie").setAttribute("disabled", "true"); | function CookieSelected() { var selections = GetTreeSelections(cookiesTree); if (selections.length) { document.getElementById("removeCookie").removeAttribute("disabled"); } else { ClearCookieProperties(); return true; } var idx = selections[0]; if (idx >= cookies.length) { // Something got out of ... | |
cookieBundle.getString("yes") : cookieBundle.getString("no")}, | cookieBundle.getString("forSecureOnly") : cookieBundle.getString("forAnyConnection")}, | function CookieSelected() { var selections = GetTreeSelections(cookiesTree); if (selections.length) { document.getElementById("removeCookie").removeAttribute("disabled"); } else { document.getElementById("removeCookie").setAttribute("disabled", "true"); ClearCookieProperties(); return true; } var i... |
dest_container.AppendElement(resource); | function copy_resource_deeply(source_datasource, resource, dest_container) { dest_container.AppendElement(resource); var arcs = source_datasource.ArcLabelsOut(resource); while (arcs.HasMoreElements()) { var arc = arcs.GetNext(); var targets = source_datasource.GetTargets(resource, arc, true); while (targets... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.