You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -752,13 +752,20 @@ function WebStateMachine() // {{{
752
752
if(this.m_expectedNextNodeId!==null)
753
753
{
754
754
varnfd=this.getNodeFromDom(dom);
755
+
if(nfd===null)
756
+
{
757
+
// Not much to do apart from warning of the discrepancy
758
+
console.error("Sanity check fail: according to computed path, expected node ID was "+this.m_expectedNextNodeId+"; we are rather in a NEW node");
759
+
return;
760
+
}
755
761
varobtained_id=nfd.getId();
756
762
// Sanity check: make sure that the node we are supposed to land
757
763
// is indeed the one we are in
758
764
if(this.m_expectedNextNodeId!=obtained_id)
759
765
{
760
766
// Not much to do apart from warning of the discrepancy
761
767
console.error("Sanity check fail: according to computed path, expected node ID was "+this.m_expectedNextNodeId+"; we are rather in node "+obtained_id);
768
+
return;
762
769
}
763
770
}
764
771
if(this.nodesEqual(this.m_domTree,dom))
@@ -927,8 +934,8 @@ function WebStateMachine() // {{{
927
934
}
928
935
}
929
936
// By convention, node 0 never exists and node 1 is the initial state
0 commit comments