mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 979051 - Avoid browser.xml handling pageshow/pagehide events for remote frames. r=felipe.
This commit is contained in:
parent
146211b798
commit
1d3d268554
@ -759,8 +759,12 @@
|
||||
}
|
||||
|
||||
// Listen for first load for lazy attachment to form fill controller
|
||||
this.addEventListener("pageshow", this.onPageShow, true);
|
||||
this.addEventListener("pagehide", this.onPageHide, true);
|
||||
// (But we don't want to do this for remote browsers - the test infra
|
||||
// might fire these events when they normally wouldn't.)
|
||||
if (!this.isRemoteBrowser) {
|
||||
this.addEventListener("pageshow", this.onPageShow, true);
|
||||
this.addEventListener("pagehide", this.onPageHide, true);
|
||||
}
|
||||
|
||||
if (this.messageManager) {
|
||||
this.messageManager.addMessageListener("PopupBlocking:UpdateBlockedPopups", this);
|
||||
@ -806,8 +810,10 @@
|
||||
|
||||
this.lastURI = null;
|
||||
|
||||
this.removeEventListener("pageshow", this.onPageShow, true);
|
||||
this.removeEventListener("pagehide", this.onPageHide, true);
|
||||
if (!this.isRemoteBrowser) {
|
||||
this.removeEventListener("pageshow", this.onPageShow, true);
|
||||
this.removeEventListener("pagehide", this.onPageHide, true);
|
||||
}
|
||||
|
||||
if (this._autoScrollNeedsCleanup) {
|
||||
// we polluted the global scope, so clean it up
|
||||
|
Loading…
Reference in New Issue
Block a user