Changeset 52108 in webkit


Ignore:
Timestamp:
Dec 14, 2009 12:21:13 PM (14 years ago)
Author:
eric@webkit.org
Message:

2009-12-14 Alexander Pavlov <apavlov@chromium.org>

Reviewed by Pavel Feldman.

Implement InjectedScript.evaluateOnSelf() that evaluates functions in the InjectedScript context.
https://bugs.webkit.org/show_bug.cgi?id=32517

  • inspector/front-end/InjectedScript.js: (InjectedScript.evaluateOnSelf):
  • inspector/front-end/InjectedScriptAccess.js:
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r52107 r52108  
     12009-12-14  Alexander Pavlov  <apavlov@chromium.org>
     2
     3        Reviewed by Pavel Feldman.
     4
     5        Implement InjectedScript.evaluateOnSelf() that evaluates functions in the InjectedScript context.
     6        https://bugs.webkit.org/show_bug.cgi?id=32517
     7
     8        * inspector/front-end/InjectedScript.js:
     9        (InjectedScript.evaluateOnSelf):
     10        * inspector/front-end/InjectedScriptAccess.js:
     11
    1122009-12-14  Nayan Kumar K  <nayankk@gmail.com>
    213
  • trunk/WebCore/inspector/front-end/InjectedScript.js

    r51601 r52108  
    10801080}
    10811081
     1082InjectedScript.evaluateOnSelf = function(funcBody)
     1083{
     1084    return window.eval("(" + funcBody + ")();");
     1085}
     1086
    10821087InjectedScript.CallFrameProxy = function(id, callFrame)
    10831088{
  • trunk/WebCore/inspector/front-end/InjectedScriptAccess.js

    r51601 r52108  
    7777InjectedScriptAccess._installHandler("setStyleText");
    7878InjectedScriptAccess._installHandler("toggleStyleEnabled");
     79InjectedScriptAccess._installHandler("evaluateOnSelf");
    7980
    8081// Some methods can't run synchronously even on the injected script side (such as DB transactions).
Note: See TracChangeset for help on using the changeset viewer.