зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1130411 - only care about unload if it involves the page we opened, r=jaws
--HG-- extra : rebase_source : 797142c897adf719fc46c6ed27a1c9997c189553
This commit is contained in:
Родитель
763f2024ac
Коммит
020b3d26c2
|
@ -50,6 +50,7 @@ let gSubDialog = {
|
|||
|
||||
this._closingEvent = null;
|
||||
this._isClosing = false;
|
||||
this._openedURL = aURL;
|
||||
|
||||
features = features.replace(/,/g, "&");
|
||||
let featureParams = new URLSearchParams(features.toLowerCase());
|
||||
|
@ -124,7 +125,7 @@ let gSubDialog = {
|
|||
/* Private methods */
|
||||
|
||||
_onUnload: function(aEvent) {
|
||||
if (aEvent.target.location.href != "about:blank") {
|
||||
if (aEvent.target.location.href == this._openedURL) {
|
||||
this.close(this._closingEvent);
|
||||
}
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче