rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
if (!iid.equals(Components.interfaces.nsIXPIDialogService) && !iid.equals(Components.interfaces.nsIXPIProgressDialog) && !iid.equals(Components.interfaces.nsISupports)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this;
if (iid.equals(Components.interfaces.nsIXPIDialogService) || iid.equals(Components.interfaces.nsIXPIProgressDialog) || iid.equals(Components.interfaces.nsISupports)) return this; Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE; return null;
QueryInterface: function( iid ) { if (!iid.equals(Components.interfaces.nsIXPIDialogService) && !iid.equals(Components.interfaces.nsIXPIProgressDialog) && !iid.equals(Components.interfaces.nsISupports)) { throw Components.results.NS_ERROR_NO_INTERFACE; } ...
throw Components.results.NS_NOINTERFACE;
QueryInterface: function(iid) { if (iid.equals(Components.interfaces.nsIURIContentListener) || iid.equals(Components.interfaces.nsISupportsWeakReference) || iid.equals(Components.interfaces.nsISupports)) return this; throw Components.results.NS_NOINTERFACE; },
Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE; return null;
QueryInterface: function(iid) { if (iid.equals(Components.interfaces.nsIURIContentListener) || iid.equals(Components.interfaces.nsISupportsWeakReference) || iid.equals(Components.interfaces.nsISupports)) return this; throw Components.results.NS_NOINTERFACE; },
if (!iid.equals(nsIFilePicker) && !iid.equals(nsISupports)) throw Components.results.NS_ERROR_NO_INTERFACE; return this;
if (iid.equals(nsIFilePicker) || iid.equals(nsISupports)) return this; Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE; return null;
QueryInterface: function(iid) { if (!iid.equals(nsIFilePicker) && !iid.equals(nsISupports)) throw Components.results.NS_ERROR_NO_INTERFACE; return this; },
if (!iid.equals(Components.interfaces.nsIHelperAppLauncherDialog) && !iid.equals(Components.interfaces.nsISupports)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this;
if (iid.equals(Components.interfaces.nsIHelperAppLauncherDialog) || iid.equals(Components.interfaces.nsISupports)) return this; Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE; return null;
QueryInterface: function (iid) { if (!iid.equals(Components.interfaces.nsIHelperAppLauncherDialog) && !iid.equals(Components.interfaces.nsISupports)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this; },
if (!iid.equals(Components.interfaces.nsISupports) && !iid.equals(Components.interfaces.nsIRDFDelegateFactory)) throw Components.results.NS_ERROR_NO_INTERFACE;
if (iid.equals(Components.interfaces.nsISupports) || iid.equals(Components.interfaces.nsIRDFDelegateFactory)) return this;
QueryInterface: function(iid) { if (DEBUG) { dump("QueryInterface called\n\n"); } if (!iid.equals(Components.interfaces.nsISupports) && !iid.equals(Components.interfaces.nsIRDFDelegateFactory)) throw Components.results.NS_ERROR_NO_INTERFACE; return this; ...
return this;
Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE; return null;
QueryInterface: function(iid) { if (DEBUG) { dump("QueryInterface called\n\n"); } if (!iid.equals(Components.interfaces.nsISupports) && !iid.equals(Components.interfaces.nsIRDFDelegateFactory)) throw Components.results.NS_ERROR_NO_INTERFACE; return this; ...
&& !aIID.equals(Ci.nsISupportsWeakReference)
QueryInterface: function(aIID) { if (!aIID.equals(Ci.nsISupports) && !aIID.equals(Ci.nsIObserver) && !aIID.equals(Ci.nsISessionStore)) { Components.returnCode = Cr.NS_ERROR_NO_INTERFACE; return null; } return this; }
if (!iid.equals(Components.interfaces.nsISupports) && !iid.equals(Components.interfaces.nsISupportsWeakReference) && !iid.equals(Components.interfaces.nsIDOMEventListener)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this;
if (iid.equals(Components.interfaces.nsISupports) || iid.equals(Components.interfaces.nsISupportsWeakReference) || iid.equals(Components.interfaces.nsIDOMEventListener)) return this; Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE; return null;
QueryInterface: function (iid) { if (!iid.equals(Components.interfaces.nsISupports) && !iid.equals(Components.interfaces.nsISupportsWeakReference) && !iid.equals(Components.interfaces.nsIDOMEventListener)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this; },
if (!iid.equals(Components.interfaces.nsISample) && !iid.equals(Components.interfaces.nsISupports)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this;
if (iid.equals(Components.interfaces.nsISample) || iid.equals(Components.interfaces.nsISupports)) return this; Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE; return null;
QueryInterface: function (iid) { if (!iid.equals(Components.interfaces.nsISample) && !iid.equals(Components.interfaces.nsISupports)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this; },
throw Components.results.NS_NOINTERFACE;
Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE; return null;
QueryInterface: function(aIID) { netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); if (aIID.equals(Components.interfaces.nsISHistoryListener) || aIID.equals(Components.interfaces.ns...
if (iid.Equals(Components.interfaces.nsIProtocolProxyFilter) || iid.Equals(Components.interfaces.nsISupports))
if (iid.equals(Components.interfaces.nsIProtocolProxyFilter) || iid.equals(Components.interfaces.nsISupports))
QueryInterface: function(iid) { if (iid.Equals(Components.interfaces.nsIProtocolProxyFilter) || iid.Equals(Components.interfaces.nsISupports)) return this; throw Components.results.NS_ERROR_NO_INTERFACE; },
if (!iid.equals(Components.interfaces.nsIProgressDialog) && !iid.equals(Components.interfaces.nsIDownload) && !iid.equals(Components.interfaces.nsITransfer) && !iid.equals(Components.interfaces.nsIWebProgressListener) && !iid.equals(Components.interfaces.nsIObserver) && !iid.equals(Components.interfaces.nsIInterfaceReq...
if (iid.equals(Components.interfaces.nsIProgressDialog) || iid.equals(Components.interfaces.nsIDownload) || iid.equals(Components.interfaces.nsITransfer) || iid.equals(Components.interfaces.nsIWebProgressListener) || iid.equals(Components.interfaces.nsIObserver) || iid.equals(Components.interfaces.nsIInterfaceRequestor...
QueryInterface: function (iid) { if (!iid.equals(Components.interfaces.nsIProgressDialog) && !iid.equals(Components.interfaces.nsIDownload) && !iid.equals(Components.interfaces.nsITransfer) && !iid.equals(Components.interfaces.nsIWebProgressListener) && !iid.equa...
if (!aIID.equals(Components.interfaces.nsISupports) && !aIID.equals(Components.interfaces.calIItemBase) && !aIID.equals(Components.interfaces.calIEvent)) { throw Components.results.NS_ERROR_NO_INTERFACE; }
if (aIID.equals(Components.interfaces.calIEvent)) return this;
QueryInterface: function (aIID) { if (!aIID.equals(Components.interfaces.nsISupports) && !aIID.equals(Components.interfaces.calIItemBase) && !aIID.equals(Components.interfaces.calIEvent)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this; ...
return this;
return this.__proto__.QueryInterface(aIID);
QueryInterface: function (aIID) { if (!aIID.equals(Components.interfaces.nsISupports) && !aIID.equals(Components.interfaces.calIItemBase) && !aIID.equals(Components.interfaces.calIEvent)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this; ...
if (!iid.equals(Components.interfaces.nsIInterfaceInfoToIDL) && !iid.equals(Components.interfaces.nsISupports)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this;
if (iid.equals(Components.interfaces.nsIInterfaceInfoToIDL) || iid.equals(Components.interfaces.nsISupports)) return this; Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE; return null;
QueryInterface: function (iid) { if (!iid.equals(Components.interfaces.nsIInterfaceInfoToIDL) && !iid.equals(Components.interfaces.nsISupports)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this; }
result[i] = supportsArray.GetElementAt(i).QueryInterface(iid);
result[i] = supportsArray.QueryElementAt(i, iid);
function queryISupportsArray(supportsArray, iid) { var result = new Array; for (var i=0; i<supportsArray.Count(); i++) { // dump(i + "," + result[i] + "\n"); result[i] = supportsArray.GetElementAt(i).QueryInterface(iid); } return result;}
jQuery.prototype.queue = function(type,fn){ if ( !fn ) { fn = type; type = "fx";
queue: function(type,fn){ if ( !fn ) { fn = type; type = "fx"; } return this.each(function(){ if ( !this.queue ) this.queue = {}; if ( !this.queue[type] ) this.queue[type] = []; this.queue[type].push( fn ); if ( this.queue[type].length == 1 ) fn.apply(this); });
jQuery.prototype.queue = function(type,fn){ if ( !fn ) { fn = type; type = "fx"; } return this.each(function(){ if ( !this.queue ) this.queue = {}; if ( !this.queue[type] ) this.queue[type] = []; this.queue[type].push( fn ); if ( this.queue[type].length == 1 ) fn.apply(this); });};
return this.each(function(){ if ( !this.queue ) this.queue = {}; if ( !this.queue[type] ) this.queue[type] = []; this.queue[type].push( fn ); if ( this.queue[type].length == 1 ) fn.apply(this); }); };
jQuery.prototype.queue = function(type,fn){ if ( !fn ) { fn = type; type = "fx"; } return this.each(function(){ if ( !this.queue ) this.queue = {}; if ( !this.queue[type] ) this.queue[type] = []; this.queue[type].push( fn ); if ( this.queue[type].length == 1 ) fn.apply(this); });};
type = 'fx';
type = "fx";
$.fn.queue = function(type,fn){ if ( !fn ) { fn = type; type = 'fx'; } return this.each(function(){ if ( !this.$$queue ) { this.$$queue = {}; } if ( !this.$$queue[type] ) { this.$$queue[type] = []; } this.$$queue[type].push( fn ); if ( this.$$queue[type].length == 1 ) { $.apply(this,fn); } });};
if ( !this.$$queue ) { this.$$queue = {}; }
if ( !this.queue ) this.queue = {};
$.fn.queue = function(type,fn){ if ( !fn ) { fn = type; type = 'fx'; } return this.each(function(){ if ( !this.$$queue ) { this.$$queue = {}; } if ( !this.$$queue[type] ) { this.$$queue[type] = []; } this.$$queue[type].push( fn ); if ( this.$$queue[type].length == 1 ) { $.apply(this,fn); } });};
if ( !this.$$queue[type] ) { this.$$queue[type] = []; }
if ( !this.queue[type] ) this.queue[type] = [];
$.fn.queue = function(type,fn){ if ( !fn ) { fn = type; type = 'fx'; } return this.each(function(){ if ( !this.$$queue ) { this.$$queue = {}; } if ( !this.$$queue[type] ) { this.$$queue[type] = []; } this.$$queue[type].push( fn ); if ( this.$$queue[type].length == 1 ) { $.apply(this,fn); } });};
this.$$queue[type].push( fn );
this.queue[type].push( fn );
$.fn.queue = function(type,fn){ if ( !fn ) { fn = type; type = 'fx'; } return this.each(function(){ if ( !this.$$queue ) { this.$$queue = {}; } if ( !this.$$queue[type] ) { this.$$queue[type] = []; } this.$$queue[type].push( fn ); if ( this.$$queue[type].length == 1 ) { $.apply(this,fn); } });};
if ( this.$$queue[type].length == 1 ) { $.apply(this,fn); }
if ( this.queue[type].length == 1 ) fn.apply(this);
$.fn.queue = function(type,fn){ if ( !fn ) { fn = type; type = 'fx'; } return this.each(function(){ if ( !this.$$queue ) { this.$$queue = {}; } if ( !this.$$queue[type] ) { this.$$queue[type] = []; } this.$$queue[type].push( fn ); if ( this.$$queue[type].length == 1 ) { $.apply(this,fn); } });};
arc = arcs.getNext().QueryInterface(nsIRDFNode);
var arc = arcs.getNext().QueryInterface(nsIRDFNode);
function rdf_cleart (n1, a, recurse){ if (typeof recurse == "undefined") recurse = false; var targets = this.ds.GetTargets(n1, a, true); while (targets.hasMoreElements()) { var n2 = targets.getNext().QueryInterface(nsIRDFNode); if (recurse) { try { ...
function RDFFile(aPath, aFlags) {
function RDFFile(aPath, aFlags, aNameSpace, aID) {
function RDFFile(aPath, aFlags) { this.created = false; if(aPath) { this._file_init(aPath, aFlags); }}
if(aPath) { this._file_init(aPath, aFlags); }
if(aPath) this._file_init(aPath, aFlags, aNameSpace, aID);
function RDFFile(aPath, aFlags) { this.created = false; if(aPath) { this._file_init(aPath, aFlags); }}
const RDF_MEMORYDS_PROGID = "component:
const RDF_MEMORYDS_CONTRACTID = "@mozilla.org/rdf/datasource;1?name=in-memory-datasource";
function RDFHelper(){ const RDF_MEMORYDS_PROGID = "component://netscape/rdf/datasource?name=in-memory-datasource"; const RDF_DS_IID = Components.interfaces.nsIRDFDataSource; const RDF_DS_PROGID = "component://netscape/rdf/rdf-service"; const RDF_SVC_IID = Components.interfaces.nsIRDFService; this....
const RDF_DS_PROGID = "component:
const RDF_DS_CONTRACTID = "@mozilla.org/rdf/rdf-service;1";
function RDFHelper(){ const RDF_MEMORYDS_PROGID = "component://netscape/rdf/datasource?name=in-memory-datasource"; const RDF_DS_IID = Components.interfaces.nsIRDFDataSource; const RDF_DS_PROGID = "component://netscape/rdf/rdf-service"; const RDF_SVC_IID = Components.interfaces.nsIRDFService; this....
Components.classes[RDF_MEMORYDS_PROGID].createInstance(RDF_DS_IID);
Components.classes[RDF_MEMORYDS_CONTRACTID].createInstance(RDF_DS_IID);
function RDFHelper(){ const RDF_MEMORYDS_PROGID = "component://netscape/rdf/datasource?name=in-memory-datasource"; const RDF_DS_IID = Components.interfaces.nsIRDFDataSource; const RDF_DS_PROGID = "component://netscape/rdf/rdf-service"; const RDF_SVC_IID = Components.interfaces.nsIRDFService; this....
Components.classes[RDF_DS_PROGID].getService(RDF_SVC_IID);
Components.classes[RDF_DS_CONTRACTID].getService(RDF_SVC_IID);
function RDFHelper(){ const RDF_MEMORYDS_PROGID = "component://netscape/rdf/datasource?name=in-memory-datasource"; const RDF_DS_IID = Components.interfaces.nsIRDFDataSource; const RDF_DS_PROGID = "component://netscape/rdf/rdf-service"; const RDF_SVC_IID = Components.interfaces.nsIRDFService; this....
this.resProgID = this.svc.GetResource (RES_PFX + "progid");
this.resContractID = this.svc.GetResource (RES_PFX + "contractid");
function RDFHelper(){ const RDF_MEMORYDS_PROGID = "component://netscape/rdf/datasource?name=in-memory-datasource"; const RDF_DS_IID = Components.interfaces.nsIRDFDataSource; const RDF_DS_PROGID = "component://netscape/rdf/rdf-service"; const RDF_SVC_IID = Components.interfaces.nsIRDFService; this....
const RDF_MEMORYDS_PROGID = "component:
const RDF_MEMORYDS_CONTRACTID = "@mozilla.org/rdf/datasource;1?name=in-memory-datasource";
function RDFHelper(){ const RDF_MEMORYDS_PROGID = "component://netscape/rdf/datasource?name=in-memory-datasource"; const RDF_DS_IID = Components.interfaces.nsIRDFDataSource; const RDF_DS_PROGID = "component://netscape/rdf/rdf-service"; const RDF_SVC_IID = Components.interfaces.nsIRDFService; this....
const RDF_DS_PROGID = "component:
const RDF_DS_CONTRACTID = "@mozilla.org/rdf/rdf-service;1";
function RDFHelper(){ const RDF_MEMORYDS_PROGID = "component://netscape/rdf/datasource?name=in-memory-datasource"; const RDF_DS_IID = Components.interfaces.nsIRDFDataSource; const RDF_DS_PROGID = "component://netscape/rdf/rdf-service"; const RDF_SVC_IID = Components.interfaces.nsIRDFService; this....
Components.classes[RDF_MEMORYDS_PROGID].createInstance(RDF_DS_IID);
Components.classes[RDF_MEMORYDS_CONTRACTID].createInstance(RDF_DS_IID);
function RDFHelper(){ const RDF_MEMORYDS_PROGID = "component://netscape/rdf/datasource?name=in-memory-datasource"; const RDF_DS_IID = Components.interfaces.nsIRDFDataSource; const RDF_DS_PROGID = "component://netscape/rdf/rdf-service"; const RDF_SVC_IID = Components.interfaces.nsIRDFService; this....
Components.classes[RDF_DS_PROGID].getService(RDF_SVC_IID);
Components.classes[RDF_DS_CONTRACTID].getService(RDF_SVC_IID);
function RDFHelper(){ const RDF_MEMORYDS_PROGID = "component://netscape/rdf/datasource?name=in-memory-datasource"; const RDF_DS_IID = Components.interfaces.nsIRDFDataSource; const RDF_DS_PROGID = "component://netscape/rdf/rdf-service"; const RDF_SVC_IID = Components.interfaces.nsIRDFService; this....
var bytes = wrapper.readByteArray(count); if (bytes.length != count) do_throw("Partial read from input stream!"); return eval("String.fromCharCode(" + bytes.toString() + ")");
var data = []; while (count > 0) { var bytes = wrapper.readByteArray(Math.min(65535, count)); data.push(String.fromCharCode.apply(null, bytes)); count -= bytes.length; if (bytes.length == 0) do_throw("Nothing read from input stream!"); } return data.join('');
function read_stream(stream, count) { /* assume stream has non-ASCII data */ var wrapper = Cc["@mozilla.org/binaryinputstream;1"]. createInstance(Ci.nsIBinaryInputStream); wrapper.setInputStream(stream); var bytes = wrapper.readByteArray(count); /* assume that the stream is going to give us all of the da...
availLanguageDict = new Array(); var visible = new String(); var str = new String(); var i =0;
var acceptedBundleEnum = acceptedBundle.getSimpleEnumeration();
function ReadAvailableLanguages(){ availLanguageDict = new Array(); var visible = new String(); var str = new String(); var i =0; var acceptedBundleEnum = acceptedBundle.getSimpleEnumeration(); var curItem; var stringName; var stringNameProperty; while (acceptedBundleEnum.hasMoreElements()) { ...
var acceptedBundleEnum = acceptedBundle.getSimpleEnumeration(); var curItem;
var curItem;
function ReadAvailableLanguages(){ availLanguageDict = new Array(); var visible = new String(); var str = new String(); var i =0; var acceptedBundleEnum = acceptedBundle.getSimpleEnumeration(); var curItem; var stringName; var stringNameProperty; while (acceptedBundleEnum.hasMoreElements()) { ...
if (stringLangRegion[0]) { var tit; try { tit = languagesBundle.GetStringFromName(stringLangRegion[0]); }
if (stringLangRegion[0]) { var tit; var language; var region; var use_region_format = false;
function ReadAvailableLanguages(){ availLanguageDict = new Array(); var visible = new String(); var str = new String(); var i =0; var acceptedBundleEnum = acceptedBundle.getSimpleEnumeration(); var curItem; var stringName; var stringNameProperty; while (acceptedBundleEnum.hasMoreElements()) { ...
catch (ex) { tit = ""; }
try { language = languagesBundle.GetStringFromName(stringLangRegion[0]); } catch (ex) { language = ""; }
function ReadAvailableLanguages(){ availLanguageDict = new Array(); var visible = new String(); var str = new String(); var i =0; var acceptedBundleEnum = acceptedBundle.getSimpleEnumeration(); var curItem; var stringName; var stringNameProperty; while (acceptedBundleEnum.hasMoreElements()) { ...
if (stringLangRegion.length > 1) {
try { region = regionsBundle.GetStringFromName(stringLangRegion[1]); use_region_format = true; } catch (ex) { } } if (use_region_format) { tit = prefLangBundle.formatStringFromName("languageRegionCodeFormat", [language, region, str], 3); } else { tit = prefLangBundle.formatStringFromName("languageCodeFormat", [languag...
function ReadAvailableLanguages(){ availLanguageDict = new Array(); var visible = new String(); var str = new String(); var i =0; var acceptedBundleEnum = acceptedBundle.getSimpleEnumeration(); var curItem; var stringName; var stringNameProperty; while (acceptedBundleEnum.hasMoreElements()) { ...
try { tit += "/" + regionsBundle.GetStringFromName(stringLangRegion[1]); }
}
function ReadAvailableLanguages(){ availLanguageDict = new Array(); var visible = new String(); var str = new String(); var i =0; var acceptedBundleEnum = acceptedBundle.getSimpleEnumeration(); var curItem; var stringName; var stringNameProperty; while (acceptedBundleEnum.hasMoreElements()) { ...
catch (ex) { tit += "["+str+"]"; } } tit = tit + " [" + str + "]"; } if (str && tit) {
if (str && tit) {
function ReadAvailableLanguages(){ availLanguageDict = new Array(); var visible = new String(); var str = new String(); var i =0; var acceptedBundleEnum = acceptedBundle.getSimpleEnumeration(); var curItem; var stringName; var stringNameProperty; while (acceptedBundleEnum.hasMoreElements()) { ...
var cacheList = document.getElementById("cacheProvider");
readCheckPhish: function () { var phishEnabled = document.getElementById("browser.safebrowsing.enabled").value; var remoteLookup = document.getElementById("browser.safebrowsing.remoteLookups").value; var checkPhish = document.getElementById("checkPhishChoice"); var cacheList = document.getElementById("ca...
cacheList.disabled = !phishEnabled || remoteLookup;
readCheckPhish: function () { var phishEnabled = document.getElementById("browser.safebrowsing.enabled").value; var remoteLookup = document.getElementById("browser.safebrowsing.remoteLookups").value; var checkPhish = document.getElementById("checkPhishChoice"); var cacheList = document.getElementById("ca...
LocalFileInstance = Components.classes[LOCALFILE_CTRID].createInstance( nsILocalFile ); LocalFileInstance.initWithPath( aFilePath );
localFileInstance = Components.classes[LOCALFILE_CTRID].createInstance( nsILocalFile ); localFileInstance.initWithPath( aFilePath );
function readDataFromFile( aFilePath, charset ){ const LOCALFILE_CTRID = "@mozilla.org/file/local;1"; const FILEIN_CTRID = "@mozilla.org/network/file-input-stream;1"; const SCRIPTSTREAM_CTRID = "@mozilla.org/scriptableinputstream;1"; const nsILocalFile = Components.interfaces.nsILocalFile; const nsIFileInp...
inputStream.init( LocalFileInstance, MODE_RDONLY, 0444, tmp );
inputStream.init( localFileInstance, MODE_RDONLY, 0444, tmp );
function readDataFromFile( aFilePath, charset ){ const LOCALFILE_CTRID = "@mozilla.org/file/local;1"; const FILEIN_CTRID = "@mozilla.org/network/file-input-stream;1"; const SCRIPTSTREAM_CTRID = "@mozilla.org/scriptableinputstream;1"; const nsILocalFile = Components.interfaces.nsILocalFile; const nsIFileInp...
aDataStream = scriptableInputStream.read( -1 );
var aDataStream = scriptableInputStream.read( -1 );
function readDataFromFile( aFilePath, charset ){ const LOCALFILE_CTRID = "@mozilla.org/file/local;1"; const FILEIN_CTRID = "@mozilla.org/network/file-input-stream;1"; const SCRIPTSTREAM_CTRID = "@mozilla.org/scriptableinputstream;1"; const nsILocalFile = Components.interfaces.nsILocalFile; const nsIFileInp...
var os = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); os.notifyObservers(null, "charsetmenu-selected", "mailedit");
Components.classes["@mozilla.org/observer-service;1"] .getService(Components.interfaces.nsIObserverService) .notifyObservers(null, "charsetmenu-selected", "mailedit");
readDefaultCharset: function() { if (!this.mCharsetMenuInitialized) { var os = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); os.notifyObservers(null, "charsetmenu-selected", "mailedit"); this.mCharsetMenuInitialized = true; }...
},
}
readDefaultCharset: function() { if (!this.mCharsetMenuInitialized) { var os = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); os.notifyObservers(null, "charsetmenu-selected", "mailedit"); this.mCharsetMenuInitialized = true; }...
.classes["component:
.classes["@mozilla.org/widget/clipboard;1"]
function readFromClipboard() { try { // Get clipboard. var clipboard = Components .classes["component://netscape/widget/clipboard"] .getService ( Components.interfaces.nsIClipboard ); // Create tranferable that will transfer the text. var trans =...
.classes["component:
.classes["@mozilla.org/widget/transferable;1"]
function readFromClipboard() { try { // Get clipboard. var clipboard = Components .classes["component://netscape/widget/clipboard"] .getService ( Components.interfaces.nsIClipboard ); // Create tranferable that will transfer the text. var trans =...
bookmarkTitle = PlacesController.bookmarks.getItemTitle(uri);
var bmSvc = Cc["@mozilla.org/browser/nav-bookmarks-service;1"] .getService(Ci.nsINavBookmarksService); bookmarkTitle = bmSvc.getItemTitle(uri);
readHomePage: function () { var useCurrent = document.getElementById("useCurrent"); var chooseBookmark = document.getElementById("chooseBookmark"); var bookmarkName = document.getElementById("bookmarkName"); var otherURL = document.getElementById("otherURL"); // handle selection of "bookmark" radio wh...
client.ICONS_IN_TOOLBAR = getBoolPref (pref, rootNode + "toolbar.icons", false);
function readIRCPrefs (rootNode){ var pref = Components.classes["@mozilla.org/preferences;1"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) rootNode += "."; pref = pref.QueryInterf...
h.enabled =
h.enabled = client.debugMode =
function readIRCPrefs (rootNode){ var pref = Components.classes["@mozilla.org/preferences;1"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) rootNode += "."; pref = pref.QueryInterf...
Components.classes["component:
Components.classes["@mozilla.org/preferences;1"].createInstance();
function readIRCPrefs (rootNode){ var pref = Components.classes["component://netscape/preferences"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) rootNode += "."; pref = pref.Query...
pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch);
const PREF_CTRID = "@mozilla.org/preferences-service;1"; const nsIPrefBranch = Components.interfaces.nsIPrefBranch var pref = Components.classes[PREF_CTRID].getService(nsIPrefBranch);
function readIRCPrefs (rootNode){ pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) ...
getCharPref (pref, rootNode + "defaultNet", "moznet");
getCharPref (pref, rootNode + "defaultNet", "moznet"); client.CHARSET = getCharPref (pref, rootNode + "charset", "");
function readIRCPrefs (rootNode){ pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) ...
getCharPref (pref, rootNode + "initialURLs", "");
getCharPref (pref, rootNode + "initialURLs", "irc: if (!client.INITIAL_URLS) client.INITIAL_URLS = "irc:
function readIRCPrefs (rootNode){ pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) ...
client.ADDRESSED_NICK_SEP);
client.ADDRESSED_NICK_SEP).replace(/\s*$/, "");
function readIRCPrefs (rootNode){ pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) ...
client.munger.entries[entry].enabled = getBoolPref (pref, rootNode + "munger." + entry, client.munger.entries[entry].enabled);
{ if (entry[0] != ".") { client.munger.entries[entry].enabled = getBoolPref (pref, rootNode + "munger." + entry, client.munger.entries[entry].enabled); } }
function readIRCPrefs (rootNode){ pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) ...
CIRCChanUser.prototype.MAX_MESSAGES =
CIRCUser.prototype.MAX_MESSAGES =
function readIRCPrefs (rootNode){ pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) ...
Components.classes["component:
Components.classes["@mozilla.org/preferences;1"].createInstance();
function readIRCPrefs (rootNode){ if (!getPriv("UniversalXPConnect")) return false; var pref = Components.classes["component://netscape/preferences"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.ma...
shell.openPreferredApplication(Components.interfaces.nsIShellService.APPLICATION_MAIL);
shell.openApplication(Components.interfaces.nsIShellService.APPLICATION_MAIL);
readMail: function () { var shell = getShellService(); if (shell) shell.openPreferredApplication(Components.interfaces.nsIShellService.APPLICATION_MAIL); },
shell.openPreferredApplication(Components.interfaces.nsIShellService.APPLICATION_NEWS);
shell.openApplication(Components.interfaces.nsIShellService.APPLICATION_NEWS);
readNews: function () { var shell = getShellService(); if (shell) shell.openPreferredApplication(Components.interfaces.nsIShellService.APPLICATION_NEWS); },
var cachedList = document.getElementById("cacheProvider");
readPhishChoice: function () { var phishPref = document.getElementById("browser.safebrowsing.enabled"); var phishChoice = document.getElementById("browser.safebrowsing.remoteLookups"); var cachedList = document.getElementById("cacheProvider"); var onloadList = document.getElementById("onloadProvider"); ...
if (phishPref.value) { cachedList.disabled = phishChoice.value;
if (phishPref.value)
readPhishChoice: function () { var phishPref = document.getElementById("browser.safebrowsing.enabled"); var phishChoice = document.getElementById("browser.safebrowsing.remoteLookups"); var cachedList = document.getElementById("cacheProvider"); var onloadList = document.getElementById("onloadProvider"); ...
}
readPhishChoice: function () { var phishPref = document.getElementById("browser.safebrowsing.enabled"); var phishChoice = document.getElementById("browser.safebrowsing.remoteLookups"); var cachedList = document.getElementById("cacheProvider"); var onloadList = document.getElementById("onloadProvider"); ...
if ( jQuery.browser.mozilla || jQuery.browser.opera ) document.removeEventListener( "DOMContentLoaded", jQuery.ready, false );
ready: function() { // Make sure that the DOM is not already loaded if ( !jQuery.isReady ) { // Remember that the DOM is ready jQuery.isReady = true; // If there are functions bound, to execute if ( jQuery.readyList ) { // Execute all of them for ( var i = 0; i < jQuery.readyList.length; i++ ) j...
jQuery.prototype.ready = function(f) { if ( jQuery.isReady ) f.apply( document ); else { jQuery.readyList.push( f );
ready: function() { if ( !jQuery.isReady ) { jQuery.isReady = true; if ( jQuery.readyList ) { for ( var i = 0; i < jQuery.readyList.length; i++ ) jQuery.readyList[i].apply( document ); jQuery.readyList = null; } }
jQuery.prototype.ready = function(f) { // If the DOM is already ready if ( jQuery.isReady ) // Execute the function immediately f.apply( document ); // Otherwise, remember the function for later else { // Add the function to the wait list jQuery.readyList.push( f ); } return this;};
return this; };
jQuery.prototype.ready = function(f) { // If the DOM is already ready if ( jQuery.isReady ) // Execute the function immediately f.apply( document ); // Otherwise, remember the function for later else { // Add the function to the wait list jQuery.readyList.push( f ); } return this;};
child = aParent.lastChild;
var child = aParent.lastChild;
realHideOpenInTabsMenuItem: function (aParent) { if (!aParent.hasChildNodes()) return; child = aParent.lastChild; var removed = 0; while (child) { var cclass = child.getAttribute("class"); if (cclass == "openintabs-menuitem" || cclass == "openintabs-menuseparator") { var prevchild =...
var container
var container;
function realizeScript(script){ var container if (script.fileName in console.scripts) { container = console.scripts[script.fileName]; if (!("parentRecord" in container)) { /* source record exists but is not inserted in the source tree, * either we are reloading it, o...
/* source record exists but is not inserted in the source tree,
/* container record exists but is not inserted in the scripts view,
function realizeScript(script){ var container if (script.fileName in console.scripts) { container = console.scripts[script.fileName]; if (!("parentRecord" in container)) { /* source record exists but is not inserted in the source tree, * either we are reloading it, o...
console.scriptsView.childData.appendChild(container);
if (!console.enableChromeFilter || script.fileName.indexOf ("chrome:") != 0) console.scriptsView.childData.appendChild(container);
function realizeScript(script){ var container if (script.fileName in console.scripts) { container = console.scripts[script.fileName]; if (!("parentRecord" in container)) { /* source record exists but is not inserted in the source tree, * either we are reloading it, o...
if ("dbgRealize" in console) { dd ("new scriptrecord: " + formatScript(script) + "\n" + script.functionSource); }
function realizeScript(script){ var container; if (script.fileName in console.scripts) { container = console.scripts[script.fileName]; if (!("parentRecord" in container)) { /* container record exists but is not inserted in the scripts view, * either we are reloading ...
MisspelledWord = spellChecker.GetNextMisspelledWord();
gMisspelledWord = spellChecker.GetNextMisspelledWord();
function Recheck(){ //TODO: Should we bother to add a "Recheck" method to interface? try { var curLang = spellChecker.GetCurrentDictionary(); spellChecker.UninitSpellChecker(); spellChecker.InitSpellChecker(); spellChecker.SetCurrentDictionary(curLang); MisspelledWord = spellChecker.GetNextMisspelledWo...
var fieldValue = inputField.value;
var fieldValue = inputField.input.value;
function Recipients2CompFields(msgCompFields){ if (msgCompFields) { var i = 1; var addrTo = ""; var addrCc = ""; var addrBcc = ""; var addrReply = ""; var addrNg = ""; var addrFollow = ""; var addrOther = ""; var to_Sep = ""; var cc_Sep = ""; var bcc_Sep = ""; var reply_Sep = ""; var ng_Sep = ""; var foll...
areaCollection = imageMap.childNodes; areaColLen = areaCollection.length; for(j=0; j<areaColLen; j++){
var areaCollection = imageMap.childNodes; var areaColLen = areaCollection.length; for(var j=0; j<areaColLen; j++){
function recreateMap(){ areaCollection = imageMap.childNodes; areaColLen = areaCollection.length; for(j=0; j<areaColLen; j++){ area = areaCollection[j]; shape = area.getAttribute("shape"); shape = shape.toLowerCase(); coords = area.getAttribute("coords"); href = area.getAttribute("href"); ...
window.location = window.redirectURL;
window.location.href = window.redirectURL;
function Redirect() { window.location = window.redirectURL;}
redoTransaction : function () {},
redoTransaction: function () { for (var i=0; i<this.item.length; ++i) { if (this.isValid[i]) { this.RDFC.Init(this.BMDS, this.parent[i]); this.RDFC.InsertElementAt(this.item[i], this.index[i], true); } } },
redoTransaction : function () {},
if (this.isValid[i]) { this.RDFC.Init(this.BMDS, this.parent[i]); this.RDFC.InsertElementAt(this.item[i], this.index[i], true); }
this.RDFC.Init(this.BMDS, this.parent[i]); this.RDFC.InsertElementAt(this.item[i], this.index[i], true);
redoTransaction: function () { this.beginUpdateBatch(); for (var i=0; i<this.item.length; ++i) { if (this.isValid[i]) { this.RDFC.Init(this.BMDS, this.parent[i]); this.RDFC.InsertElementAt(this.item[i], this.index[i], true); } } this.endUpdateBatch(); }
SetUpTree(true);
gNameField.value = ""; SetUpTree(true);
function Refresh(){ // force it to talk to the server SetUpTree(true);}
document.getElementById("item-bookmark").hidden=false;
document.getElementById("command_BrowserBookmark").hidden=false;
function refreshBookmarks() { if(gBookmarksDoc.getElementsByTagName("li").length>0) { document.getElementById("item-bookmark").hidden=false; } }
cview.rdf.Assert (res, cview.rdf.resProgID,
cview.rdf.Assert (res, cview.rdf.resContractID,
function refreshComponentsStep(){ var i; for (i = 0; i < cview.REFRESH_ITEMS_PER_CYCLE; i++) { var cls = cview.pendingComponents.pop(); if (!cls) break; var res = cview.rdf.GetResource ("component:" + (++cview.componentID)); cview.rdf.Assert (res, ...
var ccalendar = getDisplayComposite();
var ccalendar = getCompositeCalendar();
function refreshEventTree( eventArray ){ var savedThis = this; var refreshListener = { mEventArray: new Array(), onOperationComplete: function (aCalendar, aStatus, aOperationType, aId, aDateTime) { setTimeout(function () { refreshEventTreeInternal(refreshListener.mEventArray); }, 0); }, ...
searchText = searchText.toLowerCase();
function refreshEventTreeInternal(eventArray){ var searchText = document.getElementById( "unifinder-search-field" ).value; // XXX match for strings with only whitespace. Skip those too if (searchText.length) { gEventArray = new Array(); var fieldsToSearch = ["DESCRIPTION", "LOCATION", "CATEGORIES", "U...
var settings = getDialogSettings();
getEventsAndDialogSettings( function getEventsAndDialogSettings_response(settings) { var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService); var props = sbs.createBundle("chrome: document.title = props.formatStringFromName("PrintPreviewWindowTitle", [...
function refreshHtml(){ var settings = getDialogSettings(); // I'd like to use calGetString, but it can't do "formatStringFromName". var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService); var props = sbs.createBundle...
var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService);
var printformatter = Components.classes[settings.layoutCId] .createInstance(Components.interfaces.calIPrintFormatter);
function refreshHtml(){ var settings = getDialogSettings(); // I'd like to use calGetString, but it can't do "formatStringFromName". var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService); var props = sbs.createBundle...
var props = sbs.createBundle("chrome: document.title = props.formatStringFromName("PrintPreviewWindowTitle", [settings.title], 1);
if (gTempFile) { gTempFile.remove(false); } const nsIFile = Components.interfaces.nsIFile; var dirService = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties); gTempFile = dirService.get("TmpD", nsIFile); gTempFile.append("calendarPrint.html"); gTempFile.createU...
function refreshHtml(){ var settings = getDialogSettings(); // I'd like to use calGetString, but it can't do "formatStringFromName". var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService); var props = sbs.createBundle...
var printformatter = Components.classes[settings.layoutCId] .createInstance(Components.interfaces.calIPrintFormatter);
var stream = Components.classes["@mozilla.org/network/file-output-stream;1"] .createInstance(Components.interfaces.nsIFileOutputStream);
function refreshHtml(){ var settings = getDialogSettings(); // I'd like to use calGetString, but it can't do "formatStringFromName". var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService); var props = sbs.createBundle...
if (gTempFile) { gTempFile.remove(false); } const nsIFile = Components.interfaces.nsIFile; var dirService = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties); gTempFile = dirService.get("TmpD", nsIFile); gTempFile.append("calendarPrint.html"); gTempFile.createU...
try { stream.init(gTempFile, 0x2A, 0600, 0); printformatter.formatToHtml(stream, settings.start, settings.end, settings.eventList.length, settings.eventList, settings.title); stream.close(); } catch (e) { dump("printDialog::refreshHtml:" + e + "\n"); }
function refreshHtml(){ var settings = getDialogSettings(); // I'd like to use calGetString, but it can't do "formatStringFromName". var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService); var props = sbs.createBundle...
var stream = Components.classes["@mozilla.org/network/file-output-stream;1"] .createInstance(Components.interfaces.nsIFileOutputStream); try { stream.init(gTempFile, 0x2A, 0600, 0); printformatter.formatToHtml(stream, settings.start, settings.end, settings.eventList.length, settings.eventList, settings.title); strea...
document.getElementById("content").contentWindow.location = tempUri.spec; } );
function refreshHtml(){ var settings = getDialogSettings(); // I'd like to use calGetString, but it can't do "formatStringFromName". var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService); var props = sbs.createBundle...
lastTreeChildrenValue = null; lastTreeChildren = null;
function RefreshList(){ // force it to talk to the server SetUpTree(true);}
d = d.getInTimezone("/mozilla.org/20050126_1/America/Los_Angeles");
d = d.getInTimezone(calendarDefaultTimezone());
function refreshPeriodDates(){ var now = new Date(); var d = new CalDateTime(); d.jsDate = now; //XXX use default timezone d = d.getInTimezone("/mozilla.org/20050126_1/America/Los_Angeles"); // Today: now until midnight of tonight this.today.start = d.clone(); d.hour = d.minute = d.second = 0; ...
SetBusyCursor(window, false);
function RefreshThreadTreeView(){ var selection = SaveThreadPaneSelection(); var currentFolder = GetThreadTreeFolder(); var currentFolderID = currentFolder.getAttribute('ref'); ClearThreadTreeSelection(); currentFolder.setAttribute('ref', currentFolderID); RestoreThreadPaneSelection(selection);}
treeView.selectedColumn = ArrayOfTreeCols[i].getAttribute( "id" ); treeView.sortDirection = ArrayOfTreeCols[i].getAttribute("sortDirection");
toDoTreeView.selectedColumn = ArrayOfTreeCols[i].getAttribute( "id" ); toDoTreeView.sortDirection = ArrayOfTreeCols[i].getAttribute("sortDirection");
function refreshToDoTree( taskArray ){ if( taskArray === false ) taskArray = getTaskTable(); gTaskArray = taskArray; toDoTreeView.rowCount = gTaskArray.length; var ArrayOfTreeCols = document.getElementById( UnifinderTreeName ).getElementsByTagName( "treecol" ); for( var i = 0; i < ArrayOfTreeCols.l...
document.getElementById('urlbar').value = window.content.location.href;
document.getElementById('urlbar').value = window._content.location.href;
function RefreshUrlbar() { //Refresh the urlbar bar document.getElementById('urlbar').value = window.content.location.href; }
var newObserver = new readOnlyAnnouncer(calendar);
var newObserver = new errorAnnouncer(calendar);
registerCalendar: function(calendar) { // bail if this calendar (or one that looks identical to it) is already registered if (this.findCalendarID(calendar) > 0) { dump ("registerCalendar: calendar already registered\n"); throw Components.results.NS_ERROR_FAILURE; } ...