#ifdef XP_MACOSX true #else false #endif this switch (this.getAttribute("eventnode")) { case "parent": this._eventNode = this.parentNode; break; case "window": this._eventNode = window; break; case "document": this._eventNode = document; break; } this._eventNode.addEventListener("keypress", this, false); this._eventNode.removeEventListener("keypress", this, false); 0 ? selectedIndex : 0; return; } var children = this.childNodes; var length = children.length; for (var i = 0; i < length; i++) { if (children[i].getAttribute("selected") == "true") { this.selectedIndex = i; return; } } var value = this.value; if (value) this.value = value; else this.selectedIndex = 0; ]]> = 0; c--) { if (children[c].value == val) { this.selectedIndex = c; break; } } return val; ]]> #ifdef MOZ_WIDGET_GTK 0) this.advanceSelectedTab(1, false); else this.advanceSelectedTab(-1, false); event.stopPropagation(); ]]> #endif this.childNodes.item(this.selectedIndex) = this.childNodes.length) return val; var panel = this._selectedPanel; this._selectedPanel = this.childNodes[val]; this.setAttribute("selectedIndex", val); if (this._selectedPanel != panel) { var event = document.createEvent("Events"); event.initEvent("select", true, true); this.dispatchEvent(event); } return val; ]]> #ifdef XP_MACOSX true #else false #endif let tmp = {}; Cu.import("resource://gre/modules/TelemetryStopwatch.jsm", tmp); tmp.TelemetryStopwatch;