rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
ClearEditMessageButton();
onStartHeaders: function() { // every time we start to redisplay a message, check the view all headers pref.... var showAllHeadersPref = pref.GetIntPref("mail.show_headers"); if (showAllHeadersPref == 2) gViewAllHeaders = true; else gViewAllHeaders = false; ClearCurrentHead...
SetUpRemoteContentBar(null);
gMessageNotificationBar.clearMsgNotifications();
onStartHeaders: function() { mSaveHdr = null; // clear out any pending collected address timers... if (gCollectAddressTimer) { gCollectAddress = ""; clearTimeout(gCollectAddressTimer); gCollectAddressTimer = null; } // every time we start to redisplay a ...
this._downloadThrobber.setAttribute("state", "loading");
if (this._paused) return; if (!(this._downloadThrobber.hasAttribute("state") && (this._downloadThrobber.getAttribute("state") == "loading"))) this._downloadThrobber.setAttribute("state", "loading"); if (this._downloadProgress.mode != "undetermined") this._downloadProgress.mode = "undetermined"; this._setStatus(this._l...
onStartRequest: function(request, context) { request.QueryInterface(nsIIncrementalDownload); LOG("UI:DownloadingPage", "onStartRequest: " + request.URI.spec); this._downloadThrobber.setAttribute("state", "loading"); },
dump("onStartRequest status = " + request.status + "\n");
dump("onStartRequest status = " + request.status.toString(16) + "\n");
onStartRequest: function(request, ctxt) { dump("onStartRequest status = " + request.status + "\n"); },
setElementValue(endWidgetId, start.getInTimezone(calendarDefaultTimezone()).jsDate);
setElementValue(endWidgetId, start.getInTimezone(window.opener.calendarDefaultTimezone()).jsDate);
function onStartTimeChange(){ if (!gItemDuration) { return; } var startWidgetId; var endWidgetId; if (isEvent(window.calendarItem)) { startWidgetId = "event-starttime"; endWidgetId = "event-endtime"; } else { if (!getElementValue("todo-has-entrydate", "checked") || !getElem...
onStartURIOpen: function(uri, windowTarget)
onStartURIOpen: function(uri)
onStartURIOpen: function(uri, windowTarget) { // ignore and don't abort return false; },
setFormToolbar();
onStateChange : function(channel, state) { const nsIWebProgressListener = Components.interfaces.nsIWebProgressListener; if (!throbberElement) throbberElement = document.getElementById("navigator-throbber"); if (!statusMeter) statusMeter = document.getElementById("statusbar-icon"); if (!stopButt...
if (getBrowser().mTabbedMode) { for (var i = 0; i < getBrowser().mPanelContainer.childNodes.length; i++) { if(getBrowser().getBrowserAtIndex(i).contentDocument==aWebProgress.DOMWindow.document) { refBrowser=getBrowser().getBrowserAtIndex(i); tabItem=getBrowser().mTabContainer.childNodes[i]; } } } const rsschromemask...
onStateChange : function(aWebProgress, aRequest, aStateFlags, aStatus) { var refBrowser=null; var tabItem=null; if (aStateFlags & nsIWebProgressListener.STATE_IS_NETWORK) { if (aStateFlags & nsIWebProgressListener.STATE_START) { this.stopreloadButton.className = "stop-button"; ...
msg = bundle.GetStringFromName("nv_done");
msg = gNavigatorBundle.getString("nv_done");
onStateChange : function(channel, state) { const nsIWebProgressListener = Components.interfaces.nsIWebProgressListener; if (!throbberElement) throbberElement = document.getElementById("navigator-throbber"); if (!statusMeter) statusMeter = document.getElementById("statusbar-icon"); if (!stopButt...
var ctype = aRequest.QueryInterface(nsIChannel).contentType; if (ctype.match(/^image\ this.translateMenu.setAttribute('disabled', 'true');
onStateChange : function(aWebProgress, aRequest, aStateFlags, aStatus) { //ignore local/resource:/chrome: files if (aStatus == NS_NET_STATUS_READ_FROM || aStatus == NS_NET_STATUS_WROTE_TO) return; const nsIWebProgressListener = Components.interfaces.nsIWebProgressListener; const nsIChannel = Compo...
const kErrorBindingAborted = 2152398850; const kErrorNetTimeout = 2152398862;
const kErrorBindingAborted = 0x804B0002; const kErrorNetTimeout = 0x804B000E;
onStateChange : function(aWebProgress, aRequest, aStateFlags, aStatus) { const nsIWebProgressListener = Components.interfaces.nsIWebProgressListener; const nsIChannel = Components.interfaces.nsIChannel; var ctype; if (aStateFlags & nsIWebProgressListener.STATE_START) { // This (thanks to the filte...
processEndOfDownload();
const nsIWebBrowserPersist = Components.interfaces.nsIWebBrowserPersist; if (helperAppLoader || webBrowserPersist && webBrowserPersist.currentState == nsIWebBrowserPersist.PERSIST_STATE_FINISHED) setTimeout("processEndOfDownload()", 0);
onStateChange: function(aWebProgress, aRequest, aStateFlags, aStatus) { if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_STOP) { // we are done downloading... completed = true; // Indicate completion in status area. var msg = getString( "completeMsg" ); ...
if (domWindow == domWindow.top)
if (domWindow == this.getFrom(domWindow, "top"))
onStateChange : function(aWebProgress, aRequest, aStateFlags, aStatus) { //ignore local/resource:/chrome: files if (aStatus == NS_NET_STATUS_READ_FROM || aStatus == NS_NET_STATUS_WROTE_TO) return; const nsIWebProgressListener = Components.interfaces.nsIWebProgressListener; const nsIChannel = Compo...
if (aStatus == 0) processEndOfDownload(false); else processEndOfDownload(true);
window.close();
onStateChange: function(aWebProgress, aRequest, aStateFlags, aStatus) { if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_START) { // Put progress meter in undetermined mode. dialog.progress.setAttribute( "value", 0 ); dialog.progress.setAttribute( "mode", "undet...
var aDownloadID = aDownload.target.persistentDescriptor;
var aDownloadID = aDownload.target.path;
onStateChange: function(aWebProgress, aRequest, aStateFlags, aStatus, aDownload) { if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_STOP) { var aDownloadID = aDownload.target.persistentDescriptor; var elt = this.doc.getElementById(aDownloadID).firstChild.firstChild; ...
gExtensionManager.removeDownload(aAddon.xpiURL);
onStateChange: function (aAddon, aState, aValue) { const nsIXPIProgressDialog = Components.interfaces.nsIXPIProgressDialog; var element = this.getElementForAddon(aAddon); if (!element) return; switch (aState) { case nsIXPIProgressDialog.DOWNLOAD_START: element.setAttribute("state", "waiting")...
sendOrSaveOperationInProgress = false;
gSendOrSaveOperationInProgress = false;
onStateChange: function(aWebProgress, aRequest, aStateFlags, aStatus) { if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_START) { document.getElementById('compose-progressmeter').setAttribute( "mode", "undetermined" ); } if (aStateFlags & Components.interfaces...
setTimeout("document.getElementById('statusText').setAttribute('label', '')", 5000);
document.getElementById('statusText').setAttribute('label', '');
onStateChange: function(aWebProgress, aRequest, aStateFlags, aStatus) { if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_START) { document.getElementById('compose-progressmeter').setAttribute( "mode", "undetermined" ); } if (aStateFlags & Components.interfaces...
var event = this.doc.createEvent('Events'); event.initEvent('select', false, true); this.doc.getElementById("downloadView").dispatchEvent(event);
onStateChange: function(aWebProgress, aRequest, aStateFlags, aStatus, aDownload) { if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_STOP) { var aDownloadID = aDownload.target.path; var elt = this.doc.getElementById(aDownloadID).firstChild.firstChild; var timeRem...
var ctype = aRequest.QueryInterface(nsIChannel).contentType;
ctype = aRequest.QueryInterface(nsIChannel).contentType;
onStateChange : function(aWebProgress, aRequest, aStateFlags, aStatus) { //ignore local/resource:/chrome: files if (aStatus == NS_NET_STATUS_READ_FROM || aStatus == NS_NET_STATUS_WROTE_TO) return; const nsIWebProgressListener = Components.interfaces.nsIWebProgressListener; const nsIChannel = Compo...
var extensionsStrings = document.getElementById("extensionsStrings");
extensionsStrings = document.getElementById("extensionsStrings");
onStateChange: function (aURL, aState, aValue) { const nsIXPIProgressDialog = Components.interfaces.nsIXPIProgressDialog; var element = document.getElementById(aURL); if (!element) return; switch (aState) { case nsIXPIProgressDialog.DOWNLOAD_START: element.setAttribute("state", "waiting"); v...
updateGlobalCommands();
if (gUpdatesOnly) { setElementDisabledByID("cmd_continue", false); document.getElementById("continueDialogButton").focus(); } else updateGlobalCommands();
onStateChange: function (aAddon, aState, aValue) { const nsIXPIProgressDialog = Components.interfaces.nsIXPIProgressDialog; var element = this.getElementForAddon(aAddon); if (!element && aState != nsIXPIProgressDialog.DIALOG_CLOSE) return; switch (aState) { case nsIXPIProgressDialog.DOWNLOAD_ST...
if (aStatus) { var saveDocStr = GetString("Publish"); var failedStr = GetString("PublishFailed"); AlertWithTitle(saveDocStr, failedStr); return; }
onStateChange : function(aWebProgress, aRequest, aStateFlags, aStatus) { // Use this to access onStateChange flags const nsIWebProgressListener = Components.interfaces.nsIWebProgressListener; var requestSpec; try { var channel = aRequest.QueryInterface(Components.interfaces.nsIChannel); if (cha...
dump( "Error setting close timeout\n" );
onStateChange: function(aWebProgress, aRequest, aStateFlags, aStatus) { if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_STOP) { // we are done downloading... completed = true; // Indicate completion in status area. var msg = getString( "completeMsg" ); ...
dialog.status.childNodes[0].nodeValue = status;
if ( status.length > 9 ) { dialog.status.childNodes[0].nodeValue = status; }
function onStatus( status ) { // Update status text in dialog. dialog.status.childNodes[0].nodeValue = status;}
} catch (ex) {};
} catch (ex) {}
onStatusChange: function(aWebProgress, aRequest, aStatus, aMessage) { // Looks like it's possible that we get call while the document has been already delete! // therefore we need to protect ourself by using try/catch try { statusText = document.getElementById("statusText"); if (stat...
statusText = document.getElementById("statusText"); if (statusText) statusText.setAttribute("label", aMessage);
try { statusText = document.getElementById("statusText"); if (statusText) statusText.setAttribute("label", aMessage); } catch (ex) {};
onStatusChange: function(aWebProgress, aRequest, aStatus, aMessage) { statusText = document.getElementById("statusText"); if (statusText) statusText.setAttribute("label", aMessage); },
if (aMessage) dialog.status.setAttribute("value", status);
onStatusChange: function(aWebProgress, aRequest, aStatus, aMessage) { if (aMessage) dialog.status.setAttribute("value", status); },
this._downloadThrobber.removeAttribute("state");
if (this._downloadThrobber.hasAttribute("state")) this._downloadThrobber.removeAttribute("state"); if (this._downloadProgress.mode != "normal") this._downloadProgress.mode = "normal";
onStopRequest: function(request, context, status) { request.QueryInterface(nsIIncrementalDownload); LOG("UI:DownloadingPage", "onStopRequest: " + request.URI.spec + ", status = " + status); this._downloadThrobber.removeAttribute("state"); var u = gUpdates.update; const NS_BINDING_ABORTED = ...
evalInSandbox(mypac, ProxySandBox, pacURL);
onStopRequest: function(request, ctxt, status) { if(!ProxySandBox) { ProxySandBox = new Sandbox(); } // add predefined functions to pac var mypac = pacUtils + pac; // evaluate loded js file evalInSandbox(mypac, ProxySandBox, pacURL); ProxySandBox.myIpAddres...
evalInSandbox(mypac, ProxySandBox, pacURL);
onStopRequest: function(request, ctxt, status) { if(!ProxySandBox) { ProxySandBox = new Sandbox(); } // add predefined functions to pac var mypac = pacUtils + pac; // evaluate loded js file evalInSandbox(mypac, ProxySandBox, pacURL); ProxySandBox.myIpAddres...
ProxySandBox.myIP = dns.myIPAddress;
try { ProxySandBox.myIP = dns.myIPAddress; } catch (e) { ProxySandBox.myIP = "127.0.0.1"; }
onStopRequest: function(request, ctxt, status, errorMsg) { this.done = true; if(!ProxySandBox) { ProxySandBox = new Sandbox(); } // add predefined functions to pac var mypac = pacUtils + pac; // evaluate loded js file evalInSandbox(mypac, ProxySandBox, pacU...
ctxt.locked = false; ctxt.processQueue();
ctxt.unlock();
onStopRequest: function(request, ctxt, status, errorMsg) { ctxt = ctxt.wrappedJSObject; var channel; try { channel = request.QueryInterface(Components.interfaces.nsIHttpChannel); dump(channel.requestSucceeded+"\n"); } catch(e) { } if (channel && !ch...
try { var url = this.uri.QueryInterface(Components.interfaces.nsIURL); var ext = url.fileExtension; if (ext) { var mimeInfo = getMIMEInfoForExtension(ext); if (mimeInfo) this.contentType = mimeInfo.MIMEType; } } catch (e) { }
var type = getMIMETypeForURI(this.uri); if (type) this.contentType = type;
onStopRequest: function (aRequest, aContext, aStatus) { try { if (aStatus == 0) { // NS_BINDING_SUCCEEDED, so there's something there var linkChecker = aRequest.QueryInterface(Components.interfaces.nsIURIChecker); var channel = linkChecker.baseRequest.QueryInterface(Components.interfaces.nsIChan...
} if (!this.contentType || this.contentType == "application/x-unknown-content-type") { throw "Unknown Type";
onStopRequest: function (aRequest, aContext, aStatus) { try { if (aStatus == 0) { // NS_BINDING_SUCCEEDED, so there's something there var linkChecker = aRequest.QueryInterface(Components.interfaces.nsIURIChecker); var channel = linkChecker.baseRequest.QueryInterface(Components.interfaces.nsIChan...
ctxt.mHooks.onAfterPut(channel);
onStopRequest: function(request, ctxt, status, errorMsg) { ctxt = ctxt.wrappedJSObject; var channel; try { channel = request.QueryInterface(Components.interfaces.nsIHttpChannel); dump(channel.requestSucceeded+"\n"); } catch(e) { } if (channel && !ch...
this.done = true;
onStopRequest: function(request, ctxt, status, errorMsg) { this.done = true; if(!ProxySandBox) { ProxySandBox = new Sandbox(); } // add predefined functions to pac var mypac = pacUtils + pac; // evaluate loded js file evalInSandbox(mypac, ProxySandBox, pacU...
this.done = true;
onStopRequest: function(request, ctxt, status, errorMsg) { this.done = true; if(!ProxySandBox) { ProxySandBox = new Sandbox(); } // add predefined functions to pac var mypac = pacUtils + pac; // evaluate loded js file evalInSandbox(mypac, ProxySandBox, pacU...
try { ctxt.listener.onError(this, ctxt.context, status, errorMsg); } catch (ex) {}
try { this._listener.onError(this, ctxt, status, errorMsg); } catch (ex) { debug('Exception in listener.onError: ' + ex); }
onStopRequest: function(channel, ctxt, status, errorMsg) { debug('Stop Request'); if (!this._inProgress) return; // No longer interested. this._inProgress = false; this._parser = null; if (status) { debug('Non-zero status: (' + status.toString(16) + ') ' + error...
ctxt.listener.onError(this, ctxt.context,
this._listener.onError(this, ctxt,
onStopRequest: function(channel, ctxt, status, errorMsg) { debug('Stop Request'); if (!this._inProgress) return; // No longer interested. this._inProgress = false; this._parser = null; if (status) { debug('Non-zero status: (' + status.toString(16) + ') ' + error...
catch(ex) {}
catch(ex) { debug('Exception in listener.onError: ' + ex); }
onStopRequest: function(channel, ctxt, status, errorMsg) { debug('Stop Request'); if (!this._inProgress) return; // No longer interested. this._inProgress = false; this._parser = null; if (status) { debug('Non-zero status: (' + status.toString(16) + ') ' + error...
try { ctxt.listener.onFault(this, ctxt.context, this._fault); } catch(ex) {}
try { this._listener.onFault(this, ctxt, this._fault); } catch(ex) { debug('Exception in listener.onFault: ' + ex); }
onStopRequest: function(channel, ctxt, status, errorMsg) { debug('Stop Request'); if (!this._inProgress) return; // No longer interested. this._inProgress = false; this._parser = null; if (status) { debug('Non-zero status: (' + status.toString(16) + ') ' + error...
ctxt.listener.onResult(this, ctxt.context, this._result); } catch (ex) {}
this._listener.onResult(this, ctxt, this._result); } catch (ex) { debug('Exception in listener.onResult: ' + ex); }
onStopRequest: function(channel, ctxt, status, errorMsg) { debug('Stop Request'); if (!this._inProgress) return; // No longer interested. this._inProgress = false; this._parser = null; if (status) { debug('Non-zero status: (' + status.toString(16) + ') ' + error...
dump("onStopRequest status = " + request.status + " " + errorMsg + "\n");
dump("onStopRequest status = " + request.status.toString(16) + " " + errorMsg + "\n");
onStopRequest: function(request, ctxt, status, errorMsg) { dump("onStopRequest status = " + request.status + " " + errorMsg + "\n"); },
ProxySandBox.alert = proxyAlert;
onStopRequest: function(request, ctxt, status) { if(!ProxySandBox) { ProxySandBox = new Sandbox(); } // add predefined functions to pac var mypac = pacUtils + pac; // evaluate loded js file evalInSandbox(mypac, ProxySandBox, pacURL); try { ProxyS...
dump(channel.requestSucceeded+"\n");
LOG(channel.requestSucceeded);
onStopRequest: function(request, ctxt, status, errorMsg) { ctxt = ctxt.wrappedJSObject; var channel; try { channel = request.QueryInterface(Components.interfaces.nsIHttpChannel); dump(channel.requestSucceeded+"\n"); } catch(e) { } if (channel && !ch...
{ resizeAlert(); setTimeout(animateAlert, gSlideTime); }
showAlert();
OnStopRunningUrl: function(aUrl, aExitCode) { var folderSummaryInfoEl = document.getElementById('folderSummaryInfo'); var asyncFetch = {}; folderSummaryInfoEl.parseFolder(this.mFolder, null, asyncFetch); gPendingPreviewFetchRequests--; // when we are done running all of our urls for fetching the previ...
this.mMemoryCalendar.uri = this.mUri; this.mMemoryCalendar.wrappedJSObject.calendarToReturn = this;
onStreamComplete: function(loader, ctxt, status, resultLength, result) { // Create a new calendar, to get rid of all the old events this.mMemoryCalendar = Components.classes["@mozilla.org/calendar/calendar;1?type=memory"] .createInstance(Components.interfaces...
this.observeOnEndBatch();
onStreamComplete: function(loader, ctxt, status, resultLength, result) { // XXX ?? Is this ok? this.mItems = new Array(); var unicodeConverter = Components.classes["@mozilla.org/intl/scriptableunicodeconverter"] .createInstance(Components.interfaces.ns...
if( typeof( result ) != "string" ) result = String.fromCharCode.apply(this, result);
if( typeof( result ) != "string" ) { var sliceStringArray = new Array(); for (var start = 0, end; start < (end = Math.min(result.length, start + 32768)); start = end) { var slice = result.slice(start, end); var sliceString = String.fromCharCode.apply(null, slice); sliceStringArray[sliceStringArray.length] = sliceSt...
onStreamComplete: function(loader, ctxt, status, resultLength, result) { // revert from "wait" cursor set by getRemoteCalendarText (below) window.setCursor( "auto" ); var calendarStringBundle = srGetStrBundle("chrome://calendar/locale/calendar.properties"); var promptService =...
var str_ = {}; while (unicharData.readString( -1, str_ )) { str += str_.value;
if (unicharData) { var str_ = {}; while (unicharData.readString( -1, str_ )) { str += str_.value; }
onStreamComplete: function( loader, context, status, /* nsIUnicharInputStream */ unicharData ) { if (status == Components.results.NS_OK) { var str = ""; var str_ = {}; while (unicharData.readString( -1, str_ )) { str += str_.value; } ...
logMessage( "issueAsyncUtf8Request( \"" + this.m_url + "\" )", "request result: " + str );
logMessage( "issueAsyncRequest( \"" + loader.channel.URI.spec + "\" )", "contentCharset = " + loader.channel.contentCharset+ "\nrequest result:\n" + str );
onStreamComplete: function( loader, context, status, /* nsIUnicharInputStream */ unicharData ) { if (status == Components.results.NS_OK) { var str = ""; var str_ = {}; while (unicharData.readString( -1, str_ )) { str += str_.value; } ...
if (e.which != 1)
if ((e.which != 1) && (e.which != 2))
function onTabClick (e, id){ if (e.which != 1) return; var tbi = document.getElementById (id); var view = client.viewsArray[tbi.getAttribute("viewKey")]; setCurrentObject (view.source);}
setCurrentObject (view.source);
if (e.which == 2) { dispatch("hide", { view: view.source }); return; } else if (e.which == 1) { dispatch("set-current-view", { view: view.source }); }
function onTabClick (e, id){ if (e.which != 1) return; var tbi = document.getElementById (id); var view = client.viewsArray[tbi.getAttribute("viewKey")]; setCurrentObject (view.source);}
[url,
[safeHTML(url),
function onTemplateLoaded (name, status) { if (status != Components.results.NS_OK) { response.start(); response.append(getMsg(MSN_JSDURL_ERRPAGE, [url, getMsg(MSN_ERR_JSDURL_TEMPLATE, name)])); res...
lastItem = item;
function onToggleEnabled(event){ var item = event.target; while (item && item.localName != "treeitem") { lastItem = item; item = item.parentNode; } var filterResource = rdf.GetUnicodeResource(item.id); filter = filterResource.GetDelegate("filter", ...
filter = filterResource.GetDelegate("filter", Components.interfaces.nsIMsgFilter);
var filter = filterResource.GetDelegate("filter", Components.interfaces.nsIMsgFilter);
function onToggleEnabled(event){ var item = event.target; while (item && item.localName != "treeitem") { lastItem = item; item = item.parentNode; } var filterResource = rdf.GetUnicodeResource(item.id); filter = filterResource.GetDelegate("filter", ...
*/
function onToggleMunger(){ client.munger.enabled = !client.munger.enabled; if (client.munger.enabled) alert ("The munger may be broken, see " + "http://bugzilla.mozilla.org/show_bug.cgi?id=22048"); document.getElementById("menu-munger").setAttribute ("checked", ...
client.mainWindow.onInputKeypress(header["topicinput"]);
client.mainWindow.onInputKeyPress(e);
function onTopicKeypress(e){ switch (e.keyCode) { case 13: /* enter */ var topic = header["topicinput"].value; topic = mainWindow.replaceColorCodes(topic); view.setTopic(topic); view.dispatch("focus-input"); break; case 27: /* esc */...
function onTyping( key )
function onTyping()
function onTyping( key ) { if ( dialog.enabled ) { // Disable OK if they delete all the text. if ( dialog.findKey.value == "" ) { dialog.enabled = false; dialog.find.setAttribute("disabled", "true"); ...
if ( key == 13 && dialog.enabled ) { find(); } else {
function onTyping( key ) { if ( key == 13 && dialog.enabled ) { find(); } else { if ( dialog.enabled ) { // Disable OK if they delete all the text. if ( dialog.findKey.value == "" ) { dialog.e...
}
function onTyping( key ) { if ( key == 13 && dialog.enabled ) { find(); } else { if ( dialog.enabled ) { // Disable OK if they delete all the text. if ( dialog.findKey.value == "" ) { dialog.e...
gInBatch = false; } if (!gInBatch) {
OnUnassert : function(src,prop,target) { debug("panel_observer: onUnassert"); // Wait for unassert that marks the end of the customize changes. // See customize.js for where this is unasserted. if (prop == RDF.GetResource(NC + "inbatch")) { gInBatch = false; } if (!gInBatch) {...
if (!itsASaveOperation) { var prefs = Components.classes[prefContractID].getService(Components.interfaces.nsIPref); if (prefs) prefs.SetBoolPref("mailnews.send.progressDnldDialog.keepAlive", keepProgressWindowUpBox.checked); }
function onUnload() { if (!itsASaveOperation) { // remember the user's decision for the checkbox. var prefs = Components.classes[prefContractID].getService(Components.interfaces.nsIPref); if (prefs) prefs.SetBoolPref("mailnews.send.progressDnldDialog.keepAlive", keepProgressWindowUpBox.checked); } if ...
data.ConvertToOwningReference();
function onUnload() { // Turn "data" back to owning reference (since xpconnect // will do Release() regardless). data.ConvertToOwningReference(); // Disconnect context from this dialog. data.findDialog = null; }
resetFolderToSearchAttribute();
function onUnLoad(){ // generateFoldersToSearchList();}
if (msgComposeProgress)
if (msgProgress)
function onUnload() { if (!itsASaveOperation) { // remember the user's decision for the checkbox. var prefs = Components.classes[prefContractID].getService(Components.interfaces.nsIPref); if (prefs) prefs.SetBoolPref("mailnews.send.progressDnldDialog.keepAlive", keepProgressWindowUpBox.checked); } if ...
msgComposeProgress.unregisterListener(progressListener); msgComposeProgress = null;
msgProgress.unregisterListener(progressListener); msgProgress = null;
function onUnload() { if (!itsASaveOperation) { // remember the user's decision for the checkbox. var prefs = Components.classes[prefContractID].getService(Components.interfaces.nsIPref); if (prefs) prefs.SetBoolPref("mailnews.send.progressDnldDialog.keepAlive", keepProgressWindowUpBox.checked); } if ...
msgWindow.closeWindow();
msgDS = messageDataSource.QueryInterface(Components.interfaces.nsIMsgRDFDataSource); msgDS.window = null; msgDS = accountManagerDataSource.QueryInterface(Components.interfaces.nsIMsgRDFDataSource); msgDS.window = null; msgWindow.closeWindow();
function OnUnloadMessenger(){ dump("\nOnUnload from XUL\nClean up ...\n"); var mailSession = Components.classes[mailSessionProgID].getService(); if(mailSession) { mailSession = mailSession.QueryInterface(Components.interfaces.nsIMsgMailSession); if(mailSession) { mailSession.RemoveFolderListener(folderListener); ...
uninitFindBar();
gFindBar.uninitFindBar();
function onUnloadViewPartialSource(){ uninitFindBar();}
uninitFindBar();
gFindBar.uninitFindBar();
function onUnloadViewSource(){#ifdef MOZ_PHOENIX uninitFindBar();#endif}
gExtensionManager.addDownloads(this._addons, this._addons.length);
gExtensionManager.addDownloads(this._addons, this._addons.length, true);
onUpdateEnded: function() { gExtensionsView.removeAttribute("update-check"); var command = document.getElementById("cmd_update"); gExtensionsViewController.updateCommand(command); command = document.getElementById("cmd_update_all"); command.removeAttribute("disabled"); // Show message to user li...
#else var popupButtonText = bundle_browser.getString("popupWarningButtonUnix"); #endif
onUpdatePageReport: function () { if (!this._reportButton) this._reportButton = document.getElementById("page-report-button"); if (gBrowser.selectedBrowser.pageReport) { this._reportButton.setAttribute("blocked", "true"); if (gPrefService && gPrefService.getBoolPref("privacy.popups.showBrow...
message, popupButtonText, popupButtonAccesskey, null, null, "blockedPopupOptions", "top", true);
message, popupButtonText, null, null, "blockedPopupOptions", "top", true, popupButtonAccesskey);
onUpdatePageReport: function () { if (!this._reportButton) this._reportButton = document.getElementById("page-report-button"); if (gBrowser.selectedBrowser.pageReport) { this._reportButton.setAttribute("blocked", "true"); if (gPrefService && gPrefService.getBoolPref("privacy.popups.showBrowserMe...
if (mean == 0 && gLastComputedMean > 0) { window.title = document.documentElement.getAttribute("statictitle"); return; }
function onUpdateProgress(){ var numActiveDownloads = gActiveDownloads.length; if (numActiveDownloads == 0) { window.title = document.documentElement.getAttribute("statictitle"); return; } var mean = 0; for (var i = 0; i < numActiveDownloads; ++i) { var dl = gActiveDownloads[i]; var progress = dl.p...
if (network != client.networks[network.name] ||
if (network != client.networks[network.canonicalName] ||
function onUserPrefChanged(user, prefName, newValue, oldValue){ var network = user.parent.parent; if (network != client.networks[network.name] || user.parent != network.primServ || user != network.primServ.users[user.name]) { /* this is a stale observer, remove it */ user.prefManage...
user != network.primServ.users[user.name])
user != network.primServ.users[user.canonicalName])
function onUserPrefChanged(user, prefName, newValue, oldValue){ var network = user.parent.parent; if (network != client.networks[network.name] || user.parent != network.primServ || user != network.primServ.users[user.name]) { /* this is a stale observer, remove it */ user.prefManage...
dispatch("sync-fonts");
user.dispatch("sync-font");
function onUserPrefChanged(user, prefName, newValue, oldValue){ var network = user.parent.parent; if (network != client.networks[network.name] || user.parent != network.primServ || user != network.primServ.users[user.name]) { /* this is a stale observer, remove it */ user.prefManage...
dispatch("sync-motifs");
user.dispatch("sync-motif");
function onUserPrefChanged(user, prefName, newValue, oldValue){ var network = user.parent.parent; if (network != client.networks[network.name] || user.parent != network.primServ || user != network.primServ.users[user.name]) { /* this is a stale observer, remove it */ user.prefManage...
dispatch("sync-windows");
user.dispatch("sync-window");
function onUserPrefChanged(user, prefName, newValue, oldValue){ var network = user.parent.parent; if (network != client.networks[network.name] || user.parent != network.primServ || user != network.primServ.users[user.name]) { /* this is a stale observer, remove it */ user.prefManage...
dispatch("sync-headers");
user.dispatch("sync-header");
function onUserPrefChanged(user, prefName, newValue, oldValue){ var network = user.parent.parent; if (network != client.networks[network.name] || user.parent != network.primServ || user != network.primServ.users[user.name]) { /* this is a stale observer, remove it */ user.prefManage...
dispatch("sync-timestamps");
user.dispatch("sync-timestamp");
function onUserPrefChanged(user, prefName, newValue, oldValue){ var network = user.parent.parent; if (network != client.networks[network.name] || user.parent != network.primServ || user != network.primServ.users[user.name]) { /* this is a stale observer, remove it */ user.prefManage...
dispatch("sync-logs");
user.dispatch("sync-log");
function onUserPrefChanged(user, prefName, newValue, oldValue){ var network = user.parent.parent; if (network != client.networks[network.name] || user.parent != network.primServ || user != network.primServ.users[user.name]) { /* this is a stale observer, remove it */ user.prefManage...
gSmtpSavePassword.removeAttribute("disabled");
function onUseUsername(checkbox, dofocus){ if (checkbox.checked) { gSmtpUsername.removeAttribute("disabled"); gSmtpSavePassword.removeAttribute("disabled"); if (dofocus) gSmtpUsername.focus(); if (gSavedUsername && gSavedUsername != "") gSmtpUsername.value = gSavedUs...
gSmtpSavePassword.setAttribute("disabled", "true");
function onUseUsername(checkbox, dofocus){ if (checkbox.checked) { gSmtpUsername.removeAttribute("disabled"); gSmtpSavePassword.removeAttribute("disabled"); if (dofocus) gSmtpUsername.focus(); if (gSavedUsername && gSavedUsername != "") gSmtpUsername.value = gSavedUs...
gSmtpUsernameLabel.setAttribute("disabled", "true");
function onUseUsername(checkbox, dofocus){ if (checkbox.checked) { gSmtpUsername.removeAttribute("disabled"); if (dofocus) gSmtpUsername.focus(); if (gSavedUsername && gSavedUsername != "") gSmtpUsername.value = gSavedUsername; } else { gSavedUsername = gSmtpUsern...
function onViewDoubleClick()
function onViewDoubleClick(aEvent)
function onViewDoubleClick(){ switch (gWindowState) { case "extensions": gExtensionsViewController.doCommand('cmd_options'); break; case "themes": gExtensionsViewController.doCommand('cmd_useTheme'); break; }}
if (aEvent.button != 0) return;
function onViewDoubleClick(){ switch (gWindowState) { case "extensions": gExtensionsViewController.doCommand('cmd_options'); break; case "themes": gExtensionsViewController.doCommand('cmd_useTheme'); break; }}
aEvent.preventBubble();
aEvent.stopPropagation();
function onViewMenuColumnItemSelected(aEvent){ var colid = aEvent.target.getAttribute("colid"); if (colid != "") { var bookmarksView = document.getElementById("bookmarks-view"); bookmarksView.toggleColumnVisibility(colid); } aEvent.preventBubble();}
aEvent.preventBubble();
aEvent.stopPropagation();
function onViewMenuColumnItemSelected(aEvent){ var resource = aEvent.target.getAttribute("resource"); if (resource != "") { var bookmarksView = document.getElementById("bookmarks-view"); bookmarksView.toggleColumnVisibility(resource); } aEvent.preventBubble();}
val = client.COPY_MESSAGES; document.getElementById ("menu-view-copymsgs").setAttribute ("checked", val);
function onViewMenuShowing (){ var loc = frames[0].document.location.href; loc = loc.substr (loc.indexOf("?") + 1); var val = (loc == "chrome://chatzilla/skin/output-default.css"); document.getElementById ("menu-view-default").setAttribute ("checked", val); val = (loc == "chrome://chatzilla/skin/output-d...
aEvent.preventCapture();
aEvent.stopPropagation();
function onViewMenuSortItemSelected(aEvent){ var resource = aEvent.target.getAttribute("resource"); const kPrefSvcContractID = "@mozilla.org/preferences-service;1"; const kPrefSvcIID = Components.interfaces.nsIPrefService; var prefSvc = Components.classes[kPrefSvcContractID].getService(kPrefSvcIID); var bookmark...
const kPrefSvcContractID = "@mozilla.org/preferences;1";
const kPrefSvcContractID = "@mozilla.org/preferences-service;1";
function onViewMenuSortItemSelected(aEvent){ var resource = aEvent.target.getAttribute("resource"); const kPrefSvcContractID = "@mozilla.org/preferences;1"; const kPrefSvcIID = Components.interfaces.nsIPrefService; var prefSvc = Components.classes[kPrefSvcContractID].getService(kPrefSvcIID); var bookmarksSortPre...
displayValue = BookmarksUtils.getProperty(selection.item[0], NC_NS+"URL", aEvent.target.db)
displayValue = BookmarksUtils.getProperty(selection.item[0], gNC_NS+"URL", aEvent.target.db)
function onViewSelected(aEvent){ var statusBar = document.getElementById("statusbar-text"); var displayValue; var selection = aEvent.target.getTreeSelection(); var bookmarksView = document.getElementById("bookmarks-view"); if (selection.length == 0) return; if (aEvent.target.id == "bookmark-folders-view" && ...
setCurrentObject(client.viewsArray[idx].source);
dispatch("set-current-view", { view: client.viewsArray[idx].source });
function onWindowKeyPress (e){ var code = Number(e.keyCode); var w; var newOfs; var userList = document.getElementById("user-list"); var elemFocused = document.commandDispatcher.focusedElement; switch (code) { case 9: /* tab */ if (e.ctrlKey || e.metaKey) { ...
cycleView(1);
cycleView(-1);
function onWindowKeyPress (e){ var code = Number(e.keyCode); var w; var newOfs; var userList = document.getElementById("user-list"); var elemFocused = document.commandDispatcher.focusedElement; switch (code) { case 9: /* tab */ if (e.ctrlKey || e.metaKey) { ...
cycleView(-1);
cycleView(1);
function onWindowKeyPress (e){ var code = Number(e.keyCode); var w; var newOfs; var userList = document.getElementById("user-list"); var elemFocused = document.commandDispatcher.focusedElement; switch (code) { case 9: /* tab */ if (e.ctrlKey || e.metaKey) { ...
var userList = document.getElementById("user-list"); var elemFocused = document.commandDispatcher.focusedElement;
function onWindowKeyPress (e){ var code = Number (e.keyCode); var w; var newOfs; switch (code) { case 112: /* F1 */ case 113: /* ... */ case 114: case 115: case 116: case 117: case 118: case 119: case 120: case 121: /* F10 */ ...
newOfs = w.pageYOffset - (w.innerHeight / 2);
newOfs = w.pageYOffset - (w.innerHeight * 0.9);
function onWindowKeyPress (e){ var code = Number (e.keyCode); var w; var newOfs; switch (code) { case 112: /* F1 */ case 113: /* ... */ case 114: case 115: case 116: case 117: case 118: case 119: case 120: case 121: /* F10 */ ...
newOfs = w.pageYOffset + (w.innerHeight / 2);
newOfs = w.pageYOffset + (w.innerHeight * 0.9);
function onWindowKeyPress (e){ var code = Number (e.keyCode); var w; var newOfs; switch (code) { case 112: /* F1 */ case 113: /* ... */ case 114: case 115: case 116: case 117: case 118: case 119: case 120: case 121: /* F10 */ ...