rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
document.getElementById("folderbox").setAttribute("hidden", "true"); sizeToFit(); | document.getElementById("folderbox").hidden = true; | 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"... |
document.getElementById("showaddgroup").setAttribute("hidden", "false"); | 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"... | |
sizeToFit(); | 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"... | |
document.getElementById("showaddgroup").setAttribute("hidden", "false"); gCB_AddGroup.setAttribute("checked", "true"); | gCB_AddGroup.checked = true; | 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"... |
if (document.getElementById("bookmarknamegrid").hasAttribute("hidden")) { | if (document.getElementById("bookmarknamegrid").hidden) { | 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"... |
dialogElement.removeAttribute("height"); dialogElement.removeAttribute("width"); sizeToContent(); | 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"... | |
gGroup = document.getElementById("addgroup"); | function Startup(){ initServices(); initBMService(); gName = document.getElementById("name"); gRequiredFields.push(gName); gKeywordRow = document.getElementById("keywordRow"); gKeyword = document.getElementById("keyword"); gGroup = document.getElementById("addgroup"); gExpander = document.getElementById("expand... | |
if (!gArg.bAddGroup) gGroup.setAttribute("hidden", "true"); | function Startup(){ initServices(); initBMService(); gName = document.getElementById("name"); gRequiredFields.push(gName); gKeywordRow = document.getElementById("keywordRow"); gKeyword = document.getElementById("keyword"); gGroup = document.getElementById("addgroup"); gExpander = document.getElementById("expand... | |
initTitle(); | function Startup(){ initServices(); initBMService(); gName = document.getElementById("name"); gRequiredFields.push(gName); gKeywordRow = document.getElementById("keywordRow"); gKeyword = document.getElementById("keyword"); gGroup = document.getElementById("addgroup"); gExpander = document.getElementById("expand... | |
dump(BodyElement+"\n"); | 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... | |
dump("Getting browser prefs...\n"); | 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... | |
dump("browser.display.use_document_colors = "+ useDocumentColors+"\n"); | 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... | |
defaultVisitedLinkColor = prefs.CopyCharPref("browser.visited_color"); | defaultActiveColor = defaultLinkColor; defaultVisitedColor = prefs.CopyCharPref("browser.visited_color"); | 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... |
} try { lastSetBackgroundImage = prefs.CopyCharPref("editor.default_background_image"); } catch (ex) { dump("Failed getting browser colors from prefs\n"); | 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... | |
return; | function Startup(){ 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:blank"; if (!gIsLoadingBlank) { prepareForSt... | |
popupmanager = Components.classes["@mozilla.org/PopupWindowManager;1"].getService(); popupmanager = popupmanager.QueryInterface(Components.interfaces.nsIPopupWindowManager); | 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... | |
if (dialogType == cookieType) { | if (!isImages) { | 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... |
} else if (dialogType == imageType) { | } else { | 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... |
} else { element = document.getElementById("cookieviewer"); element.setAttribute("title", cookieBundle.getString("imageTitle")); element = document.getElementById("permissionsTab"); element.label = cookieBundle.getString("tabBannedPopups"); tabBox.selectedTab = element; element = document.getElementById("permissionsTex... | 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... | |
if ( window.arguments && window.arguments[0] ) { | if ( "arguments" in window && window.arguments[0] ) { | function Startup(){ if ( window.arguments && window.arguments[0] ) { gCurrentDirectory = window.arguments[0].selectedDirectory; gCurrentDirectoryString = window.arguments[0].selectedDirectoryString; fillSettings(); } else { fillDefaultSettings(); } doSetOKCancel(onOK, onCancel);} |
editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("EditoreditorShell not found!!!\n"); window.close(); | if (!InitEditorShell()) | function Startup(){ // get the editor shell from the parent window editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("EditoreditorShell not found!!!\n"); window.close(); return; } dump("EditoreditorShell found ... |
} dump("EditoreditorShell found for NamedAnchor Properties dialog\n"); | dump("EditoreditorShell found for dialog\n"); | function Startup(){ // get the editor shell from the parent window editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("EditoreditorShell not found!!!\n"); window.close(); return; } dump("EditoreditorShell found ... |
try { pref = Components.classes['component: pref = pref.getService(); pref = pref.QueryInterface(Components.interfaces.nsIPref); try { if (!pref.GetBoolPref("wallet.enabled")) { var element; element = document.getElementById("nopreview"); element.setAttribute("style","display: none;" ); element = document.getElementByI... | function Startup(){ signonviewer = Components.classes["component://netscape/signonviewer/signonviewer-world"].createInstance(); signonviewer = signonviewer.QueryInterface(Components.interfaces.nsISignonViewer); doSetOKCancel(onOK, null); // init ok event handler LoadSignons(); LoadReject(); LoadNopreview(); Loa... | |
bookmarksView.treeBoxObject.scrollToRow(rowIndex); | function Startup(){ const windowNode = document.getElementById("bookmark-window"); const bookmarksView = document.getElementById("bookmarks-view"); var rowIndex = 0; var titleString; // If we've been opened with a parameter, root the tree on it. if ("arguments" in window && window.arguments[0]) { var title; ... | |
element.setAttribute("hidden", "true"); | element.setAttribute("selected", "true"); | 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... |
SetTextboxFocus(gDialog.srcInput); | setTimeout(SetTextboxFocus, 0, gDialog.srcInput); | function Startup(){ if (!InitEditorShell()) return; ImageStartup(); gDialog.hrefInput = document.getElementById("hrefInput"); gDialog.makeRelativeLink = document.getElementById("MakeRelativeLink"); gDialog.showLinkBorder = document.getElementById("showLinkBorder"); // Get a single selected image eleme... |
var elements = tree.getElementsByAttribute("data", selectedLanguage); | var elements = tree.getElementsByAttribute("value", selectedLanguage); | function Startup(){ doSetOKCancel(onOK); var selectedLanguage = window.arguments.length ? window.arguments[0] : null; var tree = document.getElementById("langList"); if (selectedLanguage) { var elements = tree.getElementsByAttribute("data", selectedLanguage); if (elements.length) tree.selectItem(elements... |
editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("editorShell not found!!!\n"); window.close(); | if (!InitEditorShell()) | function Startup(){ // 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 the selected horizontal line ... |
} | function Startup(){ // 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 the selected horizontal line ... | |
hLineElement = window.editorShell.GetSelectedElement(tagName); | hLineElement = editorShell.GetSelectedElement(tagName); | function Startup(){ // 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 the selected horizontal line ... |
tempLineElement = window.editorShell.editorDocument.createElement("HR"); | tempLineElement = editorShell.editorDocument.createElement("HR"); | function Startup(){ // 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 the selected horizontal line ... |
dialog.pixelOrPercentButton = document.getElementById("pixelOrPercentButton"); | function Startup(){ // 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 the selected horizontal line ... | |
width = hLineElement.getAttribute("width"); | function Startup(){ // 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 the selected horizontal line ... | |
percentIndex = width.search(/%/); if (percentIndex > 0) { percentChar = "%"; width = width.substr(0, percentIndex); } else { dialog.pixelOrPercentButton.setAttribute("value","pixels"); } dialog.widthInput.value = width; | dialog.widthInput.value = InitPixelOrPercentPopupButton(hLineElement, "width", "pixelOrPercentButton"); | function Startup(){ // 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 the selected horizontal line ... |
dump("Doing Startup...\n"); | if (!InitEditorShell()) return; dump("EditorShell found for Spell Checker 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.nsIEditorSpellCheck); if(!editorShell) { dump("EditoreditorShell not found!!!\n"); window.close(); } dump("E... |
editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if(!editorShell) { dump("EditoreditorShell not found!!!\n"); | spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker 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.nsIEditorSpellCheck); if(!editorShell) { dump("EditoreditorShell not found!!!\n"); window.close(); } dump("E... |
dump("EditoreditorShell found for Spell Checker dialog\n"); | window.spellChecker = spellChecker; | function Startup(){ dump("Doing Startup...\n"); // get the editor shell from the parent window editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if(!editorShell) { dump("EditoreditorShell not found!!!\n"); window.close(); } dump("E... |
imageElement.setAttribute(attributes[i], imageElement.getAttribute(attributes[i])); | imageElement.setAttribute(attributes[i], imgElement.getAttribute(attributes[i])); | function Startup(){ var editor = GetCurrentEditor(); if (!editor) { window.close(); return; } gDialog = { inputName: document.getElementById( "InputName" ), inputDisabled: document.getElementById( "InputDisabled" ), inputTabIndex: document.getElementById( "InputTabIndex" ) }; ImageStartup()... |
if (!uriToLoad) { if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0]) uriToLoad = window.arguments[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 prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); if (!prefService) throw "couldn't create a preferences service"; pref = prefService.getBranch(null); | 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 element2 = document.getElementById("tabcontrols"); | var element2 = document.getElementById("tabbox"); | 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... |
dump("Doing Startup...\n"); editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("EditoreditorShell not found!!!\n"); window.close(); | if (!InitEditorShell()) | 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("EditoreditorShell not found!!!\n"); window.close(); return; } ... |
} | 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("EditoreditorShell not found!!!\n"); window.close(); return; } ... | |
if (pref.GetBoolPref("cookieviewer.cookieTab")) { | var tab = window.arguments[0]; if (tab == "0") { | 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... |
window.XULBrowserWindow = new nsXULBrowserWindow(); | window.XULBrowserWindow = new nsBrowserStatusHandler(); | 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... |
webProgress.addProgressListener(appCore); | webProgress.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... |
ColorType = window.arguments[1].Type; | if (window.arguments[1].Type) { ColorType = window.arguments[1].Type; window.title = GetString(ColorType+"Color"); } if (!window.title) window.title = GetString("Color"); | function Startup(){ if (!InitEditorShell() || !window.arguments[1]) { dump("EdColorPicker: Failed to get EditorShell or arguments[1]\n"); return; } // Create dialog object to store controls for easy access dialog = new Object; dialog.ColorPicker = document.getElementById("ColorPicker"); dialog.ColorIn... |
var color = ""; | function Startup(){ if (!InitEditorShell() || !window.arguments[1]) { dump("EdColorPicker: Failed to get EditorShell or arguments[1]\n"); return; } // Create dialog object to store controls for easy access dialog = new Object; dialog.ColorPicker = document.getElementById("ColorPicker"); dialog.ColorIn... | |
window.title = GetString("PageBackgroundColor"); | function Startup(){ if (!InitEditorShell() || !window.arguments[1]) { dump("EdColorPicker: Failed to get EditorShell or arguments[1]\n"); return; } // Create dialog object to store controls for easy access dialog = new Object; dialog.ColorPicker = document.getElementById("ColorPicker"); dialog.ColorIn... | |
window.title = GetString("TableBackgroundColor"); | function Startup(){ if (!InitEditorShell() || !window.arguments[1]) { dump("EdColorPicker: Failed to get EditorShell or arguments[1]\n"); return; } // Create dialog object to store controls for easy access dialog = new Object; dialog.ColorPicker = document.getElementById("ColorPicker"); dialog.ColorIn... | |
window.title = GetString("CellBackgroundColor"); | function Startup(){ if (!InitEditorShell() || !window.arguments[1]) { dump("EdColorPicker: Failed to get EditorShell or arguments[1]\n"); return; } // Create dialog object to store controls for easy access dialog = new Object; dialog.ColorPicker = document.getElementById("ColorPicker"); dialog.ColorIn... | |
window.title = GetString("TableOrCellColor"); | function Startup(){ if (!InitEditorShell() || !window.arguments[1]) { dump("EdColorPicker: Failed to get EditorShell or arguments[1]\n"); return; } // Create dialog object to store controls for easy access dialog = new Object; dialog.ColorPicker = document.getElementById("ColorPicker"); dialog.ColorIn... | |
if (window.arguments[1].CellColor) color = window.arguments[1].CellColor; | color = window.arguments[1].CellColor; | function Startup(){ if (!InitEditorShell() || !window.arguments[1]) { dump("EdColorPicker: Failed to get EditorShell or arguments[1]\n"); return; } // Create dialog object to store controls for easy access dialog = new Object; dialog.ColorPicker = document.getElementById("ColorPicker"); dialog.ColorIn... |
window.title = GetString("TextColor"); | TextType = true; | function Startup(){ if (!InitEditorShell() || !window.arguments[1]) { dump("EdColorPicker: Failed to get EditorShell or arguments[1]\n"); return; } // Create dialog object to store controls for easy access dialog = new Object; dialog.ColorPicker = document.getElementById("ColorPicker"); dialog.ColorIn... |
if (ColorType == "Text") | if (TextType) | function Startup(){ if (!InitEditorShell() || !window.arguments[1]) { dump("EdColorPicker: Failed to get EditorShell or arguments[1]\n"); return; } // Create dialog object to store controls for easy access dialog = new Object; dialog.ColorPicker = document.getElementById("ColorPicker"); dialog.ColorIn... |
dump("LastPickedColor = "+LastPickedColor+"|\n"); | function Startup(){ if (!InitEditorShell() || !window.arguments[1]) { dump("EdColorPicker: Failed to get EditorShell or arguments[1]\n"); return; } // Create dialog object to store controls for easy access dialog = new Object; dialog.ColorPicker = document.getElementById("ColorPicker"); dialog.ColorIn... | |
doSetOKCancel(onOK, onCancel); | doSetOKCancel(onOK, onCancelColor); | function Startup(){ if (!InitEditorShell() || !window.arguments[1]) { dump("EdColorPicker: Failed to get EditorShell or arguments[1]\n"); return; } // Create dialog object to store controls for easy access dialog = new Object; dialog.ColorPicker = document.getElementById("ColorPicker"); dialog.ColorIn... |
NoDefault = window.arguments[1].NoDefault; if (NoDefault) { document.getElementById("DefaultColorButton").setAttribute("collapsed","true"); } | function Startup(){ if (!InitEditorShell() || !window.arguments[1]) { dump("EdColorPicker: Failed to get EditorShell or arguments[1]\n"); return; } // Create dialog object to store controls for easy access dialog = new Object; dialog.ColorPicker = document.getElementById("ColorPicker"); dialog.ColorIn... | |
BMSVC.transactionManager.AddListener(BookmarkEditMenuTxnListener); | var bkmkTxnSvc = Components.classes["@mozilla.org/bookmarks/transactionmanager;1"] .getService(Components.interfaces.nsIBookmarkTransactionManager); bkmkTxnSvc.transactionManager.AddListener(BookmarkEditMenuTxnListener); | function Startup(){ const windowNode = document.getElementById("bookmark-window"); const bookmarksView = document.getElementById("bookmarks-view"); const bookmarksFolder = document.getElementById("bookmark-folders-view"); var titleString; // If we've been opened with a parameter, root the tree on it. if ("argumen... |
gProfileManagerBundle = document.getElementById("bundle_profileManager"); gBrandBundle = document.getElementById("bundle_brand"); | function StartUp(){ SetUpOKCancelButtons(); centerWindowOnScreen(); if(window.location && window.location.search && window.location.search == "?manage=true" ) SwitchProfileManagerMode(); var dirServ = Components.classes['@mozilla.org/file/directory_service;1'].createInstance(); dirServ = dirServ.QueryInterface(... | |
.getService(Components.interfaces.nsIPermissionManager); | .getService(nsIPermissionManager); | function Startup() { permissionManager = Components.classes["@mozilla.org/permissionmanager;1"] .getService(Components.interfaces.nsIPermissionManager); permissionsTree = document.getElementById("permissionsTree"); popupStringBundle = document.getElementById("popupStringBundle"); sort... |
popupStringBundle = document.getElementById("popupStringBundle"); | permissionsBundle = document.getElementById("permissionsBundle"); | function Startup() { permissionManager = Components.classes["@mozilla.org/permissionmanager;1"] .getService(Components.interfaces.nsIPermissionManager); permissionsTree = document.getElementById("permissionsTree"); popupStringBundle = document.getElementById("popupStringBundle"); sort... |
loadPermissions(permissions); loadTree(); if (window.arguments[0] != "") { var prefill = window.arguments[0]; if (prefill.indexOf("www.") == 0) prefill = prefill.slice(4); document.getElementById("addSiteBox").value = prefill; | if (window.arguments && window.arguments[0]) { document.getElementById("btnBlock").hidden = !window.arguments[0].blockVisible; document.getElementById("btnSession").hidden = !window.arguments[0].sessionVisible; document.getElementById("btnAllow").hidden = !window.arguments[0].allowVisible; setHost(window.arguments[0].p... | function Startup() { permissionManager = Components.classes["@mozilla.org/permissionmanager;1"] .getService(Components.interfaces.nsIPermissionManager); permissionsTree = document.getElementById("permissionsTree"); popupStringBundle = document.getElementById("popupStringBundle"); sort... |
document.documentElement.addEventListener("keypress", onReturnHit, true); | var introString = permissionsBundle.getString(permissionType + "permissionstext"); document.getElementById("permissionsText").textContent = introString; document.title = permissionsBundle.getString(permissionType + "permissionstitle"); var dialogElement = document.getElementById("permissionsManager"); dialogElement.s... | function Startup() { permissionManager = Components.classes["@mozilla.org/permissionmanager;1"] .getService(Components.interfaces.nsIPermissionManager); permissionsTree = document.getElementById("permissionsTree"); popupStringBundle = document.getElementById("popupStringBundle"); sort... |
gMIMETypeField = document.getElementById("mimeType"); | gMIMEDescField = document.getElementById("mimeDesc"); | function Startup(){ // set up the string bundle gPrefApplicationsBundle = document.getElementById("bundle_prefApplications"); // set up the elements gList = document.getElementById("appList"); gExtensionField = document.getElementById("extension"); gMIMETypeField = document.getElementById("mimeType"); ... |
dump("spec is " + fileHandler.getURLSpecFromFile(file)); | function Startup(){ // set up the string bundle gPrefApplicationsBundle = document.getElementById("bundle_prefApplications"); // set up the elements gList = document.getElementById("appList"); gExtensionField = document.getElementById("extension"); gMIMETypeField = document.getElementById("mimeType"); ... | |
if (gDS.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource).loaded) { xmlSinkObserver.onEndLoad(gDS.QueryInterface(Components.interfaces.nsIRDFXMLSink)); } else { gDS.QueryInterface(Components.interfaces.nsIRDFXMLSink).addXMLSinkObserver( xmlSinkObserver ); } | function Startup(){ // set up the string bundle gPrefApplicationsBundle = document.getElementById("bundle_prefApplications"); // set up the elements gList = document.getElementById("appList"); gExtensionField = document.getElementById("extension"); gMIMETypeField = document.getElementById("mimeType"); ... | |
if (navigator.appVersion.indexOf("X11") != -1) { document.getElementById( "systemResolution" ).removeAttribute( "hidden" ); } var resolution; resolution = document.getElementById( "screenResolution" ); var dpi = resolution.getAttribute( "dpi" ); resolution = document.getElementById( "otherResolution" ); resolution.se... | 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.... | |
autoClose(); | 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... | |
var dirServ = Components.classes['@mozilla.org/file/directory_service;1'].createInstance(); dirServ = dirServ.QueryInterface(Components.interfaces.nsIProperties); | var dirServ = Components.classes['@mozilla.org/file/directory_service;1'] .getService(Components.interfaces.nsIProperties); | function StartUp(){ gDialogParams = window.arguments[0]. QueryInterface(Components.interfaces.nsIDialogParamBlock); gStartupMode = (gDialogParams.GetString(0) == "startup"); gProfileManagerBundle = document.getElementById("bundle_profileManager"); gBrandBundle = document.getElementById("bundle_... |
dialog.RowsCheckbox = document.getElementById("RowsCheckbox"); dialog.ColumnsCheckbox = document.getElementById("ColumnsCheckbox"); dialog.TableHeightCheckbox = document.getElementById("TableHeightCheckbox"); dialog.TableWidthCheckbox = document.getElementById("TableWidthCheckbox"); dialog.TableBorderCheckbox = documen... | 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.CellColorCheckbox = document.getElementById("CellColorCheckbox"); | 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.Ok.setAttribute("onclick", "onOKClick()"); | dialog.Ok.setAttribute("onclick", "SetDefaultToOk()"); | 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... |
ClearCSSInputWidgets(); BuildHTMLAttributeNameList(); | SetTextboxFocus(gDialog.AddHTMLAttributeNameInput); | 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; // Element to edit is passed in if (!window.arguments[1]) { dump("Advanced Edit: Element to edit not supplied\n"); window.clos... |
tableHeightLabel = document.getElementById("TableHeightLabel"); | var tableHeightLabel = document.getElementById("TableHeightLabel"); | function Startup(){ if (!InitEditorShell()) return; selection = editorShell.editorSelection; if (!selection) return; // Get dialog widgets - Table Panel gDialog.TableRowsInput = document.getElementById("TableRowsInput"); gDialog.TableColumnsInput = document.getElementById("TableColumnsInput"); gDialog.TableWidth... |
editorShell.SelectCell(); | editorShell.SelectTableCell(); | function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) { dump("Failed to create dialog object!!!\n"); window.close(); } // Get dialog widgets - Table Panel dialog.TableRowsInput = document.getElementById("TableRowsInput"); dialog.TableColumnsInput = document.getElementByI... |
var imageElement = editor.getSelectedElement("img"); if (imageElement) | var imgElement = editor.getSelectedElement("img"); if (imgElement) | function Startup(){ var editor = GetCurrentEditor(); if (!editor) { dump("Failed to get active editor!\n"); window.close(); return; } gDialog = { accept: document.documentElement.getButton("accept"), inputType: document.getElementById("InputType"), inputNameDeck: documen... |
inputElement.setAttribute(attributes[i], imageElement.getAttribute(attributes[i])); | inputElement.setAttribute(attributes[i], imgElement.getAttribute(attributes[i])); | function Startup(){ var editor = GetCurrentEditor(); if (!editor) { dump("Failed to get active editor!\n"); window.close(); return; } gDialog = { accept: document.documentElement.getButton("accept"), inputType: document.getElementById("InputType"), inputNameDeck: documen... |
gDialog.ChangeSelectedRadio.checked = true; | gDialog.RadioGroup.selectedItem = gDialog.ChangeSelectedRadio; | function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); gDialog.ListTypeList = document.getElementById("ListType"); gDialog.BulletStyleList = document.getElementById("BulletStyle"); gDialog.BulletStyleLabel = document.getElementById("BulletStyleLabel"); gDialog.StartingNumberInput = ... |
gDialog.ChangeAllRadio.checked = true; | gDialog.RadioGroup.selectedItem = gDialog.ChangeAllRadio; | function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); gDialog.ListTypeList = document.getElementById("ListType"); gDialog.BulletStyleList = document.getElementById("BulletStyle"); gDialog.BulletStyleLabel = document.getElementById("BulletStyleLabel"); gDialog.StartingNumberInput = ... |
gDialog.alignGroup = gDialog.rightAlign.radioGroup; | function Startup(){ if (!InitEditorShell()) return; // Get the selected horizontal line hLineElement = editorShell.GetSelectedElement(tagName); if (!hLineElement) { // We should never be here if not editing an existing HLine window.close(); return; } gDialog.heightInput = document.getElementById("heig... | |
editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("EditoreditorShell not found!!!\n"); | if (!InitEditorShell()) return; dump("EditoreditorShell found for Insert Table dialog\n"); tableElement = editorShell.CreateElementWithDefaults(tagName); if(!tableElement) { dump("Failed to create a new table!\n"); | function Startup(){ // get the editor shell from the parent window editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("EditoreditorShell not found!!!\n"); window.close(); return; } dump("EditoreditorShell found ... |
return; | function Startup(){ // get the editor shell from the parent window editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("EditoreditorShell not found!!!\n"); window.close(); return; } dump("EditoreditorShell found ... | |
dump("EditoreditorShell found for Insert Table dialog\n"); | function Startup(){ // get the editor shell from the parent window editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("EditoreditorShell not found!!!\n"); window.close(); return; } dump("EditoreditorShell found ... | |
tableElement = editorShell.CreateElementWithDefaults(tagName); if(!tableElement) { dump("Failed to create a new table!\n"); window.close(); } | function Startup(){ // get the editor shell from the parent window editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("EditoreditorShell not found!!!\n"); window.close(); return; } dump("EditoreditorShell found ... | |
element.setAttribute("title", cookieBundle.getString("imageTitle")); | element.setAttribute("title", cookieBundle.getString("popupTitle")); | 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... |
editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if (!editorShell) { dump("editorShell not found!!!\n"); window.close(); return; } | if (!InitEditorShell()) return; | function Startup(){ // 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; } // Create dialog object to stor... |
var rPersist = RDF.GetResource(NC_NS+"persist"); | var rPersist = RDF.GetResource(gNC_NS+"persist"); | function Startup(){ initServices(); initBMService(); gName = document.getElementById("name"); gRequiredFields.push(gName); gKeywordRow = document.getElementById("keywordRow"); gKeyword = document.getElementById("keyword"); gGroup = document.getElementById("addgroup"); gExpander = document.getElementById("expand... |
document.getElementById("comma").checked = true; | gDialog.sepRadioGroup.selectedItem = document.getElementById("comma"); | function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); gDialog.sepRadioGroup = document.getElementById("SepRadioGroup"); gDialog.sepCharacterInput = document.getElementById("SepCharacterInput"); gDialog.deleteSepCharacter = document.getElementById("DeleteSepCharacter"); gDialo... |
document.getElementById("space").checked = true; | gDialog.sepRadioGroup.selectedItem = document.getElementById("space"); | function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); gDialog.sepRadioGroup = document.getElementById("SepRadioGroup"); gDialog.sepCharacterInput = document.getElementById("SepCharacterInput"); gDialog.deleteSepCharacter = document.getElementById("DeleteSepCharacter"); gDialo... |
document.getElementById("other").checked = true; | gDialog.sepRadioGroup.selectedItem = document.getElementById("other"); | function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); gDialog.sepRadioGroup = document.getElementById("SepRadioGroup"); gDialog.sepCharacterInput = document.getElementById("SepCharacterInput"); gDialog.deleteSepCharacter = document.getElementById("DeleteSepCharacter"); gDialo... |
if (!gIsLoadingBlank) { | if (!gIsLoadingBlank) | 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:... |
} | 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:... | |
var extensionsStrings = document.getElementById("extensionsStrings"); | 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... | |
gBMtxmgr = BookmarksUtils.getTransactionManager(); | function Startup(){ const windowNode = document.getElementById("bookmark-window"); const bookmarksView = document.getElementById("bookmarks-view"); var rowIndex = 0; var titleString; // If we've been opened with a parameter, root the tree on it. if ("arguments" in window && window.arguments[0]) { var title; ... | |
param.abort = true; | function Startup(){ /* dump("Startup()\n"); */ if (window.arguments && window.arguments[0] && window.arguments[0]) { param = window.arguments[0]; if (param.action) { //Set the default radio array value var element = document.getElementById("SendPlainTextAndHtml"); element.checked = true; ... | |
gSpellChecker.InitSpellChecker(GetCurrentEditor()); | gSpellChecker.InitSpellChecker(GetCurrentEditor(), enableSelectionChecking); | function Startup(){ var sendMailMessageMode = false; if (!GetCurrentEditor()) { window.close(); return; } // Get the spellChecker shell gSpellChecker = Components.classes['@mozilla.org/editor/editorspellchecker;1'].createInstance(Components.interfaces.nsIEditorSpellCheck); if (!gSpellChecker) { dump("S... |
return false; | return; | function Startup( startPage, frame_id ){ if( frame_id == "" ) { dump("Please supply a content_frame ID!"); return false; } gCreateProfileWizardBundle = document.getElementById("bundle_createProfileWizard"); gProfileManagerBundle = document.getElementById("bundle_profileManager"); // instantiate the Wizard ... |
var pluginGroup = document.getElementById("pluginPreferences") var children = pluginGroup.childNodes; if (!children || children.length <= 1) pluginGroup.setAttribute("hidden", "true"); | 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... | |
dialogElement.removeAttribute("persist"); dialogElement.removeAttribute("height"); dialogElement.removeAttribute("width"); dialogElement.setAttribute("style", dialogElement.getAttribute("style")); sizeToContent(); | sizeToFit(); break; case "addGroup": document.getElementById("showaddgroup").setAttribute("hidden", "false"); setupFields(); sizeToFit(); | function Startup(){ gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); var bookmarkView = document.getElementById("bookmarks-view"); var shouldSetOKButton = true; var dialogElement = document.documentElement; if ("arguments" in window) { var folderItem = null; var arg; ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.