gecko-dev/devtools/client/netmonitor
Julian Descottes df759845bc Bug 1270462 - part2: tooltip toggle callback can resolve(false);r=bgrins,jsnajdr
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
2016-05-05 20:25:08 +02:00
..
har Bug 1265775 - replace Cu.reportError with console.error in devtools client code r=tromey 2016-05-06 11:29:10 -04:00
test Bug 1265775 - replace Cu.reportError with console.error in devtools client code r=tromey 2016-05-06 11:29:10 -04:00
moz.build Bug 912121 - Rewrite require / import to match source tree. rs=devtools 2015-09-21 12:04:18 -05:00
netmonitor-controller.js Bug 1263258 - Require space before paren for anonymous functions. r=pbro 2016-04-27 09:06:15 -05:00
netmonitor-view.js Bug 1270462 - part2: tooltip toggle callback can resolve(false);r=bgrins,jsnajdr 2016-05-05 20:25:08 +02:00
netmonitor.css Bug 1223037 - Move the network monitor toolbar to the top. r=vporof 2016-02-29 18:08:53 +01:00
netmonitor.xul Bug 1251767 - Add WS filter button to net panel; r=honza 2016-03-21 18:24:11 -04:00
panel.js Bug 1257246: Update devtools for eslint 2. r=pbro 2016-04-05 11:31:19 -07:00