Bug 1593348 - Handle empty target in paused-debugger. r=davidwalsh
authorJason Laster <jlaster@mozilla.com>
Fri, 01 Nov 2019 21:00:58 +0000
changeset 500440 6ccc66eeb3326131775768cbd3d4b9216b85b151
parent 500439 e75d9dbb4853462d60ad18a589b67e379725c41f
child 500441 23882236aac3275d2b4bfcda939866c5f64b5478
push id114164
push useraiakab@mozilla.com
push dateTue, 05 Nov 2019 10:06:15 +0000
treeherdermozilla-inbound@4d585c7edc76 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdavidwalsh
bugs1593348
milestone72.0a1
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
Bug 1593348 - Handle empty target in paused-debugger. r=davidwalsh Differential Revision: https://phabricator.services.mozilla.com/D51455
devtools/server/actors/highlighters/paused-debugger.js
--- a/devtools/server/actors/highlighters/paused-debugger.js
+++ b/devtools/server/actors/highlighters/paused-debugger.js
@@ -146,17 +146,17 @@ PausedDebuggerOverlay.prototype = {
       this.stepOver();
     } else if (id.includes("paused-dbg-resume-button")) {
       this.resume();
     }
   },
 
   onMouseMove(target) {
     // Not an element we care about
-    if (!target.id) {
+    if (!target || !target.id) {
       return;
     }
 
     // If the user didn't change targets, do nothing
     if (this.lastTarget && this.lastTarget.id === target.id) {
       return;
     }