summaryrefslogtreecommitdiffstats
path: root/toolkit/content/globalOverlay.xul
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-02-23 14:04:34 -0500
committerMatt A. Tobin <email@mattatobin.com>2018-02-23 14:04:34 -0500
commit6f93b00559c8fe5b8dfaf59fcbaac8f1e0dd3366 (patch)
tree4f39457e7407bcbdbb72888622982675d2ef0054 /toolkit/content/globalOverlay.xul
parentbe18578af63e60da83d25e44fa731213ddf087e2 (diff)
downloadUXP-6f93b00559c8fe5b8dfaf59fcbaac8f1e0dd3366.tar
UXP-6f93b00559c8fe5b8dfaf59fcbaac8f1e0dd3366.tar.gz
UXP-6f93b00559c8fe5b8dfaf59fcbaac8f1e0dd3366.tar.lz
UXP-6f93b00559c8fe5b8dfaf59fcbaac8f1e0dd3366.tar.xz
UXP-6f93b00559c8fe5b8dfaf59fcbaac8f1e0dd3366.zip
Restore toolkit/obsolete files and reinstate them to toolkit/content
Diffstat (limited to 'toolkit/content/globalOverlay.xul')
-rw-r--r--toolkit/content/globalOverlay.xul38
1 files changed, 38 insertions, 0 deletions
diff --git a/toolkit/content/globalOverlay.xul b/toolkit/content/globalOverlay.xul
new file mode 100644
index 000000000..90268a8e4
--- /dev/null
+++ b/toolkit/content/globalOverlay.xul
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+ - License, v. 2.0. If a copy of the MPL was not distributed with this
+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+
+<overlay id="globalOverlay"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+ <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
+ <script type="application/javascript"><![CDATA[
+
+ function FillInTooltip ( tipElement )
+ {
+ var retVal = false;
+ var textNode = document.getElementById("TOOLTIP-tooltipText");
+ if (textNode) {
+ while (textNode.hasChildNodes())
+ textNode.removeChild(textNode.firstChild);
+ var tipText = tipElement.getAttribute("tooltiptext");
+ if (tipText) {
+ var node = document.createTextNode(tipText);
+ textNode.appendChild(node);
+ retVal = true;
+ }
+ }
+ return retVal;
+ }
+
+ ]]></script>
+
+ <popupset id="aTooltipSet">
+ <tooltip id="aTooltip" class="tooltip" onpopupshowing="return FillInTooltip(document.tooltipNode);">
+ <label id="TOOLTIP-tooltipText" class="tooltip-label" flex="1"/>
+ </tooltip>
+ </popupset>
+
+</overlay>