1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

ExternalJsObject: Don't export search engine functions

Our window.external is no longer available to web pages so it has no effect.
This commit is contained in:
David Rosca 2018-01-10 13:27:18 +01:00
parent 195d3f2b93
commit 6ecc9f616f
2 changed files with 0 additions and 16 deletions

View File

@ -20,7 +20,6 @@
#include "pluginproxy.h"
#include "speeddial.h"
#include "webpage.h"
#include "searchenginesmanager.h"
#include "autofilljsobject.h"
#include "restoremanager.h"
@ -62,17 +61,6 @@ void ExternalJsObject::unregisterExtraObject(const QString &id)
s_extraObjects.remove(id);
}
void ExternalJsObject::AddSearchProvider(const QString &engineUrl)
{
mApp->searchEnginesManager()->addEngine(QUrl(engineUrl));
}
int ExternalJsObject::IsSearchProviderInstalled(const QString &engineURL)
{
qDebug() << "NOT IMPLEMENTED: IsSearchProviderInstalled()" << engineURL;
return 0;
}
QObject *ExternalJsObject::speedDial() const
{
if (m_page->url().toString() != QL1S("falkon:speeddial"))

View File

@ -44,10 +44,6 @@ public:
static void registerExtraObject(const QString &id, QObject *object);
static void unregisterExtraObject(const QString &id);
public slots:
void AddSearchProvider(const QString &engineUrl);
int IsSearchProviderInstalled(const QString &engineURL);
private:
QObject *speedDial() const;
QObject *autoFill() const;