Bug 1496881 - Fix test for whether we are paused at a console message.
authorBrian Hackett <bhackett1024@gmail.com>
Sat, 20 Oct 2018 07:59:49 -0600
changeset 490603 d603faf452ceb1d5001b28e045ec08c19aa932be
parent 490602 ae91c0db8005dd58d87b9acd8160ceacbb20db72
child 490604 bacc9594a048c0cde34745393361c55bcc159f39
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
bugs1496881
milestone64.0a1
Bug 1496881 - Fix test for whether we are paused at a console message.
devtools/client/webconsole/components/MessageContainer.js
--- a/devtools/client/webconsole/components/MessageContainer.js
+++ b/devtools/client/webconsole/components/MessageContainer.js
@@ -23,17 +23,17 @@ const componentMap = new Map([
   ["NetworkEventMessage", require("./message-types/NetworkEventMessage")],
   ["PageError", require("./message-types/PageError")],
 ]);
 
 function isPaused({ getMessage, pausedExecutionPoint }) {
   const message = getMessage();
   return pausedExecutionPoint
   && message.executionPoint
-    && pausedExecutionPoint.checkpoint === message.executionPoint.checkpoint;
+    && pausedExecutionPoint.progress === message.executionPoint.progress;
 }
 
 class MessageContainer extends Component {
   static get propTypes() {
     return {
       messageId: PropTypes.string.isRequired,
       open: PropTypes.bool.isRequired,
       serviceContainer: PropTypes.object.isRequired,