зеркало из https://github.com/mozilla/gecko-dev.git
Bug 355063 - bustage followup for Android/Metro. r=sparky
This commit is contained in:
Родитель
c711c9a994
Коммит
8b2b5b6f7c
|
@ -140,6 +140,7 @@ let Content = {
|
|||
addEventListener("MozApplicationManifest", this, false);
|
||||
addEventListener("DOMContentLoaded", this, false);
|
||||
addEventListener("DOMAutoComplete", this, false);
|
||||
addEventListener("DOMFormHasPassword", this, false);
|
||||
addEventListener("blur", this, false);
|
||||
addEventListener("pagehide", this, false);
|
||||
// Attach a listener to watch for "click" events bubbling up from error
|
||||
|
@ -189,6 +190,10 @@ let Content = {
|
|||
this._onClickCapture(aEvent);
|
||||
break;
|
||||
|
||||
case "DOMFormHasPassword":
|
||||
LoginManagerContent.onFormPassword(aEvent);
|
||||
break;
|
||||
|
||||
case "DOMContentLoaded":
|
||||
LoginManagerContent.onContentLoaded(aEvent);
|
||||
this._maybeNotifyErrorPage();
|
||||
|
|
|
@ -2670,6 +2670,7 @@ Tab.prototype = {
|
|||
this.browser.sessionHistory.addSHistoryListener(this);
|
||||
|
||||
this.browser.addEventListener("DOMContentLoaded", this, true);
|
||||
this.browser.addEventListener("DOMFormHasPassword", this, true);
|
||||
this.browser.addEventListener("DOMLinkAdded", this, true);
|
||||
this.browser.addEventListener("DOMTitleChanged", this, true);
|
||||
this.browser.addEventListener("DOMWindowClose", this, true);
|
||||
|
@ -2818,6 +2819,7 @@ Tab.prototype = {
|
|||
this.browser.sessionHistory.removeSHistoryListener(this);
|
||||
|
||||
this.browser.removeEventListener("DOMContentLoaded", this, true);
|
||||
this.browser.removeEventListener("DOMFormHasPassword", this, true);
|
||||
this.browser.removeEventListener("DOMLinkAdded", this, true);
|
||||
this.browser.removeEventListener("DOMTitleChanged", this, true);
|
||||
this.browser.removeEventListener("DOMWindowClose", this, true);
|
||||
|
@ -3375,6 +3377,11 @@ Tab.prototype = {
|
|||
break;
|
||||
}
|
||||
|
||||
case "DOMFormHasPassword": {
|
||||
LoginManagerContent.onFormPassword(aEvent);
|
||||
break;
|
||||
}
|
||||
|
||||
case "DOMLinkAdded": {
|
||||
let target = aEvent.originalTarget;
|
||||
if (!target.href || target.disabled)
|
||||
|
|
Загрузка…
Ссылка в новой задаче