diff options
Diffstat (limited to 'Source/WebKit')
-rw-r--r-- | Source/WebKit/PlatformQt.cmake | 12 | ||||
-rw-r--r-- | Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp | 12 | ||||
-rw-r--r-- | Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.h | 2 |
3 files changed, 16 insertions, 10 deletions
diff --git a/Source/WebKit/PlatformQt.cmake b/Source/WebKit/PlatformQt.cmake index a192fbd48..8708cedf8 100644 --- a/Source/WebKit/PlatformQt.cmake +++ b/Source/WebKit/PlatformQt.cmake @@ -444,6 +444,13 @@ endif () if (ENABLE_DEVICE_ORIENTATION) set(WEBKIT_PRI_RUNTIME_DEPS "sensors ${WEBKIT_PRI_RUNTIME_DEPS}") endif () +if (USE_MEDIA_FOUNDATION) + set(WEBKIT_PRI_EXTRA_LIBS "-lmfuuid -lstrmiids ${WEBKIT_PRI_EXTRA_LIBS}") +endif () +if (USE_QT_MULTIMEDIA) + set(WEBKIT_PKGCONGIG_DEPS "${WEBKIT_PKGCONGIG_DEPS} Qt5Multimedia") + set(WEBKIT_PRI_RUNTIME_DEPS "multimedia ${WEBKIT_PRI_RUNTIME_DEPS}") +endif () set(WEBKITWIDGETS_PKGCONGIG_DEPS "${WEBKIT_PKGCONGIG_DEPS} Qt5Widgets Qt5WebKit") set(WEBKITWIDGETS_PRI_DEPS "${WEBKIT_PRI_DEPS} widgets webkit") @@ -457,6 +464,11 @@ if (ENABLE_PRINT_SUPPORT) set(WEBKITWIDGETS_PRI_RUNTIME_DEPS "${WEBKITWIDGETS_PRI_RUNTIME_DEPS} printsupport") endif () +if (USE_QT_MULTIMEDIA) + set(WEBKITWIDGETS_PKGCONGIG_DEPS "${WEBKITWIDGETS_PKGCONGIG_DEPS} Qt5MultimediaWidgets") + set(WEBKITWIDGETS_PRI_RUNTIME_DEPS "${WEBKITWIDGETS_PRI_RUNTIME_DEPS} multimediawidgets") +endif () + if (QT_STATIC_BUILD) set(WEBKITWIDGETS_PKGCONGIG_DEPS "${WEBKITWIDGETS_PKGCONGIG_DEPS} Qt5PrintSupport") set(WEBKITWIDGETS_PRI_DEPS "${WEBKITWIDGETS_PRI_DEPS} printsupport") diff --git a/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp b/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp index 7312792ce..b3209a572 100644 --- a/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp +++ b/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp @@ -929,10 +929,12 @@ void FrameLoaderClientQt::convertMainResourceLoadToDownload(DocumentLoader* docu QNetworkReply* reply = handler->release(); if (reply) { - if (m_webFrame->pageAdapter->forwardUnsupportedContent) + if (m_webFrame->pageAdapter->forwardUnsupportedContent) { emit unsupportedContent(reply); - else + } else { reply->abort(); + reply->deleteLater(); + } } } @@ -1517,12 +1519,6 @@ String FrameLoaderClientQt::overrideMediaType() const return String(); } -QString FrameLoaderClientQt::chooseFile(const QString& oldFile) -{ - QStringList result = m_webFrame->pageAdapter->chooseFiles(m_webFrame, /*allowMulti*/ false, (QStringList() << oldFile)); - return result.isEmpty() ? QString() : result.first(); -} - PassRefPtr<FrameNetworkingContext> FrameLoaderClientQt::createNetworkingContext() { QVariant value = m_webFrame->pageAdapter->handle()->property("_q_MIMESniffingDisabled"); diff --git a/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.h b/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.h index a00bf6702..a20364f76 100644 --- a/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.h +++ b/Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.h @@ -214,8 +214,6 @@ public: void updateCachedDocumentLoader(DocumentLoader &) override; void prefetchDNS(const WTF::String &) override; - QString chooseFile(const QString& oldFile); - PassRefPtr<FrameNetworkingContext> createNetworkingContext() override; const URL& lastRequestedUrl() const { return m_lastRequestedUrl; } |