Web Inspector: Fix PrettyPrinting Tool Load from Saved URL
authorjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Oct 2013 17:58:41 +0000 (17:58 +0000)
committerjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Oct 2013 17:58:41 +0000 (17:58 +0000)
Reviewed by Timothy Hatcher.

* Tools/PrettyPrinting/index.html:

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

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/Tools/PrettyPrinting/index.html

index 06ecafa9b7fa306a81546cf02cb39b19c3a36d4e..4e5f46ba70873dbf85d7e6562c37d6bd05cb9dc7 100644 (file)
@@ -1,3 +1,11 @@
+2013-10-30  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Web Inspector: Fix PrettyPrinting Tool Load from Saved URL
+
+        Reviewed by Timothy Hatcher.
+
+        * Tools/PrettyPrinting/index.html:
+
 2013-10-28  Alexandru Chiculita  <achicu@adobe.com>
 
         Web Inspector: CSS Regions: Add protocol API to expose content nodes addition/removal
index fc331ee321d359af67045ee9fcf1189543932af8..4002852354f680c431e65f711f4809882ede4be8 100644 (file)
@@ -76,7 +76,7 @@
     var modePicker = document.getElementById("mode");
     if (updatePicker) {
         for (var i = 0; i < modePicker.options.length; ++i) {
-            if (modePicker.options[i]) {
+            if (modePicker.options[i].value === mode) {
                 modePicker.options[i].selected = true;
                 break;
             }