Unreviewed test fix for r97050.
authorloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Oct 2011 11:43:40 +0000 (11:43 +0000)
committerloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Oct 2011 11:43:40 +0000 (11:43 +0000)
* inspector/front-end/DebuggerPresentationModel.js:
(WebInspector.DebuggerPresentationModel.prototype._debuggerReset):

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

Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/DebuggerPresentationModel.js

index b48c1752bca6cc7ebc2e06695373c27c1de2f19d..26ba134a847f1ab6c811fcc7e7e13acab422ca24 100644 (file)
@@ -1,3 +1,10 @@
+2011-10-10  Ilya Tikhonovsky  <loislo@chromium.org>
+
+        Unreviewed test fix for r97050.
+
+        * inspector/front-end/DebuggerPresentationModel.js:
+        (WebInspector.DebuggerPresentationModel.prototype._debuggerReset):
+
 2011-10-10  Andreas Kling  <kling@webkit.org>
 
         Shrink RenderListItem on 64-bit.
index a728e98f0e44d9d5dd08feb052dee08f0fe5793c..e6b81052561c0683d2376a0de9894ed006dcf225 100644 (file)
@@ -432,7 +432,8 @@ WebInspector.DebuggerPresentationModel.prototype = {
     _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 = {};