зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
b45b01e82c
Коммит
88aaf93f4e
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче