rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
initApplicationCompatibility(); | initIcons(); | 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... |
oObserverService.AddObserver(oNavObserver, "StartDocumentLoad"); oObserverService.AddObserver(oNavObserver, "EndDocumentLoad"); oObserverService.AddObserver(oNavObserver, "FailDocumentLoad"); | oObserverService.addObserver(oNavObserver, "StartDocumentLoad", false); oObserverService.addObserver(oNavObserver, "EndDocumentLoad", false); oObserverService.addObserver(oNavObserver, "FailDocumentLoad", false); | function Init(){ // Initialize the Related Links panel // Install our navigation observer so we can track the main client window. oContentWindow = window._content; oFrame = document.getElementById('daFrame'); if (oContentWindow && oFrame) { window.setTimeout('window._content.resizeBy(0,1);window._content.resizeBy(0,-1... |
oContentWindow = window._content; | oContentWindow = window.content; | function Init(){ // Initialize the Related Links panel // Install our navigation observer so we can track the main client window. oContentWindow = window._content; oFrame = document.getElementById('daFrame'); if (oContentWindow && oFrame) { var oObserverService = Components.classes["@mozilla.org/observer-service;1"].g... |
prefInt = Components.classes["@mozilla.org/preferences;1"]; | prefBranch = Components.classes["@mozilla.org/preferences-service;1"]; | function Init(){ var applicationArea = ""; if ("arguments" in window && window.arguments[0]) applicationArea = window.arguments[0]; prefInt = Components.classes["@mozilla.org/preferences;1"]; if (prefInt) { prefInt = prefInt.getService(Components.interfaces.nsIPref); if (applicationArea.indexOf("mail") != ... |
if (prefInt) { prefInt = prefInt.getService(Components.interfaces.nsIPref); | if (prefBranch) { prefBranch = prefBranch.getService(Components.interfaces.nsIPrefBranch); | function Init(){ var applicationArea = ""; if ("arguments" in window && window.arguments[0]) applicationArea = window.arguments[0]; prefInt = Components.classes["@mozilla.org/preferences;1"]; if (prefInt) { prefInt = prefInt.getService(Components.interfaces.nsIPref); if (applicationArea.indexOf("mail") != ... |
pref_string_content = prefInt.getLocalizedUnicharPref(pref_string_title); | pref_string_object = prefBranch.getComplexValue(pref_string_title, Components.interfaces.nsIPrefLocalizedString) pref_string_content = pref_string_object.data; | function Init(){ var applicationArea = ""; if ("arguments" in window && window.arguments[0]) applicationArea = window.arguments[0]; prefInt = Components.classes["@mozilla.org/preferences;1"]; if (prefInt) { prefInt = prefInt.getService(Components.interfaces.nsIPref); if (applicationArea.indexOf("mail") != ... |
doSetOKCancel(AddAvailableLanguage); | function Init(){ doSetOKCancel(AddAvailableLanguage); try { GetBundles(); } catch(ex) { } ReadAvailableLanguages(); if (!("arguments" in window)) { //no caller arguments - load base window try { active_languages = document.getElementById('active_languages'); active_languages_treer... | |
try { prefBranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null); } catch (e) {} | prefInt = Components.classes["@mozilla.org/preferences;1"]; | function Init(){ var applicationArea = ""; if ("arguments" in window && window.arguments[0]) applicationArea = window.arguments[0]; try { prefBranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null); } catch (e) {} if (prefBranch) { ... |
if (prefBranch) { | if (prefInt) { prefInt = prefInt.getService(Components.interfaces.nsIPref); | function Init(){ var applicationArea = ""; if ("arguments" in window && window.arguments[0]) applicationArea = window.arguments[0]; try { prefBranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null); } catch (e) {} if (prefBranch) { ... |
pref_string_object = prefBranch.getComplexValue(pref_string_title, Components.interfaces.nsIPrefLocalizedString); pref_string_content = pref_string_object.data; | pref_string_content = prefInt.getLocalizedUnicharPref(pref_string_title); | function Init(){ var applicationArea = ""; if ("arguments" in window && window.arguments[0]) applicationArea = window.arguments[0]; try { prefBranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null); } catch (e) {} if (prefBranch) { ... |
helpTocPanel = document.getElementById("help-toc-outliner"); helpIndexPanel = document.getElementById("help-index-outliner"); helpGlossaryPanel = document.getElementById("help-glossary-outliner"); | helpTocPanel = document.getElementById("help-toc-tree"); helpIndexPanel = document.getElementById("help-index-tree"); helpGlossaryPanel = document.getElementById("help-glossary-tree"); | function init() { //cache panel references. helpWindow = document.getElementById("help"); helpSearchPanel = document.getElementById("help-search-panel"); helpTocPanel = document.getElementById("help-toc-outliner"); helpIndexPanel = document.getElementById("help-index-outliner"); helpGlossaryPanel = document.getEl... |
updateUserlistSide(client.prefs["userlistLeft"]); | 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 ... | |
reportCompare(expect, actual, summary); | function init(){ var inp = document.getElementsByTagName("input")[0]; countProps(inp); window.open().close(); // force gc? var blurfun = inp.blur; blurfun.__proto__ = null; countProps(blurfun);} | |
if (items.length > 0) document.getElementById("addonsTree").hidden = false; | 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 =... | |
disableDebugCommands(); | function init(){ initPrefs(); initCommands(); initDebugger(); initOutliners(); window._content = console._outputDocument = document.getElementById("output-iframe").contentDocument; console._outputElement = console._outputDocument.getElementById("output-tbody"); console._slIn... | |
var treebody = document.getElementById('NC:FlashRoot'); treebody.setAttribute('id', 'NC:FlashRoot'); | tree.setAttribute('ref', 'NC:FlashRoot'); | function Init(){ // Initialize the Flash panel. dump('Init!\n'); var tree = document.getElementById('tree'); // Install all the datasources named in the Flash Registry into // the tree control. Datasources are listed as members of the // NC:FlashDataSources sequence, and are loaded in the order that ... |
var width = document.documentElement.getAttribute("width"); var height = document.documentElement.getAttribute("height"); window.moveTo(screen.availWidth-width, (screen.availHeight-height)/2); | var sessionHistory = Components.classes["@mozilla.org/browser/shistory;1"] .createInstance(Components.interfaces.nsISHistory); | function init() { //cache panel references. helpWindow = document.getElementById("help"); helpSearchPanel = document.getElementById("help-search-panel"); helpTocPanel = document.getElementById("help-toc-panel"); helpIndexPanel = document.getElementById("help-index-panel"); helpGlossaryPanel = document.getElementB... |
var sessionHistory = Components.classes["@mozilla.org/browser/shistory;1"] .createInstance(Components.interfaces.nsISHistory); | window.XULBrowserWindow = new nsHelpStatusHandler(); | function init() { //cache panel references. helpWindow = document.getElementById("help"); helpSearchPanel = document.getElementById("help-search-panel"); helpTocPanel = document.getElementById("help-toc-panel"); helpIndexPanel = document.getElementById("help-index-panel"); helpGlossaryPanel = document.getElementB... |
getWebNavigation().sessionHistory = sessionHistory; window.XULBrowserWindow = new nsHelpStatusHandler(); var interfaceRequestor = helpBrowser.docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor); var webProgress = interfaceRequestor.getInterface(Components.interfaces.nsIWebProgress); | const interfaceRequestor = helpBrowser.docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor); const webProgress = interfaceRequestor.getInterface(Components.interfaces.nsIWebProgress); | function init() { //cache panel references. helpWindow = document.getElementById("help"); helpSearchPanel = document.getElementById("help-search-panel"); helpTocPanel = document.getElementById("help-toc-panel"); helpIndexPanel = document.getElementById("help-index-panel"); helpGlossaryPanel = document.getElementB... |
initOutliners(); | initTrees(); | function init(){ var ary = navigator.userAgent.match (/;\s*([^;\s]+\s*)\).*\/(\d+)/); if (ary) { console.userAgent = "Venkman " + console.version + " [Mozilla " + ary[1] + "/" + ary[2] + "]"; } else { console.userAgent = "Venkman " + console.version + " [" + n... |
setTimeout("checkLogFiles()", 3602000 - (Date.now() % 3600000)); | setTimeout("checkLogFiles()", 3602000 - (Number(new Date()) % 3600000)); | 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 (baseURI && (baseURI.indexOf("ftp: { if (baseURI.substr(baseURI.length - 1) != "/") { debug("append traiing slash to FTP directory URL\n"); baseURI += "/"; } var node = document.getElementById("main-splitter"); node.setAttribute("hidden", false); node = document.getElementById("logbox"); node.setAttribute("hid... | if (baseURI && (baseURI.indexOf("ftp: if (baseURI.substr(baseURI.length - 1) != "/") { debug("append traiing slash to FTP directory URL\n"); 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 ... |
if (baseURI && (baseURI.indexOf("file: tree.database.AddDataSource(HTTPIndex); | var node = document.getElementById("main-splitter"); node.setAttribute("hidden", false); node = document.getElementById("logbox"); node.setAttribute("hidden", false); } if (baseURI && (baseURI.indexOf("file: tree.database.AddDataSource(HTTPIndex); } var RDF = Components.classes[RDFSERVICE_CONTRACTID].getService(... | 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 RDF = Components.classes[RDFSERVICE_CONTRACTID].getService(); if (RDF) RDF = RDF.QueryInterface(nsIRDFService); if (RDF) { loadingArc = RDF.GetResource(NC_LOADING, true); | 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 httpDS = HTTPIndex.DataSource; if (httpDS) httpDS = httpDS.QueryInterface(nsIHTTPIndex); if (httpDS) { httpDS.encoding = "ISO-8859-1"; | 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 ... |
if (window._content.defaultCharacterset) { httpDS.encoding = window._content.defaultCharacterset; } } } document.title = baseURI; tree.database.AddObserver(RDF_observer); debug("Directory: added observer\n"); tree.setAttribute("ref", baseURI); | tree.setAttribute("ref", 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 ... |
gFields = ["name", "url", "shortcut", "description", "webpanel", "feedurl"]; | gFields = ["name", "url", "shortcut", "description", "webpanel", "feedurl", "microsummaryMenuList"]; | function Init(){ // assume the user will press cancel (only used when creating new resources) window.arguments[1].ok = false; // This is the set of fields that are visible in the window. gFields = ["name", "url", "shortcut", "description", "webpanel", "feedurl"]; // ...and this is a parallel array that contain... |
RDF.GetResource(gNC_NS+"FeedURL")]; | RDF.GetResource(gNC_NS+"FeedURL"), RDF.GetResource(gNC_NS+"GeneratedTitle")]; | function Init(){ // assume the user will press cancel (only used when creating new resources) window.arguments[1].ok = false; // This is the set of fields that are visible in the window. gFields = ["name", "url", "shortcut", "description", "webpanel", "feedurl"]; // ...and this is a parallel array that contain... |
else if (gFields[i] == "microsummaryMenuList") { if (MicrosummaryPicker.enabled) MicrosummaryPicker.init(); continue; } | function Init(){ // assume the user will press cancel (only used when creating new resources) window.arguments[1].ok = false; // This is the set of fields that are visible in the window. gFields = ["name", "url", "shortcut", "description", "webpanel", "feedurl"]; // ...and this is a parallel array that contain... | |
initHandlers(); | function init(){ initPrefs(); initCommands(); initMenus(); initOutliners(); disableDebugCommands(); console._outputDocument = document.getElementById("output-iframe").contentDocument; console._outputElement = console._outputDocument.getElementById("output-tbody"); ... | |
new RegExp ("(\\S{" + console.prefs["output.wordbreak.length"] + ",})"), | new RegExp ("(\\S{" + MAX_WORD_LEN + ",})"), | function init(){ initPrefs(); initCommands(); initOutliners(); disableDebugCommands(); window._content = console._outputDocument = document.getElementById("output-iframe").contentDocument; console._outputElement = console._outputDocument.getElementById("output-tbody"); c... |
htmlobj.tree_node = document.getElementById('html_domains'); htmlobj.treeroot_node = document.getElementById('html_domains_root'); plainobj.tree_node = document.getElementById('plaintext_domains'); plainobj.treeroot_node = document.getElementById('plaintext_domains_root'); | htmlobj.listbox = document.getElementById('html_domains'); plainobj.listbox = document.getElementById('plaintext_domains'); | function Init(){ try { parent.initPanel('chrome://messenger/content/messengercompose/pref-formatting.xul'); } catch(ex) { dump("*** Couldn't initialize page switcher and pref loader.\n"); //pref service backup } //catch //Initialize the objects htmlobj = new Object(); plainobj = new Object(); //Initial... |
else if(value.indexOf('1.6') != -1) { gVersion = 150; } else if(value.indexOf('1.7') != -1) { gVersion = 150; } | 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... | |
initInstrumentation(); | 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 ... | |
function Init(sidebardb, sidebar_resource) | function Init() | function Init(sidebardb, sidebar_resource){ dump("here we go \n"); // Initialize the Sidebar // Install all the datasources named in the Flash Registry into // the tree control. Datasources are listed as members of the // NC:FlashDataSources sequence, and are loaded in the order that // they appear in that sequenc... |
dump("here we go \n"); | sidebar.db = window.arguments[0]; sidebar.resource = window.arguments[1]; | function Init(sidebardb, sidebar_resource){ dump("here we go \n"); // Initialize the Sidebar // Install all the datasources named in the Flash Registry into // the tree control. Datasources are listed as members of the // NC:FlashDataSources sequence, and are loaded in the order that // they appear in that sequenc... |
var registry = RDF.GetDataSource(sidebardb); | dump("Sidebar Customize Init("+sidebar.db+",\n "+sidebar.resource+")\n"); var registry; try { registry = Components.classes['component: registry = registry.QueryInterface(Components.interfaces.nsIRDFDataSource); | function Init(sidebardb, sidebar_resource){ dump("here we go \n"); // Initialize the Sidebar // Install all the datasources named in the Flash Registry into // the tree control. Datasources are listed as members of the // NC:FlashDataSources sequence, and are loaded in the order that // they appear in that sequenc... |
var remote = registry.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource); remote.Init(sidebar.db); remote.Refresh(true); } catch (ex) { registry = RDF.GetDataSource(sidebar.db); } | function Init(sidebardb, sidebar_resource){ dump("here we go \n"); // Initialize the Sidebar // Install all the datasources named in the Flash Registry into // the tree control. Datasources are listed as members of the // NC:FlashDataSources sequence, and are loaded in the order that // they appear in that sequenc... | |
sb_datasource.Init(registry, RDF.GetResource(sidebar_resource)); | sb_datasource.Init(registry, RDF.GetResource(sidebar.resource)); | function Init(sidebardb, sidebar_resource){ dump("here we go \n"); // Initialize the Sidebar // Install all the datasources named in the Flash Registry into // the tree control. Datasources are listed as members of the // NC:FlashDataSources sequence, and are loaded in the order that // they appear in that sequenc... |
dump(sb_datasource.GetElements() + '\n'); | function Init(sidebardb, sidebar_resource){ dump("here we go \n"); // Initialize the Sidebar // Install all the datasources named in the Flash Registry into // the tree control. Datasources are listed as members of the // NC:FlashDataSources sequence, and are loaded in the order that // they appear in that sequenc... | |
var countTotal = sb_datasource.GetCount(); dump("Start Get:" + countTotal + "\n"); | function Init(sidebardb, sidebar_resource){ dump("here we go \n"); // Initialize the Sidebar // Install all the datasources named in the Flash Registry into // the tree control. Datasources are listed as members of the // NC:FlashDataSources sequence, and are loaded in the order that // they appear in that sequenc... | |
dump(count + "\n"); | function Init(sidebardb, sidebar_resource){ dump("here we go \n"); // Initialize the Sidebar // Install all the datasources named in the Flash Registry into // the tree control. Datasources are listed as members of the // NC:FlashDataSources sequence, and are loaded in the order that // they appear in that sequenc... | |
if (window._content.defaultCharacterset) httpDS.encoding = window._content.defaultCharacterset; | if (window.content.defaultCharacterset) httpDS.encoding = window.content.defaultCharacterset; | 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 // ensure it en... |
{ var ary = navigator.userAgent.match (/;\s*([^;\s]+\s*)\).*\/(\d+)/); if (ary) { console.userAgent = "Venkman " + console.version + " [Mozilla " + ary[1] + "/" + ary[2] + "]"; } else { console.userAgent = "Venkman " + console.version + " [" + navigator.userAgent + "]"; } | { dd ("init {"); var i; | function init(){ var ary = navigator.userAgent.match (/;\s*([^;\s]+\s*)\).*\/(\d+)/); if (ary) { console.userAgent = "Venkman " + console.version + " [Mozilla " + ary[1] + "/" + ary[2] + "]"; } else { console.userAgent = "Venkman " + console.version + " [" + n... |
console.debuggerWindow = getBaseWindowFromWindow(window); | console.baseWindow = getBaseWindowFromWindow(window); console.mainWindow = window; console.dnd = nsDragAndDrop; console.files = new Object(); console.pluginState = new Object(); | function init(){ var ary = navigator.userAgent.match (/;\s*([^;\s]+\s*)\).*\/(\d+)/); if (ary) { console.userAgent = "Venkman " + console.version + " [Mozilla " + ary[1] + "/" + ary[2] + "]"; } else { console.userAgent = "Venkman " + console.version + " [" + n... |
initTrees(); disableDebugCommands(); console.files = new Object(); | function init(){ var ary = navigator.userAgent.match (/;\s*([^;\s]+\s*)\).*\/(\d+)/); if (ary) { console.userAgent = "Venkman " + console.version + " [Mozilla " + ary[1] + "/" + ary[2] + "]"; } else { console.userAgent = "Venkman " + console.version + " [" + n... | |
console._outputDocument = document.getElementById("output-iframe").contentDocument; console._outputElement = console._outputDocument.getElementById("output-tbody"); console._slInputElement = document.getElementById("input-single-line"); console._slInputElement.focus(); console._munger = new CMunger(); console._munge... | console.capturedMsgs = new Array(); var ary = console.prefs["initialScripts"].split(/\s*;\s*/); for (i = 0; i < ary.length; ++i) | function init(){ var ary = navigator.userAgent.match (/;\s*([^;\s]+\s*)\).*\/(\d+)/); if (ary) { console.userAgent = "Venkman " + console.version + " [Mozilla " + ary[1] + "/" + ary[2] + "]"; } else { console.userAgent = "Venkman " + console.version + " [" + n... |
dispatch("commands"); dispatch("help"); | console.pushStatus(MSG_STATUS_DEFAULT); | function init(){ var ary = navigator.userAgent.match (/;\s*([^;\s]+\s*)\).*\/(\d+)/); if (ary) { console.userAgent = "Venkman " + console.version + " [Mozilla " + ary[1] + "/" + ary[2] + "]"; } else { console.userAgent = "Venkman " + console.version + " [" + n... |
initHandlers(); | dispatch ("restore-layout default"); var startupMsgs = console.capturedMsgs; delete console.capturedMsgs; dispatch ("version"); for (i = 0; i < startupMsgs.length; ++i) display (startupMsgs[i][0], startupMsgs[i][1]); display (MSG_TIP1_HELP); display (MSG_TIP2_HELP); dispatch ("pprint", { toggle: console.prefs["p... | function init(){ var ary = navigator.userAgent.match (/;\s*([^;\s]+\s*)\).*\/(\d+)/); if (ary) { console.userAgent = "Venkman " + console.version + " [Mozilla " + ary[1] + "/" + ary[2] + "]"; } else { console.userAgent = "Venkman " + console.version + " [" + n... |
webProgress.addProgressListener(window.XULBrowserWindow, Components.interfaces.nsIWebProgress.NOTIFY_ALL); | webProgress.addProgressListener(window.XULBrowserWindow); | function init() { //cache panel references. helpWindow = document.getElementById("help"); helpSearchPanel = document.getElementById("help-search-panel"); helpTocPanel = document.getElementById("help-toc-tree"); helpIndexPanel = document.getElementById("help-index-tree"); helpGlossaryPanel = document.getElementByI... |
var uri = window.arguments[0]; sqlService.getAlias(uri, name, type, hostname, port, database); | var alias = window.arguments[0]; sqlService.fetchAlias(alias, name, type, hostname, port, database); | function init() { sqlService = Components.classes["@mozilla.org/sql/service;1"] .getService(Components.interfaces.mozISqlService); name = document.getElementById("name"); type = document.getElementById("type"); hostname = document.getElementById("hostname"); port = document.getElementById("port"); da... |
dispatch ("pprint", { toggle: console.prefs["prettyprint"] }); | if (console.prefs["rememberPrettyprint"]) dispatch ("pprint", { toggle: console.prefs["prettyprint"] }); else dispatch ("pprint", { toggle: false }); | function init(){ dd ("init {"); var i; const WW_CTRID = "@mozilla.org/embedcomp/window-watcher;1"; const nsIWindowWatcher = Components.interfaces.nsIWindowWatcher; console.windowWatcher = Components.classes[WW_CTRID].getService(nsIWindowWatcher); const UC_CTRID = "@mozilla.org/intl/scriptab... |
/* | var propsWindow = document.getElementById("bmPropsWindow"); | function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // 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 =... |
if (nameNode) { var name = nameNode.value; if (name && name != "") { dump("\n Set window name to '" + name + "'\n"); window.title = name; } } */ | var title = propsWindow.getAttribute("title"); title = title.replace(/\*\*bm_title\*\*/gi, nameNode.value); propsWindow.setAttribute("title", title); | function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // 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 =... |
var locationBox = document.getElementById("locationBox"); if (locationBox) { dump("Hide location box\n"); var parentNode = locationBox.parentNode; parentNode.removeChild(locationBox); } var shortcutBox = document.getElementById("shortcutBox"); if (shortcutBox) { dump("Hide shortcut box\n"); var parentNode = shortcutB... | document.getElementById("locationrow").setAttribute("hidden", "true"); document.getElementById("shortcutrow").setAttribute("hidden", "true"); | function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // 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 =... |
if ((bookmark_url.indexOf("http: { var scheduleTab = document.getElementById("ScheduleTab"); if (scheduleTab) { dump("Hide schedule tab\n"); var parentNode = scheduleTab.parentNode; parentNode.removeChild(scheduleTab); } } | if (bookmark_url.indexOf("http: bookmark_url.indexOf("https: document.getElementById("ScheduleTab").setAttribute("hidden", "true"); document.getElementById("NotifyTab").setAttribute("hidden", "true"); } | function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // 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 =... |
window.sizeToContent(); | sizeToContent(); | function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // 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 =... |
var nameNode = document.getElementById("name"); if (nameNode) { nameNode.focus(); } | document.getElementById("name").focus(); | function Init(){ bookmark_url = window.arguments[0]; // set up action buttons doSetOKCancel(Commit); // 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 =... |
if (mimeType == "application/octet-stream" || mimeType == "application/x-msdownload") { | if ((mimeType == "application/octet-stream" || mimeType == "application/x-msdownload") && !openWithDefaultOK) { | initAppAndSaveToDiskValues: function() { var modeGroup = this.dialogElement("mode"); // We don't let users open .exe files or random binary data directly // from the browser at the moment because of security concerns. var mimeType = this.mLauncher.MIMEInfo.MIMEType; if (mimeType == "appli... |
if (!this.openWithDefaultOK()) { | if (!openWithDefaultOK) { | initAppAndSaveToDiskValues: function() { var modeGroup = this.dialogElement("mode"); // We don't let users open .exe files or random binary data directly // from the browser at the moment because of security concerns. var mimeType = this.mLauncher.MIMEInfo.MIMEType; if (mimeType == "appli... |
this.chosenApp = this.mLauncher.MIMEInfo.preferredApplicationHandler; var applicationDescription = this.mLauncher.MIMEInfo.applicationDescription; if (applicationDescription != "") { this.updateApplicationName(applicationDescription); this.givenDefaultApp = true; } else if (this.chosenApp && this.chosenApp.path) { th... | if ( this.mDialog.navigator.platform.indexOf( "Mac" ) != -1 ) { this.dialogElement( "appPath" ).disabled = true; | 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 != "") { ... |
if ( this.mIsMac ) { this.dialogElement( "appPath" ).disabled = true; } | initAppAndSaveToDiskValues: function() { // Fill in helper app info, if there is any. this.chosenApp = this.mLauncher.MIMEInfo.preferredApplicationHandler; // Initialize "default application" field. this.initDefaultApp(); // Fill application name textbox. if (this.c... | |
this.chooseApp = true; | this.choseApp = true; | 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 != "") { ... |
if ( applicationDescription && this.mLauncher.MIMEInfo.preferredAction != this.nsIMIMEInfo.saveToDisk ) | if ( (applicationDescription || this.choseApp) && this.mLauncher.MIMEInfo.preferredAction != this.nsIMIMEInfo.saveToDisk ) | 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 != "") { ... |
var windowMenu = document.getElementById("windowMenu"); | function initApplicationCompatibility(){ // This routine does nothing more than tweak the UI based on the host // application. var windowMenu = document.getElementById("windowMenu"); // Set up simple host and platform information. client.host = "Mozilla"; if (!windowMenu.firstChild) client.host... | |
client.host = "Mozilla"; if (!windowMenu.firstChild) client.host = "Firefox"; | client.host = "Unknown"; if ("getBrowserURL" in window) { var url = getBrowserURL(); if (url == "chrome: client.host = "Mozilla"; else if (url == "chrome: client.host = "Firefox"; else showErrorDlg(getMsg(MSG_ERR_UNKNOWN_HOST, url)); } else { client.host = "XULrunner"; } | function initApplicationCompatibility(){ // This routine does nothing more than tweak the UI based on the host // application. var windowMenu = document.getElementById("windowMenu"); // Set up simple host and platform information. client.host = "Mozilla"; if (!windowMenu.firstChild) client.host... |
var winMenu = document.getElementById("windowMenu"); var tasksMenu = document.getElementById("tasksMenu"); var toolsMenu = document.getElementById("mainmenu:tools"); var comBar = document.getElementById("component-bar"); if (client.host == "Firefox") { tasksMenu.parentNode.removeChild(tasksMenu); winMenu.parentNo... | else client.lineEnd = "\n"; | function initApplicationCompatibility(){ // This routine does nothing more than tweak the UI based on the host // application. var windowMenu = document.getElementById("windowMenu"); // Set up simple host and platform information. client.host = "Mozilla"; if (!windowMenu.firstChild) client.host... |
gDialog.volumeScrollbar.removeEventListener("DOMAttrModified", onScrollbarAttrModified, false); gDialog.volumeScrollbar.addEventListener("DOMAttrModified", onScrollbarAttrModified, false); | gDialog.volumeScrollbar.removeEventListener("DOMAttrModified", onVolumeScrollbarAttrModified, false); gDialog.volumeScrollbar.addEventListener("DOMAttrModified", onVolumeScrollbarAttrModified, false); | function InitAuralTabPanel(){ gDialog.selectedTab = AURAL_TAB; if (!gDialog.selectedObject || !gDialog.selectedObject.style) return; // observe the scrollbar and call onScrollbarAttrModified when an attribute is modified gDialog.volumeScrollbar.removeEventListener("DOMAttrModified", onScrollbarAttrModified, fals... |
return aFolderType == "Desktop" ? "Desk" : "Home"; #endif #ifdef XP_BEOS | function initAutoDownloadDisplay(){ var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); var autodownload = pref.getBoolPref("browser.download.useDownloadDir"); if (autodownload) { var autodownloadInfo = document.getElementBy... | |
var strings = document.getElementById("downloadStrings"); displayName = strings.getString("displayNameDesktop"); | displayName = document.getElementById("downloadStrings").getString("displayNameDesktop"); | function initAutoDownloadDisplay(){ var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); var autodownload = pref.getBoolPref("browser.download.useDownloadDir"); if (autodownload) { var autodownloadInfo = document.getElementBy... |
gDialog.opacityScrollbar.removeEventListener("DOMAttrModified", onOpacityScrollbarAttrModified, false); var opacity = getSpecifiedStyle("-moz-opacity"); if (opacity == "") opacity = 1; gDialog.opacityScrollbar.setAttribute("curpos", opacity*1000); gDialog.opacityScrollbar.addEventListener("DOMAttrModified", onOpacitySc... | function InitBackgroundTabPanel(){ gDialog.selectedTab = BACKGROUND_TAB; if (!gDialog.selectedObject || !gDialog.selectedObject.style) return; /* INIT BACKGROUND-COLOR */ backgroundColor = ConvertRGBColorIntoHEXColor(getSpecifiedStyle("background-color")); gDialog.backgroundColorInput.setAttribute("value", back... | |
getCalendarManager().addObserver(calCalendarManagerObserver); getDisplayComposite().addObserver(calCompositeCalendarObserver, 0); | var calMgr = getCalendarManager(); var composite = getDisplayComposite(); if (calMgr.getCalendars({}).length == 0) { var homeCalendar = calMgr.createCalendar("storage", makeURL("moz-profile-calendar: calMgr.registerCalendar(homeCalendar); homeCalendar.name = "Home"; composite.addCalendar(homeCalendar); } calMgr.addObs... | function initCalendarManager(){ getCalendarManager().addObserver(calCalendarManagerObserver); getDisplayComposite().addObserver(calCompositeCalendarObserver, 0); setCalendarManagerUI();} |
previousValue = dialog.CellAlignCharInput.value; | 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.CellAlignCharInput.value = ""; | alignWasChar = false; | 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.CellHAlignList.selectedIndex = 4; dialog.CellAlignCharInput.value = alignChar; break; | alignWasChar = true; | 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... |
previousIndex != dialog.CellHAlignList.selectedIndex || previousValue != dialog.CellAlignCharInput.value; | previousIndex != dialog.CellHAlignList.selectedIndex; | 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... |
this.showItem( "context-selectall", !( this.onLink || this.onImage ) ); | this.showItem( "context-selectall", !( this.onLink || this.onImage ) || this.isDesignMode ); | 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... |
this.showItem( "context-copy", this.isTextSelected || this.onTextInput ); | this.showItem( "context-copy", this.isContentSelected || 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... |
this.showItem( "context-sep-selectall", this.isTextSelected ); | this.showItem( "context-sep-selectall", this.isContentSelected ); | 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... |
this.showItem( "context-selectall", true ); | this.showItem( "context-selectall", !( this.onLink || this.onImage ) ); | 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... |
gResultsOutliner = document.getElementById("abResultsOutliner"); | gResultsTree = document.getElementById("abResultsTree"); | function InitCommonJS(){ dirTree = document.getElementById("dirTree"); abList = document.getElementById("addressbookList"); gResultsOutliner = document.getElementById("abResultsOutliner");} |
var consoleService = nsJSComponentManager.getService("@mozilla.org/consoleservice;1", "nsIConsoleService"); | var consoleService = Components.classes["@mozilla.org/consoleservice;1"] .getService(Components.interfaces.nsIConsoleService); | function initConsoleListener(){ var consoleService = nsJSComponentManager.getService("@mozilla.org/consoleservice;1", "nsIConsoleService"); /** * XXX - console launch hookup requires some work that I'm not sure how to * do. * * 1) ideally, the notification would disappear when the document that ha... |
me.mContentOutliner.outlinerBoxObject.view = me.mContentView; | me.mContentTree.treeBoxObject.view = me.mContentView; | initContent: function() { if (this.mContentInit) return; window.setTimeout(function(me) { // prepare and attach the content DOM datasource me.mContentView = XPCU.createInstance(kDOMViewCID, "inIDOMView"); me.mContentView.removeFilterByType(Node.TEXT_NODE); me.mContentOutliner.outlinerBoxObj... |
console.jsds.init(); | console.jsds.on(); console.jsds.breakpointHook = console.breakpointHooker; | function initDebugger(){ console.continueCodeStack = new Array(); /* create the debugger instance */ console.jsds = Components.classes[JSD_CTRID].getService(jsdIDebuggerService); console.jsds.init(); //console.jsds.scriptHook = console.scriptHooker; console.jsds.debuggerHook = console.debuggerH... |
dbg = Components.classes[JSD_CTRID].getService(jsdIDebuggerService); dbg.init(); dbg.scriptHook = scriptHooker; dbg.debuggerHook = debuggerHooker; | console.continueCodeStack = new Array(); console.jsds = Components.classes[JSD_CTRID].getService(jsdIDebuggerService); console.jsds.init(); console.jsds.scriptHook = console.scriptHooker; console.jsds.debuggerHook = console.debuggerHooker; | function initDebugger(){ dbg = Components.classes[JSD_CTRID].getService(jsdIDebuggerService); dbg.init(); dbg.scriptHook = scriptHooker; dbg.debuggerHook = debuggerHooker; //dbg.interruptHook = interruptHooker;} |
console.jsds.scriptHook = console.scriptHooker; | function initDebugger(){ console.continueCodeStack = new Array(); /* create the debugger instance */ console.jsds = Components.classes[JSD_CTRID].getService(jsdIDebuggerService); console.jsds.init(); console.jsds.scriptHook = console.scriptHooker; console.jsds.debuggerHook = console.debuggerHoo... | |
console.enumeratingScripts = true; | function initDebugger(){ dd ("initDebugger {"); console.instanceSequence = 0; console._continueCodeStack = new Array(); /* top of stack is the default */ /* return code for the most */ /* recent debugTrap(). ... | |
delete console.enumeratingScripts; | function initDebugger(){ dd ("initDebugger {"); console.instanceSequence = 0; console._continueCodeStack = new Array(); /* top of stack is the default */ /* return code for the most */ /* recent debugTrap(). ... | |
console.scripts = new Object(); | console.scriptWrappers = new Object(); console.scriptManagers = new Object(); console.breaks = new Object(); console.fbreaks = new Object(); console.sbreaks = new Object(); | function initDebugger(){ dd ("initDebugger {"); console._continueCodeStack = new Array(); /* top of stack is the default */ /* return code for the most */ /* recent debugTrap(). */ console.scripts = n... |
if (!Components.classes[JSD_CTRID]) | if (!(JSD_CTRID in Components.classes)) | 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.jsds.breakpointHook = console._executionHook; console.jsds.debuggerHook = console._executionHook; console.jsds.debugHook = console._executionHook; console.jsds.errorHook = console._errorHook; console.jsds.scriptHook = console._scriptHook; 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.chromeFilter = { globalObject: null, flags: FILTER_SYSTEM | FILTER_ENABLED, urlPattern: "chrome:*", startLine: 0, endLine: 0 }; | console.executionHook = { onExecute: jsdExecutionHook }; console.errorHook = { onError: jsdErrorHook }; console.callHook = { onCall: jsdCallHook }; | function initDebugger(){ dd ("initDebugger {"); console._continueCodeStack = new Array(); /* top of stack is the default */ /* return code for the most */ /* recent debugTrap(). */ console.scripts = n... |
if (console.prefs["enableChromeFilter"]) { console.enableChromeFilter = true; console.jsds.appendFilter(console.chromeFilter); } else console.enableChromeFilter = false; var venkmanFilter1 = { globalObject: this, flags: FILTER_SYSTEM | FILTER_ENABLED, urlPattern: null, startLine: 0, endLine: 0 }; var venkmanFilter2... | console.jsds.breakpointHook = console.executionHook; console.jsds.debuggerHook = console.executionHook; console.jsds.debugHook = console.executionHook; console.jsds.errorHook = console.errorHook; 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... |
var enumer = { enumerateScript: function _es (script) { realizeScript(script); } }; | 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.scriptsView.freeze(); | var enumer = { enumerateScript: console.scriptHook.onScriptCreated }; console.jsds.scriptHook = console.scriptHook; | 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.scriptsView.thaw(); | function initDebugger(){ dd ("initDebugger {"); console._continueCodeStack = new Array(); /* top of stack is the default */ /* return code for the most */ /* recent debugTrap(). */ console.scripts = n... | |
defineVenkmanCommands (cmdary); | console.commandManager.defineCommands (cmdary); | function initDev(){ var cmdary = [["dumpcontexts", cmdDumpContexts, CMD_CONSOLE | CMD_NO_HELP], ["dumpfilters", cmdDumpFilters, CMD_CONSOLE | CMD_NO_HELP], ["dumpprofile", cmdDumpProfile, CMD_CONSOLE | CMD_NO_HELP], ["dumptree", cmdDumpTree, CMD_CONSOLE | CMD_NO_HEL... |
if ( this.chosenApp && this.appLauncher.MIMEInfo.preferredAction != this.nsIMIMEInfo.saveToDisk ) { document.getElementById( "runApp" ).checked = true; } else { document.getElementById( "saveToDisk" ).checked = true; document.getElementById( "chooseApp" ).setAttribute( "disabled", "true" ); } | 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. ... | |
} if ( applicationDescription && this.appLauncher.MIMEInfo.preferredAction != this.nsIMIMEInfo.saveToDisk ) { document.getElementById( "runApp" ).checked = true; } else { document.getElementById( "saveToDisk" ).checked = true; document.getElementById( "chooseApp" ).setAttribute( "disabled", "true" ); | 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. ... | |
this.mDialog.sizeToContent(); | 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() ) { ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.