Index: Source/testing/runner/TestRunner.cpp |
diff --git a/Source/testing/runner/TestRunner.cpp b/Source/testing/runner/TestRunner.cpp |
index f31d6884a78a3942d50f61edcf0cf84ea67eb4ea..44e5ec8b5bcec5452c36790ab96ce126a30ddfb2 100644 |
--- a/Source/testing/runner/TestRunner.cpp |
+++ b/Source/testing/runner/TestRunner.cpp |
@@ -244,6 +244,7 @@ TestRunner::TestRunner(TestInterfaces* interfaces) |
bindMethod("dumpResourceResponseMIMETypes", &TestRunner::dumpResourceResponseMIMETypes); |
bindMethod("dumpPermissionClientCallbacks", &TestRunner::dumpPermissionClientCallbacks); |
bindMethod("setImagesAllowed", &TestRunner::setImagesAllowed); |
+ bindMethod("setMediaAllowed", &TestRunner::setMediaAllowed); |
bindMethod("setScriptsAllowed", &TestRunner::setScriptsAllowed); |
bindMethod("setStorageAllowed", &TestRunner::setStorageAllowed); |
bindMethod("setPluginsAllowed", &TestRunner::setPluginsAllowed); |
@@ -1040,6 +1041,13 @@ void TestRunner::setStorageAllowed(const CppArgumentList& arguments, CppVariant* |
result->setNull(); |
} |
+void TestRunner::setMediaAllowed(const CppArgumentList& arguments, CppVariant* result) |
+{ |
+ if (arguments.size() > 0 && arguments[0].isBool()) |
+ m_webPermissions->setMediaAllowed(arguments[0].toBoolean()); |
+ result->setNull(); |
+} |
+ |
void TestRunner::setPluginsAllowed(const CppArgumentList& arguments, CppVariant* result) |
{ |
if (arguments.size() > 0 && arguments[0].isBool()) |