summarylogtreecommitdiffstats
path: root/D187749.patch
blob: 5e2ed1c416ea625a113c0768f2ab25bd80efd725 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -4979,10 +4979,14 @@
         .getCurrentSession()
     ) {
       return;
     }
 
+    if (!document.hasFocus()) {
+      return;
+    }
+
     let elt = document.getElementById("remoteBrowserTooltip");
     elt.label = tooltip;
     elt.style.direction = direction;
     elt.openPopupAtScreen(
       xDevPix / window.devicePixelRatio,