rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
PlaySoundCheck(); | function Startup(){ var startupFunc; try { startupFunc = document.getElementById("mailnewsEnableMapi").getAttribute('startupFunc'); } catch (ex) { startupFunc = null; } if (startupFunc) eval(startupFunc); StartPageCheck();} | |
element = document.getElementById("signonTab"); element.setAttribute("style","display: inline;" ); element = document.getElementById("signonSitesTab"); element.setAttribute("style","display: inline;" ); | function Startup(){ signonviewer = Components.classes["@mozilla.org/signonviewer/signonviewer-world;1"].createInstance(); signonviewer = signonviewer.QueryInterface(Components.interfaces.nsISignonViewer); doSetOKCancel(onOK, null); // init ok event handler // remove wallet functions (unless overruled by the "walle... | |
element.setAttribute("style","display: inline;" ); | element.setAttribute("style","display: block;" ); | function Startup(){ signonviewer = Components.classes["@mozilla.org/signonviewer/signonviewer-world;1"].createInstance(); signonviewer = signonviewer.QueryInterface(Components.interfaces.nsISignonViewer); doSetOKCancel(onOK, null); // init ok event handler // remove wallet functions (unless overruled by the "walle... |
profilesElement.selectedItem = listitem; | setTimeout(function f(a) { profilesElement.selectedItem = a; }, 0, listitem); | function startup(){ try { gDialogParams = window.arguments[0]. QueryInterface(I.nsIDialogParamBlock); gProfileService = C[ToolkitProfileService].getService(I.nsIToolkitProfileService); gProfileManagerBundle = document.getElementById("bundle_profileManager"); gBrandBundle = document.getElementById("bun... |
var regFolder = dirServ.get("AppRegD", Components.interfaces.nsIFile); dump("New location for profile registry and user profile directories is -> " + regFolder.path + "\n"); | 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 dir = prefWindow.getPref("localfile", kCacheParentDirPref); | dir = prefWindow.getPref("localfile", kCacheParentDirPref); | function Startup(){ var prefWindow = parent.hPrefWindow; gFolderField = document.getElementById("browserCacheDiskCacheFolder"); var dir = prefWindow.getPref("localfile", kCacheParentDirPref); if (dir == "!/!ERROR_UNDEFINED_PREF!/!") { try { // no disk cache folder found; default to profile directory ... |
dir = dirSvc.get("ProfD", nsILocalFile); prefWindow.setPref("localfile", kCacheParentDirPref, dir); | if (dirSvc.has("ProfLD")) dir = dirSvc.get("ProfLD", nsILocalFile); else dir = dirSvc.get("ProfD", nsILocalFile); | function Startup(){ var prefWindow = parent.hPrefWindow; gFolderField = document.getElementById("browserCacheDiskCacheFolder"); var dir = prefWindow.getPref("localfile", kCacheParentDirPref); if (dir == "!/!ERROR_UNDEFINED_PREF!/!") { try { // no disk cache folder found; default to profile directory ... |
var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); observerService.notifyObservers(null, "charsetmenu-selected", "other"); | function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); gDialog.TitleInput = document.getElementById("TitleInput"); gDialog.charsetTree = document.getElementById('CharsetTree'); gDialog.exportToText = document.getElementById('ExportToText'); contenttypeElement = GetHTTPEquivMe... | |
SetTextfieldFocus(nameInput); | SetTextboxFocus(nameInput); | function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); nameInput = document.getElementById("nameInput"); // Get a single selected element of the desired type anchorElement = editorShell.GetSelectedElement(tagName); if (anchorElement) { // We found an element and don't need to ins... |
{ if (top.opener) { var browser = top.opener.document.getElementById("content"); | { var useButton = document.getElementById("browserUseCurrent"); try { var browser = top.opener.document.getElementById("content"); | function Startup(){ if (top.opener) { var browser = top.opener.document.getElementById("content"); var l = browser.mPanelContainer.childNodes.length; if (l > 1) { var useButton = document.getElementById("browserUseCurrent"); useButton.label = useButton.getAttribute("label2"); } } parent.hPref... |
if (l > 1) { var useButton = document.getElementById("browserUseCurrent"); | if (l > 1) | function Startup(){ if (top.opener) { var browser = top.opener.document.getElementById("content"); var l = browser.mPanelContainer.childNodes.length; if (l > 1) { var useButton = document.getElementById("browserUseCurrent"); useButton.label = useButton.getAttribute("label2"); } } parent.hPref... |
} | } catch (e) { useButton.disabled = true; | function Startup(){ if (top.opener) { var browser = top.opener.document.getElementById("content"); var l = browser.mPanelContainer.childNodes.length; if (l > 1) { var useButton = document.getElementById("browserUseCurrent"); useButton.label = useButton.getAttribute("label2"); } } parent.hPref... |
SetTextfieldFocus(dialog.TitleInput); | SetTextboxFocus(dialog.TitleInput); | 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 =... |
if (!gDateService) { gDateService = Components.classes[nsScriptableDateFormat_CONTRACTID] .getService(nsIScriptableDateFormat); } | 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... | |
var dirServ = Components.classes['component: | var dirServ = Components.classes['@mozilla.org/file/directory_service;1'].createInstance(); | function StartUp(){ SetUpOKCancelButtons(); centerWindowOnScreen(); if(window.location && window.location.search && window.location.search == "?manage=true" ) SwitchProfileManagerMode(); var dirServ = Components.classes['component://netscape/file/directory_service'].createInstance(); dirServ = dirServ.QueryInte... |
Registry = Components.classes['component: | Registry = Components.classes['@mozilla.org/registry;1'].createInstance(); | function StartUp(){ SetUpOKCancelButtons(); centerWindowOnScreen(); if(window.location && window.location.search && window.location.search == "?manage=true" ) SwitchProfileManagerMode(); var dirServ = Components.classes['component://netscape/file/directory_service'].createInstance(); dirServ = dirServ.QueryInte... |
if ("arguments" in window && window.arguments[2] == true) | if ("arguments" in window && window.arguments.length >= 3 && window.arguments[2] == true) | function Startup(){ gNavigatorBundle = document.getElementById("bundle_navigator"); gBrandBundle = document.getElementById("bundle_brand"); gNavigatorRegionBundle = document.getElementById("bundle_navigator_region"); gBrandRegionBundle = document.getElementById("bundle_brand_region"); window.XULBrowserWindow = new... |
SetTextfieldFocus(WordInput); | SetTextboxFocus(WordInput); | function Startup(){ if (!InitEditorShell()) return; dump("EditoreditorShell found for dialog\n"); // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // The word t... |
setTimeout("_content.focus();", 0); | setTimeout(WindowFocusTimerCallback, 0, _content); | 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... |
setTimeout("gURLBar.focus();", 0); | setTimeout(WindowFocusTimerCallback, 0, gURLBar); | 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 index in settings ) { var setting = settings[ index ]; var checkbox = document.getElementById( setting ); if ( checkbox && prefs[ setting ] ) { checkbox.setAttribute( "checked", "true" ); } } | parent.winHooks.winhooks = winhooks; parent.winHooks.prefs = prefs; parent.hPrefWindow.registerOKCallbackFunc( onOK ); | function Startup() { if ( !winhooks ) { // Get component service. try { winhooks = Components.classes[ "@mozilla.org/winhooks;1" ].getService( Components.interfaces.nsIWindowsHooks ); if ( winhooks ) { // Try to get preferences. prefs = winhooks.setti... |
alert( "Rats!" ); | function Startup() { if ( !winhooks ) { // Get component service. try { winhooks = Components.classes[ "@mozilla.org/winhooks;1" ].getService( Components.interfaces.nsIWindowsHooks ); if ( winhooks ) { // Try to get preferences. prefs = winhooks.setti... | |
if ( winhooks && prefs && parent && parent.hPrefWindow ) { parent.hPrefWindow.registerOKCallbackFunc( onOK ); | for( var index in settings ) { var setting = settings[ index ]; var checkbox = document.getElementById( setting ); if ( checkbox && prefs[ setting ] ) { checkbox.setAttribute( "checked", "true" ); } | function Startup() { if ( !winhooks ) { // Get component service. try { winhooks = Components.classes[ "@mozilla.org/winhooks;1" ].getService( Components.interfaces.nsIWindowsHooks ); if ( winhooks ) { // Try to get preferences. prefs = winhooks.setti... |
const kPrefSvcContractID = "@mozilla.org/preferences;1"; const kPrefSvcIID = Components.interfaces.nsIPref; | const kPrefSvcContractID = "@mozilla.org/preferences-service;1"; const kPrefSvcIID = Components.interfaces.nsIPrefService; | function Startup(){ gData = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; var list = document.getElementById( "skinsList" ); if ("loaded" in gData && "themeIndex" in gData) { list.selectedIndex = gData.themeIndex; return; } gData.loaded = true; parent... |
list = walletpreview.GetPrefillValue(); BREAK = list[0]; | var list = walletpreview.GetPrefillValue(); var BREAK = list[0]; | function Startup() { /* fetch the input */ list = walletpreview.GetPrefillValue(); BREAK = list[0]; prefillList = list.split(BREAK); /* create the heading */ var heading = document.getElementById("walletpreview"); heading.setAttribute("title", bundle.GetStringFromName("title")); var heading = document.getElemen... |
var heading = document.getElementById("walletpreview"); heading.setAttribute("title", bundle.GetStringFromName("title")); | var title = document.getElementById("walletpreview"); title.setAttribute("title", bundle.GetStringFromName("title")); | function Startup() { /* fetch the input */ list = walletpreview.GetPrefillValue(); BREAK = list[0]; prefillList = list.split(BREAK); /* create the heading */ var heading = document.getElementById("walletpreview"); heading.setAttribute("title", bundle.GetStringFromName("title")); var heading = document.getElemen... |
for (i=1; i<prefillList.length-2; i+=3) { | for (var i=1; i<prefillList.length-2; i+=3) { | function Startup() { /* fetch the input */ list = walletpreview.GetPrefillValue(); BREAK = list[0]; prefillList = list.split(BREAK); /* create the heading */ var heading = document.getElementById("walletpreview"); heading.setAttribute("title", bundle.GetStringFromName("title")); var heading = document.getElemen... |
var treeCell0 = document.createElement("treecell"); treeCell0.setAttribute("value", prefillList[i+1]) | var textField = document.createElement("textfield"); textField.setAttribute("value", prefillList[i+1]); textField.setAttribute("readonly", "true"); | function Startup() { /* fetch the input */ list = walletpreview.GetPrefillValue(); BREAK = list[0]; prefillList = list.split(BREAK); /* create the heading */ var heading = document.getElementById("walletpreview"); heading.setAttribute("title", bundle.GetStringFromName("title")); var heading = document.getElemen... |
var treeCell = document.createElement("treecell"); treeCell.appendChild(menuList); | var row = document.createElement("row"); row.appendChild(textField); row.appendChild(menuList); | function Startup() { /* fetch the input */ list = walletpreview.GetPrefillValue(); BREAK = list[0]; prefillList = list.split(BREAK); /* create the heading */ var heading = document.getElementById("walletpreview"); heading.setAttribute("title", bundle.GetStringFromName("title")); var heading = document.getElemen... |
var treeRow = document.createElement("treerow"); treeRow.appendChild(treeCell0); treeRow.appendChild(treeCell); | var rows = document.getElementById("rows"); rows.appendChild(row); | function Startup() { /* fetch the input */ list = walletpreview.GetPrefillValue(); BREAK = list[0]; prefillList = list.split(BREAK); /* create the heading */ var heading = document.getElementById("walletpreview"); heading.setAttribute("title", bundle.GetStringFromName("title")); var heading = document.getElemen... |
var treeItem = document.createElement("treeitem"); treeItem.appendChild(treeRow); var treeChildren = document.getElementById("combolists"); treeChildren.appendChild(treeItem); | function Startup() { /* fetch the input */ list = walletpreview.GetPrefillValue(); BREAK = list[0]; prefillList = list.split(BREAK); /* create the heading */ var heading = document.getElementById("walletpreview"); heading.setAttribute("title", bundle.GetStringFromName("title")); var heading = document.getElemen... | |
dialogElement.setAttribute("title", dialogElement.getAttribute("selectFolderTitle")); | document.title = dialogElement.getAttribute("selectFolderTitle"); | 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... |
return; | function Startup(){ //XXX Very weird! When calling this with an existing image, // we get called twice. That causes dialog layout // to explode to fullscreen! if (StartupCalled) { dump("*** CALLING IMAGE DIALOG Startup() AGAIN! ***\n"); return; } StartupCalled = true; if (!InitEditorShell()) retu... | |
.classes["component: | .classes["@mozilla.org/embedding/browser/nsCommandHandler;1"] | 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); // create t... |
const kRDF = gBookmarksShell.RDF; const krNavCenter = kRDF.GetResource("NC:NavCenter"); const kRDFCUtilsContractID = "@mozilla.org/rdf/container-utils;1"; const kRDFCUtilsIID = Components.interfaces.nsIRDFContainerUtils; const kRDFCUtils = Components.classes[kRDFCUtilsContractID].getService(kRDFCUtilsIID); const kNC_Na... | function Startup(){ // Create the Bookmarks Shell var bookmarksTree = document.getElementById("bookmarksTree"); gBookmarksShell = new BookmarksWindowTree (bookmarksTree.database); // Set up the tree controller bookmarksTree.controllers.appendController(gBookmarksShell.controller); const windowNode = document.getE... | |
const klBookmarksRootName = kRDF.GetLiteral(rootfoldername); const kBMDS = kRDF.GetDataSource("rdf:bookmarks"); kBMDS.Assert(krBookmarksRoot, krName, klBookmarksRootName, true); kNC_NavCenter.AppendElement(krBookmarksRoot); | function Startup(){ // Create the Bookmarks Shell var bookmarksTree = document.getElementById("bookmarksTree"); gBookmarksShell = new BookmarksWindowTree (bookmarksTree.database); // Set up the tree controller bookmarksTree.controllers.appendController(gBookmarksShell.controller); const windowNode = document.getE... | |
const krType = kRDF.GetResource(RDF_NS + "type"); const krFolderType = kRDF.GetResource(NC_NS + "Folder"); gBookmarksShell.db.Assert(krNavCenter, krType, krFolderType, true); | function Startup(){ // Create the Bookmarks Shell var bookmarksTree = document.getElementById("bookmarksTree"); gBookmarksShell = new BookmarksWindowTree (bookmarksTree.database); // Set up the tree controller bookmarksTree.controllers.appendController(gBookmarksShell.controller); const windowNode = document.getE... | |
var children = document.getElementById("treechildren-bookmarks"); if (children.firstChild) { bookmarksTree.selectItem(children.firstChild); children.firstChild.setAttribute("open", "true"); } var node = document.getElementById("NC:BookmarksRoot"); if (node.localName == "menubutton") node.removeAttribute("open"); | function Startup(){ // Create the Bookmarks Shell var bookmarksTree = document.getElementById("bookmarksTree"); gBookmarksShell = new BookmarksWindowTree (bookmarksTree.database); // Set up the tree controller bookmarksTree.controllers.appendController(gBookmarksShell.controller); const windowNode = document.getE... | |
winhooks = Components.classes[ "component: | winhooks = Components.classes[ "@mozilla.org/winhooks;1" ].getService( Components.interfaces.nsIWindowsHooks ); | function Startup() { if ( !winhooks ) { // Get component service. try { winhooks = Components.classes[ "component://mozilla/winhooks" ].getService( Components.interfaces.nsIWindowsHooks ); if ( winhooks ) { // Try to get preferences. prefs = winhooks.... |
sizeToContent(); | function Startup(){ sizeToContent(); //XXXpch buggy imo, we shouldn't need it initServices(); initBMService(); gName = document.getElementById("name"); gRequiredFields.push(gName); gKeywordRow = document.getElementById("keywordRow"); gKeyword = document.getElementById("keyword"); gGroup = document.getElementByI... | |
gKeyword.value = window.arguments[7]; | gSuggestedKeyword = window.arguments[7]; | function Startup(){ sizeToContent(); //XXXpch buggy imo, we shouldn't need it initServices(); initBMService(); gName = document.getElementById("name"); gRequiredFields.push(gName); gKeywordRow = document.getElementById("keywordRow"); gKeyword = document.getElementById("keyword"); gGroup = document.getElementByI... |
if (!window.arguments[7] && !gKeywordRequired) | if (!gSuggestedKeyword && !gKeywordRequired) { | function Startup(){ sizeToContent(); //XXXpch buggy imo, we shouldn't need it initServices(); initBMService(); gName = document.getElementById("name"); gRequiredFields.push(gName); gKeywordRow = document.getElementById("keywordRow"); gKeyword = document.getElementById("keyword"); gGroup = document.getElementByI... |
if (gKeywordRequired) gRequiredFields.push(gKeyword); | } else { if (gSuggestedKeyword) gKeyword.value = gSuggestedKeyword; if (gKeywordRequired) gRequiredFields.push(gKeyword); } sizeToContent(); | function Startup(){ sizeToContent(); //XXXpch buggy imo, we shouldn't need it initServices(); initBMService(); gName = document.getElementById("name"); gRequiredFields.push(gName); gKeywordRow = document.getElementById("keywordRow"); gKeyword = document.getElementById("keyword"); gGroup = document.getElementByI... |
return; | function Startup(){ if (!InitEditorShell()) return; // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // Start the spell checker module. try { spellChecker.Init... | |
xulBrowserWin = new nsXULBrowserWindow(); window.addXPConnectObject("XULBrowserWindow", xulBrowserWin); | window.XULBrowserWindow = new nsXULBrowserWindow(); | function Startup() { xulBrowserWin = new nsXULBrowserWindow(); window.addXPConnectObject("XULBrowserWindow", xulBrowserWin); // TileWindow(); // Make sure window fits on screen initially //FitToScreen(); // Create the browser instance component. createBrowserInstance(); if (appCore == null) { ... |
if (!startPage && "arguments" in window && window.arguments.length > 0) startPage = window.arguments[0]; | if (!startPage) { if ("arguments" in window && window.arguments.length > 0) { startPage = window.arguments[0]; } else { var cmdLineHandler = Components.classes["@mozilla.org/commandlinehandler/general-startup;1?type=browser"] .getService(Components.interfaces.nsICmdLineHandler); startPage = cmdLineHandler.defaultArgs;... | 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 (... |
SetTextfieldFocus(dialog.srcInput); | SetTextboxFocus(dialog.srcInput); | function Startup(){ //XXX Very weird! When calling this with an existing image, // we get called twice. That causes dialog layout // to explode to fullscreen! if (StartupCalled) { dump("*** CALLING IMAGE DIALOG Startup() AGAIN! ***\n"); return; } StartupCalled = true; if (!InitEditorShell()) ret... |
{ window.XULBrowserWindow = new nsXULBrowserWindow(); | { window.XULBrowserWindow = new nsXULBrowserWindow(); var webNavigation; try { | 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... |
createBrowserInstance(); window._content.appCore= appCore; if (appCore == null) { window.close(); | appCore = Components.classes["@mozilla.org/appshell/component/browser/instance;1"] .createInstance(Components.interfaces.nsIBrowserInstance); if (!appCore) throw Components.results.NS_ERROR_FAILURE; webNavigation = getWebNavigation(); if (!webNavigation) throw Components.results.NS_ERROR_FAILURE; } catch (e) { alert("... | 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.setWebShellWindow(window); var url_bar = document.getElementById("urlbar"); if ( url_bar ) url_bar.focus(); | } | 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... |
setOfflineStatus(); tryToSetContentWindow(); var contentArea = document.getElementById("appcontent"); if (contentArea) { contentArea.addEventListener("load", loadEventHandlers, true); contentArea.addEventListener("focus", contentAreaFrameFocus, true); | try { var searchMode = pref.GetIntPref("browser.search.mode"); setBrowserSearchMode(searchMode); } catch (ex) { } var homePage = getHomePage(); if (homePage) document.getElementById("home-button").setAttribute("tooltiptext", homePage); if ("arguments" in window && window.arguments.length > 0) { if (document.getEl... | 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... |
dump("*** Pulling out the charset\n"); if ( window.arguments && window.arguments.length > 1 ) { if (window.arguments[1].indexOf('charset=') != -1) { var arrayArgComponents = window.arguments[1].split('='); if (arrayArgComponents) { if (appCore != null) { appCore.SetDocumentCharset(arrayArgComponents[1]); } dump("*** S... | debug("Loading page specified via openDialog\n"); loadURI(window.arguments[0]); } | 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... |
try { var searchMode = pref.GetIntPref("browser.search.mode"); setBrowserSearchMode(searchMode); } catch(ex) { } | initConsoleListener(); | 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... |
if ( window.arguments && window.arguments[0] ) { onLoadViaOpenDialog(); } gURLBar = document.getElementById("urlbar"); var homepage; try { homepage = pref.getLocalizedUnicharPref("browser.startup.homepage"); } catch(e) { homepage = null; } if (homepage) setTooltipText("home-button", homepage); initConsoleListener()... | checkForDefaultBrowser(); } | 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... |
if(! contenttypeElement ) | if(!contenttypeElement && (editorShell.contentsMIMEType != 'text/plain')) | 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.exportToText =... |
SetTextfieldFocus(dialog.widthInput); | SetTextboxFocus(dialog.widthInput); | function Startup(){ dump("HLine Properties startup...\n"); if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); // Get the selected horizontal line hLineElement = editorShell.GetSelectedElement(tagName); if (!hLineElement) { // We should never be here if not editing an existing HLine dump("HLin... |
document.getElementById("togglePasswords").label = kSignonBundle.getString(showingPasswords ? "hidePasswords" : "showPasswords"); | 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... | |
gGetMoreURL = pref.getComplexValue(isExtensions ? PREF_EXTENSIONS_GETMOREEXTENSIONSURL : PREF_EXTENSIONS_GETMORETHEMESURL, Components.interfaces.nsIPrefLocalizedString).data; var app = Components.classes["@mozilla.org/xre/app-info;1"] .getService(Components.interfaces.nsIXULAppInfo); gGetMoreURL = gGetMoreURL.replace(/... | 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... | |
getMore.setAttribute("value", getMore.getAttribute(isExtensions ? "valueextensions" : "valuethemes")); getMore.setAttribute("tooltiptext", getMore.getAttribute(isExtensions ? "tooltiptextextensions" : "tooltiptextthemes")); getMore.setAttribute('href', gGetMoreURL); | try { var getMoreURL = pref.getComplexValue(isExtensions ? PREF_EXTENSIONS_GETMOREEXTENSIONSURL : PREF_EXTENSIONS_GETMORETHEMESURL, Components.interfaces.nsIPrefLocalizedString).data; var app = Components.classes["@mozilla.org/xre/app-info;1"] .getService(Components.interfaces.nsIXULAppInfo); getMoreURL = getMoreURL.re... | 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... |
cookieviewer = Components.classes["component: | cookieviewer = Components.classes["@mozilla.org/cookieviewer/cookieviewer-world;1"].createInstance(); | 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... |
pref = Components.classes['component: | pref = Components.classes['@mozilla.org/preferences;1']; | 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... |
javascriptEnabledChange() | function Startup(){ policyButton = document.getElementById("popupPolicy"); manageTree = document.getElementById("permissionsTree"); togglePermissionEnabling(); loadPermissions(); var imagesEnabled = document.getElementById("enableImages").checked; var imageBroadcaster = document.getElementById("imageBroadcaster... | |
sizeToContent(); moveToAlertPosition(); | function Startup(){ doSetOKCancel(onOK); gDescriptionField = document.getElementById("description"); gExtensionField = document.getElementById("extensions"); gMIMEField = document.getElementById("mimeType"); gAppPath = document.getElementById("appPath"); gPrefApplicationsBundle = document.... | |
defaultActiveColor = defaultLinkColor; | defaultActiveColor = browserColors.ActiveLinkColor; | function Startup(){ var editor = GetCurrentEditor(); if (!editor) { window.close(); return; } gDialog.ColorPreview = document.getElementById("ColorPreview"); gDialog.NormalText = document.getElementById("NormalText"); gDialog.LinkText = document.getElementById("LinkText"); gDialog.ActiveLinkText = documen... |
doSetOKCancel(find); | function Startup(){ doSetOKCancel(find); var bundle = document.getElementById("historyBundle"); gOKButton = document.getElementById("ok"); gOKButton.label = bundle.getString("search_button_label"); gOKButton.disabled = true; gSearchField = document.getElementById("searchField"); gSearchField.focus();} | |
gIOService = Components.classes["@mozilla.org/network/io-service;1"] .getService(nsIIOService); gPrompt = document.getElementById("autoDownload"); gLocation = document.getElementById("downloadLocation"); gChooseButton = document.getElementById("chooseDownloadFolder"); gFolderField = document.getElementBy... | function Startup(){ PlaySoundCheck(); // if we don't have the alert service, hide the pref UI for using alerts to notify on download completion // see bug #158711 var downloadDoneNotificationAlertUI = document.getElementById("finishedNotificationAlert"); downloadDoneNotificationAlertUI.hidden = !("@mozilla.org/ale... | |
SetTextfieldFocus(dialog.ColorInput); | SetTextboxFocus(dialog.ColorInput); | function Startup(){ if (!window.arguments[1]) { dump("EdColorPicker: Missing color object param\n"); return; } window.arguments[1].Cancel = false; // Create dialog object to store controls for easy access dialog = new Object; dialog.ColorPicker = document.getElementById("ColorPicker"); dialog.ColorIn... |
gApp = Components.classes["@mozilla.org/xre/app-info;1"].getService(Components.interfaces.nsIXULAppInfo) .QueryInterface(Components.interfaces.nsIXULRuntime); | 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 (pref.prefHasUserValue(PREF_EM_LAST_SELECTED_SKIN)) gCurrentTheme = pref.getCharPref(PREF_EM_LAST_SELECTED_SKIN); else if (pref.prefHasUserValue(PREF_GENERAL_SKINS_SELECTEDSKIN)) gCurrentTheme = pref.getCharPref(PREF_GENERAL_SKINS_SELECTEDSKIN); if (!gCurrentTheme) gCurrentTheme = KEY_DEFAULT_THEME; | try { gCurrentTheme = pref.getCharPref(PREF_GENERAL_SKINS_SELECTEDSKIN); gDefaultTheme = defaultPref.getCharPref(PREF_GENERAL_SKINS_SELECTEDSKIN); } catch (e) { } | 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... |
var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); if (!pref.getBoolPref(PREF_EXTENSIONS_DSS_ENABLED) && pref.getBoolPref(PREF_EXTENSIONS_DSS_SWITCHPENDING) && pref.prefHasUserValue(PREF_EM_LAST_SELECTED_SKIN)) { var lastSelectedSkin = pref.getCharPref(... | 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... | |
walleteditor = Components.classes["component: | walleteditor = Components.classes["@mozilla.org/walleteditor/walleteditor-world;1"].createInstance(); | function Startup(){ walleteditor = Components.classes["component://netscape/walleteditor/walleteditor-world"].createInstance(); walleteditor = walleteditor.QueryInterface(Components.interfaces.nsIWalletEditor); walletservice = Components.classes['component://netscape/wallet/wallet-service']; walletservice = wallets... |
walletservice = Components.classes['component: | walletservice = Components.classes['@mozilla.org/wallet/wallet-service;1']; | function Startup(){ walleteditor = Components.classes["component://netscape/walleteditor/walleteditor-world"].createInstance(); walleteditor = walleteditor.QueryInterface(Components.interfaces.nsIWalletEditor); walletservice = Components.classes['component://netscape/wallet/wallet-service']; walletservice = wallets... |
window.sizeToContent(); | function Startup() { permissionManager = Components.classes["@mozilla.org/permissionmanager;1"] .getService(Components.interfaces.nsIPermissionManager); permissionsTree = document.getElementById("permissionsTree"); popupStringBundle = document.getElementById("popupStringBundle"); // w... | |
try{ document.getElementById('allowWindowOpen').checked = !pref.GetBoolPref("dom.disable_open_during_load"); } catch (e){ document.getElementById('allowWindowOpen').checked = true; | data = parent.hPrefWindow.wsm.dataManager.pageData["chrome: if (!("scriptData" in data)){ var changedList = ["allowWindowOpenChanged", "allowWindowMoveResizeChanged", "allowWindowStatusChangeChanged", "allowWindowFlipChanged", "allowDocumentCookieSetChanged", "allowDocumentCookieGetChanged", "allowImageSrcChangeChang... | function Startup(){ try{ document.getElementById('allowWindowOpen').checked = !pref.GetBoolPref("dom.disable_open_during_load"); } catch (e){ //if we get an error, the pref is not existent, we default to true document.getElementById('allowWindowOpen').checked = true; } //if one of the security capability p... |
document.getElementById("allowWindowMoveResize").checked = getPrefValueForCheckbox("capability.policy.default.Window.resizeTo") && getPrefValueForCheckbox("capability.policy.default.Window.innerWidth.set") && getPrefValueForCheckbox("capability.policy.default.Window.innerHeight.set") && getPrefValueForCheckbox("capabil... | if (!document.getElementById("javascriptEnabled").checked) changeDisabledState(true); | function Startup(){ try{ document.getElementById('allowWindowOpen').checked = !pref.GetBoolPref("dom.disable_open_during_load"); } catch (e){ //if we get an error, the pref is not existent, we default to true document.getElementById('allowWindowOpen').checked = true; } //if one of the security capability p... |
var file_url = Components.classes["@mozilla.org/network/standard-url;1"].createInstance(Components.interfaces.nsIFileURL); if (file_url) file_url.file = file; gDS = gRDF.GetDataSource(file_url.spec); | gDS = gRDF.GetDataSource(file.URL); | function Startup(){ // set up the string bundle gPrefApplicationsBundle = document.getElementById("bundle_prefApplications"); // set up the elements gTree = document.getElementById("appTree"); gExtensionField = document.getElementById("extension"); gMIMETypeField = document.getElementById("mimeType"); ... |
document.getElementById("TableOrCellGroup").setAttribute("collapsed", "false"); | document.getElementById("TableOrCellGroup").collapsed = false; | 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; gDialog.ColorPicker = document.getElementById("ColorPi... |
document.getElementById("DefaultColorButton").setAttribute("collapsed","true"); | document.getElementById("DefaultColorButton").collapsed = true; | 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; gDialog.ColorPicker = document.getElementById("ColorPi... |
prefvalue = parent.hPrefWindow.getPref( "int", "browser.display.screen_resolution" ); | var prefvalue = parent.hPrefWindow.getPref( "int", "browser.display.screen_resolution" ); | function Startup() { variableSize = document.getElementById( "sizeVar" ); fixedSize = document.getElementById( "sizeMono" ); minSize = document.getElementById( "minSize" ); languageList = document.getElementById( "selectLangs" ); gPrefutilitiesBundle = document.getElementById("bundle_prefutiliti... |
window.sizeToContent(); | function Startup() { // arguments passed to this routine: // cookieManager // cookieManagerFromIcon // imageManager // xpconnect to cookiemanager/permissionmanager/popupmanager interfaces cookiemanager = Components.classes["@mozilla.org/cookiemanager;1"].getService(); cookiemanager = cookiemanager.QueryI... | |
return; } | function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) { dump("Failed to create dialog object!!!\n"); window.close(); } dialog.PageLocation = document.getElementById("PageLocation"); dialog.TitleInput = document.getElementById("TitleInput"); dialog.AuthorInput ... | |
gData.navigatorData["startupPage"].value = radiogroup.value; | function Startup(){ var radiogroup = document.getElementById("startupPage"); radiogroup.addEventListener("RadioStateChange", onRadioCheck, false); var textbox = document.getElementById("browserStartupHomepage"); textbox.addEventListener("input", updateHomePageButtons, false); updateHomePageButtons(); gData = pare... | |
getColorFromWellAndSetValue("activelinkmenu"); | function Startup() { getColorFromWellAndSetValue("foregroundtextmenu"); getColorFromWellAndSetValue("backgroundmenu"); getColorFromWellAndSetValue("unvisitedlinkmenu"); getColorFromWellAndSetValue("visitedlinkmenu"); return true; } | |
defaultActiveColor = defaultLinkColor; | defaultActiveColor = browserColors.ActiveLinkColor; | function Startup(){ gDialog.ColorPreview = document.getElementById("ColorPreview"); gDialog.NormalText = document.getElementById("NormalText"); gDialog.LinkText = document.getElementById("LinkText"); gDialog.ActiveLinkText = document.getElementById("ActiveLinkText"); gDialog.VisitedLinkText = document.getElementBy... |
var prefInterface; | function Startup(){ var prefInterface; var defaultLanguage; var languageList = document.getElementById("langList"); var selectedLanguage = window.arguments.length ? window.arguments[0] : null; var defaultRegion; var regionList = document.getElementById("regionList"); var selectedRegion = window.arguments.len... | |
prefInterface = Components.classes["@mozilla.org/preferences;1"]. getService(Components.interfaces.nsIPref); defaultLanguage = prefInterface. getLocalizedUnicharPref("general.useragent.locale"); defaultRegion = prefInterface. getLocalizedUnicharPref("general.useragent.contentlocale"); | const nsIPrefLocalizedString = Components.interfaces.nsIPrefLocalizedString; var prefBranch = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService) .getBranch("general.useragent."); defaultLanguage = prefBranch.getComplexValue("locale", nsIPrefLocalizedString).data; ... | function Startup(){ var prefInterface; var defaultLanguage; var languageList = document.getElementById("langList"); var selectedLanguage = window.arguments.length ? window.arguments[0] : null; var defaultRegion; var regionList = document.getElementById("regionList"); var selectedRegion = window.arguments.len... |
PlaySoundCheck(); | function Startup(){ var startupFunc; try { startupFunc = document.getElementById("mailnewsEnableMapi").getAttribute('startupFunc'); } catch (ex) { startupFunc = null; } if (startupFunc) eval(startupFunc); StartPageCheck(); PlaySoundCheck();} | |
dialog.wordInput = document.getElementById("Word"); | dialog.misspelledWord = document.getElementById("MisspelledWord"); dialog.replaceWordInput = document.getElementById("ReplaceWord"); | 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 = document.getElementById(""); if (!dialog.wordInput || | dialog.languageList = document.getElementById("LanguageList"); if (!dialog.misspelledWord || !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... |
dialog.wordInput.value = misspelledWord; | dialog.misspelledWord.setAttribute("value", misspelledWord); | 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.replaceWordInput.value = misspelledWord; dialog.languageList.selectedIndex = 0; dump("Language Listed Index = "+dialog.languageList.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... | |
if (!dialog) | if (!dialog) { | function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) window.close(); doSetOKCancel(onOK, onCancel); dialog.ListTypeList = document.getElementById("ListType"); dialog.BulletStyleList = document.getElementById("BulletStyle"); dialog.BulletStyleLabel = document.getElementById(... |
return; } | function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) window.close(); doSetOKCancel(onOK, onCancel); dialog.ListTypeList = document.getElementById("ListType"); dialog.BulletStyleList = document.getElementById("BulletStyle"); dialog.BulletStyleLabel = document.getElementById(... | |
name = PrepareStringForURL(TruncateStringAtWordEnd(name, 40, false)); | name = ConvertToCDATAString(TruncateStringAtWordEnd(name, 40, false)); | function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); nameInput = document.getElementById("nameInput"); // Get a single selected element of the desired type anchorElement = editorShell.GetSelectedElement(tagName); if (anchorElement) { // We found an element and don't need to ins... |
setTimeout("postStart()", 0); | setTimeout(postStart, 0); | 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... |
dump(uri); | function Startup(){ var bookmarksView = document.getElementById("bookmarks-view"); // Set up the outliner controller // gBookmarksShell = new nsBookmarksShell("bookmarks-outliner", "bookmarks-outlinerbody"); // var rdflinerObserver = new nsBookmarksRDFLinerObserver(); // var builder = bookmarksBody.builder.QueryIn... | |
if (!theme) matches = chromeRegistry.isSkinSelected(name, true) == Components.interfaces.nsIChromeRegistry.FULL; else matches = name == theme; if (matches) { list.selectItem(child); break; | if (name) { if (!theme) matches = chromeRegistry.isSkinSelected(name, true) == Components.interfaces.nsIChromeRegistry.FULL; else matches = name == theme; if (matches) { list.selectItem(child); break; } | function Startup(){ gData = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; var list = document.getElementById( "skinsList" ); if ("loaded" in gData && "themeIndex" in gData) { list.selectedIndex = gData.themeIndex; return; } gData.loaded = true; parent... |
SetTextboxFocus(dialog.rowsInput); | SetTextboxFocusById("rowsInput"); | 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;... |
if (!GetCurrentEditor()) { | if (InitEditorShell) { if (!InitEditorShell()) return; } else if (GetCurrentEditor && !GetCurrentEditor()) { | function Startup(){ if (!GetCurrentEditor()) { window.close(); return; } // gDialog is declared in EdDialogCommon.js // Set commonly-used widgets like this: gDialog.selectedTab = TEXT_TAB; gDialog.sheetsTreechildren = document.getElementById("stylesheetsTree"); gDialog.sheetsTree ... |
coreName = "ViewSource." + ( new Date() ).getTime().toString(); | appCoreName = "ViewSource." + ( new Date() ).getTime().toString(); | function StartupViewSource() { // Generate unique name. coreName = "ViewSource." + ( new Date() ).getTime().toString(); // Create and initialize the browser app core. appCore = new BrowserAppCore(); appCore.Init( coreName ); appCore.setContentWindow(window.frames[0]); appCore.setWebShellWindo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.