Title: [111018] trunk/Source/WebCore
Revision
111018
Author
podivi...@chromium.org
Date
2012-03-16 09:49:45 -0700 (Fri, 16 Mar 2012)

Log Message

Web Inspector: fix exception when hovering over bound function in heap profiler.
https://bugs.webkit.org/show_bug.cgi?id=81362

Reviewed by Yury Semikhatsky.

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

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (111017 => 111018)


--- trunk/Source/WebCore/ChangeLog	2012-03-16 16:49:32 UTC (rev 111017)
+++ trunk/Source/WebCore/ChangeLog	2012-03-16 16:49:45 UTC (rev 111018)
@@ -1,3 +1,13 @@
+2012-03-16  Pavel Podivilov  <podivi...@chromium.org>
+
+        Web Inspector: fix exception when hovering over bound function in heap profiler.
+        https://bugs.webkit.org/show_bug.cgi?id=81362
+
+        Reviewed by Yury Semikhatsky.
+
+        * inspector/front-end/DebuggerPresentationModel.js:
+        (WebInspector.DebuggerPresentationModel.Linkifier.prototype.linkifyRawLocation):
+
 2012-03-16  Yoshifumi Inoue  <yo...@chromium.org>
 
         [Forms] The "progress" element should not be a form-associated element.

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


--- trunk/Source/WebCore/inspector/front-end/DebuggerPresentationModel.js	2012-03-16 16:49:32 UTC (rev 111017)
+++ trunk/Source/WebCore/inspector/front-end/DebuggerPresentationModel.js	2012-03-16 16:49:45 UTC (rev 111018)
@@ -877,6 +877,8 @@
      */
     linkifyRawLocation: function(rawLocation, classes)
     {
+        if (!WebInspector.debuggerModel.scriptForSourceID(rawLocation.scriptId))
+            return null;
         var anchor = WebInspector.linkifyURLAsNode("", "", classes, false);
         var liveLocation = this._model.createLiveLocation(rawLocation, this._updateAnchor.bind(this, anchor));
         liveLocation.init();
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to