Bug 1486957 - Don't use the textoverflow attribute decide whether to set the tooltip text. r=dao

That attribute is set async, _inOverflow should work equally well, and work if
there's a mousemove before the next promiseDocumentFlush callback runs.

Differential Revision: https://phabricator.services.mozilla.com/D4520

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Emilio Cobos Álvarez 2018-08-29 09:22:27 +00:00
Родитель b45b01e82c
Коммит 88aaf93f4e
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -1056,7 +1056,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
<method name="_initURLTooltip">
<body><![CDATA[
if (this.focused || !this.hasAttribute("textoverflow"))
if (this.focused || !this._inOverflow)
return;
// We set the tooltip text on the parent node instead of the input
// field because XUL tooltips only work on XUL elements.