rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
this.closeBranches( window.arguments[1], window.arguments[2] );
this.openBranch( window.arguments[1], window.arguments[2] );
init: function () { if( window.queuedTag ) { this.onpageload( window.queuedTag ); } if( window.arguments[1] ) this.closeBranches( window.arguments[1], window.arguments[2] ); },
init: function( aSource, aTarget, aDisplayName, aOpeningWith, aStartTime, aOperation ) {
init: function( aSource, aTarget, aDisplayName, aMIMEInfo, aStartTime, aOperation ) {
init: function( aSource, aTarget, aDisplayName, aOpeningWith, aStartTime, aOperation ) { this.source = aSource; this.target = aTarget; this.displayName = aDisplayName; this.openingWith = aOpeningWith; if ( aStartTime ) { this.startTime = aStartTime; } this.operation = aOp...
this.openingWith = aOpeningWith;
this.MIMEInfo = aMIMEInfo;
init: function( aSource, aTarget, aDisplayName, aOpeningWith, aStartTime, aOperation ) { this.source = aSource; this.target = aTarget; this.displayName = aDisplayName; this.openingWith = aOpeningWith; if ( aStartTime ) { this.startTime = aStartTime; } this.operation = aOp...
sidebar.db = window.arguments[0]; sidebar.resource = window.arguments[1]; debug("sidebar.db = " + sidebar.db + "\n"); debug("sidebar.resource = " + sidebar.resource + "\n");
sidebar.datasource_uri = window.arguments[0]; sidebar.resource = window.arguments[1]; debug("sidebar.datasource_uri = " + sidebar.datasource_uri); debug("sidebar.resource = " + sidebar.resource);
function Init(){ sidebar.db = window.arguments[0]; sidebar.resource = window.arguments[1]; debug("sidebar.db = " + sidebar.db + "\n"); debug("sidebar.resource = " + sidebar.resource + "\n"); // This will load the datasource, if it isn't already. sidebar.datasource = RDF.GetDataSource(sidebar.db); // Add th...
sidebar.datasource = RDF.GetDataSource(sidebar.db);
sidebar.datasource = RDF.GetDataSource(sidebar.datasource_uri);
function Init(){ sidebar.db = window.arguments[0]; sidebar.resource = window.arguments[1]; debug("sidebar.db = " + sidebar.db + "\n"); debug("sidebar.resource = " + sidebar.resource + "\n"); // This will load the datasource, if it isn't already. sidebar.datasource = RDF.GetDataSource(sidebar.db); // Add th...
saveInitialPanels();
function Init(){ sidebar.db = window.arguments[0]; sidebar.resource = window.arguments[1]; debug("sidebar.db = " + sidebar.db + "\n"); debug("sidebar.resource = " + sidebar.resource + "\n"); // This will load the datasource, if it isn't already. sidebar.datasource = RDF.GetDataSource(sidebar.db); // Add th...
#ifdef XP_MACOSX window.sizeToContent(); window.moveTo((screen.availWidth / 2) - (window.outerWidth / 2), screen.availHeight / 5); #endif
function init(aEvent) { if (aEvent.target != document) return; var userAgentField = document.getElementById("userAgent"); userAgentField.value = navigator.userAgent; var button = document.documentElement.getButton("extra2"); button.setAttribute("label", document.documentElement.getAttribute("creditslabel")); b...
if (!window.arguments) {
if (!("arguments" in window)) {
function Init(){ doSetOKCancel(AddAvailableLanguage); try { GetBundles(); } catch(ex) { } ReadAvailableLanguages(); if (!window.arguments) { //no caller arguments - load base window try { active_languages = document.getElementById('active_languages'); active_lang...
var RDF = Components.classes[RDFSERVICE_PROGID].getService();
var RDF = Components.classes[RDFSERVICE_CONTRACTID].getService();
function Init(){ debug("directory.js: Init()\n"); var tree = document.getElementById('tree'); // Initialize the tree's base URL to whatever the HTTPIndex is rooted at var baseURI = HTTPIndex.BaseURL; if (baseURI && (baseURI.indexOf("ftp://") == 0)) { // fix bug # 37102: if its a FTP directory ...
pref.SetDefaultBoolPref('sidebar.open', true);
pref.SetDefaultBoolPref('sidebar.open', false);
function Init() { var pref = Components.classes['component://netscape/preferences']; if (pref) { pref = pref.getService(); } if (pref) { pref = pref.QueryInterface(Components.interfaces.nsIPref); } if (pref) { pref.SetDefaultIntPref('sidebar.width', 170); // pref.SetIntPref(pref.GetIntPref('sidebar...
var tree = document.getElementById('tree');
function Init(){ debug("directory.js: Init()\n"); // Add the HTTPIndex datasource into the tree var tree = document.getElementById('tree'); // Initialize the tree's base URL to whatever the HTTPIndex is rooted at var baseURI = HTTPIndex.BaseURL; // fix bug # 37102: if its a FTP directory // ensure ...
HTTPIndex.encoding = "ISO-8859-1";
function Init(){ debug("directory.js: Init()\n"); // Add the HTTPIndex datasource into the tree var tree = document.getElementById('tree'); // Initialize the tree's base URL to whatever the HTTPIndex is rooted at var baseURI = HTTPIndex.BaseURL; // fix bug # 37102: if its a FTP directory // ensure ...
var tree = document.getElementById('tree'); var RDF = Components.classes["component: if (RDF) RDF = RDF.QueryInterface(Components.interfaces.nsIRDFService); if (RDF) { var httpDS = RDF.GetDataSource("rdf:httpindex"); if (httpDS) httpDS = httpDS.QueryInterface(Components.interfaces.nsIHTTPIndex); if (httpDS) { ht...
function Init(){ debug("directory.js: Init()\n"); // Add the HTTPIndex datasource into the tree var tree = document.getElementById('tree'); // Initialize the tree's base URL to whatever the HTTPIndex is rooted at var baseURI = HTTPIndex.BaseURL; // fix bug # 37102: if its a FTP directory // ensure ...
debug("all panels datasources = " + all_panels_datasources); debug("all panels resource = " + all_panels_resource); debug("sidebar.datasource_uri = " + sidebar.datasource_uri); debug("sidebar.resource = " + sidebar.resource);
debug("Init: all panels datasources = " + all_panels_datasources); debug("Init: all panels resource = " + all_panels_resource); debug("Init: sidebar.datasource_uri = " + sidebar.datasource_uri); debug("Init: sidebar.resource = " + sidebar.resource);
function Init(){ var all_panels_datasources = window.arguments[0]; var all_panels_resource = window.arguments[1]; sidebar.datasource_uri = window.arguments[2]; sidebar.resource = window.arguments[3]; debug("all panels datasources = " + all_panels_datasources); debug("all panels resource = " + ...
debug("Adding "+all_panels_datasources[ii]);
debug("Init: Adding "+all_panels_datasources[ii]);
function Init(){ var all_panels_datasources = window.arguments[0]; var all_panels_resource = window.arguments[1]; sidebar.datasource_uri = window.arguments[2]; sidebar.resource = window.arguments[3]; debug("all panels datasources = " + all_panels_datasources); debug("all panels resource = " + ...
debug("Init: reset current panels ref, "+sidebar.resource);
function Init(){ var all_panels_datasources = window.arguments[0]; var all_panels_resource = window.arguments[1]; sidebar.datasource_uri = window.arguments[2]; sidebar.resource = window.arguments[3]; debug("all panels datasources = " + all_panels_datasources); debug("all panels resource = " + ...
rdf_datasource = Components.classes['component:
rdf_datasource = Components.classes['@mozilla.org/rdf/datasource;1?name=xml-datasource'].createInstance();
function Init(){ // Initialize the Sidebar // Install all the datasources named in the Flash Registry into // the tree control. Datasources are listed as members of the // NC:FlashDataSources sequence, and are loaded in the order that // they appear in that sequence. try { // First try to construct a new one and load ...
appts_container = Components.classes['component:
appts_container = Components.classes['@mozilla.org/rdf/container;1'].createInstance();
function Init(){ // Initialize the Sidebar // Install all the datasources named in the Flash Registry into // the tree control. Datasources are listed as members of the // NC:FlashDataSources sequence, and are loaded in the order that // they appear in that sequence. try { // First try to construct a new one and load ...
setTimeout("centerOverParent()", 0);
setTimeout(centerOverParent, 0);
function init(){ gPrefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch); gPluginTypes = new PluginTypes(); // Initialize the File Type list gPluginTypesList = document.getElementById("pluginTypesList"); gPluginTypesList.treeBoxObject.view = gPluginTypes;...
function init(size) {
function init() {
function init(size) { for(var i=0; i < document.images.length; i++) { name = document.images[i].alt; if (name == 'collapse') { switchimg = document.images[i]; id = switchimg.id.replace("img_",""); boxes[i] = id; part = FetchElement("part_"+id); if(document.cookie && part.style.display != 'none') { hid...
else { switchimg.src = box_img_minus; }
function init(size) { for(var i=0; i < document.images.length; i++) { name = document.images[i].alt; if (name == 'collapse') { switchimg = document.images[i]; id = switchimg.id.replace("img_",""); boxes[i] = id; part = FetchElement("part_"+id); if(document.cookie && part.style.display != 'none') { hid...
DWREngine.setErrorHandler(catchFailure); DWREngine.setWarningHandler(DWREngine.defaultMessageHandler);
DWREngine.setErrorHandler(catchFailure); DWREngine.setWarningHandler(catchFailure);
function init(){ DWRUtil.setValue("useragent-real", navigator.userAgent); DWRUtil.setValue("useragent-reported", navigator.userAgent); failures = $("failures"); progress = $("progress"); failreport = $("failreport"); execreport = $("execreport"); DWREngine.setErrorHandler(catchFailure); DWREngin...
var rownum = 0; DWRUtil.addRows("chart", tests, [ function(row) { var td = document.createElement("td"); td.setAttribute("id", "t" + rownum + "-num"); td.innerHTML = "" + rownum; return td; }, function(row) { var td = document.createElement("td"); td.setAttribute("id", "t" + rownum + "-code"); td.innerHTML = "" + row....
var rownum = 0; DWRUtil.addRows("chart", tests, [ function(row) { var td = document.createElement("td"); td.setAttribute("id", "t" + rownum + "-num"); td.innerHTML = "" + rownum; return td; }, function(row) { var td = document.createElement("td"); td.setAttribute("id", "t" + rownum + "-code"); td.innerHTML = "" + row.c...
function init(){ DWRUtil.setValue("useragent-real", navigator.userAgent); DWRUtil.setValue("useragent-reported", navigator.userAgent); failures = $("failures"); progress = $("progress"); failreport = $("failreport"); execreport = $("execreport"); DWREngine.setErrorHandler(catchFailure); DWREngin...
function init() {
function init() { helpWindow = document.getElementById("help"); helpSearchPanel = document.getElementById("help-search-panel"); helpTocPanel = document.getElementById("help-toc-outliner"); helpIndexPanel = document.getElementById("help-index-outliner"); helpGlossaryPanel = document.getElementById("help-glossary-outlin...
function init(){ // Initialize the Help window // move to right end of screen var width = document.documentElement.getAttribute("width"); var height = document.documentElement.getAttribute("height"); window.moveTo(screen.availWidth-width, (screen.availHeight-height)/2); gBrowser = document.getElementById("help-co...
gBrowser = document.getElementById("help-content");
function init(){ // Initialize the Help window // move to right end of screen var width = document.documentElement.getAttribute("width"); var height = document.documentElement.getAttribute("height"); window.moveTo(screen.availWidth-width, (screen.availHeight-height)/2); gBrowser = document.getElementById("help-co...
if (key[window.location.search]) { dump("loading help content: " + key[window.location.search] + "\n"); loadURI(key[window.location.search]); } else { goHome(); }
function init(){ // Initialize the Help window // move to right end of screen var width = document.documentElement.getAttribute("width"); var height = document.documentElement.getAttribute("height"); window.moveTo(screen.availWidth-width, (screen.availHeight-height)/2); gBrowser = document.getElementById("help-co...
var browser = document.getElementById("help-content"); var interfaceRequestor = browser.docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor);
var interfaceRequestor = helpBrowser.docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor);
function init(){ // Initialize the Help window // move to right end of screen var width = document.documentElement.getAttribute("width"); var height = document.documentElement.getAttribute("height"); window.moveTo(screen.availWidth-width, (screen.availHeight-height)/2); gBrowser = document.getElementById("help-co...
setTimeout("centerOverParent()", 0);
setTimeout(centerOverParent, 0);
function init(){ gRDF = window.opener.gRDF; gItemRes = window.arguments[0]; gHelperApps = window.opener.gHelperApps; gHandlerPropArc = gHelperApps._handlerPropArc; gExternalAppArc = gHelperApps._externalAppArc; gFileHandlerArc = gHelperApps._fileHandlerArc; gNC_URI = window.opener.NC_URI; var typeField = ...
window.open().close();
gc();
function init(){ var inp = document.getElementsByTagName("input")[0]; countProps(inp); window.open().close(); // force gc? var blurfun = inp.blur; blurfun.__proto__ = null; countProps(blurfun); reportCompare(expect, actual, summary);}
gDelayTestDriverEnd = false; jsTestDriverEnd();
function init(){ var inp = document.getElementsByTagName("input")[0]; countProps(inp); window.open().close(); // force gc? var blurfun = inp.blur; blurfun.__proto__ = null; countProps(blurfun); reportCompare(expect, actual, summary);}
var oObserverService = Components.classes["component:
var oObserverService = Components.classes["@mozilla.org/observer-service;1"].getService();
function Init(){ // Initialize the Related Links panel // Install our navigation observer so we can track the main client window. oContentWindow = window._content; oFrame = document.getElementById('daFrame'); if (oContentWindow && oFrame) { window.setTimeout('window._content.resizeBy(0,1);window._content.resizeBy(0,-1...
prefInt = Components.classes["@mozilla.org/preferences;1"];
try { prefBranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null); } catch (e) {}
function Init(){ var applicationArea = ""; if ("arguments" in window && window.arguments[0]) applicationArea = window.arguments[0]; prefInt = Components.classes["@mozilla.org/preferences;1"]; if (prefInt) { prefInt = prefInt.getService(Components.interfaces.nsIPref); if (applicationArea == "mailedit") { ...
if (prefInt) { prefInt = prefInt.getService(Components.interfaces.nsIPref);
if (prefBranch) {
function Init(){ var applicationArea = ""; if ("arguments" in window && window.arguments[0]) applicationArea = window.arguments[0]; prefInt = Components.classes["@mozilla.org/preferences;1"]; if (prefInt) { prefInt = prefInt.getService(Components.interfaces.nsIPref); if (applicationArea == "mailedit") { ...
pref_string_content = prefInt.getLocalizedUnicharPref(pref_string_title);
pref_string_object = prefBranch.getComplexValue(pref_string_title, Components.interfaces.nsIPrefLocalizedString); pref_string_content = pref_string_object.data;
function Init(){ var applicationArea = ""; if ("arguments" in window && window.arguments[0]) applicationArea = window.arguments[0]; prefInt = Components.classes["@mozilla.org/preferences;1"]; if (prefInt) { prefInt = prefInt.getService(Components.interfaces.nsIPref); if (applicationArea == "mailedit") { ...
sidebar.datasource_uri = window.arguments[2]; sidebar.resource = window.arguments[3];
sidebarObj.datasource_uri = window.arguments[2]; sidebarObj.resource = window.arguments[3];
function Init(){ var all_panels_datasources = window.arguments[0]; var all_panels_resource = window.arguments[1]; sidebar.datasource_uri = window.arguments[2]; sidebar.resource = window.arguments[3]; debug("Init: all panels datasources = " + all_panels_datasources); debug("Init: all panels resour...
debug("Init: sidebar.datasource_uri = " + sidebar.datasource_uri); debug("Init: sidebar.resource = " + sidebar.resource);
debug("Init: sidebarObj.datasource_uri = " + sidebarObj.datasource_uri); debug("Init: sidebarObj.resource = " + sidebarObj.resource);
function Init(){ var all_panels_datasources = window.arguments[0]; var all_panels_resource = window.arguments[1]; sidebar.datasource_uri = window.arguments[2]; sidebar.resource = window.arguments[3]; debug("Init: all panels datasources = " + all_panels_datasources); debug("Init: all panels resour...
debug("Init: Adding current panels, "+sidebar.datasource_uri); sidebar.datasource = RDF.GetDataSource(sidebar.datasource_uri); current_panels.database.AddDataSource(sidebar.datasource);
debug("Init: Adding current panels, "+sidebarObj.datasource_uri); sidebarObj.datasource = RDF.GetDataSource(sidebarObj.datasource_uri); current_panels.database.AddDataSource(sidebarObj.datasource);
function Init(){ var all_panels_datasources = window.arguments[0]; var all_panels_resource = window.arguments[1]; sidebar.datasource_uri = window.arguments[2]; sidebar.resource = window.arguments[3]; debug("Init: all panels datasources = " + all_panels_datasources); debug("Init: all panels resour...
debug("Init: reset current panels ref, "+sidebar.resource); current_panels.setAttribute('ref', sidebar.resource);
debug("Init: reset current panels ref, "+sidebarObj.resource); current_panels.setAttribute('ref', sidebarObj.resource);
function Init(){ var all_panels_datasources = window.arguments[0]; var all_panels_resource = window.arguments[1]; sidebar.datasource_uri = window.arguments[2]; sidebar.resource = window.arguments[3]; debug("Init: all panels datasources = " + all_panels_datasources); debug("Init: all panels resour...
httpDS.encoding = window._content.defaultCharacterset;
{ httpDS.encoding = window._content.defaultCharacterset; }
function Init(){ debug("directory.js: Init()\n"); // Initialize the tree's base URL to whatever the HTTPIndex is rooted at var baseURI = HTTPIndex.BaseURL; // fix bug # 37102: if its a FTP directory // ensure it ends with a trailing slash if (baseURI && (baseURI.indexOf("ftp://") == 0) && (baseURI...
} var theWindow = window._content.parentWindow; if (theWindow) { theWindow.title = baseURI;
function Init(){ debug("directory.js: Init()\n"); // Initialize the tree's base URL to whatever the HTTPIndex is rooted at var baseURI = HTTPIndex.BaseURL; // fix bug # 37102: if its a FTP directory // ensure it ends with a trailing slash if (baseURI && (baseURI.indexOf("ftp://") == 0) && (baseURI...
if (!pref_string) pref_string = "en";
function Init(){ doSetOKCancel(AddAvailableLanguage); try { GetBundles(); } catch(ex) { } ReadAvailableLanguages(); if (!("arguments" in window)) { //no caller arguments - load base window try { active_languages = document.getElementById('active_languages'); active_languages_treer...
name = document.images[i].name;
name = document.images[i].alt;
function init(size) { for(var i=0; i < document.images.length; i++) { name = document.images[i].name; if (name == 'collapse') { switchimg = document.images[i]; id = switchimg.id.replace("img_","") boxes[i] = id; part = FetchElement("part_"+id) if(document.cookie && part.style.display != 'none') { hide...
id = switchimg.id.replace("img_","")
id = switchimg.id.replace("img_","");
function init(size) { for(var i=0; i < document.images.length; i++) { name = document.images[i].name; if (name == 'collapse') { switchimg = document.images[i]; id = switchimg.id.replace("img_","") boxes[i] = id; part = FetchElement("part_"+id) if(document.cookie && part.style.display != 'none') { hide...
part = FetchElement("part_"+id)
part = FetchElement("part_"+id);
function init(size) { for(var i=0; i < document.images.length; i++) { name = document.images[i].name; if (name == 'collapse') { switchimg = document.images[i]; id = switchimg.id.replace("img_","") boxes[i] = id; part = FetchElement("part_"+id) if(document.cookie && part.style.display != 'none') { hide...
hide = GetCookie(id)
hide = GetCookie(id);
function init(size) { for(var i=0; i < document.images.length; i++) { name = document.images[i].name; if (name == 'collapse') { switchimg = document.images[i]; id = switchimg.id.replace("img_","") boxes[i] = id; part = FetchElement("part_"+id) if(document.cookie && part.style.display != 'none') { hide...
switchimg.src = box_img_plus part.style.display = 'none'
switchimg.src = box_img_plus; part.style.display = 'none';
function init(size) { for(var i=0; i < document.images.length; i++) { name = document.images[i].name; if (name == 'collapse') { switchimg = document.images[i]; id = switchimg.id.replace("img_","") boxes[i] = id; part = FetchElement("part_"+id) if(document.cookie && part.style.display != 'none') { hide...
HandCursor(switchimg) Switch(switchimg)
HandCursor(switchimg); Switch(switchimg);
function init(size) { for(var i=0; i < document.images.length; i++) { name = document.images[i].name; if (name == 'collapse') { switchimg = document.images[i]; id = switchimg.id.replace("img_","") boxes[i] = id; part = FetchElement("part_"+id) if(document.cookie && part.style.display != 'none') { hide...
DWREngine.setTextHtmlHandler(contentFailure);
function init() { failures = $("failures"); failreport = $("failreport"); execreport = $("execreport"); DWREngine.setErrorHandler(catchFailure); DWREngine.setWarningHandler(catchFailure); DWRUtil.addRows("chart", tests, [ function(row, options) { return options.rowNum; }, function(row, options) { return "" ...
prefInt = Components.classes["component:
prefInt = Components.classes["@mozilla.org/preferences;1"];
function Init(){ doSetOKCancel(Save); var applicationArea = new String(); dump("*** pref-charset.js, Init()\n"); try { if (window.arguments && window.arguments[0]) { applicationArea = window.arguments[0]; } else { dump("*** no window arguments!\n"); } //if } //try catch(ex) { d...
ccm = Components.classes['component:
ccm = Components.classes['@mozilla.org/charset-converter-manager;1'];
function Init(){ doSetOKCancel(Save); var applicationArea = new String(); dump("*** pref-charset.js, Init()\n"); try { if (window.arguments && window.arguments[0]) { applicationArea = window.arguments[0]; } else { dump("*** no window arguments!\n"); } //if } //try catch(ex) { d...
function createNumCell(row)
function(row)
function init(){ DWRUtil.setValue("useragent-real", navigator.userAgent); DWRUtil.setValue("useragent-reported", navigator.userAgent); DWREngine.setErrorHandler(DWREngine.defaultMessageHandler); DWREngine.setWarningHandler(DWREngine.defaultMessageHandler); var rownum = 0; DWRUtil.drawTable("chart", te...
function createCodeCell(row)
function(row)
function init(){ DWRUtil.setValue("useragent-real", navigator.userAgent); DWRUtil.setValue("useragent-reported", navigator.userAgent); DWREngine.setErrorHandler(DWREngine.defaultMessageHandler); DWREngine.setWarningHandler(DWREngine.defaultMessageHandler); var rownum = 0; DWRUtil.drawTable("chart", te...
function createDataCell(row)
function(row)
function init(){ DWRUtil.setValue("useragent-real", navigator.userAgent); DWRUtil.setValue("useragent-reported", navigator.userAgent); DWREngine.setErrorHandler(DWREngine.defaultMessageHandler); DWREngine.setWarningHandler(DWREngine.defaultMessageHandler); var rownum = 0; DWRUtil.drawTable("chart", te...
function createResultsCell(row)
function(row)
function init(){ DWRUtil.setValue("useragent-real", navigator.userAgent); DWRUtil.setValue("useragent-reported", navigator.userAgent); DWREngine.setErrorHandler(DWREngine.defaultMessageHandler); DWREngine.setWarningHandler(DWREngine.defaultMessageHandler); var rownum = 0; DWRUtil.drawTable("chart", te...
if (params.length >= 4)
if (arrayHasElementAt(params, 3))
function Init(){ gType = document.getElementById("czURLType"); gServer = document.getElementById("czServer"); gServerNeedPass = document.getElementById("czServerNeedPass"); gServerAlso = document.getElementById("czServerAlso"); gChannel = document.getElementById("czChannel"); gChannelIsNick = document...
if (applicationArea.indexOf("mail") != -1) {
if (applicationArea == "mailedit") {
function Init(){ var applicationArea = ""; if ("arguments" in window && window.arguments[0]) applicationArea = window.arguments[0]; prefInt = Components.classes["@mozilla.org/preferences;1"]; if (prefInt) { prefInt = prefInt.getService(Components.interfaces.nsIPref); if (applicationArea.indexOf("mail") != ...
var Tree = document.getElementById("Tree"); Tree.database.AddDataSource(Handler.QueryInterface(Components.interfaces.nsIRDFDataSource));
function Init(){ // Initialize the Related Links panel // Create a Related Links handler, and install it in the tree var Tree = document.getElementById("Tree"); Tree.database.AddDataSource(Handler.QueryInterface(Components.interfaces.nsIRDFDataSource)); // Install the observer so we'll be notified when new content is l...
var ObserverService = Components.classes["component: ObserverService = ObserverService.QueryInterface(Components.interfaces.nsIObserverService); if (ObserverService) { ObserverService.AddObserver(Observer, "StartDocumentLoad"); ObserverService.AddObserver(Observer, "EndDocumentLoad"); ObserverService.AddObserver(Observ...
oContentWindow = window._content; oFrame = document.getElementById('daFrame');
function Init(){ // Initialize the Related Links panel // Create a Related Links handler, and install it in the tree var Tree = document.getElementById("Tree"); Tree.database.AddDataSource(Handler.QueryInterface(Components.interfaces.nsIRDFDataSource)); // Install the observer so we'll be notified when new content is l...
if (ContentWindow) { refetchRelatedLinks(Handler, ContentWindow.location);
if (oContentWindow && oFrame) { window.setTimeout('window._content.resizeBy(0,1);window._content.resizeBy(0,-1);',0); var oObserverService = Components.classes["component: oObserverService = oObserverService.QueryInterface(Components.interfaces.nsIObserverService); oNavObserver = new NavObserver(oFrame,oContentWindow)...
function Init(){ // Initialize the Related Links panel // Create a Related Links handler, and install it in the tree var Tree = document.getElementById("Tree"); Tree.database.AddDataSource(Handler.QueryInterface(Components.interfaces.nsIRDFDataSource)); // Install the observer so we'll be notified when new content is l...
cancelbutton.setAttribute("default", "true");
function init() { var updateBundle = document.getElementById("updateBundle"); var incompatibleItems = document.getElementById("incompatibleItems"); var items = window.arguments[0]; for (var i = 0; i < items.length; ++i) { var listitem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there....
var sel = document.getElementsByTagName("select")[0]; sel.add(document.createElement('foo'), <bar/>);
try { var sel = document.getElementsByTagName("select")[0]; sel.add(document.createElement('foo'), <bar/>); } catch(ex) { printStatus(ex + ''); }
function init(){ var sel = document.getElementsByTagName("select")[0]; sel.add(document.createElement('foo'), <bar/>); TEST(1, expect, actual); END();}
gDelayTestDriverEnd = false; jsTestDriverEnd();
function init(){ var sel = document.getElementsByTagName("select")[0]; sel.add(document.createElement('foo'), <bar/>); TEST(1, expect, actual); END();}
extensionHomepage.setAttribute("onclick", "loadHomepage(\"" + homepage + "\");");
extensionHomepage.setAttribute("homepageURL", homepage);
function init(){ gExtensionID = window.arguments[0]; gExtensionDB = window.arguments[1]; var extensionsStrings = document.getElementById("extensionsStrings"); var rdfs = Components.classes["@mozilla.org/rdf/rdf-service;1"] .getService(Components.interfaces.nsIRDFService); var extension = rd...
doSetOKCancel(Save);
function Init(){ doSetOKCancel(Save); var applicationArea = ""; if ("arguments" in window && window.arguments[0]) applicationArea = window.arguments[0]; prefInt = Components.classes["@mozilla.org/preferences;1"]; if (prefInt) { prefInt = prefInt.getService(Components.interfaces.nsIPref); if (applicationAr...
saveInitialPanels(); enableButtonsForCurrentPanels();
save_initial_panels(); enable_buttons_for_current_panels();
function Init(){ var all_panels_datasources = window.arguments[0]; var all_panels_resource = window.arguments[1]; sidebar.datasource_uri = window.arguments[2]; sidebar.resource = window.arguments[3]; debug("Init: all panels datasources = " + all_panels_datasources); debug("Init: all panels resour...
var tree = document.getElementById("Tree"); if (tree) { var rdf = Components.classes["component: if (rdf) rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService); if (rdf) { rootNode = rdf.GetResource("NC:LastSearchRoot", true); textArc = rdf.GetResource("http: tree.database.AddObserver(RDF_observer); } }
function Init(){ // Initialize the Search panel}
prefs = Components.classes['component:
prefs = Components.classes['@mozilla.org/preferences;1'];
function init_sidebar(name, uri, width) { sidebar_name = name; sidebar_uri = uri; sidebar_width = width; sidebar_pref = 'sidebar.' + name; // Open/close sidebar based on saved pref. // This may be replaced by another system by hyatt. prefs = Components.classes['component://netscape/preferences']; if (prefs)...
var ary = aliasDefs[i].split(/\s*=\s*/); var name = ary[0]; var list = ary[1];
var ary = aliasDefs[i].match(/^(.*?)\s*=\s*(.*)$/); var name = ary[1]; var list = ary[2];
function initAliases(){ var aliasDefs = client.prefs["aliases"]; for (var i = 0; i < aliasDefs.length; ++i) { var ary = aliasDefs[i].split(/\s*=\s*/); var name = ary[0]; var list = ary[1]; client.commandManager.defineCommand(name, list); }}
homeCalendar.name = "Home";
var name = srGetStrBundle("chrome: .GetStringFromName("homeCalendarName"); homeCalendar.name = name;
function initCalendarManager(){ var calMgr = getCalendarManager(); var composite = getDisplayComposite(); if (calMgr.getCalendars({}).length == 0) { var homeCalendar = calMgr.createCalendar("storage", makeURL("moz-profile-calendar://")); calMgr.registerCalendar(homeCalendar); // XXX Locali...
var composite = getDisplayComposite();
var composite = getCompositeCalendar();
function initCalendarManager(){ var calMgr = getCalendarManager(); var composite = getDisplayComposite(); if (calMgr.getCalendars({}).length == 0) { var homeCalendar = calMgr.createCalendar("storage", makeURL("moz-profile-calendar://")); calMgr.registerCalendar(homeCalendar); var name = sr...
previousValue = dialog.RowSpanInput.value; dialog.RowSpanInput.value = globalCellElement.getAttribute("rowspan"); dialog.RowSpanCheckbox.checked = AdvancedEditUsed && previousValue != dialog.RowSpanInput.value; previousValue = dialog.ColSpanInput.value; dialog.ColSpanInput.value = globalCellElement.getAttribute("colsp...
function InitCellPanel(){ // Get cell attributes if (globalCellElement) { // This assumes order of items is Cell, Row, Column dialog.SelectionList.selectedIndex = SelectedCellsType-1; var previousValue = dialog.CellHeightInput.value; dialog.CellHeightInput.value = InitPixelOrPercentMenulist(globalCellEle...
prefs = Components.classes['component:
prefs = Components.classes['@mozilla.org/preferences;1'];
function InitCharsetMenuCheckMark(){ // dump("msgCompose.compFields is " + msgCompose.compFields.GetCharacterSet() + "\n"); // return if the charset is already set explitily if (currentMailSendCharset != null) { dump("already set to " + currentMailSendCharset + "\n"); return; } var menuitem; // try to get ...
var send_default_charset = prefs.CopyCharPref("mailnews.send_default_charset");
var send_default_charset = prefs.getLocalizedUnicharPref("mailnews.send_default_charset");
function InitCharsetMenuCheckMark(){ // dump("msgCompose.compFields is " + msgCompose.compFields.GetCharacterSet() + "\n"); // return if the charset is already set explitily if (currentMailSendCharset != null) { dump("already set to " + currentMailSendCharset + "\n"); return; } var menuitem; // try to get ...
this.showItem( "context-undo", this.isTextSelected || this.onTextInput ); this.showItem( "context-sep-undo", this.isTextSelected || this.onTextInput ); this.showItem( "context-cut", this.isTextSelected || this.onTextInput ); this.showItem( "context-copy", this.isTextSelected || this.onTextInput ); this.showItem( "conte...
this.showItem( "context-undo", this.onTextInput ); this.showItem( "context-redo", this.onTextInput ); this.showItem( "context-sep-undo", this.onTextInput ); this.showItem( "context-cut", this.onTextInput ); this.showItem( "context-copy", true ); this.showItem( "context-paste", this.onTextInput ); this.showItem( "contex...
initClipboardItems : function () { // Copy depends on whether there is selected text. // Enabling this context menu item is now done through the global // command updating system // this.setItemAttr( "context-copy", "disabled", !this.isTextSelected() ); goUpdateGlobalEditMenuItems...
this.showItem( "context-selectall", true ); this.showItem( "context-sep-selectall", this.isTextSelected && !this.onTextInput );
this.showItem( "context-selectall", this.isTextSelected || this.onTextInput ); this.showItem( "context-sep-selectall", this.isTextSelected );
initClipboardItems : function () { // Copy depends on whether there is selected text. // Enabling this context menu item is now done through the global // command updating system // this.setItemAttr( "context-copy", "disabled", !this.isTextSelected() ); goUpdateGlobalEditMenuItems...
#ifndef XP_UNIX #ifndef XP_OS2
#ifdef CONTEXT_COPY_IMAGE_CONTENTS
initClipboardItems : function () { // Copy depends on whether there is selected text. // Enabling this context menu item is now done through the global // command updating system // this.setItemAttr( "context-copy", "disabled", !this.isTextSelected() ); goUpdateGlobalEditMenuItems...
#endif
initClipboardItems : function () { // Copy depends on whether there is selected text. // Enabling this context menu item is now done through the global // command updating system // this.setItemAttr( "context-copy", "disabled", !this.isTextSelected() ); goUpdateGlobalEditMenuItems...
this.showItem( "context-copy", this.isTextSelected || this.onTextInput);
this.showItem( "context-copy", this.isContentSelected || this.onTextInput);
initClipboardItems : function () { // Copy depends on whether there is selected text. // Enabling this context menu item is now done through the global // command updating system // this.setItemAttr( "context-copy", "disabled", !this.isTextSelected() ); goUpdateGlobalEditMenuItems...
this.showItem( "context-sep-selectall", this.isTextSelected && !this.onTextInput );
this.showItem( "context-sep-selectall", this.isContentSelected && !this.onTextInput );
initClipboardItems : function () { // Copy depends on whether there is selected text. // Enabling this context menu item is now done through the global // command updating system // this.setItemAttr( "context-copy", "disabled", !this.isTextSelected() ); goUpdateGlobalEditMenuItems...
updateStyleSheetForObject(calendars[j]);
updateStyleSheetForObject(calendars[j], gCachedStyleSheet);
function initColors() { var calendars = getCalendarManager().getCalendars({}); for (var j in calendars) updateStyleSheetForObject(calendars[j]); var categoryPrefBranch = prefService.getBranch("calendar.category.color."); var prefArray = categoryPrefBranch.getChildList("", {}); for (var i = 0; i <...
updateStyleSheetForObject(prefArray[i]);
updateStyleSheetForObject(prefArray[i], gCachedStyleSheet);
function initColors() { var calendars = getCalendarManager().getCalendars({}); for (var j in calendars) updateStyleSheetForObject(calendars[j]); var categoryPrefBranch = prefService.getBranch("calendar.category.color."); var prefArray = categoryPrefBranch.getChildList("", {}); for (var i = 0; i <...
createDirectoriesList(false);
createDirectoriesList();
function initCompositionAndAddressing(identity){ createDirectoriesList(false); // if we are editing an existing identity, use it...otherwise copy our values from the default identity var addressingIdentity = identity ? identity : gAccount.defaultIdentity; document.getElementById('identity.directoryServer').value = ...
* XXX - console launch hookup requires some work that I'm not sure how to * do.
* XXX - console launch hookup requires some work that I'm not sure * how to do.
function initConsoleListener(){ /** * XXX - console launch hookup requires some work that I'm not sure how to * do. * * 1) ideally, the notification would disappear when the document that had the * error was flushed. how do I know when this happens? All the nsIScriptError * ob...
* 1) ideally, the notification would disappear when the document that had the * error was flushed. how do I know when this happens? All the nsIScriptError * object I get tells me is the URL. Where is it located in the content area? * 2) the notification service should not display chrome sc...
* 1) ideally, the notification would disappear when the * document that had the error was flushed. how do I know when * this happens? All the nsIScriptError object I get tells me * is the URL. Where is it located in the content area? * 2) the notification service should not display chrome ...
function initConsoleListener(){ /** * XXX - console launch hookup requires some work that I'm not sure how to * do. * * 1) ideally, the notification would disappear when the document that had the * error was flushed. how do I know when this happens? All the nsIScriptError * ob...
data.location = window.arguments[0]; data.contentType = window.arguments[1];
data.channel = window.arguments[0]; data.contentType = window.arguments[1]; data.location = data.channel.URI.spec;
function initData() { // Create data object and initialize. data = new Object; data.location = window.arguments[0]; data.contentType = window.arguments[1];}
mSelectEventsByRange = mDB.createStatement ("SELECT * FROM cal_events WHERE (time_start >= ? AND time_end <= ?) OR (time_start <= ? AND time_end > ?) OR (time_start <= ? AND time_end <= ?)"); mSelectEventsByRangeAndLimit = mDB.createStatement ("SELECT * FROM cal_events WHERE (time_start >= ? AND time_end <= ?) OR (time...
mSelectEventsByRange = mDB.createStatement ("SELECT * FROM cal_events WHERE (time_end >= ? AND time_start <= ?)"); mSelectEventsByRangeAndLimit = mDB.createStatement ("SELECT * FROM cal_events WHERE (time_end >= ? AND time_start <= ?) LIMIT ?");
initDB: function () { // these are columns that appear in all concrete items; SQLite could use // an "extends" thing like postgresql has const item_base_columns = "hashid, time_created, last_modified, " + "title, priority, flags, location, categories, " + "alarm...
this.mDB = dbService.openSpecialDatabase("profile");
if ( "getProfileStorage" in dbService ) { this.mDB = dbService.getProfileStorage("profile"); } else { this.mDB = dbService.openSpecialDatabase("profile"); }
initDB: function() { var sqlTables = { cal_calendars: "id INTEGER PRIMARY KEY, type STRING, uri STRING", cal_calendars_prefs: "id INTEGER PRIMARY KEY, calendar INTEGER, name STRING, value STRING" }; var dbService = Components.classes[kStorageServiceContractID].getServic...
flags: FILTER_SYSTEM | jsdIFilter.FLAG_ENABLED,
flags: FILTER_SYSTEM | FILTER_ENABLED,
function initDebugger(){ dd ("initDebugger {"); console._continueCodeStack = new Array(); /* top of stack is the default */ /* return code for the most */ /* recent debugTrap(). */ console.scripts = n...
console.jsds.flags = jsdIDebuggerService.ENABLE_NATIVE_FRAMES;
function initDebugger(){ dd ("initDebugger {"); console.instanceSequence = 0; console._continueCodeStack = new Array(); /* top of stack is the default */ /* return code for the most */ /* recent debugTrap(). ...
console.jsds.flags = jsdIDebuggerService.ENABLE_NATIVE_FRAMES;
function initDebugger(){ dd ("initDebugger {"); console.instanceSequence = 0; console._continueCodeStack = new Array(); /* top of stack is the default */ /* return code for the most */ /* recent debugTrap(). ...
console.addPref ("dbgContexts", false); console.addPref ("dbgDispatch", false); console.addPref ("dbgRealize", false); dispatch ("sync-debug");
function initDev(){ var cmdary = [["dumpcontexts", cmdDumpContexts, CMD_CONSOLE | CMD_NO_HELP], ["dumpfilters", cmdDumpFilters, CMD_CONSOLE | CMD_NO_HELP], ["reloadui", cmdReloadUI, CMD_CONSOLE | CMD_NO_HELP], ["testargs", cmdTestArgs, CMD_CONSOLE | CMD_NO_HEL...
["test", cmdTest, CMD_CONSOLE | CMD_NO_HELP],
function initDev(){ var cmdary = [["dumpcontexts", cmdDumpContexts, CMD_CONSOLE | CMD_NO_HELP], ["dumpfilters", cmdDumpFilters, CMD_CONSOLE | CMD_NO_HELP], ["dumpprofile", cmdDumpProfile, CMD_CONSOLE | CMD_NO_HELP], ["dumptree", cmdDumpTree, CMD_CONSOLE | CMD_NO_HEL...
var brandBundle = srGetStrBundle("chrome: if ( brandBundle ) { var product = brandBundle.GetStringFromName( "brandShortName" ); text = text.replace( /#2/, product ); }
initDialog : function () { // "Always ask me" is always set (or else we wouldn't have got here!). document.getElementById( "alwaysAskMe" ).checked = true; // Pre-select the choice the user made last time. if ( this.appLauncher.MIMEInfo.preferredAction != this.nsIHelperAppLauncher.saveToD...
moveToAlertPosition();
initDialog : function () { // "Always ask me" is always set (or else we wouldn't have got here!). document.getElementById( "alwaysAskMe" ).checked = true; // Pre-select the choice the user made last time. if ( this.appLauncher.MIMEInfo.preferredAction != this.nsIHelperAppLauncher.saveToD...
if ( this.appLauncher.MIMEInfo.preferredAction != this.nsIMIMEInfo.saveToDisk ) {
this.chosenApp = this.appLauncher.MIMEInfo.preferredApplicationHandler; if ( this.chosenApp && this.appLauncher.MIMEInfo.preferredAction != this.nsIMIMEInfo.saveToDisk ) {
initDialog : function () { // "Always ask me" is always set (or else we wouldn't have got here!). document.getElementById( "alwaysAskMe" ).checked = true; document.getElementById( "alwaysAskMe" ).setAttribute( "disabled", "true" ); // Pre-select the choice the user made last time. ...
document.getElementById( "runApp" ).checked = true; this.chosenApp = this.appLauncher.MIMEInfo.preferredApplicationHandler; var applicationDescription = this.appLauncher.MIMEInfo.applicationDescription; if (applicationDescription != "") document.getElementById( "appName" ).value = applicationDescription; else documen...
document.getElementById( "runApp" ).checked = true;
initDialog : function () { // "Always ask me" is always set (or else we wouldn't have got here!). document.getElementById( "alwaysAskMe" ).checked = true; document.getElementById( "alwaysAskMe" ).setAttribute( "disabled", "true" ); // Pre-select the choice the user made last time. ...
} var applicationDescription = this.appLauncher.MIMEInfo.applicationDescription; if (applicationDescription != "") document.getElementById( "appName" ).value = applicationDescription; else if (this.chosenApp) { document.getElementById( "appName" ).value = this.chosenApp.unicodePath;
initDialog : function () { // "Always ask me" is always set (or else we wouldn't have got here!). document.getElementById( "alwaysAskMe" ).checked = true; document.getElementById( "alwaysAskMe" ).setAttribute( "disabled", "true" ); // Pre-select the choice the user made last time. ...
prompt.setAttribute( "onclick", "dialog.dumpInfo()" );
prompt.setAttribute( "onclick", "dialog.doDebug()" );
initDialog : function() { // Put product brand short name in prompt. var prompt = this.dialogElement( "prompt" ); var modified = this.replaceInsert( prompt.firstChild.nodeValue, 1, this.getString( "brandShortName" ) ); prompt.firstChild.nodeValue = modified; // Put file name ...
var win = this.dialogElement( "nsHelperAppDlg" );
initDialog : function() { // Put product brand short name in prompt. var prompt = this.dialogElement( "prompt" ); var modified = this.replaceInsert( prompt.firstChild.nodeValue, 1, this.getString( "brandShortName" ) ); prompt.firstChild.nodeValue = modified; // Put file name ...
this.mTitle = this.replaceInsert( win.getAttribute( "title" ), 1, fname); this.mDialog.title = this.mTitle;
this.mTitle = this.replaceInsert( this.mDialog.document.title, 1, fname); this.mDialog.document.title = this.mTitle;
initDialog : function() { // Put product brand short name in prompt. var prompt = this.dialogElement( "prompt" ); var modified = this.replaceInsert( prompt.firstChild.nodeValue, 1, this.getString( "brandShortName" ) ); prompt.firstChild.nodeValue = modified; // Put file name ...