mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
df759845bc
Previously, the targetNodeCb used in TooltipToggle had an inconsistent API. If returning synchronously, "false" would prevent the tooltip from appearing. However, if using a promise, resolving "false" would still show the tooltip. It was needed to reject the promise in this case to prevent the tooltip from being displayed. This commit makes TooltipToggle always expect a consistent return value from this callback, whether it is synchronous, or using promises. - true -> show the tooltip on the event target - DOM node -> show the tooltip on the provided node - false (or falsy value) -> do not show the tooltip MozReview-Commit-ID: 7PIPwBJxjWO --HG-- extra : rebase_source : 279bab30f631a3a65a93b52226c6980210abf2f1 |
||
---|---|---|
.. | ||
har | ||
test | ||
moz.build | ||
netmonitor-controller.js | ||
netmonitor-view.js | ||
netmonitor.css | ||
netmonitor.xul | ||
panel.js |