Changeset 70565 in webkit


Ignore:
Timestamp:
Oct 26, 2010 1:29:37 PM (14 years ago)
Author:
podivilov@chromium.org
Message:

2010-10-26 Pavel Podivilov <podivilov@chromium.org>

Reviewed by Pavel Feldman.

Web Inspector: console doesn't work in closures when window is overrode
https://bugs.webkit.org/show_bug.cgi?id=48320

  • inspector/front-end/InjectedScript.js: (injectedScriptConstructor.):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r70557 r70565  
     12010-10-26  Pavel Podivilov  <podivilov@chromium.org>
     2
     3        Reviewed by Pavel Feldman.
     4
     5        Web Inspector: console doesn't work in closures when window is overrode
     6        https://bugs.webkit.org/show_bug.cgi?id=48320
     7
     8        * inspector/front-end/InjectedScript.js:
     9        (injectedScriptConstructor.):
     10
    1112010-10-26  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
    212
  • trunk/WebCore/inspector/front-end/InjectedScript.js

    r69752 r70565  
    269269        if (!isEvalOnCallFrame)
    270270            expression = "with (window) {\n" + expression + "\n} ";
    271         expression = "with (window.console._commandLineAPI) {\n" + expression + "\n}";
     271        expression = "with (window ? window.console._commandLineAPI : {}) {\n" + expression + "\n}";
    272272        var value = evalFunction.call(object, expression);
    273273   
Note: See TracChangeset for help on using the changeset viewer.