Remove the workaround for bug 11399 now that it is fixed.
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Apr 2008 16:41:12 +0000 (16:41 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Apr 2008 16:41:12 +0000 (16:41 +0000)
Reviewed by Adam Roben.

* page/inspector/Console.js: Removed the 'with' statement
around the eval and call eval directly on the inspected window.

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

WebCore/ChangeLog
WebCore/page/inspector/Console.js

index 10741bf..2142c13 100644 (file)
@@ -1,3 +1,12 @@
+2008-04-07  Timothy Hatcher  <timothy@apple.com>
+
+        Remove the workaround for bug 11399 now that it is fixed.
+
+        Reviewed by Adam Roben.
+
+        * page/inspector/Console.js: Removed the 'with' statement
+        around the eval and call eval directly on the inspected window.
+
 2008-04-07  Luca Bruno  <lethalman88@gmail.com>
 
         Reviewed by Alp Toker.
 2008-04-07  Luca Bruno  <lethalman88@gmail.com>
 
         Reviewed by Alp Toker.
index 59fa74b..e2f5e28 100644 (file)
@@ -236,10 +236,7 @@ WebInspector.ConsolePanel.prototype = {
 
     _evalInInspectedWindow: function(expression)
     {
 
     _evalInInspectedWindow: function(expression)
     {
-        // This with block is needed to work around http://bugs.webkit.org/show_bug.cgi?id=11399
-        with (InspectorController.inspectedWindow()) {
-            return eval(expression);
-        }
+        return InspectorController.inspectedWindow().eval(expression);
     },
 
     _enterKeyPressed: function(event)
     },
 
     _enterKeyPressed: function(event)