rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
if (windowName != "Top" && windowName != "Bottom") { prefsCore.PanelLoaded(window); }
function StartUp(windowName){ dump("\nDoing " + windowName + " startup...\n"); prefsCore = XPAppCoresManager.Find("PrefsCore"); dump("Looking up PrefsCore...\n"); if (prefsCore == null) { dump("Creating PrefsCore...\n"); prefsCore = new PrefsCore(); if (prefsCore != null) { dump("PrefsCore has been created.\n")...
if (prefsCore != null && windowName != "Top" && windowName != "Bottom") { prefsCore.PanelLoaded(window); }
function StartUp(windowName){ dump("\nDoing " + windowName + " startup...\n"); prefsCore = XPAppCoresManager.Find("PrefsCore"); dump("Looking up PrefsCore...\n"); if (prefsCore == null) { dump("Creating PrefsCore...\n"); prefsCore = new PrefsCore(); if (prefsCore != null) { dump("PrefsCore has been created.\n")...
getPrefValueForCheckbox("capability.policy.default.Window.status");
getPrefValueForCheckbox("capability.policy.default.Window.status") && getPrefValueForCheckbox("capability.policy.default.Window.defaultStatus");
function Startup(){ data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-scripts.xul"]; //If scriptData does not exist, then it is the first time the panel was shown and we default to false if (!("scriptData" in data)){ var changedList = ["allowWindowOpenChanged", "allowWin...
window.addEventListener("load", UpdateHistory, true);
function Startup() { dump("Doing Startup...\n"); dump("Creating browser app core\n"); appCore = new BrowserAppCore(); if (appCore != null) { dump("BrowserAppCore has been created.\n"); appCoreName = "BrowserAppCore." + ( new Date() ).getTime().toString(); appCore.Init( appCoreName ); appCore.s...
gDialog.Close = document.documentElement.getButton("cancel");
function Startup(){ var editor = GetCurrentEditor(); if (!editor) { window.close(); return; } // Get all objects that refer to other locations var objects; try { objects = editor.getLinkedObjects(); } catch (e) {} if (!objects || objects.Count() == 0) { AlertWithTitle(GetString("Alert"), GetString...
gBrandBundle = document.getElementById("bundle_brand");
function Startup(){ gPrefutilitiesBundle = document.getElementById("bundle_prefutilities"); gBrandBundle = document.getElementById("bundle_brand"); var tree = document.getElementById( "skinsTree" ); var theSkinKids = document.getElementById("theSkinKids"); if (theSkinKids.hasChildNodes() && theSkinKids.firstChild)...
var resolution; resolution = document.getElementById( "screenResolution" );
var resolution = document.getElementById( "screenResolution" );
function Startup() { // Initialize the sub-dialog variableSize = document.getElementById( "sizeVar" ); fixedSize = document.getElementById( "sizeMono" ); minSize = document.getElementById( "minSize" ); languageList = document.getElementById( "selectLangs" ); gPrefutilitiesBundle = document....
var defaultResolution; var otherResolution; if (navigator.appVersion.indexOf("OS/2") != -1) { defaultResolution = "120"; otherResolution = "96"; document.getElementById( "arbitraryResolution" ).setAttribute( "hidden", "true" ); document.getElementById( "resolutionSeparator" ).setAttribute( "hidden", "true" ); } else...
function Startup() { // Initialize the sub-dialog variableSize = document.getElementById( "sizeVar" ); fixedSize = document.getElementById( "sizeMono" ); minSize = document.getElementById( "minSize" ); languageList = document.getElementById( "selectLangs" ); gPrefutilitiesBundle = document....
window.sizeToContent();
function Startup(){ dump("HLine Properties startup...\n"); if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Get the selected horizontal line hLineElement = editorShell.GetSelectedElement(tagName); if (!hLineElement) { // We should never be here if not editing an existing HLine dump("HLine is...
case "addGroup,group": document.getElementById("showaddgroup").setAttribute("hidden", "false"); gCB_AddGroup.checked = true; setupFields(); toggleGroup(); sizeToFit(); break;
function Startup(){ gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); gCB_AddGroup = document.getElementById("addgroup"); var bookmarkView = document.getElementById("bookmarks-view"); var shouldSetOKButton = true; var dialogElement = document.documentElement; if ("arguments"...
folderItem = bookmarkView.rdf.GetResource(window.arguments[2]);
folderItem = RDF.GetResource(window.arguments[2]);
function Startup(){ gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); gFld_ShortcutURL = document.getElementById("shortcutUrl"); gCB_AddGroup = document.getElementById("addgroup"); var bookmarkView = document.getElementById("bookmarks-view"); var shouldSetOKButton = true; va...
folderItem = bookmarkView.rdf.GetResource(gCreateInFolder);
folderItem = RDF.GetResource(gCreateInFolder);
function Startup(){ gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); gFld_ShortcutURL = document.getElementById("shortcutUrl"); gCB_AddGroup = document.getElementById("addgroup"); var bookmarkView = document.getElementById("bookmarks-view"); var shouldSetOKButton = true; va...
kObserverService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); kObserverService.addObserver(signonReloadDisplay, "signonChanged", false);
function Startup() { // xpconnect to password manager interfaces signonviewer = Components.classes["@mozilla.org/signonviewer/signonviewer-world;1"].createInstance(); signonviewer = signonviewer.QueryInterface(Components.interfaces.nsISignonViewer); passwordmanager = Components.classes["@mozilla.org/passwordmanager...
Registry.open(regFile.path);
Registry.open(regFile);
function StartUp(){ gProfileManagerBundle = document.getElementById("bundle_profileManager"); gBrandBundle = document.getElementById("bundle_brand"); SetUpOKCancelButtons(); centerWindowOnScreen(); if(window.location && window.location.search && window.location.search == "?manage=true" ) SwitchProfileManagerMod...
dialog.charsetTree.focus();
dialog.TitleInput.focus();
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Create dialog object to store controls for easy access dialog = new Object; // GET EACH CONTROL -- E.G.: dialog.TitleInput = document.getElementById("TitleInput"); dialog.charsetTree = document.getElementById('CharsetTree')...
gLinksBeingChecked[gNumLinksToCheck].asyncCheckURI(uri, gRequestObserver, null);
gLinksBeingChecked[gNumLinksToCheck].asyncCheckURI(uri, gRequestObserver, null, Components.interfaces.nsIRequest.LOAD_NORMAL);
function Startup(){ if (!InitEditorShell()) return; // Set window location relative to parent window (based on persisted attributes) SetWindowLocation(); // Get all objects that refer to other locations var objects = editorShell.GetLinkedObjects(); // Loop over the nodes that have links: for (var i = 0; i < o...
dump("1\n");
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Message was wrapped in a <label> or <div>, so actual text is a child text node linkCaption = (document.getElementById("linkTextCaption")).firstChild; linkMessage = (document.getElementById("linkTextMessage")).firstChil...
dump("2\n");
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Message was wrapped in a <label> or <div>, so actual text is a child text node linkCaption = (document.getElementById("linkTextCaption")).firstChild; linkMessage = (document.getElementById("linkTextMessage")).firstChil...
dump("3\n");
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Message was wrapped in a <label> or <div>, so actual text is a child text node linkCaption = (document.getElementById("linkTextCaption")).firstChild; linkMessage = (document.getElementById("linkTextMessage")).firstChil...
dump("4\n");
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Message was wrapped in a <label> or <div>, so actual text is a child text node linkCaption = (document.getElementById("linkTextCaption")).firstChild; linkMessage = (document.getElementById("linkTextMessage")).firstChil...
dump("5\n");
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Message was wrapped in a <label> or <div>, so actual text is a child text node linkCaption = (document.getElementById("linkTextCaption")).firstChild; linkMessage = (document.getElementById("linkTextMessage")).firstChil...
dump("6\n");
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Message was wrapped in a <label> or <div>, so actual text is a child text node linkCaption = (document.getElementById("linkTextCaption")).firstChild; linkMessage = (document.getElementById("linkTextMessage")).firstChil...
dump("7\n");
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Message was wrapped in a <label> or <div>, so actual text is a child text node linkCaption = (document.getElementById("linkTextCaption")).firstChild; linkMessage = (document.getElementById("linkTextMessage")).firstChil...
dump("8\n");
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Message was wrapped in a <label> or <div>, so actual text is a child text node linkCaption = (document.getElementById("linkTextCaption")).firstChild; linkMessage = (document.getElementById("linkTextMessage")).firstChil...
dump("9\n");
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Message was wrapped in a <label> or <div>, so actual text is a child text node linkCaption = (document.getElementById("linkTextCaption")).firstChild; linkMessage = (document.getElementById("linkTextMessage")).firstChil...
dump("10\n");
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Message was wrapped in a <label> or <div>, so actual text is a child text node linkCaption = (document.getElementById("linkTextCaption")).firstChild; linkMessage = (document.getElementById("linkTextMessage")).firstChil...
FillNamedAnchorList(); dump("11\n");
FillListboxes();
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Message was wrapped in a <label> or <div>, so actual text is a child text node linkCaption = (document.getElementById("linkTextCaption")).firstChild; linkMessage = (document.getElementById("linkTextMessage")).firstChil...
window.sizeToContent();
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Message was wrapped in a <label> or <div>, so actual text is a child text node linkCaption = (document.getElementById("linkTextCaption")).firstChild; linkMessage = (document.getElementById("linkTextMessage")).firstChil...
appCore = XPAppCoresManager.Find("EditorAppCoreHTML");
dump("Getting parent appcore\n"); var editorName = document.getElementById("args").getAttribute("value"); dump("Got editorAppCore called " + editorName + "\n"); appCore = XPAppCoresManager.Find(editorName);
function Startup(){ dump("Doing Startup...\n"); toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } // NE...
dump("EditorAppCore found for Image Properties dialog\n");
dump("EditorAppCore found for ???????? dialog\n");
function Startup(){ dump("Doing Startup...\n"); toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } // NE...
dialog.AltText = document.getElementById("image.AltText");
function Startup(){ dump("Doing Startup...\n"); toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } // NE...
gAppPath.value = app.unicodePath;
gAppPath.value = app.path;
function Startup(){ doSetOKCancel(onOK); gDescriptionField = document.getElementById("description"); gExtensionField = document.getElementById("extensions"); gMIMEField = document.getElementById("mimeType"); gAppPath = document.getElementById("appPath"); gPrefApplicationsBundle = document....
gExtensionsView.selected = lastSelected;
gExtensionsView.selectedItem = lastSelected;
function Startup() { gWindowState = window.location.search.substr("?type=".length, window.location.search.length); var isExtensions = gWindowState == "extensions"; gItemType = isExtensions ? nsIUpdateItem.TYPE_EXTENSION : nsIUpdateItem.TYPE_THEME; var typeCondition = document.getElementById("typeCondition"); t...
gDownloadsView.focus();
function Startup() { gDownloadsView = document.getElementById("downloadView"); const dlmgrContractID = "@mozilla.org/download-manager;1"; const dlmgrIID = Components.interfaces.nsIDownloadManager; gDownloadManager = Components.classes[dlmgrContractID].getService(dlmgrIID); // The DownloadProgressListener (Downlo...
setTooltipText("homebutton", homepage);
setTooltipText("home-button", homepage);
function Startup() { window.XULBrowserWindow = new nsXULBrowserWindow(); // TileWindow(); // Make sure window fits on screen initially //FitToScreen(); // Create the browser instance component. createBrowserInstance(); window._content.appCore= appCore; if (appCore == null) { // Give u...
appCore = XPAppCoresManager.Find("EditorAppCoreHTML");
appCore = XPAppCoresManager.Find(editorName);
function Startup() { dump("Doing Startup...\n"); toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } // N...
return;
function Startup() { dump("Doing Startup...\n"); toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } // N...
ListTypeList = document.getElementById("ListType"); BulletStyleList = document.getElementById("BulletStyle"); BulletStyleLabel = document.getElementById("BulletStyleLabel"); StartingNumberInput = document.getElementById("StartingNumber"); StartingNumberLabel = document.getElementById("StartingNumberLabel"); AdvancedEdi...
dialog.ListTypeList = document.getElementById("ListType"); dialog.BulletStyleList = document.getElementById("BulletStyle"); dialog.BulletStyleLabel = document.getElementById("BulletStyleLabel"); dialog.StartingNumberInput = document.getElementById("StartingNumber"); dialog.StartingNumberLabel = document.getElementById(...
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); ListTypeList = document.getElementById("ListType"); BulletStyleList = document.getElementById("BulletStyle"); BulletStyleLabel = document.getElementById("BulletStyleLabel"); StartingNumberInput = document.getElementById("Startin...
var mixedObj = new Object; ListType = editorShell.GetListState(mixedObj); MixedListSelection = mixedObj.value;
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); ListTypeList = document.getElementById("ListType"); BulletStyleList = document.getElementById("BulletStyle"); BulletStyleLabel = document.getElementById("BulletStyleLabel"); StartingNumberInput = document.getElementById("Startin...
ListElement = editorShell.GetSelectedElement("list");
ListElement = editorShell.GetElementOrParentByTagName("list", null);
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); ListTypeList = document.getElementById("ListType"); BulletStyleList = document.getElementById("BulletStyle"); BulletStyleLabel = document.getElementById("BulletStyleLabel"); StartingNumberInput = document.getElementById("Startin...
if (!ListElement) { ListElement = editorShell.GetElementOrParentByTagName("list", null); if (ListElement) MixedListSelection = true; }
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); ListTypeList = document.getElementById("ListType"); BulletStyleList = document.getElementById("BulletStyle"); BulletStyleLabel = document.getElementById("BulletStyleLabel"); StartingNumberInput = document.getElementById("Startin...
dialog.RadioGroup.setAttribute("collapsed", ListElement ? "false" : "true"); if (ListElement) { if (dialog.RadioGroup.getAttribute("index") == "1") dialog.ChangeSelectedRadio.checked = true; else dialog.ChangeAllRadio.checked = true; }
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); ListTypeList = document.getElementById("ListType"); BulletStyleList = document.getElementById("BulletStyle"); BulletStyleLabel = document.getElementById("BulletStyleLabel"); StartingNumberInput = document.getElementById("Startin...
ListTypeList.focus();
dialog.ListTypeList.focus();
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); ListTypeList = document.getElementById("ListType"); BulletStyleList = document.getElementById("BulletStyle"); BulletStyleLabel = document.getElementById("BulletStyleLabel"); StartingNumberInput = document.getElementById("Startin...
bookmarksView.tree.focus();
function Startup() { var bookmarksView = document.getElementById("bookmarks-view"); bookmarksView.treeBoxObject.selection.select(0); bookmarksView.tree.focus(); }
SetWindowLocation();
function Startup(){ if (!InitEditorShell()) return; dump("EditoreditorShell found for dialog\n"); // Get the SpellChecker shell gSpellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!gSpellChecker) { dump("SpellChecker not found!!!\n"); window.close(); return; } ...
{
{ createBrowserInstance(); if (appCore == null) { window.close(); }
function Startup(){ // TileWindow(); // Make sure window fits on screen initially // FitToScreen(); try { appCore = createInstance( "component://netscape/appshell/component/browser/instance", "nsIBrowserInstance" ); } catch ( e ) { // fail } if( !appCore ) window.close(); // Initialize browser insta...
try { appCore = createInstance( "component:
appCore.setWebShellWindow(window); tryToSetContentWindow(); var contentArea = document.getElementById("appcontent"); if (contentArea) { contentArea.addEventListener("load", UpdateHistory, true); contentArea.addEventListener("load", UpdateBookmarksLastVisitedDate, true); contentArea.addEventListener("load", UpdateI...
function Startup(){ // TileWindow(); // Make sure window fits on screen initially // FitToScreen(); try { appCore = createInstance( "component://netscape/appshell/component/browser/instance", "nsIBrowserInstance" ); } catch ( e ) { // fail } if( !appCore ) window.close(); // Initialize browser insta...
catch ( e ) { } if( !appCore ) window.close(); appCore.setWebShellWindow(window); tryToSetContentWindow(); var contentArea = document.getElementById("appcontent"); if (contentArea) { contentArea.addEventListener("load", UpdateHistory, true); contentArea.addEventListener("load", UpdateBookmarksLastVisitedDate, t...
function Startup(){ // TileWindow(); // Make sure window fits on screen initially // FitToScreen(); try { appCore = createInstance( "component://netscape/appshell/component/browser/instance", "nsIBrowserInstance" ); } catch ( e ) { // fail } if( !appCore ) window.close(); // Initialize browser insta...
if (textareaElement)
if (textareaElement) {
function Startup(){ if (!InitEditorShell()) return; gDialog = { accept: document.documentElement.getButton("accept"), textareaName: document.getElementById("TextAreaName"), textareaRows: document.getElementById("TextAreaRows"), textareaCols: document.getElementById("TextAr...
textareaElement.value = GetSelectionAsText();
gDialog.textareaValue.value = GetSelectionAsText();
function Startup(){ if (!InitEditorShell()) return; gDialog = { accept: document.documentElement.getButton("accept"), textareaName: document.getElementById("TextAreaName"), textareaRows: document.getElementById("TextAreaRows"), textareaCols: document.getElementById("TextAr...
if ("@mozilla.org/preferences;1" in Components.classes) try { var pref = Components.classes["@mozilla.org/preferences;1"]; pref = pref.getService(Components.interfaces.nsIPref); var wrap = document.getElementById("wrap"); wrap.setAttribute("collapsed", pref.GetBoolPref("editor.dtd.strict")); } catch (e) {}
function Startup(){ if (!InitEditorShell()) return; gDialog = { accept: document.documentElement.getButton("accept"), textareaName: document.getElementById("TextAreaName"), textareaRows: document.getElementById("TextAreaRows"), textareaCols: document.getElementById("TextAr...
dialog.SelectionList.setAttribute("disabled", "true"); dialog.PreviousButton.setAttribute("disabled", "true"); dialog.NextButton.setAttribute("disabled", "true");
function Startup(){ if (!InitEditorShell()) return; selection = editorShell.editorSelection; if (!selection) return; dialog = new Object; if (!dialog) window.close(); // Get dialog widgets - Table Panel dialog.TableRowsInput = document.getElementById("TableRowsInput"); dialog.TableColumnsInput = document.get...
LoadSignons();
if (!LoadSignons()) { return; }
function Startup(){ signonviewer = Components.classes["component://netscape/signonviewer/signonviewer-world"].createInstance(); signonviewer = signonviewer.QueryInterface(Components.interfaces.nsISignonViewer); doSetOKCancel(onOK, null); // init ok event handler // remove wallet functions (unless overruled by the ...
toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); }
function Startup(){ dump("Doing Startup...\n"); toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } // NE...
var editorName = document.getElementById("args").getAttribute("value"); dump("Got editorAppCore called " + editorName + "\n");
var editorName = window.arguments[0]; dump("EditorAppCore name =" + editorName + "\n");
function Startup(){ dump("Doing Startup...\n"); toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } // NE...
if(!edAppCore || !toolkitCore) {
if(!edAppCore) {
function Startup(){ dump("Doing Startup...\n"); toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } // NE...
toolkitCore.CloseWindow(window);
window.close();
function Startup(){ dump("Doing Startup...\n"); toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } // NE...
misspelledWord = edAppCore.getFirstMisspelledWord();
misspelledWord = window.arguments[1];
function Startup(){ dump("Doing Startup...\n"); toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } // NE...
var toolbar = document.getElementById("nav-bar"); toolbar.toolbarChanged = BrowserToolbarChanged;
var toolbox = document.getElementById("navigator-toolbox"); toolbox.customizeDone = BrowserToolboxCustomizeDone;
function Startup(){ // init globals gNavigatorBundle = document.getElementById("bundle_browser"); gBrandBundle = document.getElementById("bundle_brand"); gBrowser = document.getElementById("content"); gURLBar = document.getElementById("urlbar"); var toolbar = document.getElementById("nav-bar"); toolbar.toolbar...
gURLBar.value = uriToLoad;
if (gURLBar) gURLBar.value = uriToLoad;
function Startup(){ // init globals gNavigatorBundle = document.getElementById("bundle_browser"); gBrandBundle = document.getElementById("bundle_brand"); gBrowser = document.getElementById("content"); gURLBar = document.getElementById("urlbar"); var toolbar = document.getElementById("nav-bar"); toolbar.toolbar...
if (uriToLoad == "about:blank" && !toolbar.hidden && window.locationbar.visible)
if (uriToLoad == "about:blank" && !toolbar.hidden && gURLBar && !gURLBar.parentNode.parentNode.collapsed) {
function Startup(){ // init globals gNavigatorBundle = document.getElementById("bundle_browser"); gBrandBundle = document.getElementById("bundle_brand"); gBrowser = document.getElementById("content"); gURLBar = document.getElementById("urlbar"); var toolbar = document.getElementById("nav-bar"); toolbar.toolbar...
else
} else {
function Startup(){ // init globals gNavigatorBundle = document.getElementById("bundle_browser"); gBrandBundle = document.getElementById("bundle_brand"); gBrowser = document.getElementById("content"); gURLBar = document.getElementById("urlbar"); var toolbar = document.getElementById("nav-bar"); toolbar.toolbar...
}
function Startup(){ // init globals gNavigatorBundle = document.getElementById("bundle_browser"); gBrandBundle = document.getElementById("bundle_brand"); gBrowser = document.getElementById("content"); gURLBar = document.getElementById("urlbar"); var toolbar = document.getElementById("nav-bar"); toolbar.toolbar...
SetUpOKCancelButtons(); centerWindowOnScreen();
if (gStartupMode) { document.documentElement.setAttribute("buttonlabelcancel", document.documentElement.getAttribute("buttonlabelexit")); document.documentElement.setAttribute("buttonlabelaccept", document.documentElement.getAttribute("buttonlabelstart")); }
function StartUp(){ gDialogParams = window.arguments[0]. QueryInterface(Components.interfaces.nsIDialogParamBlock); gStartupMode = (gDialogParams.GetString(0) == "startup"); gProfileManagerBundle = document.getElementById("bundle_profileManager"); gBrandBundle = document.getElementById("bundle_...
var introTextItem = document.getElementById("intro"); var introText, insertText; if (gStartupMode) { insertText = gProfileManagerBundle.getFormattedString("startButton", [gBrandBundle.getString("brandShortName")]); introText = gProfileManagerBundle.getFormattedString("intro_start", [insertText]);
else { var introTextItem = document.getElementById("intro"); var insertText = document.documentElement.getAttribute("buttonlabelaccept"); var introText = gProfileManagerBundle.getFormattedString( gStartupMode ? "intro_start" : "intro_switch", [insertText]); introTextItem.textContent = introText;
function StartUp(){ gDialogParams = window.arguments[0]. QueryInterface(Components.interfaces.nsIDialogParamBlock); gStartupMode = (gDialogParams.GetString(0) == "startup"); gProfileManagerBundle = document.getElementById("bundle_profileManager"); gBrandBundle = document.getElementById("bundle_...
else { insertText = gProfileManagerBundle.getString("selectButton"); introText = gProfileManagerBundle.getFormattedString("intro_switch", [insertText]); } introTextItem.childNodes[0].nodeValue = introText;
function StartUp(){ gDialogParams = window.arguments[0]. QueryInterface(Components.interfaces.nsIDialogParamBlock); gStartupMode = (gDialogParams.GetString(0) == "startup"); gProfileManagerBundle = document.getElementById("bundle_profileManager"); gBrandBundle = document.getElementById("bundle_...
if ( SeeMore ) InitDialog();
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); // Create dialog object to store controls for easy access dialog = new Object; dialog.srcInput = document.getElementById( "srcInput" ); dialog.altTextInput = document.getElementById( "altTextInput" ); dialog.MoreF...
var okButton = document.documentElement.getButton("accept"); if (okButton) { okButton.removeAttribute("default"); okButton.setAttribute("label",GetString("Insert")); okButton.setAttribute("accesskey",GetString("InsertAccessKey")); }
document.documentElement.getButton("accept").removeAttribute("default");
function Startup(){ var editor = GetCurrentEditor(); if (!editor) { window.close(); return; } var okButton = document.documentElement.getButton("accept"); if (okButton) { okButton.removeAttribute("default"); okButton.setAttribute("label",GetString("Insert")); okButton.setAttribute("accesskey",GetS...
path.unicodePath;
path.path;
function Startup(){ var path = null; var pref = null; try { pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); path = pref.getComplexValue(kCacheParentDirPref, nsILocalFile); } catch (ex) { // parent_directory pref not set; path is nul...
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); var commandHandlerInit = Components .classes["component: .createInstance(Components.interfaces.nsICommandHandlerInit); commandHandlerInit.window = window; commandHandler = commandHandlerInit.QueryInterface(Components.interfaces.nsICommandHandle...
function Startup(){ window.XULBrowserWindow = new nsXULBrowserWindow(); // Create the browser instance component. createBrowserInstance(); window._content.appCore= appCore; if (appCore == null) { // Give up. window.close(); } // Initialize browser instance.. appCore.setWebShellWindow(window); gURLBar = d...
dump("EditoreditorShell found for NamedAnchor Properties dialog\n"); dialog = new Object; dialog.nameInput = document.getElementById("name");
dump("EditorShell found for NamedAnchor Properties dialog\n"); dump(document+"\n"); nameInput = document.getElementById("nameInput"); dump(nameInput+"\n");
function Startup(){ if (!InitEditorShell()) return; dump("EditoreditorShell found for NamedAnchor Properties dialog\n"); // Create dialog object to store controls for easy access dialog = new Object; // GET EACH CONTROL -- E.G.: dialog.nameInput = document.getElementById("name"); // Get a single selected elem...
dialog.nameInput.value = anchorElement.getAttribute("name");
nameInput.value = anchorElement.getAttribute("name");
function Startup(){ if (!InitEditorShell()) return; dump("EditoreditorShell found for NamedAnchor Properties dialog\n"); // Create dialog object to store controls for easy access dialog = new Object; // GET EACH CONTROL -- E.G.: dialog.nameInput = document.getElementById("name"); // Get a single selected elem...
name = editorShell.selectionAsText;
name = GetSelectionAsText();
function Startup(){ if (!InitEditorShell()) return; dump("EditoreditorShell found for NamedAnchor Properties dialog\n"); // Create dialog object to store controls for easy access dialog = new Object; // GET EACH CONTROL -- E.G.: dialog.nameInput = document.getElementById("name"); // Get a single selected elem...
dialog.nameInput.value = name;
dump("Selection text for name: "+name+"\n"); nameInput.value = name;
function Startup(){ if (!InitEditorShell()) return; dump("EditoreditorShell found for NamedAnchor Properties dialog\n"); // Create dialog object to store controls for easy access dialog = new Object; // GET EACH CONTROL -- E.G.: dialog.nameInput = document.getElementById("name"); // Get a single selected elem...
dialog.nameInput.focus();
nameInput.focus();
function Startup(){ if (!InitEditorShell()) return; dump("EditoreditorShell found for NamedAnchor Properties dialog\n"); // Create dialog object to store controls for easy access dialog = new Object; // GET EACH CONTROL -- E.G.: dialog.nameInput = document.getElementById("name"); // Get a single selected elem...
var path = null; var pref = null; try { pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); path = pref.getComplexValue(kCacheParentDirPref, nsILocalFile); } catch (ex) { }
var prefWindow = parent.hPrefWindow; gFolderField = document.getElementById("browserCacheDiskCacheFolder");
function Startup(){ var path = null; var pref = null; try { pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); path = pref.getComplexValue(kCacheParentDirPref, nsILocalFile); } catch (ex) { // parent_directory pref not set; path is nul...
if (!path)
var dir = prefWindow.getPref("localfile", kCacheParentDirPref); if (dir == "!/!ERROR_UNDEFINED_PREF!/!")
function Startup(){ var path = null; var pref = null; try { pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); path = pref.getComplexValue(kCacheParentDirPref, nsILocalFile); } catch (ex) { // parent_directory pref not set; path is nul...
.getService(nsIProperties); var ifile = dirSvc.get("ProfD", nsIFile); path = ifile.QueryInterface(nsILocalFile);
.getService(nsIProperties); dir = dirSvc.get("ProfD", nsILocalFile);
function Startup(){ var path = null; var pref = null; try { pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); path = pref.getComplexValue(kCacheParentDirPref, nsILocalFile); } catch (ex) { // parent_directory pref not set; path is nul...
if (pref) pref.setComplexValue(kCacheParentDirPref, nsILocalFile, path);
prefWindow.setPref("localfile", kCacheParentDirPref, dir);
function Startup(){ var path = null; var pref = null; try { pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); path = pref.getComplexValue(kCacheParentDirPref, nsILocalFile); } catch (ex) { // parent_directory pref not set; path is nul...
if (path) document.getElementById("browserCacheDiskCacheFolder").value = path.path;
if (dir) gFolderField.value = (/Mac/.test(navigator.platform)) ? dir.leafName : dir.path; document.getElementById("chooseDiskCacheFolder").disabled = prefWindow.getPrefIsLocked(kCacheParentDirPref);
function Startup(){ var path = null; var pref = null; try { pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); path = pref.getComplexValue(kCacheParentDirPref, nsILocalFile); } catch (ex) { // parent_directory pref not set; path is nul...
title = window.arguments[2]; if (title.length > 0) {
titleText = window.arguments[2]; if (titleText.length > 0) { dump(titleText+" is the message dialog title\n"); window.title = titleText;
function Startup(){ if (!InitEditorShell()) return; dump("EditorShell found for Message dialog\n"); window.opener.msgResult = 0; // Message is wrapped in a <div> // We will add child text node(s) messageParent = (document.getElementById("message")); messageText = window.arguments[1]; if (messageText && messa...
gObserverIndex = gExtensionManager.addDownloadObserver(gDownloadManager);
gObserverIndex = gExtensionManager.addDownloadListener(gDownloadManager);
function Startup() { gWindowState = window.location.search.substr("?type=".length, window.location.search.length); var isExtensions = gWindowState == "extensions"; gItemType = isExtensions ? nsIUpdateItem.TYPE_EXTENSION : nsIUpdateItem.TYPE_THEME; var typeCondition = document.getElementById("typeCondition"); t...
if (prefs)
if (prefs && window.arguments[1])
function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) { dump("Failed to create dialog object!!!\n"); window.close(); } dialog.ColorPreview = document.getElementById("ColorPreview"); dialog.NormalText = document.getElementById("NormalText"); dialog.LinkText = document.get...
var useDocumentColors = prefs.GetBoolPref("browser.display.use_document_colors"); if (useDocumentColors) { } else { try { defaultTextColor = prefs.CopyCharPref("browser.display.foreground_color"); defaultLinkColor = prefs.CopyCharPref("browser.anchor_color"); defaultActiveColor = defaultLinkColor;...
defaultTextColor = window.arguments[1].TextColor; defaultLinkColor = window.arguments[1].LinkColor; defaultActiveColor = defaultLinkColor; defaultVisitedColor = window.arguments[1].VisitedLinkColor; defaultBackgroundColor= window.arguments[1].BackgroundColor;
function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) { dump("Failed to create dialog object!!!\n"); window.close(); } dialog.ColorPreview = document.getElementById("ColorPreview"); dialog.NormalText = document.getElementById("NormalText"); dialog.LinkText = document.get...
gBrandBundle = document.getElementById("bundle_brand");
function Startup(){ gPrefutilitiesBundle = document.getElementById("bundle_prefutilities"); var tree = document.getElementById( "skinsTree" ); var theSkinKids = document.getElementById("theSkinKids"); if (theSkinKids.hasChildNodes() && theSkinKids.firstChild) tree.selectItem(theSkinKids.firstChild);}
gExtensionField.value = info.FirstExtension();
gExtensionField.value = info.primaryExtension;
function Startup(){ doSetOKCancel(onOK); gDescriptionField = document.getElementById("description"); gExtensionField = document.getElementById("extensions"); gMIMEField = document.getElementById("mimeType"); gAppPath = document.getElementById("appPath"); gPrefApplicationsBundle = document....
try { var strbundle = srGetStrBundle("chrome: } catch(e) { } var showSkinsDescription = strbundle.GetStringFromName("showskinsdescription"); if( showSkinsDescription == "false" ) { gShowDescription = false; var description = document.getElementById("description"); while (description.hasChildNodes()) description.removeC...
function Startup(){ gPrefutilitiesBundle = document.getElementById("bundle_prefutilities"); gBrandBundle = document.getElementById("bundle_brand"); var tree = document.getElementById( "skinsTree" ); var theSkinKids = document.getElementById("theSkinKids"); if (theSkinKids.hasChildNodes() && theSkinKids.firstChild)...
window.sizeToContent();
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); dump(tagName+" = InsertTable tagName\n"); tableElement = editorShell.CreateElementWithDefaults(tagName); if(!tableElement) { dump("Failed to create a new table!\n"); window.close(); } dump("Rows editbox:"+document.getElement...
data = parent.hPrefWindow.wsm.dataManager.pageData["chrome: if (!("scriptData" in data)){ var changedList = ["allowWindowMoveResizeChanged", "allowWindowStatusChangeChanged", "allowWindowFlipChanged", "allowImageSrcChangeChanged", "allowHideStatusBarChanged"]; data.scriptData = []; for(var run = 0; run < changedList...
function Startup(){ data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-scripts.xul"]; //If scriptData does not exist, then it is the first time the panel was shown and we default to false if (!("scriptData" in data)){ var changedList = ["allowWindowMoveResizeChanged", ...
javascriptEnabledChange(); document.getElementById("AllowList").addEventListener("CheckboxStateChange", onCheckboxCheck, false); parent.hPrefWindow.registerOKCallbackFunc(doOnOk); }
function Startup(){ data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-scripts.xul"]; //If scriptData does not exist, then it is the first time the panel was shown and we default to false if (!("scriptData" in data)){ var changedList = ["allowWindowMoveResizeChanged", ...
appCore = XPAppCoresManager.Find("EditorAppCoreHTML");
appCore = XPAppCoresManager.Find(editorName);
function Startup(){ dump("Doing Character Props Startup...\n"); toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can'...
var interfaceRequestor = getBrowser().docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor); var webProgress = interfaceRequestor.getInterface(Components.interfaces.nsIWebProgress); webProgress.addProgressListener(window.XULBrowserWindow);
getBrowser().addProgressListener(window.XULBrowserWindow);
function Startup(){ // init globals gNavigatorBundle = document.getElementById("bundle_navigator"); gBrandBundle = document.getElementById("bundle_brand"); gNavigatorRegionBundle = document.getElementById("bundle_navigator_region"); gBrandRegionBundle = document.getElementById("bundle_brand_region"); gBrowser = d...
# read the persisted attribute. If it is not present, set a default height. WSucks = parseInt(gBookmarksTree.getAttribute("height")); if (!WSucks) WSucks = 150;
function Startup(){ sizeToContent(); //XXXpch buggy imo, we shouldn't need it initServices(); initBMService(); gName = document.getElementById("name"); gGroup = document.getElementById("addgroup"); gExpander = document.getElementById("expander"); gMenulist = document.getElementById("select-menu"); gBookmarksTr...
dump("Doing Startup...\n");
function Startup(){ dump("Doing Startup...\n"); // get the editor shell from the parent window editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("editorShell not found!!!\n"); window.close(); return; } // Get ...
dump(dialog.heightInput+dialog.widthInput+dialog.shading+dialog.pixelOrPercentButton+"\n");
dump("HLINE PROPS 4\n");
function Startup(){ dump("Doing Startup...\n"); // get the editor shell from the parent window editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("editorShell not found!!!\n"); window.close(); return; } // Get ...
dump("HLINE PROPS 3\n");
function Startup(){ dump("Doing Startup...\n"); // get the editor shell from the parent window editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("editorShell not found!!!\n"); window.close(); return; } // Get ...
menuPopup.appendChild(menuItem);
var child = menuPopup.firstChild; var alreadyThere = false; while (child) { if (child.getAttribute("label") == prefillList[i+2]) { alreadyThere = true; break; } child = child.nextSibling; } if (!alreadyThere) { menuPopup.appendChild(menuItem); }
function Startup() { /* fetch the input */ var list = walletpreview.GetPrefillValue(); var BREAK = list[0]; prefillList = list.split(BREAK); var menuPopup; var count; /* create the fill-in entries */ for (var i=1; i<prefillList.length-2; i+=3) { if(prefillList[i] != 0) { count = prefillList[i]; men...
element = document.getElementById("cookieviewer"); element.setAttribute("title", bundle.GetStringFromName("imageTitle"));
function Startup(){ // xpconnect to cookieviewer interface cookieviewer = Components.classes["component://netscape/cookieviewer/cookieviewer-world"].createInstance(); cookieviewer = cookieviewer.QueryInterface(Components.interfaces.nsICookieViewer); // intialise string bundle for bundle = srGetStrBundle(JS_STRING...
toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } dump("Getting parent appcore\n"); var editorName = document.getElementBy...
var editorName = window.arguments[0];
function Startup(){ dump("Doing Startup...\n"); toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } // te...
if(!appCore || !toolkitCore) {
if(!appCore) {
function Startup(){ dump("Doing Startup...\n"); toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } // te...