Title: [97055] trunk/Source/WebCore
Revision
97055
Author
loi...@chromium.org
Date
2011-10-10 04:43:40 -0700 (Mon, 10 Oct 2011)

Log Message

Unreviewed test fix for r97050.

* inspector/front-end/DebuggerPresentationModel.js:
(WebInspector.DebuggerPresentationModel.prototype._debuggerReset):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (97054 => 97055)


--- trunk/Source/WebCore/ChangeLog	2011-10-10 11:29:53 UTC (rev 97054)
+++ trunk/Source/WebCore/ChangeLog	2011-10-10 11:43:40 UTC (rev 97055)
@@ -1,3 +1,10 @@
+2011-10-10  Ilya Tikhonovsky  <loi...@chromium.org>
+
+        Unreviewed test fix for r97050.
+
+        * inspector/front-end/DebuggerPresentationModel.js:
+        (WebInspector.DebuggerPresentationModel.prototype._debuggerReset):
+
 2011-10-10  Andreas Kling  <kl...@webkit.org>
 
         Shrink RenderListItem on 64-bit.

Modified: trunk/Source/WebCore/inspector/front-end/DebuggerPresentationModel.js (97054 => 97055)


--- trunk/Source/WebCore/inspector/front-end/DebuggerPresentationModel.js	2011-10-10 11:29:53 UTC (rev 97054)
+++ trunk/Source/WebCore/inspector/front-end/DebuggerPresentationModel.js	2011-10-10 11:43:40 UTC (rev 97055)
@@ -432,7 +432,8 @@
     _debuggerReset: function()
     {
         for (var id in this._rawSourceCode) {
-            this.dispatchEventToListeners(WebInspector.DebuggerPresentationModel.Events.UISourceCodeRemoved, this._rawSourceCode[id].sourceMapping.uiSourceCode);
+            if (this._rawSourceCode[id].sourceMapping && this._rawSourceCode[id].sourceMapping.uiSourceCode)
+                this.dispatchEventToListeners(WebInspector.DebuggerPresentationModel.Events.UISourceCodeRemoved, this._rawSourceCode[id].sourceMapping.uiSourceCode);
             this._rawSourceCode[id].removeAllListeners();
         }
         this._rawSourceCode = {};
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to