diff --git a/devtools/client/shared/test/browser_html_tooltip-03.js b/devtools/client/shared/test/browser_html_tooltip-03.js index 6c189c1272f6..2461ec7f5bad 100644 --- a/devtools/client/shared/test/browser_html_tooltip-03.js +++ b/devtools/client/shared/test/browser_html_tooltip-03.js @@ -43,7 +43,14 @@ add_task(function* () { info("Run tests for a Tooltip with a XUL panel"); useXulWrapper = true; - yield runTests(doc); + + let isLinux = Services.appinfo.OS === "Linux"; + if (!isLinux) { + // Skip these tests on linux when using a XUL Panel wrapper because some linux window + // manager don't support nicely XUL Panels with noautohide _and_ noautofocus. + // See https://bugzilla.mozilla.org/show_bug.cgi?id=1301342#c11 + yield runTests(doc); + } }); function* runTests(doc) { diff --git a/devtools/client/shared/widgets/tooltip/HTMLTooltip.js b/devtools/client/shared/widgets/tooltip/HTMLTooltip.js index 6a1094cfda7e..0560179aee32 100644 --- a/devtools/client/shared/widgets/tooltip/HTMLTooltip.js +++ b/devtools/client/shared/widgets/tooltip/HTMLTooltip.js @@ -572,6 +572,7 @@ HTMLTooltip.prototype = { panel.setAttribute("animate", false); panel.setAttribute("consumeoutsideclicks", false); panel.setAttribute("noautofocus", true); + panel.setAttribute("noautohide", true); panel.setAttribute("ignorekeys", true); // Use type="arrow" to prevent side effects (see Bug 1285206)