2012-02-15 Yury Semikhatsky <yurys@chromium.org>
authoryurys@chromium.org <yurys@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Feb 2012 14:05:04 +0000 (14:05 +0000)
committeryurys@chromium.org <yurys@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Feb 2012 14:05:04 +0000 (14:05 +0000)
        Unreviewed. Build fix after r107806

        * inspector/InjectedScript.cpp:
        (WebCore::InjectedScript::callFunctionWithEvalEnabled):
        * inspector/InjectedScript.h:
        (InjectedScript):

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

Source/WebCore/ChangeLog
Source/WebCore/inspector/InjectedScript.cpp
Source/WebCore/inspector/InjectedScript.h

index 837e6ba..068abbc 100644 (file)
@@ -1,5 +1,14 @@
 2012-02-15  Yury Semikhatsky  <yurys@chromium.org>
 
+        Unreviewed. Build fix after r107806
+
+        * inspector/InjectedScript.cpp:
+        (WebCore::InjectedScript::callFunctionWithEvalEnabled):
+        * inspector/InjectedScript.h:
+        (InjectedScript):
+
+2012-02-15  Yury Semikhatsky  <yurys@chromium.org>
+
         Web Inspector: crash when inspecting an element on a page with eval disabled by CSP
         https://bugs.webkit.org/show_bug.cgi?id=78705
 
index 7bb62bc..47e09c7 100644 (file)
@@ -208,7 +208,7 @@ bool InjectedScript::canAccessInspectedWindow() const
     return m_inspectedStateAccessCheck(m_injectedScriptObject.scriptState());
 }
 
-ScriptValue InjectedScript::callFunctionWithEvalEnabled(ScriptFunctionCall& function, bool& hadException)
+ScriptValue InjectedScript::callFunctionWithEvalEnabled(ScriptFunctionCall& function, bool& hadException) const
 {
     DOMWindow* domWindow = domWindowFromScriptState(m_injectedScriptObject.scriptState());
     InspectorInstrumentationCookie cookie = domWindow && domWindow->frame() ? InspectorInstrumentation::willCallFunction(domWindow->frame()->page(), "InjectedScript", 1) : InspectorInstrumentationCookie();
index 6cc20d9..3b58031 100644 (file)
@@ -100,7 +100,7 @@ private:
     InjectedScript(ScriptObject, InspectedStateAccessCheck);
 
     bool canAccessInspectedWindow() const;
-    ScriptValue callFunctionWithEvalEnabled(ScriptFunctionCall&, bool& hadException);
+    ScriptValue callFunctionWithEvalEnabled(ScriptFunctionCall&, bool& hadException) const;
     void makeCall(ScriptFunctionCall&, RefPtr<InspectorValue>* result);
     void makeEvalCall(ErrorString*, ScriptFunctionCall&, RefPtr<InspectorObject>* result, bool* wasThrown);
     ScriptValue nodeAsScriptValue(Node*);