rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
case "cmd_bm_expandfolder":
supportsCommand: function (aCommand) { var isCommandSupported; switch(aCommand) { case "cmd_undo": case "cmd_redo": case "cmd_bm_undo": case "cmd_bm_redo": case "cmd_bm_cut": case "cmd_bm_copy": case "cmd_bm_paste": case "cmd_bm_delete": case "cmd_bm_selectAll": case "cmd_bm_open"...
case "cmd_bm_expandfolder": case "cmd_bm_openfolder":
supportsCommand: function (aCommand) { var isCommandSupported; switch(aCommand) { case "cmd_undo": case "cmd_redo": case "cmd_bm_undo": case "cmd_bm_redo": case "cmd_bm_cut": case "cmd_bm_copy": case "cmd_bm_paste": case "cmd_bm_delete": case "cmd_bm_selectAll": case "cmd_bm_open"...
case "cmd_reply": case "button_reply": case "cmd_replySender": case "cmd_replyGroup": case "cmd_replyall": case "button_replyall": case "cmd_forward": case "button_forward": case "cmd_forwardInline": case "cmd_forwardAttachment": case "cmd_editAsNew":
supportsCommand: function(command) { switch (command) { case "cmd_reply": case "button_reply": case "cmd_replySender": case "cmd_replyGroup": case "cmd_replyall": case "button_replyall": case "cmd_forward": case "button_forward": case "cmd_forwardInline": case ...
case "cmd_reply": case "button_reply": case "cmd_replySender": case "cmd_replyGroup": case "cmd_replyall": case "button_replyall": case "cmd_forward": case "button_forward": case "cmd_forwardInline": case "cmd_forwardAttachment": case "cmd_editAsNew":
supportsCommand: function(command) { switch (command) { case "cmd_reply": case "button_reply": case "cmd_replySender": case "cmd_replyGroup": case "cmd_replyall": case "button_replyall": case "cmd_forward": case "button_forward": case "cmd_forwardInline": case ...
case "cmd_printcard": case "cmd_printcardpreview":
supportsCommand: function(command) { switch (command) { case "cmd_selectAll": case "cmd_delete": case "button_delete": case "button_edit": return true; default: return false; } },
case "cmd_selectAll":
case "cmd_delete": case "button_delete":
supportsCommand: function(command) { switch ( command ) { case "cmd_selectAll": case "cmd_cut": case "cmd_copy": case "cmd_paste": return true; default: return false; } },
case "cmd_getNextNMessages":
supportsCommand: function(command) { switch ( command ) { case "cmd_reply": case "button_reply": case "cmd_replySender": case "cmd_replyGroup": case "cmd_replyall": case "button_replyall": case "cmd_forward": case "button_forward": case "cmd_forwardInline": case "cmd_forwardAttachment": case ...
case "cmd_selectAll":
supportsCommand: function(command) { switch(command) { case "cmd_delete": case "cmd_shiftDelete": case "button_delete": case "cmd_open": case "file_message_button": case "goto_folder_button": case "saveas_vf_button": return true; default: ...
case "cmd_findPrev":
supportsCommand: function(command) { switch ( command ) { case "cmd_close": case "cmd_reply": case "button_reply": case "cmd_replySender": case "cmd_replyGroup": case "cmd_replyall": case "button_replyall": case "cmd_forward": case "button_forward": case "cmd_forwardInline": case "cmd_forward...
case "cmd_printpreview":
supportsCommand: function(command) { switch ( command ) { case "cmd_close": case "cmd_reply": case "button_reply": case "cmd_replySender": case "cmd_replyGroup": case "cmd_replyall": case "button_replyall": case "cmd_forward": case "button_forward": case "cmd_forwardInline": case "cmd_forward...
case "cmd_undo": case "cmd_redo":
supportsCommand: function(command) { switch ( command ) { case "cmd_undo": case "cmd_redo": case "cmd_selectAll": return true; case "cmd_cut": case "cmd_copy": case "cmd_paste": return true; default: return false; } },
case "cmd_replace":
supportsCommand: function(command) { switch (command) { //File Menu case "cmd_attachFile": case "cmd_attachPage": case "cmd_close": case "cmd_saveDefault": case "cmd_saveAsFile": case "cmd_saveAsDraft": case "cmd_saveAsTemplate": case "cmd_sendButton": case "cm...
case "cmd_undo": case "cmd_redo": case "cmd_selectAll": return true; case "cmd_cut": case "cmd_copy": case "cmd_paste": return true;
supportsCommand: function(command) { switch ( command ) { default: return false; } },
case "cmd_bm_find":
supportsCommand: function (aCommand) { var isCommandSupported; switch(aCommand) { case "cmd_undo": case "cmd_redo": case "cmd_bm_undo": case "cmd_bm_redo": case "cmd_bm_cut": case "cmd_bm_copy": case "cmd_bm_paste": case "cmd_bm_delete": case "cmd_bm_selectAll": case "cmd_bm_open"...
case "cmd_selectAll": case "cmd_delete": case "button_delete": case "cmd_undo": case "cmd_redo": return true;
supportsCommand: function(command) { switch ( command ) { case "cmd_selectAll": case "cmd_delete": case "button_delete": case "cmd_undo": case "cmd_redo": return true; default: return false; } },
case "cmd_markAsShowRemote": case "cmd_markAsNotPhish":
supportsCommand: function(command) { switch (command) { case "cmd_reply": case "button_reply": case "cmd_replySender": case "cmd_replyGroup": case "cmd_replyall": case "button_replyall": case "cmd_forward": case "button_forward": case "cmd_forwardInline": case ...
case "cmd_renderedHTMLEnabler":
supportsCommand: function(command) { switch (command) { //File Menu case "cmd_attachFile": case "cmd_attachPage": case "cmd_close": case "cmd_saveDefault": case "cmd_saveAsFile": case "cmd_saveAsDraft": case "cmd_saveAsTemplate": case "cmd_sendButton": case "cm...
case "cmd_rewrap":
supportsCommand: function(command) { switch (command) { //File Menu case "cmd_attachFile": case "cmd_attachPage": case "cmd_close": case "cmd_saveDefault": case "cmd_saveAsFile": case "cmd_saveAsDraft": case "cmd_saveAsTemplate": case "cmd_sendNow": case "cmd_s...
case "cmd_canHaveFilter":
case "cmd_createFilterFromPopup": case "cmd_createFilterFromMenu":
supportsCommand: function(command) { switch ( command ) { case "cmd_close": case "cmd_reply": case "button_reply": case "cmd_replySender": case "cmd_replyGroup": case "cmd_replyall": case "button_replyall": case "cmd_forward": case "button_forward": case "cmd_forwardInline": case "cmd_forward...
case "cmd_delete": case "cmd_shiftdelete":
supportsCommand: function(command) { switch(command) { case "button_delete": case "cmd_open": case "file_message_button": case "goto_folder_button": return true; default: return false; } },
if (row.getProperties)
if ("getProperties" in row)
function sv_cellprops (index, colID, properties){ if (colID != "stack-col-0") return null; var row = this.childData.locateChildByVisualRow(index); if (row) { if (row.getProperties) return row.getProperties (properties); if (row.property) return properties.Appen...
if (col.id == "source:col-0")
if (typeof col == "object") col = col.id; if (col == "source:col-0")
function sv_cellprops (row, col, properties){ if (!("childData" in this) || !this.childData.isLoaded || row < 0 || row >= this.childData.lines.length) return; var line = this.childData.lines[row]; if (!line) return; if (col.id == "source:col-0") { if ("lineMap" in this.chi...
colID = col.value.id;
if (typeof col.value == "object") colID = col.value.id; else colID = col.value;
function sv_click (e){ var target = e.originalTarget; if (target.localName == "treechildren") { var row = new Object(); var col = new Object(); var childElt = new Object(); var treeBox = console.views.source.tree; treeBox.getCellAt(e.clientX, e.clientY, row, col, ...
function sv_dsource (source)
function sv_dsource (sourceText)
function sv_dsource (source){ if ("childData" in this && source == this.childData) return; function tryAgain (result) { if (result == Components.results.NS_OK) console.sourceView.displaySource(source); else { dd ("source load failed: '" + source.fileName + ...
if ("childData" in this && source == this.childData)
if ("childData" in this && sourceText == this.childData)
function sv_dsource (source){ if ("childData" in this && source == this.childData) return; function tryAgain (result) { if (result == Components.results.NS_OK) console.sourceView.displaySource(source); else { dd ("source load failed: '" + source.fileName + ...
console.sourceView.displaySource(source);
console.sourceView.displaySourceText(sourceText);
function sv_dsource (source){ if ("childData" in this && source == this.childData) return; function tryAgain (result) { if (result == Components.results.NS_OK) console.sourceView.displaySource(source); else { dd ("source load failed: '" + source.fileName + ...
dd ("source load failed: '" + source.fileName + "'");
dd ("source load failed: '" + sourceText.fileName + "'");
function sv_dsource (source){ if ("childData" in this && source == this.childData) return; function tryAgain (result) { if (result == Components.results.NS_OK) console.sourceView.displaySource(source); else { dd ("source load failed: '" + source.fileName + ...
if (!source)
if (!sourceText)
function sv_dsource (source){ if ("childData" in this && source == this.childData) return; function tryAgain (result) { if (result == Components.results.NS_OK) console.sourceView.displaySource(source); else { dd ("source load failed: '" + source.fileName + ...
if (!source.isLoaded)
if (!sourceText.isLoaded)
function sv_dsource (source){ if ("childData" in this && source == this.childData) return; function tryAgain (result) { if (result == Components.results.NS_OK) console.sourceView.displaySource(source); else { dd ("source load failed: '" + source.fileName + ...
source.pendingScroll = 0; source.pendingScrollType = -1; source.loadSource(tryAgain);
sourceText.pendingScroll = 0; sourceText.pendingScrollType = -1; sourceText.loadSource(tryAgain);
function sv_dsource (source){ if ("childData" in this && source == this.childData) return; function tryAgain (result) { if (result == Components.results.NS_OK) console.sourceView.displaySource(source); else { dd ("source load failed: '" + source.fileName + ...
this.childData = source; this.rowCount = source.sourceText.length; this.tabString = leftPadString ("", source.tabWidth, " ");
this.childData = sourceText; this.rowCount = sourceText.lines.length; this.tabString = leftPadString ("", sourceText.tabWidth, " ");
function sv_dsource (source){ if ("childData" in this && source == this.childData) return; function tryAgain (result) { if (result == Components.results.NS_OK) console.sourceView.displaySource(source); else { dd ("source load failed: '" + source.fileName + ...
hdr.setAttribute ("label", source.fileName);
hdr.setAttribute ("label", sourceText.fileName);
function sv_dsource (source){ if ("childData" in this && source == this.childData) return; function tryAgain (result) { if (result == Components.results.NS_OK) console.sourceView.displaySource(source); else { dd ("source load failed: '" + source.fileName + ...
row < 0 || row > this.childData.sourceText.length)
row < 0 || row > this.childData.lines.length)
function sv_getcelltext (row, colID){ if (!this.childData.isLoaded || row < 0 || row > this.childData.sourceText.length) return ""; switch (colID) { case "source-line-text": return this.childData.sourceText[row].replace(/\t/g, this.tabString); case "source-line-n...
return this.childData.sourceText[row].replace(/\t/g, this.tabString);
return this.childData.lines[row].replace(/\t/g, this.tabString);
function sv_getcelltext (row, colID){ if (!this.childData.isLoaded || row < 0 || row > this.childData.sourceText.length) return ""; switch (colID) { case "source-line-text": return this.childData.sourceText[row].replace(/\t/g, this.tabString); case "source-line-n...
var ary = col.id.match (/:(.*)/);
if (typeof col == "object") col = col.id; var ary = col.match (/:(.*)/);
function sv_getcelltext (row, col){ if (!this.childData.isLoaded || row < 0 || row > this.childData.lines.length) return ""; var ary = col.id.match (/:(.*)/); if (ary) col = ary[1]; switch (col) { case "col-2": return this.childData.lines[row]; c...
console.stopFile == this.childData.fileName)
console.stopFile == this.childData.fileName && this.details)
function sv_rowprops (row, properties){ if ("frames" in console) { if (((!this.prettyPrint && row == console.stopLine - 1) || (this.prettyPrint && row == console.pp_stopLine - 1)) && console.stopFile == this.childData.fileName) { properties.AppendElement(this.atomC...
response.append(getMsg(MSN_JSDURL_ERRPAGE, [parsedURL.spec,
response.append(getMsg(MSN_JSDURL_ERRPAGE, [safeHTML(parsedURL.spec),
function svc_nosource (response){ response.start(); response.append(getMsg(MSN_JSDURL_ERRPAGE, [parsedURL.spec, MSG_ERR_JSDURL_NOSOURCE])); response.end();}
response.append(getMsg(MSN_JSDURL_ERRPAGE, [parsedURL.spec, err]));
response.append(getMsg(MSN_JSDURL_ERRPAGE, [safeHTML(parsedURL.spec), err]));
function svc_pprint (response, parsedURL){ var err; if (!("scriptWrapper" in parsedURL)) { err = getMsg(MSN_ERR_REQUIRED_PARAM, "scriptWrapper"); response.start(); response.append(getMsg(MSN_JSDURL_ERRPAGE, [parsedURL.spec, err])); response.end(); return; } if (!(pa...
response.append(getMsg(MSN_JSDURL_ERRPAGE, [parsedURL.spec,
response.append(getMsg(MSN_JSDURL_ERRPAGE, [safeHTML(parsedURL.spec),
function svc_source (response, parsedURL){ function onSourceTextLoaded (status) { if (status != Components.results.NS_OK) { response.start(); response.append(getMsg(MSN_JSDURL_ERRPAGE, [parsedURL.spec, status])); ...
response.append(getMsg(MSN_JSDURL_ERRPAGE, [parsedURL.spec, err]));
response.append(getMsg(MSN_JSDURL_ERRPAGE, [safeHTML(parsedURL.spec), err]));
function svc_source (response, parsedURL){ function onSourceTextLoaded (status) { if (status != Components.results.NS_OK) { response.start(); response.append(getMsg(MSN_JSDURL_ERRPAGE, [parsedURL.spec, status])); ...
function sw_setbp (pc, parentBP)
function sw_setbp (pc, parentBP, props)
function sw_setbp (pc, parentBP){ var key = this.jsdScript.tag + ":" + pc; //dd ("setting breakpoint in " + this.functionName + " " + key); if (key in console.breaks) return null; var brk = new BreakInstance (parentBP, this, pc); console.breaks[key] = brk; this.breaks[key] = brk; ...
if (props) brk.setProperties(props);
function sw_setbp (pc, parentBP){ var key = this.jsdScript.tag + ":" + pc; //dd ("setting breakpoint in " + this.functionName + " " + key); if (key in console.breaks) return null; var brk = new BreakInstance (parentBP, this, pc); console.breaks[key] = brk; this.breaks[key] = brk; ...
if (IsMsgHeadersToolbarCollapsed()) SetMsgBodyFrameFocus(); else if (focusedElement == gMsgAddressingWidgetTreeElement)
if (focusedElement == gMsgAddressingWidgetTreeElement)
function SwitchElementFocus(event){ var focusedElement = WhichElementHasFocus(); if (event && event.shiftKey) { if (IsMsgHeadersToolbarCollapsed()) SetMsgBodyFrameFocus(); else if (focusedElement == gMsgAddressingWidgetTreeElement) SetMsgIdentityElementFocus(); else if (focusedElement == gMsgIdent...
var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator); var enumerator = windowManagerInterface.getEnumerator( null );
var enumerator; try { var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator); enumerator = windowManagerInterface.getEnumerator( null ); } catch(e) {} if (!enumerator) return;
function SwitchInsertCharToAnotherEditorOrClose(){ if ("InsertCharWindow" in window && window.InsertCharWindow) { var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(); var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator); ...
textEditor = gEditor.QueryInterface(Components.interfaces.nsIPlaintextEditor); if (textEditor)
if (gEditor)
function SwitchInsertCharToAnotherEditorOrClose(){ if ("InsertCharWindow" in window && window.InsertCharWindow) { var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(); var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator); ...
if (tempWindow != window && ("editorShell" in tempWindow) && tempWindow.editorShell)
if (tempWindow != window && tempWindow != window.InsertCharWindow && ("editorShell" in tempWindow) && tempWindow.editorShell)
function SwitchInsertCharToAnotherEditorOrClose(){ if ("InsertCharWindow" in window && window.InsertCharWindow) { var windowManager = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService(); var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowM...
this.wsm.savePageData( oldURL );
this.wsm.savePageData( oldURL, null );
switchPage: function (aNewURL, aNewTag) { var oldURL = document.getElementById( this.contentFrame ).getAttribute("tag"); if( !oldURL ) { oldURL = document.getElementById( this.contentFrame ).getAttribute("src"); } this.wsm.s...
captionLine = bundle.GetStringFromName( "pm_title" );
captionLine = gProfileManagerBundle.getString("pm_title");
function SwitchProfileManagerMode(){ var prattleIndex = null; var captionLine = null; var buttonDisplay = null; var selItems = []; if( profileManagerMode == "selection" ) { prattleIndex = 1; // need to switch to manager's index try { captionLine = bun...
captionLine = bundle.GetStringFromName( "ps_title" );
captionLine = gProfileManagerBundle.getString("ps_title");
function SwitchProfileManagerMode(){ var prattleIndex = null; var captionLine = null; var buttonDisplay = null; var selItems = []; if( profileManagerMode == "selection" ) { prattleIndex = 1; // need to switch to manager's index try { captionLine = bun...
buttonDisplay = "display: inherit;";
function SwitchProfileManagerMode(){ var prattleIndex = null; var captionLine = null; var buttonDisplay = null; var selItems = []; if( profileManagerMode == "selection" ) { prattleIndex = 1; // need to switch to manager's index try { captionLine = bun...
buttonDisplay = "display: none;";
function SwitchProfileManagerMode(){ var prattleIndex = null; var captionLine = null; var buttonDisplay = null; var selItems = []; if( profileManagerMode == "selection" ) { prattleIndex = 1; // need to switch to manager's index try { captionLine = bun...
var buttons = document.getElementById( "managementbox" ); buttons.setAttribute( "style", buttonDisplay ); if( set ) set = false; else set = true;
set = !set;
function SwitchProfileManagerMode(){ var prattleIndex = null; var captionLine = null; var buttonDisplay = null; var selItems = []; if( profileManagerMode == "selection" ) { prattleIndex = 1; // need to switch to manager's index try { captionLine = bun...
var selectedDay = viewDeck.selectedPanel.selectedDay;
selectedDay = viewDeck.selectedPanel.selectedDay; currentSelection = viewDeck.selectedPanel.getSelectedItems({});
function switchToView(aViewType) { var viewDeck = getViewDeck(); var selectedDay; try { var selectedDay = viewDeck.selectedPanel.selectedDay; } catch(ex) { // This dies if no view has even been chosen this session, but that's // ok because we'll just use now() below. } if (!selec...
view.setSelectedItems(currentSelection.length, currentSelection);
function switchToView(aViewType) { var viewDeck = getViewDeck(); var selectedDay; try { var selectedDay = viewDeck.selectedPanel.selectedDay; } catch(ex) { // This dies if no view has even been chosen this session, but that's // ok because we'll just use now() below. } if (!selec...
ViewMessagesBy("viewPickerAll");
ViewChangeByValue(kViewItemAll);
function SwitchView(command){ // when switching thread views, we might be coming out of quick search // or a message view. // first set view picker to all ViewMessagesBy("viewPickerAll"); // clear the QS text, if we need to ClearQSIfNecessary(); // now switch views var oldSortType = gDBView ? gDBView.sortType...
var messengerDisplayDeck = document.getElementById("displayDeck");
function switchView(type) { var messengerDisplayDeck = document.getElementById("displayDeck"); var calendarViewBox = document.getElementById("calendar-view-box"); var monthView = document.getElementById("calendar-month-view"); var multidayView = document.getElementById("calendar-multiday-view"); var sele...
ViewMessagesBy("viewPickerAll");
ViewChangeByValue(kViewItemAll);
function SwitchView(command){ // when switching thread views, we might be coming out of quick search // or a message view. // first set view picker to all ViewMessagesBy("viewPickerAll"); // clear the QS text, if we need to ClearQSIfNecessary(); // now switch views var oldSortType = gDBView ? gDBView.sortType...
nsMsgViewSortType.byThread, nsMsgViewSortOrder.ascending);
nsMsgViewSortType.byThread, oldSortOrder);
function SwitchView(command){ var oldSortType = gDBView ? gDBView.sortType : nsMsgViewSortType.byThread; var oldSortOrder = gDBView ? gDBView.sortOrder : nsMsgViewSortOrder.ascending; var viewFlags = gCurViewFlags; // close existing view. if (gDBView) { gDBView.close(); gDBView = null; } switch(command) ...
nsMsgViewSortType.byThread, nsMsgViewSortOrder.ascending);
oldSortType, oldSortOrder);
function SwitchView(command){ var oldSortType = gDBView ? gDBView.sortType : nsMsgViewSortType.byThread; var oldSortOrder = gDBView ? gDBView.sortOrder : nsMsgViewSortOrder.ascending; var viewFlags = gCurViewFlags; // close existing view. if (gDBView) { gDBView.close(); gDBView = null; } switch(command) ...
function( iListener )
function( listener )
sync: function( iListener ) { this.log( "sync(): queueing request." ); // serialize sync() calls into queue: var this_ = this; this.m_syncQueue.postRequest( function( requestToken ) { this_.sync_req( requestToken, iListener ); } ); },
this_.sync_req( requestToken, iListener );
this_.sync_req( requestToken, listener );
sync: function( iListener ) { this.log( "sync(): queueing request." ); // serialize sync() calls into queue: var this_ = this; this.m_syncQueue.postRequest( function( requestToken ) { this_.sync_req( requestToken, iListener ); } ); },
function( destCal, itemFilter, dtFrom, iListener )
function( destCal, itemFilter, dtFrom, listener )
syncChangesTo: function( destCal, itemFilter, dtFrom, iListener ) { throw Components.results.NS_ERROR_NOT_IMPLEMENTED; },
wcapResponse, syncState, iListener, func )
wcapResponse, syncState, listener, func )
calWcapCalendar.prototype.syncChangesTo_resp = function( wcapResponse, syncState, iListener, func ){ try { var icalRootComp = wcapResponse.data; // first statement, may throw var items = this.parseItems( icalRootComp, Components.interfaces.calICalendar.ITEM_FILTER_ALL_ITEMS, ...
var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); prefs.SetBoolPref("mailnews.offline_sync_mail", gSyncMail); prefs.SetBoolPref("mailnews.offline_sync_news", gSyncNews); prefs.SetBoolPref("mailnews.offline_sync_send_unsent", gSendMessage); prefs.SetBoolPref("mailnew...
function syncOkButton(){ gSyncMail = document.getElementById("syncMail").checked; gSyncNews = document.getElementById("syncNews").checked; gSendMessage = document.getElementById("sendMessage").checked; gWorkOffline = document.getElementById("workOffline").checked; if( gSyncMail || gSyncNews || gSend...
function syncOutputFrame(obj)
function syncOutputFrame(obj, nesting)
function syncOutputFrame(obj){ const nsIWebProgress = Components.interfaces.nsIWebProgress; const ALL = nsIWebProgress.NOTIFY_ALL; const DOCUMENT = nsIWebProgress.NOTIFY_STATE_DOCUMENT; const WINDOW = nsIWebProgress.NOTIFY_STATE_WINDOW; var iframe = obj.frame; function tryAgain () { syn...
const DOCUMENT = nsIWebProgress.NOTIFY_STATE_DOCUMENT; const WINDOW = nsIWebProgress.NOTIFY_STATE_WINDOW;
function syncOutputFrame(obj){ const nsIWebProgress = Components.interfaces.nsIWebProgress; const ALL = nsIWebProgress.NOTIFY_ALL; const DOCUMENT = nsIWebProgress.NOTIFY_STATE_DOCUMENT; const WINDOW = nsIWebProgress.NOTIFY_STATE_WINDOW; var iframe = obj.frame; function tryAgain () { syn...
function tryAgain ()
function tryAgain(nLevel)
function syncOutputFrame(obj){ const nsIWebProgress = Components.interfaces.nsIWebProgress; const ALL = nsIWebProgress.NOTIFY_ALL; const DOCUMENT = nsIWebProgress.NOTIFY_STATE_DOCUMENT; const WINDOW = nsIWebProgress.NOTIFY_STATE_WINDOW; var iframe = obj.frame; function tryAgain () { syn...
syncOutputFrame(obj);
syncOutputFrame(obj, nLevel);
function syncOutputFrame(obj){ const nsIWebProgress = Components.interfaces.nsIWebProgress; const ALL = nsIWebProgress.NOTIFY_ALL; const DOCUMENT = nsIWebProgress.NOTIFY_STATE_DOCUMENT; const WINDOW = nsIWebProgress.NOTIFY_STATE_WINDOW; var iframe = obj.frame; function tryAgain () { syn...
if (typeof nesting != "number") nesting = 0; if (nesting > 10) { dd("Aborting syncOutputFrame, taken too many tries."); return; }
function syncOutputFrame(obj){ const nsIWebProgress = Components.interfaces.nsIWebProgress; const ALL = nsIWebProgress.NOTIFY_ALL; const DOCUMENT = nsIWebProgress.NOTIFY_STATE_DOCUMENT; const WINDOW = nsIWebProgress.NOTIFY_STATE_WINDOW; var iframe = obj.frame; function tryAgain () { syn...
if ("contentDocument" in iframe && "webProgress" in iframe)
if (("contentDocument" in iframe) && ("webProgress" in iframe))
function syncOutputFrame(obj){ const nsIWebProgress = Components.interfaces.nsIWebProgress; const ALL = nsIWebProgress.NOTIFY_ALL; const DOCUMENT = nsIWebProgress.NOTIFY_STATE_DOCUMENT; const WINDOW = nsIWebProgress.NOTIFY_STATE_WINDOW; var iframe = obj.frame; function tryAgain () { syn...
iframe.addProgressListener(client.progressListener, WINDOW);
iframe.addProgressListener(client.progressListener, ALL);
function syncOutputFrame(obj){ const nsIWebProgress = Components.interfaces.nsIWebProgress; const ALL = nsIWebProgress.NOTIFY_ALL; const DOCUMENT = nsIWebProgress.NOTIFY_STATE_DOCUMENT; const WINDOW = nsIWebProgress.NOTIFY_STATE_WINDOW; var iframe = obj.frame; function tryAgain () { syn...
setTimeout(tryAgain, 500);
setTimeout(tryAgain, 500, nesting + 1);
function syncOutputFrame(obj){ const nsIWebProgress = Components.interfaces.nsIWebProgress; const ALL = nsIWebProgress.NOTIFY_ALL; const DOCUMENT = nsIWebProgress.NOTIFY_STATE_DOCUMENT; const WINDOW = nsIWebProgress.NOTIFY_STATE_WINDOW; var iframe = obj.frame; function tryAgain () { syn...
this.globalHostingFlags = kDefaultGlobalHostingFlags; /*
var hostingFlags = this.globalHostingFlags;
syncPrefs: function() { this.globalHostingFlags = kDefaultGlobalHostingFlags; // TODO read from prefs /* try { if (gPref == null) { var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getServi...
this.globalHostingFlags = gPref.getIntPref(this.globalPrefName);
hostingFlags = gPref.getIntPref(kGlobalHostingFlagsPref);
syncPrefs: function() { this.globalHostingFlags = kDefaultGlobalHostingFlags; // TODO read from prefs /* try { if (gPref == null) { var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getServi...
dump("Failed to read prefs from " + this.globalPrefName + " : " + ex + "\n"); this.globalHostingFlags = kDefaultGlobalHostingFlags;
dump("Failed to read control hosting flags from \"" + kGlobalHostingFlagsPref + "\"\n"); hostingFlags = kDefaultGlobalHostingFlags;
syncPrefs: function() { this.globalHostingFlags = kDefaultGlobalHostingFlags; // TODO read from prefs /* try { if (gPref == null) { var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getServi...
*/
if (hostingFlags != this.globalHostingFlags) { dump("Global activex hosting flags have changed value to " + hostingFlags + "\n"); this.globalHostingFlags = hostingFlags }
syncPrefs: function() { this.globalHostingFlags = kDefaultGlobalHostingFlags; // TODO read from prefs /* try { if (gPref == null) { var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getServi...
if (iListener != null) { iListener.onGetResult(
if (listener != null) { listener.onGetResult(
var syncResponseFunc = function( wcapResponse ) { var icalRootComp = wcapResponse.data; // first statement, may throw var items = this_.parseItems( icalRootComp, Components.interfaces.calICalendar.ITEM_FILTER_ALL_ITEMS, 1, null, null ); ...
iListener.onOperationComplete(
listener.onOperationComplete(
var syncResponseFunc = function( wcapResponse ) { var icalRootComp = wcapResponse.data; // first statement, may throw var items = this_.parseItems( icalRootComp, Components.interfaces.calICalendar.ITEM_FILTER_ALL_ITEMS, 1, null, null ); ...
throw new Error("no such item!");
throw new Components.Exception("no such item!");
var syncResponseFunc = function( wcapResponse ) { var icalRootComp = wcapResponse.data; // first statement, may throw var items = this_.parseItems( icalRootComp, Components.interfaces.calICalendar.ITEM_FILTER_ALL_ITEMS, 1, null, null ); ...
this_.log( "getItems_resp(): success." ),
this_.log( "getItem(): success." ),
var syncResponseFunc = function( wcapResponse ) { var icalRootComp = wcapResponse.data; // first statement, may throw var items = this_.parseItems( icalRootComp, Components.interfaces.calICalendar.ITEM_FILTER_ALL_ITEMS, 1, null, null ); ...
if (!treeContent._listenersInstalled) { try { treeContent.addEventListener("dblclick", ondblclick, false); treeContent.addEventListener("keypress", onkeypress, false); treeContent.addEventListener("focus", onfocus, false); treeContent.addEventListener("blur", onblur, false); } catch (ex) { dd ("caught exception setting...
function syncTreeView (treeContent, treeView, cb){ function tryAgain() { if ("treeBoxObject" in treeContent) { syncTreeView(treeContent, treeView, cb); } else { //dd ("trying to sync " + treeContent.getAttribute("id") + " AGAIN"); setTimeout (try...
else if (url.search(/^irc:\/\
else if (url.search(/^ircs?:\/\
function tabdnd_drop (aEvent, aXferData, aDragSession){ var url = transferUtils.retrieveURLFromData(aXferData.data, aXferData.flavour.contentType); if (!url || url.search(client.linkRE) == -1) return; if (url.search(/\.css$/i) != -1 && confirm (getMsg(...
r = takl(listn(18), listn(12), listn(6)); if (takl_length(r) != 7) { this.error("TaklBenchmark"); }
var r = takl(listn(18), listn(12), listn(6)); if (takl_length(r) != 7) { this.error("TaklBenchmark"); }
function TaklBenchmark_run(){ r = takl(listn(18), listn(12), listn(6)); if (takl_length(r) != 7) { this.error("TaklBenchmark"); }}
node.setAttributeNS("", "p3:l3", "v3");
node.setAttributeNS("", "l3", "v3");
function test4() { // setAttributeNS tests var doc = ParseXML('<root xmlns="ns1"/>'); var root = doc.documentElement; root.setAttributeNS("ns1", "prefix:local", "val"); do_check_serialize(doc); do_check_eq(SerializeXML(doc), '<root xmlns="ns1" prefix:local="val" xmlns:prefix="ns1"/>'); doc = ParseXM...
var child1 = root.firstChild;
var child1 = root.firstChild.QueryInterface(nsIDOMElement);
function test7() { // Handle xmlns attribute declaring a default namespace on a non-namespaced // element (bug 326994). var doc = ParseXML('<root xmlns=""/>') var root = doc.documentElement; root.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns", "http://www.w3.org/1999/xhtml"); do_chec...
child1 = root.firstChild; var child2 = child1.firstChild;
child1 = root.firstChild.QueryInterface(nsIDOMElement); var child2 = child1.firstChild.QueryInterface(nsIDOMElement);
function test7() { // Handle xmlns attribute declaring a default namespace on a non-namespaced // element (bug 326994). var doc = ParseXML('<root xmlns=""/>') var root = doc.documentElement; root.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns", "http://www.w3.org/1999/xhtml"); do_chec...
var iter = (function() { yield 0; })(); iter.close = make_iterator;
function generator() { try { yield 0; } finally { make_iterator(); } } generator().next();
function test(){ enterFunc ('test'); printBugNumber (bug); printStatus (summary); var globalToPokeGC = {}; function make_iterator() { var iter = (function() { yield 0; })(); iter.close = make_iterator; globalToPokeGC = {}; if (typeof alert != 'undefined') { alert(1); } } make_iterator(); ...
e = "this change should not propagate outside of this scope.";
e = "this change should not propagate outside of this scope";
function test(){ enterFunc ("test"); var EXCEPTION_DATA = "String exception"; var e = "foo"; var caught = false; printStatus ("Basic catchguard test."); try { throw EXCEPTION_DATA; } catch (e if true) { caught = true; e = "this change should not propagate o...
this.watch('x', function(){throw 'yikes'});
o.watch('x', function(){throw 'yikes'});
function test(){ enterFunc ('test'); printBugNumber (bug); printStatus (summary); expect = 'setter: yikes'; this.watch('x', function(){throw 'yikes'}); try { x = 3; } catch(ex) { actual = "setter: " + ex; } try { eval("") ; } catch(e) { actual = "eval: " + e; } reportCompare(expect, ...
x = 3;
o.x = 3;
function test(){ enterFunc ('test'); printBugNumber (bug); printStatus (summary); expect = 'setter: yikes'; this.watch('x', function(){throw 'yikes'}); try { x = 3; } catch(ex) { actual = "setter: " + ex; } try { eval("") ; } catch(e) { actual = "eval: " + e; } reportCompare(expect, ...
print(section + ' PASSED');
print('PASSED! ' + section);
function TEST(section, expected, actual){ var expected_t = typeof expected; var actual_t = typeof actual; var output = ""; if (expected_t != actual_t) output += "Type mismatch, expected type " + expected_t + ", actual type " + actual_t + "\n"; else if (VERBOSE) printStatus (...
expect = 'function() { new x(z)(w); }';
expect = 'function() { new (x(z))(w); }';
function test(){ enterFunc ('test'); printBugNumber (bug); printStatus (summary); var f, g; var x = Function; var z = 'actual += arguments[0];'; var w = 42; f = function() { new (x(z))(w) } expect = 'function() { new x(z)(w); }'; actual = f + ''; compareSource(expect, actual, summary + ': 1'); g = function ...
compareSource(expect, actual, summary + ': 1');
compareSource(expect, actual, summary);
function test(){ enterFunc ('test'); printBugNumber (bug); printStatus (summary); var f, g; var x = Function; var z = 'actual += arguments[0];'; var w = 42; f = function() { new (x(z))(w) } expect = 'function() { new x(z)(w); }'; actual = f + ''; compareSource(expect, actual, summary + ': 1'); g = function ...
compareSource(expect, actual, summary + ': 2');
compareSource(expect, actual, summary);
function test(){ enterFunc ('test'); printBugNumber (bug); printStatus (summary); var f, g; var x = Function; var z = 'actual += arguments[0];'; var w = 42; f = function() { new (x(z))(w) } expect = 'function() { new x(z)(w); }'; actual = f + ''; compareSource(expect, actual, summary + ': 1'); g = function ...
expect = '({p setter: function y() { } })';
expect = '({ set p y() { } })';
function test(){ enterFunc ('test'); printBugNumber (bug); printStatus (summary); expect = '({p setter: function y() { } })'; actual = uneval({p setter: function y() { } }); compareSource(expect, actual, summary); exitFunc ('test');}
var N = 700; var prefix="function f(){"; var suffix="}"; var source = Array(N+1).join(prefix) + Array(N+1).join(suffix); var F = Function(source);
function test(){ enterFunc ('test'); printBugNumber (bug); printStatus (summary); // Number of nested function f(){function f(){function f(){...}}} var N = 700; var prefix="function f(){"; var suffix="}"; var source = Array(N+1).join(prefix) + Array(N+1).join(suffix); var F = Function(source);// We successfull...
var deepestFunction;
function test(){ enterFunc ('test'); printBugNumber (bug); printStatus (summary); // Number of nested function f(){function f(){function f(){...}}} var N = 700; var prefix="function f(){"; var suffix="}"; var source = Array(N+1).join(prefix) + Array(N+1).join(suffix); var F = Function(source);// We successfull...
var testObj = { recursionLevel: N*0.7, get propertyWithGetter() { if (this.recursionLevel <= 0) return underDeepRecursion(); this.recursionLevel--; return this.propertyWithGetter; } };
var n = findActionMax(function(n) { var prefix="function f(){"; var suffix="}"; var source = Array(n+1).join(prefix) + Array(n+1).join(suffix); try { deepestFunction = Function(source); return true; } catch (e) { if (!(e instanceof InternalError)) throw e; return false; }
function test(){ enterFunc ('test'); printBugNumber (bug); printStatus (summary); // Number of nested function f(){function f(){function f(){...}}} var N = 700; var prefix="function f(){"; var suffix="}"; var source = Array(N+1).join(prefix) + Array(N+1).join(suffix); var F = Function(source);// We successfull...
function underDeepRecursion() { return F.toSource();
}); if (n == 0) throw "unexpected"; writeLineToLog("Max nested function leveles:"+n); n = findActionMax(function(n) { try { callAfterConsumingCStack(n, function() {}); return true; } catch (e) { if (!(e instanceof InternalError)) throw e; return false; } }); writeLineToLog("Max callAfterConsumingCStack levels:"+n);...
function test(){ enterFunc ('test'); printBugNumber (bug); printStatus (summary); // Number of nested function f(){function f(){function f(){...}}} var N = 700; var prefix="function f(){"; var suffix="}"; var source = Array(N+1).join(prefix) + Array(N+1).join(suffix); var F = Function(source);// We successfull...
var success = false; try { testObj.propertyWithGetter; success = true; } catch (e) { success = (e instanceof InternalError); } writeLineToLog("success="+success);
function test(){ enterFunc ('test'); printBugNumber (bug); printStatus (summary); // Number of nested function f(){function f(){function f(){...}}} var N = 700; var prefix="function f(){"; var suffix="}"; var source = Array(N+1).join(prefix) + Array(N+1).join(suffix); var F = Function(source);// We successfull...