Backed out changeset ed389b1ea7da (bug 1532397) for debugger failure CLOSED TREE
authorNoemi Erli <nerli@mozilla.com>
Tue, 05 Mar 2019 19:04:35 +0200
changeset 520272 ab3ace7e5b1ada049a7c6eaad31505412985522c
parent 520271 9fca85ee3084599c0119d126840eb2062f65003d
child 520273 bd68f490ca078d2b7a5a10f47b2f9d5f1abbdbc4
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1532397
milestone67.0a1
backs outed389b1ea7dae6afc927cdf665bf872fece3acb2
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset ed389b1ea7da (bug 1532397) for debugger failure CLOSED TREE
devtools/client/debugger/new/src/components/Editor/Preview/index.js
--- a/devtools/client/debugger/new/src/components/Editor/Preview/index.js
+++ b/devtools/client/debugger/new/src/components/Editor/Preview/index.js
@@ -45,24 +45,20 @@ function inPopup(e) {
     relatedTarget.closest(".popover") ||
     relatedTarget.classList.contains("debug-expression");
 
   return pop;
 }
 
 function getElementFromPos(pos: DOMRect) {
   // $FlowIgnore
-  // We need to use element*s*AtPoint because the tooltip overlays
-  // the token and thus an undesirable element may be returned
-  const elementsAtPoint = [...document.elementsFromPoint(
+  return document.elementFromPoint(
     pos.x + pos.width / 2,
     pos.y + pos.height / 2
-  )];
-
-  return elementsAtPoint.find(el => el.className.startsWith("cm-"));
+  );
 }
 
 class Preview extends PureComponent<Props, State> {
   target = null;
   constructor(props) {
     super(props);
     this.state = { selecting: false };
   }