From d8a934d2ece26700998fa009dcdb529ab79a4825 Mon Sep 17 00:00:00 2001 From: "mr. m" <91018726+mr-cheffy@users.noreply.github.com> Date: Thu, 20 Aug 2026 21:57:35 +0200 Subject: [PATCH] gh-15029: Fixed urlbar suggestion context not working (gh-15037) --- .../widgets/panel-list/panel-list-mjs.patch | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/toolkit/content/widgets/panel-list/panel-list-mjs.patch diff --git a/src/toolkit/content/widgets/panel-list/panel-list-mjs.patch b/src/toolkit/content/widgets/panel-list/panel-list-mjs.patch new file mode 100644 index 000000000..adde5f129 --- /dev/null +++ b/src/toolkit/content/widgets/panel-list/panel-list-mjs.patch @@ -0,0 +1,29 @@ +diff --git a/toolkit/content/widgets/panel-list/panel-list.mjs b/toolkit/content/widgets/panel-list/panel-list.mjs +index 68ad2fafc8b31dfff541cf8381d9b9533e376d1c..fa62fec6bfb33338091fc06d3736fb76fd5c47c4 100644 +--- a/toolkit/content/widgets/panel-list/panel-list.mjs ++++ b/toolkit/content/widgets/panel-list/panel-list.mjs +@@ -223,7 +223,12 @@ export class PanelList extends HTMLElement { + this.setAttribute("showing", "true"); + // Tell the host element to hide any overflow in case the panel extends off + // the page before the alignment is set. +- hostElement.style.overflow = "hidden"; ++ const hostHidesOverflow = !getComputedStyle(hostElement) ++ .overflow.split(" ") ++ .includes("visible"); ++ if (!hostHidesOverflow) { ++ hostElement.style.overflow = "hidden"; ++ } + + // Wait for a layout flush, then find the bounds. + let { +@@ -344,7 +349,9 @@ export class PanelList extends HTMLElement { + // Set the alignments and show the panel. + this.setAttribute("align", align); + this.setAttribute("valign", valign); +- hostElement.style.overflow = ""; ++ if (!hostHidesOverflow) { ++ hostElement.style.overflow = ""; ++ } + // Decide positioning based on where this panel will be rendered + const offsetParentIsBody = + this.supportsPopover() ||