Title: [92962] trunk/Source/WebCore
Revision
92962
Author
pfeld...@chromium.org
Date
2011-08-12 07:56:04 -0700 (Fri, 12 Aug 2011)

Log Message

2011-08-12  Pavel Feldman  <pfeld...@google.com>

        Not reviewed: follow up to inspector test breakage.

        * inspector/front-end/ScriptsPanel.js:
        (WebInspector.ScriptsPanel.prototype._showScriptFoldersSettingChanged):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (92961 => 92962)


--- trunk/Source/WebCore/ChangeLog	2011-08-12 14:50:47 UTC (rev 92961)
+++ trunk/Source/WebCore/ChangeLog	2011-08-12 14:56:04 UTC (rev 92962)
@@ -1,3 +1,10 @@
+2011-08-12  Pavel Feldman  <pfeld...@google.com>
+
+        Not reviewed: follow up to inspector test breakage.
+
+        * inspector/front-end/ScriptsPanel.js:
+        (WebInspector.ScriptsPanel.prototype._showScriptFoldersSettingChanged):
+
 2011-08-12  Yury Semikhatsky  <yu...@chromium.org>
 
         Web Inspector: expand exception properties when wrapping it as object.

Modified: trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js (92961 => 92962)


--- trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js	2011-08-12 14:50:47 UTC (rev 92961)
+++ trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js	2011-08-12 14:56:04 UTC (rev 92962)
@@ -259,7 +259,7 @@
     _showScriptFoldersSettingChanged: function()
     {
         var selectedOption = this._filesSelectElement[this._filesSelectElement.selectedIndex];
-        var sourceFileId = selectedOption._sourceFileId;
+        var sourceFileId = selectedOption ? selectedOption._sourceFileId : null;
 
         var options = Array.prototype.slice.call(this._filesSelectElement);
         this._resetFilesSelect();
@@ -270,7 +270,8 @@
 
         if (sourceFileId) {
             var index = this._sourceFileIdToFilesSelectOption[sourceFileId].index;
-            this._filesSelectElement.selectedIndex = index;
+            if (typeof index === "number")
+                this._filesSelectElement.selectedIndex = index;
         }
     },
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to