mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +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:
parent
195d3f2b93
commit
6ecc9f616f
@ -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"))
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user