Web Inspector: [CSS Regions] Flows are not loading if you refresh the page several...
authorachicu@adobe.com <achicu@adobe.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Oct 2013 23:35:13 +0000 (23:35 +0000)
committerachicu@adobe.com <achicu@adobe.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Oct 2013 23:35:13 +0000 (23:35 +0000)
https://bugs.webkit.org/show_bug.cgi?id=123123

Reviewed by Joseph Pecoraro.

There was a typo in the code where an exception was thrown because "flowKey" was undefined.

* UserInterface/DOMTree.js:
(WebInspector.DOMTree.prototype._contentFlowListWasUpdated):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@157762 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/DOMTree.js

index 469640e..bd4dba8 100644 (file)
@@ -1,3 +1,15 @@
+2013-10-21  Alexandru Chiculita  <achicu@adobe.com>
+
+        Web Inspector: [CSS Regions] Flows are not loading if you refresh the page several times
+        https://bugs.webkit.org/show_bug.cgi?id=123123
+
+        Reviewed by Joseph Pecoraro.
+
+        There was a typo in the code where an exception was thrown because "flowKey" was undefined.
+
+        * UserInterface/DOMTree.js:
+        (WebInspector.DOMTree.prototype._contentFlowListWasUpdated):
+
 2013-10-21  Oliver Hunt  <oliver@apple.com>
 
         Restore accidentally removed files.
index c68701a..9e2a6d5 100644 (file)
@@ -283,7 +283,7 @@ WebInspector.DOMTree.prototype = {
             var flowId = flow.id;
             if (this._flowMap.hasOwnProperty(flowId)) {
                 // Remove the flow name from the deleted list.
-                console.assert(deletedFlows.hasOwnProperty(flowKey));
+                console.assert(deletedFlows.hasOwnProperty(flowId));
                 delete deletedFlows[flowId];
             } else {
                 this._flowMap[flowId] = flow;