Bug 1377845 - Fix TypeError: frame is undefined when resizing sub-dialog window r=MattN,scottwu

MozReview-Commit-ID: HjiaIyZHgkL

--HG--
extra : rebase_source : 6fe2382f6707925637f4e001b203574195c35751
This commit is contained in:
Ricky Chien 2017-07-08 11:34:54 +08:00
Родитель edd91b8333
Коммит 63938a224e
2 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -328,6 +328,7 @@ SubDialog.prototype = {
this._overlay.style.opacity = ""; // XXX: focus hack continued from _onContentLoaded this._overlay.style.opacity = ""; // XXX: focus hack continued from _onContentLoaded
if (this._box.getAttribute("resizable") == "true") { if (this._box.getAttribute("resizable") == "true") {
this._onResize = this._onResize.bind(this);
this._resizeObserver = new MutationObserver(this._onResize); this._resizeObserver = new MutationObserver(this._onResize);
this._resizeObserver.observe(this._box, {attributes: true}); this._resizeObserver.observe(this._box, {attributes: true});
} }

Просмотреть файл

@ -328,6 +328,7 @@ SubDialog.prototype = {
this._overlay.style.opacity = ""; // XXX: focus hack continued from _onContentLoaded this._overlay.style.opacity = ""; // XXX: focus hack continued from _onContentLoaded
if (this._box.getAttribute("resizable") == "true") { if (this._box.getAttribute("resizable") == "true") {
this._onResize = this._onResize.bind(this);
this._resizeObserver = new MutationObserver(this._onResize); this._resizeObserver = new MutationObserver(this._onResize);
this._resizeObserver.observe(this._box, {attributes: true}); this._resizeObserver.observe(this._box, {attributes: true});
} }