commit 77838b2de4c9edf4c89ce1c1e7063c1c9dada6b0
parent 6670c30e05cd77aa6aa716957793f0e5dcbaeab4
Author: Emily McMinn <emcminn@mozilla.com>
Date: Thu, 23 Oct 2025 20:49:59 +0000
Bug 1995703 - Prevent subDialog from setting fixed sizing on spotlight dialogs r=omc-reviewers,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D269828
Diffstat:
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/browser/base/content/spotlight.js b/browser/base/content/spotlight.js
@@ -89,6 +89,7 @@ function renderMultistage(ready) {
dialog?.classList.add("spotlight");
// Prevent SubDialog methods from manually setting dialog size.
box.setAttribute("sizeto", "available");
+ box.setAttribute("fixedsize", "false");
addEventListener("pagehide", () => {
box.classList.remove("spotlightBox");
dialog?.classList.remove("spotlight");
diff --git a/toolkit/modules/SubDialog.sys.mjs b/toolkit/modules/SubDialog.sys.mjs
@@ -489,8 +489,10 @@ SubDialog.prototype = {
},
async resizeDialog() {
- this.resizeHorizontally();
- this.resizeVertically();
+ if (this._box.getAttribute("fixedsize") != "false") {
+ this.resizeHorizontally();
+ this.resizeVertically();
+ }
this._overlay.dispatchEvent(
new CustomEvent("dialogopen", {