rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
window.browserContentListener = new nsBrowserContentListener(window, getBrowser());
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...
setPageAccessKeys(document.getElementById("behaviourDeck").firstChild);
function Startup(){ init(); var navigatorData = gData.navigatorData; var homePages = navigatorData.homePages; if (homePages.length == 1) setHomePageValue(homePages[0]); else setHomePageValue(navigatorData.groupIsSet); updateHomePageButtons();}
debug("*** Pulling out the charset\n");
function Startup(){ window.XULBrowserWindow = new nsXULBrowserWindow(); var webNavigation; try { // Create the browser instance component. appCore = Components.classes["@mozilla.org/appshell/component/browser/instance;1"] .createInstance(Components.interfaces.nsIBrowserInstance); if (...
debug("*** SetDocumentCharset(" + arrayArgComponents[1] + ")\n");
function Startup(){ window.XULBrowserWindow = new nsXULBrowserWindow(); var webNavigation; try { // Create the browser instance component. appCore = Components.classes["@mozilla.org/appshell/component/browser/instance;1"] .createInstance(Components.interfaces.nsIBrowserInstance); if (...
var startPage;
function Startup(){ window.XULBrowserWindow = new nsXULBrowserWindow(); var webNavigation; try { // Create the browser instance component. appCore = Components.classes["@mozilla.org/appshell/component/browser/instance;1"] .createInstance(Components.interfaces.nsIBrowserInstance); if (...
startPage = cmdLineService.URLToLoad;
var startPage = cmdLineService.URLToLoad;
function Startup(){ window.XULBrowserWindow = new nsXULBrowserWindow(); var webNavigation; try { // Create the browser instance component. appCore = Components.classes["@mozilla.org/appshell/component/browser/instance;1"] .createInstance(Components.interfaces.nsIBrowserInstance); if (...
initConsoleListener();
function Startup(){ window.XULBrowserWindow = new nsXULBrowserWindow(); var webNavigation; try { // Create the browser instance component. appCore = Components.classes["@mozilla.org/appshell/component/browser/instance;1"] .createInstance(Components.interfaces.nsIBrowserInstance); if (...
if (window.arguments[4] == "selectFolder") {
switch (window.arguments[4]) { case "selectFolder": document.getElementById("dontaskagain").setAttribute("hidden", "true");
function Startup(){ doSetOKCancel(onOK); gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); gFolderTree = document.getElementById("folders"); var shouldSetOKButton = true; if ("arguments" in window) { // If we're being opened as a folder selection window if (window.arg...
toggleCreateIn();
document.getElementById("createinseparator").setAttribute("hidden", "true"); document.getElementById("nameseparator").setAttribute("hidden", "true"); sizeToContent(); var windowNode = document.getElementById("newBookmarkWindow"); windowNode.setAttribute("title", windowNode.getAttribute("title-selectFolder")); shouldSet...
function Startup(){ doSetOKCancel(onOK); gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); gFolderTree = document.getElementById("folders"); var shouldSetOKButton = true; if ("arguments" in window) { // If we're being opened as a folder selection window if (window.arg...
document.getElementById("createinseparator").setAttribute("hidden", "true");
windowNode = document.getElementById("newBookmarkWindow"); windowNode.removeAttribute("persist"); windowNode.setAttribute("height", "0"); windowNode.setAttribute("width", "0"); windowNode.setAttribute("style", windowNode.getAttribute("style"));
function Startup(){ doSetOKCancel(onOK); gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); gFolderTree = document.getElementById("folders"); var shouldSetOKButton = true; if ("arguments" in window) { // If we're being opened as a folder selection window if (window.arg...
const kWindowNode = document.getElementById("newBookmarkWindow"); kWindowNode.setAttribute("title", kWindowNode.getAttribute("title-selectFolder")); shouldSetOKButton = false; } else { gFld_Name.value = window.arguments[0] || ""; gFld_URL.value = window.arguments[1] || ""; gBookmarkCharset = window.arguments [3] || nul...
gCanBypassDialogMode = false; break; case "addBookmark": document.getElementById("dontaskagain").setAttribute("hidden", "true"); gCanBypassDialogMode = false; default: setupFields(); if (window.arguments[2]) {
function Startup(){ doSetOKCancel(onOK); gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); gFolderTree = document.getElementById("folders"); var shouldSetOKButton = true; if ("arguments" in window) { // If we're being opened as a folder selection window if (window.arg...
onLocationInput();
function Startup(){ doSetOKCancel(onOK); gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); gFolderTree = document.getElementById("folders"); var shouldSetOKButton = true; if ("arguments" in window) { // If we're being opened as a folder selection window if (window.arg...
gFld_Input
function Startup(){ doSetOKCancel(onOK); gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); gFolderTree = document.getElementById("folders"); var shouldSetOKButton = true; if ("arguments" in window) { // If we're being opened as a folder selection window if (window.arg...
dialog.TableHeightInput = document.getElementById("TableHeightInput"); dialog.TableHeightUnits = document.getElementById("TableHeightUnits");
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...
dialog.borderInput = document.getElementById("border");
dialog.borderInput = document.getElementById("borderInput"); dialog.pixelOrPercentSelect = document.getElementById("pixelOrPercentSelect");
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(); } // Create dialog object to store control...
bundle = srGetStrBundle("chrome:
gPrefutilitiesBundle = document.getElementById("bundle_prefutilities");
function Startup() { variableSize = document.getElementById( "sizeVar" ); fixedSize = document.getElementById( "sizeMono" ); languageList = document.getElementById( "selectLangs" ); bundle = srGetStrBundle("chrome://communicator/locale/pref/prefutilities.properties"); // register our ok callback fu...
dialog.heightInput = document.getElementById("heightInput");
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); tableElement = editorShell.CreateElementWithDefaults(tagName); if(!tableElement) { dump("Failed to create a new table!\n"); window.close(); } // Create dialog object to store controls for easy access dialog = new Object;...
dialog.heightPixelOrPercentMenulist = document.getElementById("heightPixelOrPercentMenulist");
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); tableElement = editorShell.CreateElementWithDefaults(tagName); if(!tableElement) { dump("Failed to create a new table!\n"); window.close(); } // Create dialog object to store controls for easy access dialog = new Object;...
document.getElementById("AllowList").addEventListener("CheckboxStateChange", onCheckboxCheck, false);
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", "allowTar...
setOfflineStatus();
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...
for (var i=1; i<prefillList.length-2; i+=3) {
for (var i=1; i<prefillList.length-1; i+=3) {
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...
dump("START DLG\n");
dump("Welcome to EdAdvancedEdit '99 \n");
function Startup(){ dump("START DLG\n"); // This is the return value for the parent, // who only needs to know if OK was clicked window.opener.AdvancedEditOK = false; if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Element to edit is passed in element = window.arguments[1]; if (!element || el...
dialog.AddAttributeNameInput = document.getElementById("AddAttributeNameInput"); dialog.AddAttributeValueInput = document.getElementById("AddAttributeValueInput"); dialog.AddAttribute = document.getElementById("AddAttribute");
dialog.AddHTMLAttributeNameInput = document.getElementById("AddHTMLAttributeNameInput"); dialog.AddHTMLAttributeValueInput = document.getElementById("AddHTMLAttributeValueInput"); dialog.AddHTMLAttribute = document.getElementById("AddHTMLAttribute"); dialog.AddCSSAttributeNameInput = document.getElementById("AddCSSAttr...
function Startup(){ dump("START DLG\n"); // This is the return value for the parent, // who only needs to know if OK was clicked window.opener.AdvancedEditOK = false; if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Element to edit is passed in element = window.arguments[1]; if (!element || el...
BuildAttributeTable();
BuildHTMLAttributeTable(); BuildCSSAttributeTable(); BuildJSEAttributeTable();
function Startup(){ dump("START DLG\n"); // This is the return value for the parent, // who only needs to know if OK was clicked window.opener.AdvancedEditOK = false; if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Element to edit is passed in element = window.arguments[1]; if (!element || el...
createBrowserInstance(); if (appCore == null) { window.close(); }
contentArea.addEventListener("load", UpdateHistory, true); contentArea.addEventListener("load", UpdateBookmarksLastVisitedDate, true); contentArea.addEventListener("load", UpdateInternetSearchResults, true); }
function Startup() { // TileWindow(); // Make sure window fits on screen initially //FitToScreen(); // Create the browser instance component. createBrowserInstance(); if (appCore == null) { // Give up. window.close(); } // Initialize browser instance.. appCore.setWebShellWi...
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...
if ( window.arguments && window.arguments[0] ) onLoadViaOpenDialog(); }
function Startup() { // TileWindow(); // Make sure window fits on screen initially //FitToScreen(); // Create the browser instance component. createBrowserInstance(); if (appCore == null) { // Give up. window.close(); } // Initialize browser instance.. appCore.setWebShellWi...
var pref; pref = Components.classes['@mozilla.org/preferences;1']; pref = pref.getService(); pref = pref.QueryInterface(Components.interfaces.nsIPref);
var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch);
function Startup(){ // xpconnect to cookiemanager interface cookiemanager = Components.classes["@mozilla.org/cookiemanager;1"].getService(); cookiemanager = cookiemanager.QueryInterface(Components.interfaces.nsICookieManager); // xpconnect to permissionmanager interface permissionmanager = Components.classes["@moz...
if (pref.GetBoolPref("imageblocker.enabled")) {
if (pref.getBoolPref("imageblocker.enabled")) {
function Startup(){ // xpconnect to cookiemanager interface cookiemanager = Components.classes["@mozilla.org/cookiemanager;1"].getService(); cookiemanager = cookiemanager.QueryInterface(Components.interfaces.nsICookieManager); // xpconnect to permissionmanager interface permissionmanager = Components.classes["@moz...
dialog.exportToText = document.getElementById('ExportToText');
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); // Create dialog object to store controls for easy access dialog = new Object; dialog.TitleInput = document.getElementById("TitleInput"); dialog.charsetTree = document.getElementById('CharsetTree'); //dialog.charsetRoot =...
gBrowser.addEventListener("load", loadEventHandlers, false);
function Startup(){ // init globals gNavigatorBundle = document.getElementById("bundle_browser"); gBrandBundle = document.getElementById("bundle_brand"); gBrowser = document.getElementById("content"); gURLBar = document.getElementById("urlbar"); gReportButton = document.getElementById("page-report-button"); gBro...
addEventListener("fullscreen", onFullScreen, false);
function Startup(){ // init globals gNavigatorBundle = document.getElementById("bundle_browser"); gBrandBundle = document.getElementById("bundle_brand"); gBrowser = document.getElementById("content"); gURLBar = document.getElementById("urlbar"); gReportButton = document.getElementById("page-report-button"); gBro...
dump('down: '+gExpander.getAttribute("tooltiptextdown")+"\n"); dump('up: '+gExpander.getAttribute("tooltiptextup")+"\n");
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...
gRequiredFields.push(gName);
function Startup(){ initServices(); initBMService(); gName = document.getElementById("name"); gRequiredFields.push(gName); gKeywordRow = document.getElementById("keywordRow"); gKeyword = document.getElementById("keyword"); gExpander = document.getElementById("expander"); gMenulist = document.getElementById("sel...
dialog.TitleInput.focus();
SetTextfieldFocus(dialog.TitleInput);
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Create dialog object to store controls for easy access dialog = new Object; dialog.TitleInput = document.getElementById("TitleInput"); dialog.charsetTree = document.getElementById('CharsetTree'); //dialog.charsetRoot = doc...
defaultFont = document.getElementById( "proportionalFont" );
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.spellChecker = spellChecker;
function Startup(){ if (!InitEditorShell()) return; dump("EditorShell found for Spell Checker dialog\n"); // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // Sav...
window.close();
Close();
function Startup(){ if (!InitEditorShell()) return; dump("EditorShell found for Spell Checker dialog\n"); // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // Sav...
dialog.SuggestedList.focus();
SetTextfieldFocus(dialog.ReplaceWordInput);
function Startup(){ if (!InitEditorShell()) return; dump("EditorShell found for Spell Checker dialog\n"); // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // Sav...
dump("EditorAppCore not found!!!\n");
dump("editorShell not found!!!\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("EditorAppCore not found!!!\n"); window.close(); return; } dum...
dump("EditorAppCore found for Link Properties dialog\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("EditorAppCore not found!!!\n"); window.close(); return; } dum...
dialog.widthInput.focus();
SetTextfieldFocus(dialog.widthInput);
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...
SetCurrentColor(color)
dialog.ColorPicker.color = color;
function Startup(){ if (!window.arguments[1]) { dump("EdColorPicker: Missing color object param\n"); return; } // window.arguments[1] is object to get initial values and return color data gColorObj = window.arguments[1]; gColorObj.Cancel = false; // Create dialog object to store controls for easy access d...
SetTextboxFocus(dialog.ColorInput);
if (!haveTableRadio) dialog.ColorPicker.focus();
function Startup(){ if (!window.arguments[1]) { dump("EdColorPicker: Missing color object param\n"); return; } // window.arguments[1] is object to get initial values and return color data gColorObj = window.arguments[1]; gColorObj.Cancel = false; // Create dialog object to store controls for easy access d...
dialog.urlInput.focus(); dialog.urlInput.select();
SetTextfieldFocus(dialog.urlInput);
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Map OK/Cancel to relevant functions // Create dialog object to store controls for easy access dialog = new Object; dialog.urlInput = document.getElementById("urlInput"); dialog.targetInput = document.getElementById("targetInput...
var panelName;
function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) { dump("Failed to create dialog object!!!\n"); window.close(); } TableElement = editorShell.GetElementOrParentByTagName("table", null); CellElement = editorShell.GetElementOrParentByTagName("td", null); // We allow a ...
TablePanel = document.getElementById("TablePanel"); CellPanel = document.getElementById("CellPanel");
function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) { dump("Failed to create dialog object!!!\n"); window.close(); } TableElement = editorShell.GetElementOrParentByTagName("table", null); CellElement = editorShell.GetElementOrParentByTagName("td", null); // We allow a ...
if (!TabPanel || !TablePanel || !CellPanel || !TableTab || !CellTab) { dump("Not all dialog controls were found!!!\n"); window.close; }
if (window.arguments[1] == "CellPanel") currentPanel = CellPanel;
function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) { dump("Failed to create dialog object!!!\n"); window.close(); } TableElement = editorShell.GetElementOrParentByTagName("table", null); CellElement = editorShell.GetElementOrParentByTagName("td", null); // We allow a ...
var StartPanelName = window.arguments[1];
function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) { dump("Failed to create dialog object!!!\n"); window.close(); } TableElement = editorShell.GetElementOrParentByTagName("table", null); CellElement = editorShell.GetElementOrParentByTagName("td", null); // We allow a ...
tableGlobalElement = TableElement.cloneNode(false);
globalTableElement = TableElement.cloneNode(false);
function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) { dump("Failed to create dialog object!!!\n"); window.close(); } TableElement = editorShell.GetElementOrParentByTagName("table", null); CellElement = editorShell.GetElementOrParentByTagName("td", null); // We allow a ...
cellGlobalElement = CellElement.cloneNode(false);
globalCellElement = CellElement.cloneNode(false);
function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) { dump("Failed to create dialog object!!!\n"); window.close(); } TableElement = editorShell.GetElementOrParentByTagName("table", null); CellElement = editorShell.GetElementOrParentByTagName("td", null); // We allow a ...
if (StartPanelName == "CellPanel")
if (currentPanel == CellPanel)
function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) { dump("Failed to create dialog object!!!\n"); window.close(); } TableElement = editorShell.GetElementOrParentByTagName("table", null); CellElement = editorShell.GetElementOrParentByTagName("td", null); // We allow a ...
TabPanel.setAttribute("index", 1);
TabPanel.setAttribute("index", CellPanel);
function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) { dump("Failed to create dialog object!!!\n"); window.close(); } TableElement = editorShell.GetElementOrParentByTagName("table", null); CellElement = editorShell.GetElementOrParentByTagName("td", null); // We allow a ...
globalElement = cellGlobalElement;
globalElement = globalCellElement;
function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) { dump("Failed to create dialog object!!!\n"); window.close(); } TableElement = editorShell.GetElementOrParentByTagName("table", null); CellElement = editorShell.GetElementOrParentByTagName("td", null); // We allow a ...
globalElement = cellGlobalElement;
globalElement = globalTableElement;
function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) { dump("Failed to create dialog object!!!\n"); window.close(); } TableElement = editorShell.GetElementOrParentByTagName("table", null); CellElement = editorShell.GetElementOrParentByTagName("td", null); // We allow a ...
dialog.BorderWidthCheck = document.getElementById("BorderWidthCheck"); dialog.BorderWidthInput = document.getElementById("BorderWidthInput");
function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) { dump("Failed to create dialog object!!!\n"); window.close(); } TableElement = editorShell.GetElementOrParentByTagName("table", null); CellElement = editorShell.GetElementOrParentByTagName("td", null); // We allow a ...
if (currentPanel == CellPanel) dialog.CellHeightInput.focus(); else dialog.TableHeightInput.focus();
function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) { dump("Failed to create dialog object!!!\n"); window.close(); } TableElement = editorShell.GetElementOrParentByTagName("table", null); CellElement = editorShell.GetElementOrParentByTagName("td", null); // We allow a ...
try { getBrowser().sessionHistory; } catch (e) { webNavigation.sessionHistory = Components.classes["@mozilla.org/browser/shistory;1"] .createInstance(Components.interfaces.nsISHistory); var globalHistory = Components.classes["@mozilla.org/browser/global-history;1"] .getService(Components.interfaces.nsIGlobalHist...
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...
gBookmarkTree = document.getElementById("folder-tree");
gBookmarksTree = document.getElementById("folder-tree");
function Startup(){ sizeToContent(); //XXXpch buggy imo, we shouldn't need it initServices(); initBMService(); gName = document.getElementById("name"); gGroup = document.getElementById("addgroup"); gMenulist = document.getElementById("select-menu"); gBookmarkTree = document.getElementById("folder-tree"); gName...
var lastSelected = gExtensionsView.getAttribute("last-selected"); if (lastSelected != "") lastSelected = document.getElementById(lastSelected); if (!lastSelected) gExtensionsView.goDown(); else gExtensionsView.selectedItem = lastSelected;
gExtensionsView.init();
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 (!element || element == "undefined") {
if (!element || element == undefined) {
function Startup(){ // This is the return value for the parent, // who only needs to know if OK was clicked window.opener.AdvancedEditOK = false; if (!InitEditorShell()) return; // initialise the ok and cancel buttons doSetOKCancel(onOK, onCancel); // load string bundle bundle = srGetStrBundle("chrome://edit...
dump("*** Element passed into Advanced Edit: "+element+" ***\n");
function Startup(){ // This is the return value for the parent, // who only needs to know if OK was clicked window.opener.AdvancedEditOK = false; if (!InitEditorShell()) return; // initialise the ok and cancel buttons doSetOKCancel(onOK, onCancel); // load string bundle bundle = srGetStrBundle("chrome://edit...
tagLabel.setAttribute("value", ("<" + element.nodeName + ">"));
tagLabel.setAttribute("value", ("<" + element.localName + ">"));
function Startup(){ // This is the return value for the parent, // who only needs to know if OK was clicked window.opener.AdvancedEditOK = false; if (!InitEditorShell()) return; // initialise the ok and cancel buttons doSetOKCancel(onOK, onCancel); // load string bundle bundle = srGetStrBundle("chrome://edit...
dialog = new Object;
dialog = {};
function Startup(){ // This is the return value for the parent, // who only needs to know if OK was clicked window.opener.AdvancedEditOK = false; if (!InitEditorShell()) return; // initialise the ok and cancel buttons doSetOKCancel(onOK, onCancel); // load string bundle bundle = srGetStrBundle("chrome://edit...
if (!linkTextInput || !hrefInput || !linkMessage || !linkCaption) { dump("Not all dialog controls were found!!!\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("11\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...
var app = info.preferredApplicationHandler;
var app = info.preferredApplicationHandler || window.arguments[0].chosenApp;
function Startup(){ doSetOKCancel(onOK); gDescriptionField = document.getElementById("description"); gExtensionField = document.getElementById("extensions"); gMIMEField = document.getElementById("mimeType"); gAppPath = document.getElementById("appPath"); gPrefApplicationsBundle = document....
dialog.pixelOrPercentSelect = document.getElementById("pixelOrPercentSelect");
function Startup(){ 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 not selected! Shouldn't be here!\n"); ...
webNavigation.sessionHistory = Components.classes["@mozilla.org/browser/shistory;1"] .createInstance(Components.interfaces.nsISHistory);
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...
resolution.selectedItem.setAttribute("current", "true");
function Startup() { variableSize = document.getElementById( "sizeVar" ); fixedSize = document.getElementById( "sizeMono" ); languageList = document.getElementById( "selectLangs" ); gPrefutilitiesBundle = document.getElementById("bundle_prefutilities"); // register our ok callback function parent....
dump("pixelOrPercentSelect:"+document.getElementById("pixelOrPercentSelect")+"\n");
dump("pixelOrPercentMenulist:"+document.getElementById("pixelOrPercentMenulist")+"\n");
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...
dialog.pixelOrPercentSelect = document.getElementById("pixelOrPercentSelect");
dialog.pixelOrPercentMenulist = document.getElementById("pixelOrPercentMenulist");
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...
if (window.opener) {
if (window.opener && !window.opener.closed) {
function Startup(){ gBrowser = document.getElementById("content"); var uriToLoad = null; // Check for window.arguments[0]. If present, use that for uriToLoad. if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0]) uriToLoad = window.arguments[0]; gIsLoadingBlank = uriToLoad == "about:...
if ("arguments" in window && window.arguments.length >= 3 && window.arguments[2] == true)
if ("arguments" in window && window.arguments.length >= 3 && window.arguments[2] == true || !window.locationbar.visible)
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...
var okButton = document.getElementById("ok"); if (okButton) { okButton.removeAttribute("default"); okButton.setAttribute("value",GetString("Insert")); }
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Create dialog object to store controls for easy access srcInput = document.getElementById("srcInput"); selection = editorShell.GetContentsAs("text/html", 35); selection = (selection.replace(/<body[^>]*>/,"")).replace(/<\/body>/...
srcInput.focus();
srcInput.focus;
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Create dialog object to store controls for easy access srcInput = document.getElementById("srcInput"); selection = editorShell.GetContentsAs("text/html", 35); selection = (selection.replace(/<body[^>]*>/,"")).replace(/<\/body>/...
#ifdef MOZ_PHOENIX
function Startup() { var folderList = document.getElementById("downloadFolderList"); const nsILocalFile = Components.interfaces.nsILocalFile; var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); try { va...
#endif
function Startup() { var folderList = document.getElementById("downloadFolderList"); const nsILocalFile = Components.interfaces.nsILocalFile; var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); try { va...
_content.focus();
setTimeout("_content.focus();", 0);
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...
gURLBar.focus();
setTimeout("gURLBar.focus();", 0);
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...
var tree = document.getElementById( "skinsTree" );
var list = document.getElementById( "skinsList" );
function Startup(){ gData = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; var tree = document.getElementById( "skinsTree" ); if (gData.loaded) { tree.selectedIndex = gData.themeIndex; return; } gData.loaded = true; parent.hPrefWindow.registerOKCallbac...
tree.selectedIndex = gData.themeIndex;
list.selectedIndex = gData.themeIndex;
function Startup(){ gData = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; var tree = document.getElementById( "skinsTree" ); if (gData.loaded) { tree.selectedIndex = gData.themeIndex; return; } gData.loaded = true; parent.hPrefWindow.registerOKCallbac...
var theSkinKids = document.getElementById("theSkinKids");
function Startup(){ gData = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; var tree = document.getElementById( "skinsTree" ); if (gData.loaded) { tree.selectedIndex = gData.themeIndex; return; } gData.loaded = true; parent.hPrefWindow.registerOKCallbac...
for (var i = 0; i < theSkinKids.childNodes.length; ++i) { var child = theSkinKids.childNodes[i];
for (var i = 0; i < list.childNodes.length; ++i) { var child = list.childNodes[i];
function Startup(){ gData = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; var tree = document.getElementById( "skinsTree" ); if (gData.loaded) { tree.selectedIndex = gData.themeIndex; return; } gData.loaded = true; parent.hPrefWindow.registerOKCallbac...
tree.selectItem(child);
list.selectItem(child);
function Startup(){ gData = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; var tree = document.getElementById( "skinsTree" ); if (gData.loaded) { tree.selectedIndex = gData.themeIndex; return; } gData.loaded = true; parent.hPrefWindow.registerOKCallbac...
var homepage; try { homepage = pref.CopyUnicharPref("browser.startup.homepage"); } catch(e) { homepage = null; } if (homepage) setTooltipText("homebutton", 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 up...
throw Components.results.NS_ERROR_FAILURE;
throw "couldn't create a browser instance";
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...
throw Components.results.NS_ERROR_FAILURE;
throw "no XBL binding for browser";
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...
alert("Error creating browser instance");
alert("Error launching browser window:" + e);
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...
dialog.LanguageList = document.getElementById("LanguageList");
dialog.LanguageMenulist = document.getElementById("LanguageMenulist");
function Startup(){ if (!InitEditorShell()) return; dump("EditorShell found for Spell Checker dialog\n"); // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // Sav...
!dialog.LanguageList )
!dialog.LanguageMenulist )
function Startup(){ if (!InitEditorShell()) return; dump("EditorShell found for Spell Checker dialog\n"); // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // Sav...
dialog.LanguageList.selectedIndex = 0; dump("Language Listed Index = "+dialog.LanguageList.selectedIndex+"\n");
dump("Language Listed Index = "+dialog.LanguageMenulist.selectedIndex+"\n");
function Startup(){ if (!InitEditorShell()) return; dump("EditorShell found for Spell Checker dialog\n"); // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // Sav...
StartupHangul();
doSetOKCancel(onOK, null); var okButton = document.getElementById("ok"); if (okButton) okButton.setAttribute("value",GetString("Insert"));
function Startup(){ if (!InitEditorShell()) return; // Let's try this out without the Korean portion StartupLatin(); StartupHangul(); window.sizeToContent();}
Registry.openWellKnownRegistry(Registry.ApplicationRegistry);
Registry.open(regFile.path);
function StartUp(){ SetUpOKCancelButtons(); centerWindowOnScreen(); if(window.location && window.location.search && window.location.search == "?manage=true" ) SwitchProfileManagerMode(); Registry = Components.classes['component://netscape/registry'].createInstance(); Registry = Registry.QueryInterface(Component...
try { var ioService = nsJSComponentManager.getServiceByID("{9ac9e770-18bc-11d3-9337-00104ba0fd40}", "nsIIOService");
if (gStartupMode) { var ioService = Components.classes["@mozilla.org/network/io-service;1"]. getService(Components.interfaces.nsIIOService);
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...
catch(e) {
else { offlineState.hidden = true;
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...
var autoSelectLastProfile = document.getElementById("autoSelectLastProfile"); autoSelectLastProfile.checked = profile.startWithLastUsedProfile;
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...
okButton.setAttribute("accesskey",GetString("InsertAccessKey"));
function Startup(){ if (!InitEditorShell()) return; var okButton = document.documentElement.getButton("accept"); if (okButton) { okButton.removeAttribute("default"); okButton.setAttribute("label",GetString("Insert")); } // Create dialog object to store controls for easy access srcInput = document.getEle...
gTagListBox = document.getElementById('tagList'); BuildTagList();
parent.hPrefWindow.registerOKCallbackFunc(OnOK);
function Startup(){ gTagListBox = document.getElementById('tagList'); BuildTagList();}
prefValue = "0";
prefValue = "1";
function Startup(){ updateButtons('popup', 'install', 'javascript'); gImagesPref = document.getElementById("enableImagePref"); gImagesEnabled = document.getElementById("enableImages"); gImagesRestricted = document.getElementById("enableRestricted"); var prefValue = gImagesPref.getAttribute("value"); if (!prefVa...
gImagesRestricted.checked = true; case "0":
function Startup(){ updateButtons('popup', 'install', 'javascript'); gImagesPref = document.getElementById("enableImagePref"); gImagesEnabled = document.getElementById("enableImages"); gImagesRestricted = document.getElementById("enableRestricted"); var prefValue = gImagesPref.getAttribute("value"); if (!prefVa...