зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1018504 - Rename the events used after bug 1190082
This commit is contained in:
Родитель
f0163e1f6e
Коммит
861692c320
|
@ -3586,8 +3586,8 @@ Tab.prototype = {
|
|||
this.browser.addEventListener("DOMLinkChanged", this, true);
|
||||
this.browser.addEventListener("DOMMetaAdded", this, false);
|
||||
this.browser.addEventListener("DOMTitleChanged", this, true);
|
||||
this.browser.addEventListener("DOMMediaPlaybackStarted", this, true);
|
||||
this.browser.addEventListener("DOMMediaPlaybackStopped", this, true);
|
||||
this.browser.addEventListener("DOMAudioPlaybackStarted", this, true);
|
||||
this.browser.addEventListener("DOMAudioPlaybackStopped", this, true);
|
||||
this.browser.addEventListener("DOMWindowClose", this, true);
|
||||
this.browser.addEventListener("DOMWillOpenModalDialog", this, true);
|
||||
this.browser.addEventListener("DOMAutoComplete", this, true);
|
||||
|
@ -3770,8 +3770,8 @@ Tab.prototype = {
|
|||
this.browser.removeEventListener("DOMLinkChanged", this, true);
|
||||
this.browser.removeEventListener("DOMMetaAdded", this, false);
|
||||
this.browser.removeEventListener("DOMTitleChanged", this, true);
|
||||
this.browser.removeEventListener("DOMMediaPlaybackStarted", this, true);
|
||||
this.browser.removeEventListener("DOMMediaPlaybackStopped", this, true);
|
||||
this.browser.removeEventListener("DOMAudioPlaybackStarted", this, true);
|
||||
this.browser.removeEventListener("DOMAudioPlaybackStopped", this, true);
|
||||
this.browser.removeEventListener("DOMWindowClose", this, true);
|
||||
this.browser.removeEventListener("DOMWillOpenModalDialog", this, true);
|
||||
this.browser.removeEventListener("DOMAutoComplete", this, true);
|
||||
|
@ -4404,8 +4404,8 @@ Tab.prototype = {
|
|||
break;
|
||||
}
|
||||
|
||||
case "DOMMediaPlaybackStarted":
|
||||
case "DOMMediaPlaybackStopped": {
|
||||
case "DOMAudioPlaybackStarted":
|
||||
case "DOMAudioPlaybackStopped": {
|
||||
if (!Services.prefs.getBoolPref("browser.tabs.showAudioPlayingIcon") ||
|
||||
!aEvent.isTrusted) {
|
||||
return;
|
||||
|
@ -4419,7 +4419,7 @@ Tab.prototype = {
|
|||
Messaging.sendRequest({
|
||||
type: "Tab:AudioPlayingChange",
|
||||
tabID: this.id,
|
||||
isAudioPlaying: aEvent.type === "DOMMediaPlaybackStarted"
|
||||
isAudioPlaying: aEvent.type === "DOMAudioPlaybackStarted"
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче