зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1301342 - add noautohide=true on XUL panel wrapper for HTMLTooltip;r=gl
MozReview-Commit-ID: AL4dc0Lp4GG --HG-- extra : rebase_source : 1969b9a404eb4a7cd9e26d93b086930eddc24905
This commit is contained in:
Родитель
3b48aa0b0a
Коммит
282a8e00f0
|
@ -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) {
|
||||
|
|
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче