rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
dump("nsBrowserContentListener.init(" + toplevelWindow + ", " + contentWindow + "\n"); | init: function(toplevelWindow, contentWindow) { dump("nsBrowserContentListener.init(" + toplevelWindow + ", " + contentWindow + "\n"); this.toplevelWindow = toplevelWindow; this.contentWindow = contentWindow; // hook up the whole parent chain thing var windowDocShell = this.con... | |
const nsIWebProgressListener = Components.interfaces.nsIWebProgressListener; this.onSecurityChange(null, null, nsIWebProgressListener.STATE_IS_INSECURE); | init : function() { // XXXjag is this still needed? It's currently just "" this.defaultStatus = gNavigatorBundle.getString("defaultStatus"); this.urlBar = document.getElementById("urlbar"); this.throbberElement = document.getElementById("navigator-throbber"); this.statusMeter = document.g... | |
var _installCountdown = 2; var _installCountdownInterval = -1; | var _installCountdown; var _installCountdownInterval; var _focused; var _timeout; | XPInstallConfirm.init = function (){ var _installCountdown = 2; var _installCountdownInterval = -1; var bundle = document.getElementById("xpinstallConfirmStrings"); this._param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); if (!this._param) close(); this._param.SetInt(0, ... |
okButton.label = bundle.getFormattedString("installButtonDisabledLabel", [_installCountdown.toFixed(1)]); | okButton.focus(); | XPInstallConfirm.init = function (){ var _installCountdown = 2; var _installCountdownInterval = -1; var bundle = document.getElementById("xpinstallConfirmStrings"); this._param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); if (!this._param) close(); this._param.SetInt(0, ... |
okButton.focus(); | XPInstallConfirm.init = function (){ var _installCountdown = 2; var _installCountdownInterval = -1; var bundle = document.getElementById("xpinstallConfirmStrings"); this._param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); if (!this._param) close(); this._param.SetInt(0, ... | |
_installCountdown -= 0.1; | _installCountdown -= 1; | XPInstallConfirm.init = function (){ var _installCountdown = 2; var _installCountdownInterval = -1; var bundle = document.getElementById("xpinstallConfirmStrings"); this._param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); if (!this._param) close(); this._param.SetInt(0, ... |
if (_installCountdown <= 0) { | if (_installCountdown < 1) { | XPInstallConfirm.init = function (){ var _installCountdown = 2; var _installCountdownInterval = -1; var bundle = document.getElementById("xpinstallConfirmStrings"); this._param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); if (!this._param) close(); this._param.SetInt(0, ... |
_installCountdownInterval = -1; | XPInstallConfirm.init = function (){ var _installCountdown = 2; var _installCountdownInterval = -1; var bundle = document.getElementById("xpinstallConfirmStrings"); this._param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); if (!this._param) close(); this._param.SetInt(0, ... | |
okButton.label = bundle.getFormattedString("installButtonDisabledLabel", [_installCountdown.toFixed(1)]); | okButton.label = bundle.getFormattedString("installButtonDisabledLabel", [_installCountdown]); | XPInstallConfirm.init = function (){ var _installCountdown = 2; var _installCountdownInterval = -1; var bundle = document.getElementById("xpinstallConfirmStrings"); this._param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); if (!this._param) close(); this._param.SetInt(0, ... |
function myfocus(event) { if (_installCountdownInterval == -1) _installCountdownInterval = setInterval(okButtonCountdown, 100); | function myfocus() { if (_timeout) clearTimeout(_timeout); | XPInstallConfirm.init = function (){ var _installCountdown = 2; var _installCountdownInterval = -1; var bundle = document.getElementById("xpinstallConfirmStrings"); this._param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); if (!this._param) close(); this._param.SetInt(0, ... |
if (event.target == document) { _installCountdown = 2; okButton.label = bundle.getFormattedString("installButtonDisabledLabel", [_installCountdown.toFixed(1)]); okButton.disabled = true; } | _timeout = setTimeout(setWidgetsAfterFocus, 0); | XPInstallConfirm.init = function (){ var _installCountdown = 2; var _installCountdownInterval = -1; var bundle = document.getElementById("xpinstallConfirmStrings"); this._param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); if (!this._param) close(); this._param.SetInt(0, ... |
function myblur() { if (_installCountdownInterval != -1) { clearInterval(_installCountdownInterval); _installCountdownInterval = -1; } | function setWidgetsAfterFocus() { if (_focused) return; _installCountdown = 5; _installCountdownInterval = setInterval(okButtonCountdown, 500); okButton.label = bundle.getFormattedString("installButtonDisabledLabel", [_installCountdown]); _focused = true; } function myblur() { if (_timeout) clearTimeout(_timeout); ... | XPInstallConfirm.init = function (){ var _installCountdown = 2; var _installCountdownInterval = -1; var bundle = document.getElementById("xpinstallConfirmStrings"); this._param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); if (!this._param) close(); this._param.SetInt(0, ... |
_installCountdownInterval = setInterval(okButtonCountdown, 100); | setWidgetsAfterFocus(); | XPInstallConfirm.init = function (){ var _installCountdown = 2; var _installCountdownInterval = -1; var bundle = document.getElementById("xpinstallConfirmStrings"); this._param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); if (!this._param) close(); this._param.SetInt(0, ... |
function myfocus() { | function myfocus(event) { | XPInstallConfirm.init = function (){ var _installCountdown = 2; var _installCountdownInterval = -1; var bundle = document.getElementById("xpinstallConfirmStrings"); this._param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); if (!this._param) close(); this._param.SetInt(0, ... |
function myblur() { if (_installCountdownInterval != -1) | function myblur() { if (_installCountdownInterval != -1) { | XPInstallConfirm.init = function (){ var _installCountdown = 2; var _installCountdownInterval = -1; var bundle = document.getElementById("xpinstallConfirmStrings"); this._param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); if (!this._param) close(); this._param.SetInt(0, ... |
_installCountdown = 2; okButton.label = bundle.getFormattedString("installButtonDisabledLabel", [_installCountdown.toFixed(1)]); okButton.disabled = true; | _installCountdownInterval = -1; } | XPInstallConfirm.init = function (){ var _installCountdown = 2; var _installCountdownInterval = -1; var bundle = document.getElementById("xpinstallConfirmStrings"); this._param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); if (!this._param) close(); this._param.SetInt(0, ... |
window.addEventListener("focus", myfocus, true); window.addEventListener("blur", myblur, true); | document.addEventListener("focus", myfocus, true); document.addEventListener("blur", myblur, true); | XPInstallConfirm.init = function (){ var _installCountdown = 2; var _installCountdownInterval = -1; var bundle = document.getElementById("xpinstallConfirmStrings"); this._param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); if (!this._param) close(); this._param.SetInt(0, ... |
this._sandBox = Components.utils.evalInSandbox(pacUtils, pacURI); | this._sandBox = new Components.utils.Sandbox(pacURI); Components.utils.evalInSandbox(pacUtils, this._sandBox); | init: function(pacURI, pacText) { // remove PAC configuration if requested if (pacURI == "" || pacText == "") { this._findProxyForURL = null; this._sandBox = null; return; } // allocate a fresh Sandbox to clear global scope for new PAC script this.... |
Components.utils.evalInSandbox(pacText, pacURI, this._sandBox); | Components.utils.evalInSandbox(pacText, this._sandBox); | init: function(pacURI, pacText) { // remove PAC configuration if requested if (pacURI == "" || pacText == "") { this._findProxyForURL = null; this._sandBox = null; return; } // allocate a fresh Sandbox to clear global scope for new PAC script this.... |
this._openTime = Math.abs(Date.UTC()); this._brandShortName = document.getElementById("brandStrings").getString("brandShortName"); this._updateStrings = document.getElementById("extensionsStrings"); | init: function () { this._updateType = window.arguments[0]; this._extensionManager = window.arguments[1]; this._extensionID = window.arguments[2]; var os = Components.classes["@mozilla.org/observer-service;1"] .getService(Components.interfaces.nsIObserverService); for (var i = 0;... | |
var menulist = document.getElementById("defaultFont"); if (menulist.selectedIndex == -1) { menulist.insertItemAt(0, "", "", ""); menulist.selectedIndex = 0; } | init: function () { this._pane = document.getElementById("paneContent"); this._rebuildFonts(); }, | |
this.onReadDefaultMailPref(); this.onReadDefaultNewsPref(); this.onReadDefaultFeedPref(); | document.getElementById('mail.checkDefaultMail').valueFromPreferences = this.onReadDefaultMailPref(); document.getElementById('mail.checkDefaultNews').valueFromPreferences = this.onReadDefaultNewsPref(); document.getElementById('mail.checkDefaultFeed').valueFromPreferences = this.onReadDefaultFeedPref(); | init: function () { this.mPane = document.getElementById("paneGeneral"); this.mBrandBundle = document.getElementById("brandBundle"); this.mMapiBundle = document.getElementById("mapiBundle"); #ifdef XP_WIN this.onReadDefaultMailPref(); this.onReadDefaultNewsPref(); this.onReadDefaultFeedPref();#endi... |
this.items = em.getUpdateableItemList(nsIUpdateItem.TYPE_ADDON, { }); | this.items = em.getItemList(nsIUpdateItem.TYPE_ADDON, { }); | init: function () { this.items = window.arguments; if (this.items.length == 0) { var em = Components.classes["@mozilla.org/extensions/manager;1"] .getService(Components.interfaces.nsIExtensionManager); this.items = em.getUpdateableItemList(nsIUpdateItem.TYPE_ADDON, { }); } ... |
debug("adding controller to tree"); | function Init() { var tree = document.getElementById("bookmarksTree"); debug("adding controller to tree"); tree.controllers.appendController(BookmarksController); var children = document.getElementById('treechildren-bookmarks'); tree.selectItem(children.firstChild); tree.focus();} | |
var theWindow = window._content.parentWindow; if (theWindow) { theWindow.title = baseURI; } | document.title = baseURI; | function Init(){ debug("directory.js: Init()\n"); var tree = document.getElementById('tree'); // Initialize the tree's base URL to whatever the HTTPIndex is rooted at var baseURI = HTTPIndex.BaseURL; if (baseURI && (baseURI.indexOf("ftp://") == 0)) { // fix bug # 37102: if its a FTP directory ... |
var mainRegistry = RDF.GetDataSource('resource: | var mainRegistry; try { mainRegistry = Components.classes['component: mainRegistry = mainRegistry.QueryInterface(Components.interfaces.nsIRDFXMLDataSource); mainRegistry.Init(localSoftwareUpdateRegistry); mainRegistry.Open(true); } catch (ex) { mainRegistry = RDF.GetDataSource(localSoftwareUpdateRegistry); } | function Init() { // this is the main rdf file. var mainRegistry = RDF.GetDataSource('resource://res/rdf/SoftwareUpdates.rdf'); var mainContainer = Components.classes['component://netscape/rdf/container'].createInstance(); mainContainer = mainContainer.QueryInterface(C... |
HTTPIndex.encoding = "ISO-8859-1"; | function Init(){ debug("directory.js: Init()\n"); // Add the HTTPIndex datasource into the tree var tree = document.getElementById('tree'); // Initialize the tree's base URL to whatever the HTTPIndex is rooted at var baseURI = HTTPIndex.BaseURL; // fix bug # 37102: if its a FTP directory // ensure ... | |
var RDF = Components.classes["component: if (RDF) RDF = RDF.QueryInterface(Components.interfaces.nsIRDFService); | var RDF = Components.classes[RDFSERVICE_PROGID].getService(); if (RDF) RDF = RDF.QueryInterface(nsIRDFService); | function Init(){ debug("directory.js: Init()\n"); var tree = document.getElementById('tree'); // Initialize the tree's base URL to whatever the HTTPIndex is rooted at var baseURI = HTTPIndex.BaseURL; if (baseURI && (baseURI.indexOf("ftp://") == 0)) { // fix bug # 37102: if its a FTP directory ... |
if (httpDS) httpDS = httpDS.QueryInterface(Components.interfaces.nsIHTTPIndex); | if (httpDS) httpDS = httpDS.QueryInterface(nsIHTTPIndex); | function Init(){ debug("directory.js: Init()\n"); var tree = document.getElementById('tree'); // Initialize the tree's base URL to whatever the HTTPIndex is rooted at var baseURI = HTTPIndex.BaseURL; if (baseURI && (baseURI.indexOf("ftp://") == 0)) { // fix bug # 37102: if its a FTP directory ... |
tree.database.AddObserver(RDF_observer); debug("Directory: added observer\n"); | function Init(){ debug("directory.js: Init()\n"); var tree = document.getElementById('tree'); // Initialize the tree's base URL to whatever the HTTPIndex is rooted at var baseURI = HTTPIndex.BaseURL; if (baseURI && (baseURI.indexOf("ftp://") == 0)) { // fix bug # 37102: if its a FTP directory ... | |
document.addEventListener(kDialog + buttonType, handleButtonCommand, false); | document.addEventListener(kDialog + buttonType, handleButtonCommand, true); | function init() { // Fill the addons list var items = window.arguments[0]; var addons = document.getElementById("addonsChildren"); for (var i = 0; i < items.length; ++i) { var treeitem = document.createElementNS(kXULNS, "treeitem"); var treerow = document.createElementNS(kXULNS, "treerow"); var treecell =... |
tree.focus(); | function Init() { var tree = document.getElementById("bookmarksTree"); debug("adding controller to tree"); tree.controllers.appendController(BookmarksController); var children = document.getElementById('treechildren-bookmarks'); tree.selectItem(children.firstChild);} | |
dispatch("commands"); | function init(){ if (("initialized" in client) && client.initialized) return; client.initialized = false; client.networks = new Object(); client.entities = new Object(); client.eventPump = new CEventPump (200); if (DEBUG) { /* hook all events EXCEPT server.poll and *.event-end types ... | |
if (!/^https?:/.test(homepage)) | var scheme = ""; var uri = null; try { uri = makeURI(homepage); scheme = uri.scheme; } catch (ex) {} if (uri && (scheme == "http" || scheme == "https")) homepage = uri.spec; else | function init(){ gExtensionID = window.arguments[0]; gExtensionDB = window.arguments[1]; var extensionsStrings = document.getElementById("extensionsStrings"); var rdfs = Components.classes["@mozilla.org/rdf/rdf-service;1"] .getService(Components.interfaces.nsIRDFService); var extension = rd... |
var contributorsBox = document.getElementById("contributorsBox"); var contributorsArc = rdfs.GetResource(EM_NS("contributor")); var contributors = gExtensionDB.GetTargets(extension, contributorsArc, true); var count = 0; while (contributors.hasMoreElements()) { var contributor = contributors.getNext().QueryInterface(Co... | var sectionProps = [["developersBox", "developer", "extensionDevelopers"], ["translatorsBox", "translator", "extensionTranslators"], ["contributorsBox", "contributor", "extensionContributors"]]; for (var i = 0; i < sectionProps.length; ++i) { var node = document.getElementById(sectionProps[i][0]); var arc = rdfs.GetRe... | function init(){ gExtensionID = window.arguments[0]; gExtensionDB = window.arguments[1]; var extensionsStrings = document.getElementById("extensionsStrings"); var rdfs = Components.classes["@mozilla.org/rdf/rdf-service;1"] .getService(Components.interfaces.nsIRDFService); var extension = rd... |
if (count == 0) document.getElementById("extensionContributors").hidden = true; | function init(){ gExtensionID = window.arguments[0]; gExtensionDB = window.arguments[1]; var extensionsStrings = document.getElementById("extensionsStrings"); var rdfs = Components.classes["@mozilla.org/rdf/rdf-service;1"] .getService(Components.interfaces.nsIRDFService); var extension = rd... | |
var items = window.arguments[0]; | var de = document.documentElement; var items = []; if (window.arguments[0] instanceof Components.interfaces.nsIDialogParamBlock) { var args = window.arguments[0]; var fromInstall = args.GetInt(0) == 1 ? true : false; var numberOfItems = args.GetInt(1); for (var i = 0; i < numberOfItems; ++i) items.push(args.GetString(i... | function init() { // Fill the addons list var items = window.arguments[0]; var addons = document.getElementById("addonsChildren"); if (items.length > 0) document.getElementById("addonsTree").hidden = false; for (var i = 0; i < items.length; ++i) { var treeitem = document.createElementNS(kXULNS, "treeitem"); ... |
for (var i = 0; i < items.length; ++i) { | for (i = 0; i < items.length; ++i) { | function init() { // Fill the addons list var items = window.arguments[0]; var addons = document.getElementById("addonsChildren"); if (items.length > 0) document.getElementById("addonsTree").hidden = false; for (var i = 0; i < items.length; ++i) { var treeitem = document.createElementNS(kXULNS, "treeitem"); ... |
var de = document.documentElement; var params = window.arguments[1]; | function init() { // Fill the addons list var items = window.arguments[0]; var addons = document.getElementById("addonsChildren"); if (items.length > 0) document.getElementById("addonsTree").hidden = false; for (var i = 0; i < items.length; ++i) { var treeitem = document.createElementNS(kXULNS, "treeitem"); ... | |
for (var i = 0; i < messages.length; ++i) { | for (i = 0; i < messages.length; ++i) { | function init() { // Fill the addons list var items = window.arguments[0]; var addons = document.getElementById("addonsChildren"); if (items.length > 0) document.getElementById("addonsTree").hidden = false; for (var i = 0; i < items.length; ++i) { var treeitem = document.createElementNS(kXULNS, "treeitem"); ... |
var buttons = params.buttons; | gButtons = params.buttons; | function init() { // Fill the addons list var items = window.arguments[0]; var addons = document.getElementById("addonsChildren"); if (items.length > 0) document.getElementById("addonsTree").hidden = false; for (var i = 0; i < items.length; ++i) { var treeitem = document.createElementNS(kXULNS, "treeitem"); ... |
for (var buttonType in buttons) | for (var buttonType in gButtons) | function init() { // Fill the addons list var items = window.arguments[0]; var addons = document.getElementById("addonsChildren"); if (items.length > 0) document.getElementById("addonsTree").hidden = false; for (var i = 0; i < items.length; ++i) { var treeitem = document.createElementNS(kXULNS, "treeitem"); ... |
dump("*** de.toSource = " + de.localName + "\n"); | function init() { // Fill the addons list var items = window.arguments[0]; var addons = document.getElementById("addonsChildren"); if (items.length > 0) document.getElementById("addonsTree").hidden = false; for (var i = 0; i < items.length; ++i) { var treeitem = document.createElementNS(kXULNS, "treeitem"); ... | |
for (buttonType in buttons) { var button = de.getButton(buttonType); button.label = buttons[buttonType].label; if (buttons[buttonType].focused) | for (buttonType in gButtons) { button = de.getButton(buttonType); button.label = gButtons[buttonType].label; if (gButtons[buttonType].focused) | function init() { // Fill the addons list var items = window.arguments[0]; var addons = document.getElementById("addonsChildren"); if (items.length > 0) document.getElementById("addonsTree").hidden = false; for (var i = 0; i < items.length; ++i) { var treeitem = document.createElementNS(kXULNS, "treeitem"); ... |
initMessages(); initApplicationCompatibility(); | function init(){ if (("initialized" in client) && client.initialized) return; client.initialized = false; client.networks = new Object(); client.eventPump = new CEventPump (200); if (DEBUG) { /* hook all events EXCEPT server.poll and *.event-end types * (the 4th param inverts the... | |
var formatter = Components.classes["@mozilla.org/browser/URLFormatterService;1"] | var formatter = Components.classes["@mozilla.org/toolkit/URLFormatterService;1"] | function init() { var de = document.documentElement; var items = []; if (window.arguments[0] instanceof Components.interfaces.nsIDialogParamBlock) { var args = window.arguments[0]; var fromInstall = args.GetInt(0) == 1 ? true : false; var numberOfItems = args.GetInt(1); for (var i = 0; i < numberOfItems;... |
var url = formatter.formatURLPref("extensions.blocklist.detailsURL", null); | var url = formatter.formatURLPref("extensions.blocklist.detailsURL"); | function init() { var de = document.documentElement; var items = []; if (window.arguments[0] instanceof Components.interfaces.nsIDialogParamBlock) { var args = window.arguments[0]; var fromInstall = args.GetInt(0) == 1 ? true : false; var numberOfItems = args.GetInt(1); for (var i = 0; i < numberOfItems;... |
bundle = srGetStrBundle("chrome: | function Init(){ bookmark_url = window.arguments[0]; // Initialize the properties panel by copying the values from the // RDF graph into the fields on screen. for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); var value = Bookmarks.GetTarget(RDF.GetResource(bookmark_url)... | |
} if (baseURI && (baseURI.indexOf("file: | function Init(){ debug("directory.js: Init()\n"); var tree = document.getElementById('tree'); // Initialize the tree's base URL to whatever the HTTPIndex is rooted at var baseURI = HTTPIndex.BaseURL; if (baseURI && (baseURI.indexOf("ftp://") == 0)) { // fix bug # 37102: if its a FTP directory ... | |
gVersion = 150; | gVersion = 160; | function init(){ if (document.location.search.indexOf('?') != 0) { // not called with a query string return; } var re = /test=([^;]+);language=(language|type);([a-zA-Z0-9.=;\/]+)/; var matches = re.exec(document.location.search); // testpath http://machine/path-to-suite/sub-suite/test.js var testpath = ma... |
gVersion = 150; | gVersion = 170; | function init(){ if (document.location.search.indexOf('?') != 0) { // not called with a query string return; } var re = /test=([^;]+);language=(language|type);([a-zA-Z0-9.=;\/]+)/; var matches = re.exec(document.location.search); // testpath http://machine/path-to-suite/sub-suite/test.js var testpath = ma... |
else if (this.chosenApp && this.chosenApp.unicodePath) | else if (this.chosenApp && this.chosenApp.path) | initAppAndSaveToDiskValues: function() { // Pre-select the choice the user made last time. this.chosenApp = this.mLauncher.MIMEInfo.preferredApplicationHandler; var applicationDescription = this.mLauncher.MIMEInfo.applicationDescription; if (applicationDescription != "") { ... |
this.updateApplicationName(this.chosenApp.unicodePath); | this.updateApplicationName(this.chosenApp.path); | initAppAndSaveToDiskValues: function() { // Pre-select the choice the user made last time. this.chosenApp = this.mLauncher.MIMEInfo.preferredApplicationHandler; var applicationDescription = this.mLauncher.MIMEInfo.applicationDescription; if (applicationDescription != "") { ... |
showErrorDlg(getMsg(MSG_ERR_UNKNOWN_HOST, url)); | client.host = ""; | function initApplicationCompatibility(){ // This routine does nothing more than tweak the UI based on the host // application. // Set up simple host and platform information. client.host = "Unknown"; if ("getBrowserURL" in window) { var url = getBrowserURL(); if (url == "chrome://navigat... |
CIRCServer.prototype.HOST_RPLY = client.host + ", " + client.platform; | function initApplicationCompatibility(){ // This routine does nothing more than tweak the UI based on the host // application. // Set up simple host and platform information. client.host = "Unknown"; if ("getBrowserURL" in window) { var url = getBrowserURL(); if (url == "chrome://navigat... | |
composite.addObserver(calCompositeCalendarObserver, 0); | composite.addObserver(calCompositeCalendarObserver); | function initCalendarManager(){ var calMgr = getCalendarManager(); var composite = getDisplayComposite(); if (calMgr.getCalendars({}).length == 0) { var homeCalendar = calMgr.createCalendar("storage", makeURL("moz-profile-calendar://")); calMgr.registerCalendar(homeCalendar); var name = sr... |
default: dialog.CellHAlignList.selectedIndex = 0; | default: dialog.CellHAlignList.selectedIndex = (globalCellElement.nodeName.toLowerCase() == "th") ? 1 : 0; | function InitCellPanel(){ // Get cell attributes if (globalCellElement) { // This assumes order of items is Cell, Row, Column dialog.SelectionList.selectedIndex = SelectedCellsType-1; var previousValue = dialog.CellHeightInput.value; dialog.CellHeightInput.value = InitPixelOrPercentMenulist(globalCellEle... |
dialog.CellHeightInput.value = InitPixelOrPercentMenulist(globalCellElement, CellElement, "height", "CellHeightUnits", gPercent); | dialog.CellHeightInput.value = InitPixelOrPercentMenulist(globalCellElement, CellElement, "height", "CellHeightUnits", gPixel); | function InitCellPanel(){ // Get cell attributes if (globalCellElement) { // This assumes order of items is Cell, Row, Column dialog.SelectionList.selectedIndex = SelectedCellsType-1; var previousValue = dialog.CellHeightInput.value; dialog.CellHeightInput.value = InitPixelOrPercentMenulist(globalCellEle... |
dialog.CellStyleList.selectedIndex = (globalCellElement.nodeName.toLowerCase == "th") ? 1 : 0; | dialog.CellStyleList.selectedIndex = (globalCellElement.nodeName.toLowerCase() == "th") ? 1 : 0; | function InitCellPanel(){ // Get cell attributes if (globalCellElement) { // This assumes order of items is Cell, Row, Column dialog.SelectionList.selectedIndex = SelectedCellsType-1; var previousValue = dialog.CellHeightInput.value; dialog.CellHeightInput.value = InitPixelOrPercentMenulist(globalCellEle... |
var send_default_charset = prefs.CopyCharPref("mailnews.send_default_charset"); var menuitem = document.getElementById(send_default_charset); if (menuitem) menuitem.setAttribute('checked', 'true'); else dump("getElementById failed for " + send_default_charset + "\n"); | var compFieldsCharset = msgCompose.compFields.GetCharacterSet(); if (compFieldsCharset.toUpperCase() == "US-ASCII") compFieldsCharset = "ISO-8859-1"; menuitem = document.getElementById(compFieldsCharset); if (send_default_charset.toUpperCase() != compFieldsCharset.toUpperCase()) { if (menuitem && menuitem.getAttribut... | function InitCharsetMenuCheckMark(){ // return if the charset is already set explitily if (currentMailSendCharset != null) { dump("already set to " + currentMailSendCharset + "\n"); return; } // try to get preferences service var prefs = null; try { prefs = Components.classes['component://netscape/prefer... |
if (compFieldsCharset.toUpperCase() == "US-ASCII") | compFieldsCharset = compFieldsCharset.toUpperCase(); if (compFieldsCharset == "US-ASCII") | function InitCharsetMenuCheckMark(){ // dump("msgCompose.compFields is " + msgCompose.compFields.GetCharacterSet() + "\n"); // return if the charset is already set explitily if (currentMailSendCharset != null) { dump("already set to " + currentMailSendCharset + "\n"); return; } var menuitem; // try to get ... |
if (send_default_charset.toUpperCase() != compFieldsCharset.toUpperCase()) { if (menuitem && menuitem.getAttribute('checked') == false) { menuitem.setAttribute('checked', 'true'); return; } | if (send_default_charset != compFieldsCharset) { menuitem.setAttribute('checked', 'true'); return; | function InitCharsetMenuCheckMark(){ // dump("msgCompose.compFields is " + msgCompose.compFields.GetCharacterSet() + "\n"); // return if the charset is already set explitily if (currentMailSendCharset != null) { dump("already set to " + currentMailSendCharset + "\n"); return; } var menuitem; // try to get ... |
this.showItem( "context-selectall", !this.inDirList ); | initClipboardItems : function () { // Select All is always OK. // Copy depends on whether there is selected text. // Enabling this context menu item is now done through the global // command updating system // this.setItemAttr( "context-copy", "disabled", this.isNoTextSelected... | |
this.showItem( "context-selectall", this.isTextSelected || this.onTextInput ); this.showItem( "context-sep-selectall", this.isTextSelected ); | this.showItem( "context-selectall", true ); this.showItem( "context-sep-selectall", this.isTextSelected && !this.onTextInput ); | initClipboardItems : function () { // Copy depends on whether there is selected text. // Enabling this context menu item is now done through the global // command updating system // this.setItemAttr( "context-copy", "disabled", !this.isTextSelected() ); goUpdateGlobalEditMenuItems... |
if ( !this.onLink ) { this.removeItem( "context-copylink" ); } | this.showItem( "context-copylink", this.onLink ); | initClipboardItems : function () { // Select All is always OK. // Copy depends on whether there is selected text. this.setItemAttr( "context-copy", "disabled", this.isNoTextSelected() ); // Copy link location depends on whether we're on a link. if ( !this.onLink ) { ... |
if ( !this.onImage ) { this.removeItem( "context-copyimage" ); } | this.showItem( "context-copyimage", this.onImage ); | initClipboardItems : function () { // Select All is always OK. // Copy depends on whether there is selected text. this.setItemAttr( "context-copy", "disabled", this.isNoTextSelected() ); // Copy link location depends on whether we're on a link. if ( !this.onLink ) { ... |
var tb = new inOutlinerBuilder(this.mDOMOutliner, kInspectorNSURI, "Child"); tb.allowDragColumns = true; tb.isRefContainer = false; tb.isContainer = true; tb.rowAttributes = gColumnAttrs; tb.rowFields = gColumnExtras; this.mOutlinerBuilder = tb; tb.initialize(); for (var i = 0; i < cols.length; i++) { this.mColumnHas... | initColumns: function() { var colPref = PrefUtils.getPref("inspector.dom.columns"); var cols = colPref.split(",") this.mColumns = cols; this.mColumnHash = {}; var tb = new inOutlinerBuilder(this.mDOMOutliner, kInspectorNSURI, "Child"); tb.allowDragColumns = true; tb.isRefContainer = false;... | |
resultsTree = document.getElementById("resultsTree"); | gResultsOutliner = document.getElementById("abResultsOutliner"); | function InitCommonJS(){ dirTree = document.getElementById("dirTree"); resultsTree = document.getElementById("resultsTree");} |
me.mContentDS = XPCU.createInstance(kDOMDataSourceIID, "inIDOMDataSource"); me.mContentDS.removeFilterByType(3); me.mContentOutlinerBody.database.AddDataSource(me.mContentDS); var tb = new inOutlinerBuilder(me.mContentOutliner, kInspectorNSURI, "Child"); tb.rowFields = {"nodeType": "nodeType"}; tb.initialize(); tb.ad... | me.mContentView = XPCU.createInstance(kDOMViewCID, "inIDOMView"); me.mContentView.removeFilterByType(Node.TEXT_NODE); me.mContentOutliner.outlinerBoxObject.view = me.mContentView; | initContent: function() { if (this.mContentInit) return; window.setTimeout(function(me) { // prepare and attach the content DOM datasource me.mContentDS = XPCU.createInstance(kDOMDataSourceIID, "inIDOMDataSource"); me.mContentDS.removeFilterByType(3); me.mContentOutlinerBody.database.AddDat... |
var dbService = Components.classes[kStorageServiceContractID].getService(kStorageServiceIID); if ( "getProfileStorage" in dbService ) { this.mDB = dbService.getProfileStorage("profile"); } else { this.mDB = dbService.openSpecialDatabase("profile"); } | var checkSchema = true; | initDB: function() { var sqlTables = { cal_calendars: "id INTEGER PRIMARY KEY, type STRING, uri STRING", cal_calendars_prefs: "id INTEGER PRIMARY KEY, calendar INTEGER, name STRING, value STRING" }; var dbService = Components.classes[kStorageServiceContractID].getServic... |
try { | if (!this.mDB.tableExists(table)) { | initDB: function() { var sqlTables = { cal_calendars: "id INTEGER PRIMARY KEY, type STRING, uri STRING", cal_calendars_prefs: "id INTEGER PRIMARY KEY, calendar INTEGER, name STRING, value STRING" }; var dbService = Components.classes[kStorageServiceContractID].getServic... |
} catch (ex) { dump("error creating table " + table + " -- probably already exists\n"); | checkSchema = false; } } if (checkSchema) { var version = this.getSchemaVersion(); if (version < this.DB_SCHEMA_VERSION) { } else if (version > this.DB_SCHEMA_VERSION) { var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService); var brandSb = sbs.... | initDB: function() { var sqlTables = { cal_calendars: "id INTEGER PRIMARY KEY, type STRING, uri STRING", cal_calendars_prefs: "id INTEGER PRIMARY KEY, calendar INTEGER, name STRING, value STRING" }; var dbService = Components.classes[kStorageServiceContractID].getServic... |
var enumer = new Object(); enumer.enumerateScript = function (script) { addScript(script); return true; } console.jsds.enumerateScripts(enumer); | function initDebugger(){ console._continueCodeStack = new Array(); console._breakpoints = new Array(); console._stopLevel = 0; console._scriptCount = 0; /* create the debugger instance */ if (!Components.classes[JSD_CTRID]) throw BadMojo (ERR_NO_DEBUGGER); console.jsds = Component... | |
console.jsds.flags = jsdIDebuggerService.ENABLE_NATIVE_FRAMES; | function initDebugger(){ dd ("initDebugger {"); console._continueCodeStack = new Array(); /* top of stack is the default */ /* return code for the most */ /* recent debugTrap(). */ console.scripts = n... | |
console._stopLevel = 0; | function initDebugger(){ dd ("initDebugger {"); console._continueCodeStack = new Array(); /* top of stack is the default */ /* return code for the most */ /* recent debugTrap(). */ console.scripts = n... | |
[["dumpfilters", cmdDumpFilters, CMD_CONSOLE | CMD_NO_HELP], | [["dumpcontexts", cmdDumpContexts, CMD_CONSOLE | CMD_NO_HELP], ["dumpfilters", cmdDumpFilters, CMD_CONSOLE | CMD_NO_HELP], | function initDev(){ var cmdary = [["dumpfilters", cmdDumpFilters, CMD_CONSOLE | CMD_NO_HELP], ["reloadui", cmdReloadUI, CMD_CONSOLE | CMD_NO_HELP], ["testargs", cmdTestArgs, CMD_CONSOLE | CMD_NO_HELP], ["testargs1", cmdTestArgs, CMD_CONSOLE | CMD_NO_HEL... |
document.getElementById( "appName" ).value = this.chosenApp.unicodePath; | document.getElementById( "appName" ).value = this.chosenApp.path; | initDialog : function () { // "Always ask me" is always set (or else we wouldn't have got here!). document.getElementById( "alwaysAskMe" ).checked = true; document.getElementById( "alwaysAskMe" ).setAttribute("disabled", "true"); // Pre-select the choice the user made last time. ... |
var win = this.dialogElement( "unknownContentType" ); | initDialog : function() { // Put file name in window title. var win = this.dialogElement( "unknownContentType" ); var suggestedFileName = this.mLauncher.suggestedFileName; // Some URIs do not implement nsIURL, so we can't just QI. var url = this.mLauncher.source; ... | |
win.setAttribute( "title", this.mTitle ); | this.mDialog.document.title = this.mTitle; | initDialog : function() { // Put file name in window title. var win = this.dialogElement( "unknownContentType" ); var suggestedFileName = this.mLauncher.suggestedFileName; // Some URIs do not implement nsIURL, so we can't just QI. var url = this.mLauncher.source; ... |
if (suggestedFileName) fname = suggestedFileName; | initDialog : function() { // Check if file is executable (in which case, we will go straight to // "save to disk"). var ignore1 = new Object; var ignore2 = new Object; var tmpFile = this.mLauncher.getDownloadInfo( ignore1, ignore2 ); if ( tmpFile.isExecutable() ) { ... | |
var url = this.mLauncher.source; | var url = this.mLauncher.source.clone(); url.userPass = ""; | initDialog : function() { // Put product brand short name in prompt. var prompt = this.dialogElement( "prompt" ); var modified = this.replaceInsert( prompt.firstChild.nodeValue, 1, this.getString( "brandShortName" ) ); prompt.firstChild.nodeValue = modified; // Put file name ... |
gDialog.centerAlign.checked = (align == "center center" || align == "auto auto"); | gDialog.leftAlign.checked = (align == "left left" || align == "0px auto"); gDialog.centerAlign.checked = (align == "center center" || align == "auto auto" || align == " "); | function InitDialog(){ // Just to be confusing, "size" is used instead of height because it does // not accept % values, only pixels var height = GetHTMLOrCSSStyleValue(globalElement, "size", "height") height = StripPxUnit(height); if(!height) { height = 2; //Default value } // We will use "height" here and i... |
gDialog.leftAlign.checked = (align == "left left" || align == "0px auto" || align == " "); | function InitDialog(){ // Just to be confusing, "size" is used instead of height because it does // not accept % values, only pixels var height = GetHTMLOrCSSStyleValue(globalElement, "size", "height") height = StripPxUnit(height); if(!height) { height = 2; //Default value } // We will use "height" here and i... | |
selectedText = editorShell.selectionAsText; | selectedText = GetSelectionAsText(); | function initDialog(){ // Get a single selected anchor element anchorElement = editorShell.GetSelectedElement(tagName); selection = editorShell.editorSelection; if (selection) { dump("There is a selection: collapsed = "+selection.isCollapsed+"\n"); } else { dump("Failed to get selection\n"); } if (anchorEl... |
gDialog.scalingLabel = document.getElementById("scalingInput"); | function initDialog(){ gDialog = new Object; gDialog.orientation = document.getElementById("orientation"); gDialog.printBGColors = document.getElementById("printBGColors"); gDialog.printBGImages = document.getElementById("printBGImages"); gDialog.topInput = document.getElementById("topInput"); gDia... | |
bv = GetHTMLOrCSSStyleValue(globalElement, "border", "border-top-width"); | var bv = GetHTMLOrCSSStyleValue(globalElement, "border", "border-top-width"); | function InitDialog(){ // Set the controls to the image's attributes gDialog.srcInput.value = globalElement.getAttribute("src"); // Set "Relativize" checkbox according to current URL state SetRelativeCheckbox(); // Force loading of image from its source and show preview image LoadPreviewImage(); gDialog.altTextI... |
dialog.a3Radio = document.getElementById("a3Radio"); | function initDialog(){ dialog = new Object; dialog.findKey = document.getElementById("dialog.findKey"); dialog.caseSensitive = document.getElementById("dialog.caseSensitive"); dialog.wrap = document.getElementById("dialog.wrap"); dialog.searchBackwards = document.getElementById("dialog.searchB... | |
window.sizeToContent(); | function InitDialog(){ // Just to be confusing, "size" is used instead of height // We will use "height" here and in UI dialog.heightInput.value = globalElement.getAttribute("size"); // Get the width attribute of the element, stripping out "%" // This sets contents of combobox (adds pixel and percent option elemen... | |
dialog.allpagesRadio = document.getElementById("allpagesRadio"); dialog.rangeRadio = document.getElementById("rangeRadio"); dialog.selectionRadio = document.getElementById("selectionRadio"); dialog.frompageInput = document.getElementById("frompageInput"); dialog.frompageLabel = document.getElementById("from... | function initDialog(){ dialog = new Object; dialog.findKey = document.getElementById("dialog.findKey"); dialog.caseSensitive = document.getElementById("dialog.caseSensitive"); dialog.wrap = document.getElementById("dialog.wrap"); dialog.searchBackwards = document.getElementById("dialog.searchB... | |
dump("Found existing image\n"); | dialog.Src.value = imageElement.getAttribute("src"); dialog.AltText.value = imageElement.getAttribute("alt"); | function initDialog() { // Get a single selected anchor element imageElement = appCore.getSelectedElement(tagName); if (imageElement) { // We found an element and don't need to insert one insertNew = false; dump("Found existing image\n"); } else { insertNew = true; // We don't have an element selecte... |
imageElement = appCore.getSelectedElement(tagName); | element = appCore.getSelectedElement(tagName); | function initDialog() { // Get a single selected anchor element imageElement = appCore.getSelectedElement(tagName); if (imageElement) { // We found an element and don't need to insert one insertNew = false; dump("Found existing image\n"); } else { insertNew = true; // We don't have an element selecte... |
if (imageElement) { | if (element) { | function initDialog() { // Get a single selected anchor element imageElement = appCore.getSelectedElement(tagName); if (imageElement) { // We found an element and don't need to insert one insertNew = false; dump("Found existing image\n"); } else { insertNew = true; // We don't have an element selecte... |
imageElement = appCore.createElementWithDefaults(tagName); | element = appCore.createElementWithDefaults(tagName); | function initDialog() { // Get a single selected anchor element imageElement = appCore.getSelectedElement(tagName); if (imageElement) { // We found an element and don't need to insert one insertNew = false; dump("Found existing image\n"); } else { insertNew = true; // We don't have an element selecte... |
if(!imageElement) | if(!element) | function initDialog() { // Get a single selected anchor element imageElement = appCore.getSelectedElement(tagName); if (imageElement) { // We found an element and don't need to insert one insertNew = false; dump("Found existing image\n"); } else { insertNew = true; // We don't have an element selecte... |
if (globalElement.attributes.getNamedItem("noshade")) gDialog.shading.checked = false; else gDialog.shading.checked = true; | gDialog.shading.checked = globalElement.hasAttribute("noshade"); | function InitDialog(){ // Just to be confusing, "size" is used instead of height because it does // not accept % values, only pixels var height = GetHTMLOrCSSStyleValue(globalElement, "size", "height") height = StripPxUnit(height); if(!height) { height = 2; //Default value } // We will use "height" here and i... |
var mode = gToolbox.getAttribute("mode"); document.getElementById("modelist").value = mode; var iconSize = gToolbox.getAttribute("iconsize"); | gPreviousMode = gToolbox.getAttribute("mode"); document.getElementById("modelist").value = gPreviousMode; gPreviousIconSize = gToolbox.getAttribute("iconsize"); | function initDialog(){ document.getElementById("main-box").collapsed = false; var mode = gToolbox.getAttribute("mode"); document.getElementById("modelist").value = mode; var iconSize = gToolbox.getAttribute("iconsize"); var smallIconsCheckbox = document.getElementById("smallicons"); if (mode == "text") small... |
if (mode == "text") | if (gPreviousMode == "text") | function initDialog(){ document.getElementById("main-box").collapsed = false; var mode = gToolbox.getAttribute("mode"); document.getElementById("modelist").value = mode; var iconSize = gToolbox.getAttribute("iconsize"); var smallIconsCheckbox = document.getElementById("smallicons"); if (mode == "text") small... |
smallIconsCheckbox.checked = iconSize == "small"; | smallIconsCheckbox.checked = gPreviousIconSize == "small"; | function initDialog(){ document.getElementById("main-box").collapsed = false; var mode = gToolbox.getAttribute("mode"); document.getElementById("modelist").value = mode; var iconSize = gToolbox.getAttribute("iconsize"); var smallIconsCheckbox = document.getElementById("smallicons"); if (mode == "text") small... |
wrapToolbarItems(); | wrapToolbarItems(true); | function initDialog(){ document.getElementById("main-box").collapsed = false; var mode = gToolbox.getAttribute("mode"); document.getElementById("modelist").value = mode; var iconSize = gToolbox.getAttribute("iconsize"); var smallIconsCheckbox = document.getElementById("smallicons"); if (mode == "text") small... |
dialog.StartingNumberInput.value = ""; var type = globalElement.getAttribute("type"); var index = 0; if (ListType == "ul") { if (type) { type = type.toLowerCase(); if (type == "circle") index = 1; else if (type == "square") index = 2; } } else if (ListType == "ol") { switch (type) { case "I": index = 1; break; case "... | function InitDialog(){ if (ListElement) ListType = ListElement.nodeName.toLowerCase(); else ListType = ""; BuildBulletStyleList();} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.