summaryrefslogtreecommitdiff
path: root/Source/WebKit2/WebProcess/InjectedBundle/qt/InjectedBundleQt.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>2017-05-30 12:48:17 +0200
committerOswald Buddenhagen <oswald.buddenhagen@qt.io>2017-05-30 12:48:17 +0200
commit881da28418d380042aa95a97f0cbd42560a64f7c (patch)
treea794dff3274695e99c651902dde93d934ea7a5af /Source/WebKit2/WebProcess/InjectedBundle/qt/InjectedBundleQt.cpp
parent7e104c57a70fdf551bb3d22a5d637cdcbc69dbea (diff)
parent0fcedcd17cc00d3dd44c718b3cb36c1033319671 (diff)
downloadqtwebkit-881da28418d380042aa95a97f0cbd42560a64f7c.tar.gz
Merge 'wip/next' into dev
Change-Id: Iff9ee5e23bb326c4371ec8ed81d56f2f05d680e9
Diffstat (limited to 'Source/WebKit2/WebProcess/InjectedBundle/qt/InjectedBundleQt.cpp')
-rw-r--r--Source/WebKit2/WebProcess/InjectedBundle/qt/InjectedBundleQt.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/WebKit2/WebProcess/InjectedBundle/qt/InjectedBundleQt.cpp b/Source/WebKit2/WebProcess/InjectedBundle/qt/InjectedBundleQt.cpp
index a5183b135..2334856ef 100644
--- a/Source/WebKit2/WebProcess/InjectedBundle/qt/InjectedBundleQt.cpp
+++ b/Source/WebKit2/WebProcess/InjectedBundle/qt/InjectedBundleQt.cpp
@@ -34,8 +34,12 @@ using namespace WebCore;
namespace WebKit {
-bool InjectedBundle::load(APIObject* initializationUserData)
+bool InjectedBundle::initialize(const WebProcessCreationParameters&, API::Object* initializationUserData)
{
+ // Built-in bundle
+ if (m_path.isEmpty())
+ return true;
+
m_platformBundle.setFileName(static_cast<QString>(m_path));
if (!m_platformBundle.load()) {
qWarning("Error loading the injected bundle: %s", qPrintable(m_platformBundle.errorString()));
@@ -54,7 +58,11 @@ bool InjectedBundle::load(APIObject* initializationUserData)
return true;
}
-void InjectedBundle::activateMacFontAscentHack()
+void InjectedBundle::setBundleParameter(const WTF::String&, const IPC::DataReference&)
+{
+}
+
+void InjectedBundle::setBundleParameters(const IPC::DataReference&)
{
}