Commit a6b3459e authored by Alberto Garcia's avatar Alberto Garcia
Browse files

Imported Upstream version 2.3.4

parent c0371e57
2014-01-12 Sergio Correia <sergio.correia@openbossa.org>
[EFL][WK2] Make API tests work again
https://bugs.webkit.org/show_bug.cgi?id=126769
Reviewed by Gyuyoung Kim.
The EFL and WK2 test binaries are currently being generated at *TestWebKitAPI/
[E]WebKit2, respectively, and this causes problems because the logic to find
where WebProcess is to look in the same directory of the running process and
then proceed to use LIBEXECDIR (typically /usr/loca/bin).
This patch introduces a WEBKIT_EXEC_PATH environment variable, inspired in the
Gtk port, which allows us to look for WebProcess initially in this directory,
if it's defined.
* Source/cmake/OptionsEfl.cmake: Define WEBKIT_EXEC_PATH, to be used by
[E]WebKit2 tests.
2014-01-11 Dan Bernstein <mitz@apple.com>
[Mac] xcodebuild color output is suppressed when using make
https://bugs.webkit.org/show_bug.cgi?id=126815
Reviewed by Anders Carlsson.
WHen using make, xcodebuild’s output is piped through a filter, which causes it not to
format its output with color and emphasis.
* Makefile.shared: Pass COLOR_DIAGNOSTICS=YES to xcodebuild to force color output on. Due to
xcodebuild limitations, this restores some of the formatting, but not all of it.
2014-01-10 Benjamin Poulain <bpoulain@apple.com>
Remove the BlackBerry port from trunk
https://bugs.webkit.org/show_bug.cgi?id=126715
Reviewed by Anders Carlsson.
* CMakeLists.txt:
* Source/cmake/OptionsCommon.cmake:
2014-01-10 Tamas Gergely <tgergely.u-szeged@partner.samsung.com>
[EFL][JSC] Enable udis86 disassembler on efl.
https://bugs.webkit.org/show_bug.cgi?id=125502
Reviewed by Michael Saboff.
Enable udis86 disassembler on efl and fix build warnings.
* Source/cmake/OptionsEfl.cmake:
Enable udis86 disassembler.
2014-01-10 Benjamin Poulain <bpoulain@apple.com>
Remove the BlackBerry port from trunk
https://bugs.webkit.org/show_bug.cgi?id=126715
Reviewed by Anders Carlsson.
* CMakeLists.txt:
2014-01-09 Benjamin Poulain <bpoulain@apple.com>
Remove the BlackBerry files outside WebCore
https://bugs.webkit.org/show_bug.cgi?id=126715
Reviewed by Anders Carlsson.
* ManualTests/blackberry: Removed.
* Source/cmake/OptionsBlackBerry.cmake: Removed.
2014-01-08 Martin Robinson <mrobinson@igalia.com>
[GTK] [CMake] Specify the executable and library output locations in the build
https://bugs.webkit.org/show_bug.cgi?id=126671
Reviewed by Gustavo Noronha Silva.
* Source/cmake/OptionsGTK.cmake: Explicitly specify the output locations.
2014-01-08 Dániel Bátyai <dbatyai.u-szeged@partner.samsung.com>
[EFL] Make FTL buildable
https://bugs.webkit.org/show_bug.cgi?id=125777
Reviewed by Csaba Osztrogonác.
* Source/cmake/OptionsEfl.cmake:
* Source/cmakeconfig.h.cmake:
2014-01-08 Alberto Garcia <berto@igalia.com>
REGRESSION(r160304): [GTK] Disable libtool fast install
https://bugs.webkit.org/show_bug.cgi?id=126381
Reviewed by Gustavo Noronha Silva.
Don't disable the libtool fast-install mode unconditionally by
default.
If the fast-install mode is disabled, binaries are generated ready
to use the libraries directly from the build tree. If we use the
GNU linker, those binaries are then relinked when they are
installed.
However, libtool fails to do it properly when an installation
prefix is set with DESTDIR, and ends up installing the libtool
wrappers instead of the actual binaries.
* Source/autotools/SetupLibtool.m4:
2014-01-07 Gustavo Noronha Silva <gustavo.noronha@collabora.com>
Unreviewed GTK/CMake build fix: use the correct location for docs-build.stamp
in output and dependencies declarations, so docs are not built needlessly
every build.
* Source/PlatformGTK.cmake:
2014-01-04 Carlos Garcia Campos <cgarcia@igalia.com>
[GTK] Move all GTK/GObject unit tests to Tools/TestWebKitAPI
https://bugs.webkit.org/show_bug.cgi?id=126342
Reviewed by Gustavo Noronha Silva.
* GNUmakefile.am: Remove unused variable.
* Source/PlatformGTK.cmake: No longer include the old unit tests directories.
2014-01-06 Zan Dobersek <zdobersek@igalia.com>
[GTK] configure errors out when building with libc++
https://bugs.webkit.org/show_bug.cgi?id=126431
Reviewed by Martin Robinson.
Ease up the Clang and libstdc++ combination test to only fail if libstdc++ < 4.8.1 is actually used.
This allows for libc++ to be used as well. The test is moved into SetupCompilerFlags.m4 and is done
after the CXXFLAGS variable is properly set up, that is when all the C++ compiler options are determined.
* Source/autotools/CheckSystemAndBasicDependencies.m4:
* Source/autotools/SetupCompilerFlags.m4:
2014-01-06 Martin Robinson <mrobinson@igalia.com>
[CMake] [GTK] Fix the build for the WebKitGTK+ developer configuration
https://bugs.webkit.org/show_bug.cgi?id=126505
Reviewed by Gustavo Noronha Silva.
* Source/cmake/FindGLIB.cmake: Add support for finding the gio-unix include directory location.
* Source/cmake/FindGUdev.cmake: Added.
* Source/cmake/FindGeoClue.cmake: Added.
* Source/cmake/OptionsGTK.cmake: When gamepad is enabled look for gio-unix and GUdev. When
geolocation is enabled look for GeoClue.
2014-01-06 Zan Dobersek <zdobersek@igalia.com>
[GTK] Use libc++ for C++11 on darwin
https://bugs.webkit.org/show_bug.cgi?id=126325
Reviewed by Martin Robinson.
* Source/autotools/SetupCompilerFlags.m4: Don't default to libstdc++ when compiling with Clang.
Instead, the compiler should determine itself what standard library to use, except on Darwin,
where libc++ should be enforced. The standard library of user's choosing can still be enforced
through the CXXFLAGS environment variable.
2014-01-05 Martin Robinson <mrobinson@igalia.com>
[GTK] [CMake] Ensure that the autotools build and the CMake install the same files
https://bugs.webkit.org/show_bug.cgi?id=116379
Reviewed by Gustavo Noronha Silva.
* Source/PlatformGTK.cmake: Install the documentation.
* Source/cmake/OptionsCommon.cmake: Add a LIBEXEC variable for WebKit2 executables, and
don't use the default locations on GTK+. We will get them from the CMake-provided GNU installation
variables.
* Source/cmake/OptionsGTK.cmake: Setup the installation variables using the ones provided
by CMake's GNU installation directory support. Fix the definition of DATADIR. Always install
the jsc binary.
2014-01-05 Carlos Garcia Campos <cgarcia@igalia.com>
[GTK] Stop installing WebKit2 C API headers
https://bugs.webkit.org/show_bug.cgi?id=126489
Reviewed by Martin Robinson.
* GNUmakefile.am:
2014-01-04 Martin Robinson <mrobinson@igalia.com>
[GTK] [CMake] Improve the way we locate gobject-introspection
https://bugs.webkit.org/show_bug.cgi?id=126452
Reviewed by Philippe Normand.
* Source/cmake/FindGObjectIntrospection.cmake: Added.
* Source/cmake/OptionsGTK.cmake: Load the new FindGObjectIntrospection file.
2014-01-04 Martin Robinson <mrobinson@igalia.com>
[GTK] [CMake] Fix the video and audio build
https://bugs.webkit.org/show_bug.cgi?id=126464
Reviewed by Philippe Normand.
* Source/cmake/OptionsGTK.cmake: GStreamer files look for USE(GSTREAMER) and USE(WEBAUDIO_GSTREAMER),
so define those when appropriate. Web audio is one by default in autotools, so turn it on for cmake
as well.
2014-01-03 Martin Robinson <mrobinson@igalia.com>
[CMake] The forwarding headers generated by WebKitMacros.m4 are incompatible with the headers generated by generate-forwarding-headers.pl
https://bugs.webkit.org/show_bug.cgi?id=126361
Reviewed by Philippe Normand.
Make the forwarding headers generated by WebKitMacros.m4 compatible with the headers
generated by the WebKit2 forwarding headers generation script.
* Source/cmake/WebKitMacros.cmake: Try to convert absolute paths in the forwarding headers
to ones that are relative to the Source directory.
2014-01-02 Carlos Garcia Campos <cgarcia@igalia.com>
REGRESSION(r160304): [GTK] Disable libtool fast install
https://bugs.webkit.org/show_bug.cgi?id=126381
Reviewed by Martin Robinson.
After r160304 we are building some of our binaries that are
installed with the -no-fast-install ld flag. This makes that the
binaries are installed with the source code path hardcoded in
binary RPATH. Disabling fast install globally, the libtool script
always relinks the binaries right before being installed.
* Source/autotools/SetupLibtool.m4: Add AC_DISABLE_FAST_INSTALL.
2014-01-02 Jaehun Lim <ljaehun.lim@samsung.com>
[CMake][EFL] Fix some typos in OptionsEfl.cmake
https://bugs.webkit.org/show_bug.cgi?id=126376
Reviewed by Gyuyoung Kim.
* Source/cmake/WebKitFeatures.cmake: Correct a wrong word and remove comma(,).
2013-12-30 Martin Robinson <mrobinson@igalia.com>
[CMake] [GTK] Add support for GObject introspection
https://bugs.webkit.org/show_bug.cgi?id=126162
Reviewed by Daniel Bates.
* Source/PlatformGTK.cmake: Add a 'gir' target that builds all GIR files.
* Source/cmake/OptionsGTK.cmake: Add a macro for propagating typelib
targets to the Source level of the build.
2013-12-29 Martin Robinson <mrobinson@igalia.com>
[GTK][CMake] Translations must be built
https://bugs.webkit.org/show_bug.cgi?id=125513
Reviewed by Gustavo Noronha Silva.
* Source/PlatformGTK.cmake: Add the po subdirectory.
2013-12-28 Giovanni Campagna <gcampagna@src.gnome.org>
[GTK] Fix release builds with NetworkProcess enabled
https://bugs.webkit.org/show_bug.cgi?id=126247
Reviewed by Carlos Garcia Campos.
* Source/autotools/symbols.filter:
2013-12-26 Martin Robinson <mrobinson@igalia.com>
[GTK] [CMake] Add a production build type
https://bugs.webkit.org/show_bug.cgi?id=126179
Reviewed by Daniel Bates.
* Source/PlatformGTK.cmake: When the API tests are enabled compile the WebKit GObject
API unit tests. The inclusion of these build files was inadvertently removed in an earlier
patch.
* Source/cmake/OptionsGTK.cmake: When in production mode turn off all tools and tests and
use the autotools linker script.
2013-12-25 Martin Robinson <mrobinson@igalia.com>
[GTK] [CMake] Properly name the JavaScriptCore library
https://bugs.webkit.org/show_bug.cgi?id=126220
Reviewed by Gustavo Noronha Silva.
* Source/cmake/OptionsGTK.cmake: Set the JSC library name properly.
2013-12-25 Martin Robinson <mrobinson@igalia.com>
[GTK] [CMake] Clean up generated sources directories
https://bugs.webkit.org/show_bug.cgi?id=126216
Reviewed by Gustavo Noronha Silva.
* Source/cmake/OptionsGTK.cmake: Pre-define the main derived sources directories
so that they definitions can be shared easily throughout the build system.
2013-12-23 Jinwoo Song <jinwoo7.song@samsung.com>
[EFL][CMAKE] Case insensitive string comparison of build type
https://bugs.webkit.org/show_bug.cgi?id=126153
Reviewed by Daniel Bates.
Compare CMAKE_BUILD_TYPE with "debug" ignoring case.
* Source/cmake/OptionsEfl.cmake:
2013-12-23 Gustavo Noronha Silva <gns@gnome.org>
[GTK] [CMake] Add support for generating gtkdoc
https://bugs.webkit.org/show_bug.cgi?id=116376
Reviewed by Martin Robinson.
* Source/PlatformGTK.cmake: Added. New custom target that depends on a custom command
which calls our generate-gtkdoc script. It uses a docs-build.stamp for simplicity,
like the autotools build.
2013-12-23 Martin Robinson <mrobinson@igalia.com>
[GTK] [CMake] Build the WebKit2 GObject API tests
https://bugs.webkit.org/show_bug.cgi?id=125683
Reviewed by Daniel Bates.
* Source/PlatformGTK.cmake: Load the WebKit2 tests file if necessary.
* Source/cmake/FindATSPI.cmake: Added.
* Source/cmake/OptionsGTK.cmake: Look for AT-SPI, but don't fail if it isn't found.
2013-12-23 Martin Robinson <mrobinson@igalia.com>
[GTK] [CMake] Build the WebKit1 GObject API tests
https://bugs.webkit.org/show_bug.cgi?id=125684
Reviewed by Daniel Bates.
* Source/PlatformGTK.cmake: Added.
2013-12-22 Martin Robinson <mrobinson@igalia.com>
https://bugs.webkit.org/show_bug.cgi?id=125511
[GTK][CMake] libtool-compatible soversion calculation
Reviewed by Gustavo Noronha Silva.
* Source/cmake/OptionsGTK.cmake: Specify the appropriate libtool triples and use
the CALCULATE_LIBRARY_VERSIONS_FROM_LIBTOOL_TRIPLE macro to specify the library-specific
version information.
* Source/cmake/WebKitHelpers.cmake: Add some helpful macros.
2013-12-23 Gustavo Noronha Silva <gns@gnome.org>
[GTK] [CMake] Generate pkg-config files
https://bugs.webkit.org/show_bug.cgi?id=125685
Reviewed by Martin Robinson.
* Source/cmake/OptionsGTK.cmake: set variables used for filling in the values in the
pkg-config files.
2013-12-23 Carlos Garcia Campos <cgarcia@igalia.com>
[GTK] Build with network process unconditionally
https://bugs.webkit.org/show_bug.cgi?id=126128
Reviewed by Martin Robinson.
* Source/autotools/SetupAutomake.m4: Remove network process
conditional for Makefiles.
* Source/autotools/SetupWebKitFeatures.m4: Remove network process
feature.
2013-12-18 Gustavo Noronha Silva <gns@gnome.org>
[GTK][CMake] make libjavascriptcoregtk a public shared library again
https://bugs.webkit.org/show_bug.cgi?id=125512
Reviewed by Martin Robinson.
* CMakeLists.txt: make JavaScriptCore always be a shared library for the GTK+ port.
* Source/cmake/WebKitHelpers.cmake: make -fvisibility=hidden not be applied for GTK+,
visibility of some symbols is required for threading to be initialized properly by
WebKit2 processes, and we will rely on a linker script that will be added later on,
for production builds.
2013-12-16 Martin Robinson <mrobinson@igalia.com>
[GTK] [CMake] Add support for building WebKit1
https://bugs.webkit.org/show_bug.cgi?id=116377
Reviewed by Gustavo Noronha Silva.
* Source/cmake/OptionsGTK.cmake: Turn off some features that do not build properly
for WebKit1 and stop using the version script which we haven't implemented yet. Turn
on WebKit1.
2013-12-18 Gustavo Noronha Silva <gns@gnome.org>
[GTK][CMake] Use thin archives if building on Linux, only way to get non-shared-core debug builds
https://bugs.webkit.org/show_bug.cgi?id=125951
Reviewed by Martin Robinson.
* Source/cmake/OptionsGTK.cmake: append T for thin archives to the flags passed to ar,
also use u, which is used in the autotools build (it avoids adding a file twice).
2013-12-18 Gustavo Noronha Silva <gns@gnome.org>
[GTK][CMake] Remove binary size optimizations we do not use in the autotools build
https://bugs.webkit.org/show_bug.cgi?id=125947
Reviewed by Martin Robinson.
* Source/cmake/OptionsGTK.cmake: remove the relevant flags.
2013-12-18 Carlos Garcia Campos <cgarcia@igalia.com>
Unreviewed. Update NEWS and Versions.m4 for 2.3.3 release.
* Source/autotools/Versions.m4: Bump version numbers.
2013-12-12 Martin Robinson <mrobinson@igalia.com>
[GTK] [CMake] Build the plugin process against GTK+ 2
......
......@@ -17,6 +17,13 @@
namespace Inspector {
#if ENABLE(JAVASCRIPT_DEBUGGER)
InspectorDebuggerBackendDispatcherHandler::~InspectorDebuggerBackendDispatcherHandler() { }
#endif // ENABLE(JAVASCRIPT_DEBUGGER)
InspectorInspectorBackendDispatcherHandler::~InspectorInspectorBackendDispatcherHandler() { }
InspectorRuntimeBackendDispatcherHandler::~InspectorRuntimeBackendDispatcherHandler() { }
#if ENABLE(JAVASCRIPT_DEBUGGER)
PassRefPtr<InspectorDebuggerBackendDispatcher> InspectorDebuggerBackendDispatcher::create(InspectorBackendDispatcher* backendDispatcher, InspectorDebuggerBackendDispatcherHandler* agent)
......@@ -43,8 +50,6 @@ void InspectorDebuggerBackendDispatcher::dispatch(long callId, const String& met
const char* name;
CallHandler handler;
} commands[] = {
{ "causesRecompilation", &InspectorDebuggerBackendDispatcher::causesRecompilation },
{ "supportsSeparateScriptCompilationAndExecution", &InspectorDebuggerBackendDispatcher::supportsSeparateScriptCompilationAndExecution },
{ "enable", &InspectorDebuggerBackendDispatcher::enable },
{ "disable", &InspectorDebuggerBackendDispatcher::disable },
{ "setBreakpointsActive", &InspectorDebuggerBackendDispatcher::setBreakpointsActive },
......@@ -58,14 +63,10 @@ void InspectorDebuggerBackendDispatcher::dispatch(long callId, const String& met
{ "pause", &InspectorDebuggerBackendDispatcher::pause },
{ "resume", &InspectorDebuggerBackendDispatcher::resume },
{ "searchInContent", &InspectorDebuggerBackendDispatcher::searchInContent },
{ "canSetScriptSource", &InspectorDebuggerBackendDispatcher::canSetScriptSource },
{ "setScriptSource", &InspectorDebuggerBackendDispatcher::setScriptSource },
{ "getScriptSource", &InspectorDebuggerBackendDispatcher::getScriptSource },
{ "getFunctionDetails", &InspectorDebuggerBackendDispatcher::getFunctionDetails },
{ "setPauseOnExceptions", &InspectorDebuggerBackendDispatcher::setPauseOnExceptions },
{ "evaluateOnCallFrame", &InspectorDebuggerBackendDispatcher::evaluateOnCallFrame },
{ "compileScript", &InspectorDebuggerBackendDispatcher::compileScript },
{ "runScript", &InspectorDebuggerBackendDispatcher::runScript },
{ "setOverlayMessage", &InspectorDebuggerBackendDispatcher::setOverlayMessage },
};
size_t length = WTF_ARRAY_LENGTH(commands);
......@@ -82,32 +83,6 @@ void InspectorDebuggerBackendDispatcher::dispatch(long callId, const String& met
((*this).*it->value)(callId, *message.get());
}
void InspectorDebuggerBackendDispatcher::causesRecompilation(long callId, const InspectorObject&)
{
ErrorString error;
RefPtr<InspectorObject> result = InspectorObject::create();
bool out_result;
m_agent->causesRecompilation(&error, &out_result);
if (!error.length())
result->setBoolean(ASCIILiteral("result"), out_result);
m_backendDispatcher->sendResponse(callId, result.release(), error);
}
void InspectorDebuggerBackendDispatcher::supportsSeparateScriptCompilationAndExecution(long callId, const InspectorObject&)
{
ErrorString error;
RefPtr<InspectorObject> result = InspectorObject::create();
bool out_result;
m_agent->supportsSeparateScriptCompilationAndExecution(&error, &out_result);
if (!error.length())
result->setBoolean(ASCIILiteral("result"), out_result);
m_backendDispatcher->sendResponse(callId, result.release(), error);
}
void InspectorDebuggerBackendDispatcher::enable(long callId, const InspectorObject&)
{
ErrorString error;
......@@ -324,51 +299,6 @@ void InspectorDebuggerBackendDispatcher::searchInContent(long callId, const Insp
m_backendDispatcher->sendResponse(callId, result.release(), error);
}
void InspectorDebuggerBackendDispatcher::canSetScriptSource(long callId, const InspectorObject&)
{
ErrorString error;
RefPtr<InspectorObject> result = InspectorObject::create();
bool out_result;
m_agent->canSetScriptSource(&error, &out_result);
if (!error.length())
result->setBoolean(ASCIILiteral("result"), out_result);
m_backendDispatcher->sendResponse(callId, result.release(), error);
}
void InspectorDebuggerBackendDispatcher::setScriptSource(long callId, const InspectorObject& message)
{
RefPtr<InspectorArray> protocolErrors = InspectorArray::create();
RefPtr<InspectorObject> paramsContainer = message.getObject(ASCIILiteral("params"));
InspectorObject* paramsContainerPtr = paramsContainer.get();
InspectorArray* protocolErrorsPtr = protocolErrors.get();
String in_scriptId = InspectorBackendDispatcher::getString(paramsContainerPtr, ASCIILiteral("scriptId"), nullptr, protocolErrorsPtr);
String in_scriptSource = InspectorBackendDispatcher::getString(paramsContainerPtr, ASCIILiteral("scriptSource"), nullptr, protocolErrorsPtr);
bool preview_valueFound = false;
bool in_preview = InspectorBackendDispatcher::getBoolean(paramsContainerPtr, ASCIILiteral("preview"), &preview_valueFound, protocolErrorsPtr);
if (protocolErrors->length()) {
String errorMessage = String::format("Some arguments of method '%s' can't be processed", "Debugger.setScriptSource");
m_backendDispatcher->reportProtocolError(&callId, InspectorBackendDispatcher::InvalidParams, errorMessage, protocolErrors.release());
return;
}
ErrorString error;
RefPtr<InspectorObject> result = InspectorObject::create();
RefPtr<Inspector::TypeBuilder::Array<Inspector::TypeBuilder::Debugger::CallFrame> > out_callFrames;
RefPtr<Inspector::InspectorObject> out_result;
m_agent->setScriptSource(&error, in_scriptId, in_scriptSource, preview_valueFound ? &in_preview : nullptr, out_callFrames, out_result);
if (!error.length()) {
if (out_callFrames)
result->setValue(ASCIILiteral("callFrames"), out_callFrames);
if (out_result)
result->setValue(ASCIILiteral("result"), out_result);
}
m_backendDispatcher->sendResponse(callId, result.release(), error);
}
void InspectorDebuggerBackendDispatcher::getScriptSource(long callId, const InspectorObject& message)
{
RefPtr<InspectorArray> protocolErrors = InspectorArray::create();
......@@ -476,70 +406,6 @@ void InspectorDebuggerBackendDispatcher::evaluateOnCallFrame(long callId, const
m_backendDispatcher->sendResponse(callId, result.release(), error);
}
void InspectorDebuggerBackendDispatcher::compileScript(long callId, const InspectorObject& message)
{
RefPtr<InspectorArray> protocolErrors = InspectorArray::create();
RefPtr<InspectorObject> paramsContainer = message.getObject(ASCIILiteral("params"));
InspectorObject* paramsContainerPtr = paramsContainer.get();
InspectorArray* protocolErrorsPtr = protocolErrors.get();
String in_expression = InspectorBackendDispatcher::getString(paramsContainerPtr, ASCIILiteral("expression"), nullptr, protocolErrorsPtr);
String in_sourceURL = InspectorBackendDispatcher::getString(paramsContainerPtr, ASCIILiteral("sourceURL"), nullptr, protocolErrorsPtr);
if (protocolErrors->length()) {
String errorMessage = String::format("Some arguments of method '%s' can't be processed", "Debugger.compileScript");
m_backendDispatcher->reportProtocolError(&callId, InspectorBackendDispatcher::InvalidParams, errorMessage, protocolErrors.release());
return;
}
ErrorString error;
RefPtr<InspectorObject> result = InspectorObject::create();
Inspector::TypeBuilder::OptOutput<Inspector::TypeBuilder::Debugger::ScriptId> out_scriptId;
Inspector::TypeBuilder::OptOutput<String> out_syntaxErrorMessage;
m_agent->compileScript(&error, in_expression, in_sourceURL, &out_scriptId, &out_syntaxErrorMessage);
if (!error.length()) {
if (out_scriptId.isAssigned())
result->setString(ASCIILiteral("scriptId"), out_scriptId.getValue());
if (out_syntaxErrorMessage.isAssigned())
result->setString(ASCIILiteral("syntaxErrorMessage"), out_syntaxErrorMessage.getValue());
}
m_backendDispatcher->sendResponse(callId, result.release(), error);
}
void InspectorDebuggerBackendDispatcher::runScript(long callId, const InspectorObject& message)
{
RefPtr<InspectorArray> protocolErrors = InspectorArray::create();
RefPtr<InspectorObject> paramsContainer = message.getObject(ASCIILiteral("params"));
InspectorObject* paramsContainerPtr = paramsContainer.get();
InspectorArray* protocolErrorsPtr = protocolErrors.get();
String in_scriptId = InspectorBackendDispatcher::getString(paramsContainerPtr, ASCIILiteral("scriptId"), nullptr, protocolErrorsPtr);
bool contextId_valueFound = false;
int in_contextId = InspectorBackendDispatcher::getInt(paramsContainerPtr, ASCIILiteral("contextId"), &contextId_valueFound, protocolErrorsPtr);
bool objectGroup_valueFound = false;
String in_objectGroup = InspectorBackendDispatcher::getString(paramsContainerPtr, ASCIILiteral("objectGroup"), &objectGroup_valueFound, protocolErrorsPtr);
bool doNotPauseOnExceptionsAndMuteConsole_valueFound = false;
bool in_doNotPauseOnExceptionsAndMuteConsole = InspectorBackendDispatcher::getBoolean(paramsContainerPtr, ASCIILiteral("doNotPauseOnExceptionsAndMuteConsole"), &doNotPauseOnExceptionsAndMuteConsole_valueFound, protocolErrorsPtr);
if (protocolErrors->length()) {
String errorMessage = String::format("Some arguments of method '%s' can't be processed", "Debugger.runScript");
m_backendDispatcher->reportProtocolError(&callId, InspectorBackendDispatcher::InvalidParams, errorMessage, protocolErrors.release());
return;
}
ErrorString error;
RefPtr<InspectorObject> result = InspectorObject::create();
RefPtr<Inspector::TypeBuilder::Runtime::RemoteObject> out_result;
Inspector::TypeBuilder::OptOutput<bool> out_wasThrown;
m_agent->runScript(&error, in_scriptId, contextId_valueFound ? &in_contextId : nullptr, objectGroup_valueFound ? &in_objectGroup : nullptr, doNotPauseOnExceptionsAndMuteConsole_valueFound ? &in_doNotPauseOnExceptionsAndMuteConsole : nullptr, out_result, &out_wasThrown);
if (!error.length()) {
result->setValue(ASCIILiteral("result"), out_result);
if (out_wasThrown.isAssigned())
result->setBoolean(ASCIILiteral("wasThrown"), out_wasThrown.getValue