summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/web_engine_settings.cpp2
-rw-r--r--src/core/web_engine_settings.h1
-rw-r--r--src/webengine/api/qquickwebenginesettings.cpp21
-rw-r--r--src/webengine/api/qquickwebenginesettings_p.h4
-rw-r--r--src/webenginewidgets/api/qwebenginesettings.cpp2
-rw-r--r--src/webenginewidgets/api/qwebenginesettings.h1
-rw-r--r--src/webenginewidgets/doc/src/qwebenginesettings_lgpl.qdoc2
7 files changed, 0 insertions, 33 deletions
diff --git a/src/core/web_engine_settings.cpp b/src/core/web_engine_settings.cpp
index 54c7f7c4..6c17c3ce 100644
--- a/src/core/web_engine_settings.cpp
+++ b/src/core/web_engine_settings.cpp
@@ -222,7 +222,6 @@ void WebEngineSettings::initDefaults(bool offTheRecord)
s_defaultAttributes.insert(PluginsEnabled, false);
s_defaultAttributes.insert(FullScreenSupportEnabled, false);
s_defaultAttributes.insert(ScreenCaptureEnabled, false);
- s_defaultAttributes.insert(WebAudioEnabled, false);
// The following defaults matches logic in render_view_host_impl.cc
// But first we must ensure the WebContext has been initialized
QtWebEngineCore::WebEngineContext::current();
@@ -312,7 +311,6 @@ void WebEngineSettings::applySettingsToWebPreferences(content::WebPreferences *p
prefs->plugins_enabled = testAttribute(PluginsEnabled);
prefs->fullscreen_supported = testAttribute(FullScreenSupportEnabled);
prefs->accelerated_2d_canvas_enabled = testAttribute(Accelerated2dCanvasEnabled);
- prefs->webaudio_enabled = testAttribute(WebAudioEnabled);
prefs->experimental_webgl_enabled = testAttribute(WebGLEnabled);
// Fonts settings.
diff --git a/src/core/web_engine_settings.h b/src/core/web_engine_settings.h
index 3bc10811..b623f1ec 100644
--- a/src/core/web_engine_settings.h
+++ b/src/core/web_engine_settings.h
@@ -78,7 +78,6 @@ public:
FullScreenSupportEnabled,
ScreenCaptureEnabled,
WebGLEnabled,
- WebAudioEnabled,
Accelerated2dCanvasEnabled,
AutoLoadIconsForPage,
TouchIconsEnabled
diff --git a/src/webengine/api/qquickwebenginesettings.cpp b/src/webengine/api/qquickwebenginesettings.cpp
index 73d3e34b..9096dd60 100644
--- a/src/webengine/api/qquickwebenginesettings.cpp
+++ b/src/webengine/api/qquickwebenginesettings.cpp
@@ -264,19 +264,6 @@ bool QQuickWebEngineSettings::webGLEnabled() const
}
/*!
- \qmlproperty bool WebEngineSettings::webAudioEnabled
- \since QtWebEngine 1.3
-
- Enables support for HTML 5 WebAudio.
-
- Disabled by default.
-*/
-bool QQuickWebEngineSettings::webAudioEnabled() const
-{
- return d_ptr->testAttribute(WebEngineSettings::WebAudioEnabled);
-}
-
-/*!
\qmlproperty bool WebEngineSettings::accelerated2dCanvasEnabled
\since QtWebEngine 1.3
@@ -453,14 +440,6 @@ void QQuickWebEngineSettings::setWebGLEnabled(bool on)
Q_EMIT webGLEnabledChanged();
}
-void QQuickWebEngineSettings::setWebAudioEnabled(bool on)
-{
- bool wasOn = d_ptr->testAttribute(WebEngineSettings::WebAudioEnabled);
- d_ptr->setAttribute(WebEngineSettings::WebAudioEnabled, on);
- if (wasOn != on)
- Q_EMIT webAudioEnabledChanged();
-}
-
void QQuickWebEngineSettings::setAccelerated2dCanvasEnabled(bool on)
{
bool wasOn = d_ptr->testAttribute(WebEngineSettings::Accelerated2dCanvasEnabled);
diff --git a/src/webengine/api/qquickwebenginesettings_p.h b/src/webengine/api/qquickwebenginesettings_p.h
index 6a5fd290..d380ee3d 100644
--- a/src/webengine/api/qquickwebenginesettings_p.h
+++ b/src/webengine/api/qquickwebenginesettings_p.h
@@ -79,7 +79,6 @@ class Q_WEBENGINE_PRIVATE_EXPORT QQuickWebEngineSettings : public QObject {
Q_PROPERTY(QString defaultTextEncoding READ defaultTextEncoding WRITE setDefaultTextEncoding NOTIFY defaultTextEncodingChanged REVISION 1)
Q_PROPERTY(bool screenCaptureEnabled READ screenCaptureEnabled WRITE setScreenCaptureEnabled NOTIFY screenCaptureEnabledChanged REVISION 2)
Q_PROPERTY(bool webGLEnabled READ webGLEnabled WRITE setWebGLEnabled NOTIFY webGLEnabledChanged REVISION 2)
- Q_PROPERTY(bool webAudioEnabled READ webAudioEnabled WRITE setWebAudioEnabled NOTIFY webAudioEnabledChanged REVISION 2)
Q_PROPERTY(bool accelerated2dCanvasEnabled READ accelerated2dCanvasEnabled WRITE setAccelerated2dCanvasEnabled NOTIFY accelerated2dCanvasEnabledChanged REVISION 2)
Q_PROPERTY(bool autoLoadIconsForPage READ autoLoadIconsForPage WRITE setAutoLoadIconsForPage NOTIFY autoLoadIconsForPageChanged REVISION 2)
Q_PROPERTY(bool touchIconsEnabled READ touchIconsEnabled WRITE setTouchIconsEnabled NOTIFY touchIconsEnabledChanged REVISION 2)
@@ -103,7 +102,6 @@ public:
QString defaultTextEncoding() const;
bool screenCaptureEnabled() const;
bool webGLEnabled() const;
- bool webAudioEnabled() const;
bool accelerated2dCanvasEnabled() const;
bool autoLoadIconsForPage() const;
bool touchIconsEnabled() const;
@@ -124,7 +122,6 @@ public:
void setDefaultTextEncoding(QString encoding);
void setScreenCaptureEnabled(bool on);
void setWebGLEnabled(bool on);
- void setWebAudioEnabled(bool on);
void setAccelerated2dCanvasEnabled(bool on);
void setAutoLoadIconsForPage(bool on);
void setTouchIconsEnabled(bool on);
@@ -146,7 +143,6 @@ signals:
Q_REVISION(1) void defaultTextEncodingChanged();
Q_REVISION(2) void screenCaptureEnabledChanged();
Q_REVISION(2) void webGLEnabledChanged();
- Q_REVISION(2) void webAudioEnabledChanged();
Q_REVISION(2) void accelerated2dCanvasEnabledChanged();
Q_REVISION(2) void autoLoadIconsForPageChanged();
Q_REVISION(2) void touchIconsEnabledChanged();
diff --git a/src/webenginewidgets/api/qwebenginesettings.cpp b/src/webenginewidgets/api/qwebenginesettings.cpp
index d1caa4ca..dfca1628 100644
--- a/src/webenginewidgets/api/qwebenginesettings.cpp
+++ b/src/webenginewidgets/api/qwebenginesettings.cpp
@@ -83,8 +83,6 @@ static WebEngineSettings::Attribute toWebEngineAttribute(QWebEngineSettings::Web
return WebEngineSettings::ScreenCaptureEnabled;
case QWebEngineSettings::WebGLEnabled:
return WebEngineSettings::WebGLEnabled;
- case QWebEngineSettings::WebAudioEnabled:
- return WebEngineSettings::WebAudioEnabled;
case QWebEngineSettings::Accelerated2dCanvasEnabled:
return WebEngineSettings::Accelerated2dCanvasEnabled;
case QWebEngineSettings::AutoLoadIconsForPage:
diff --git a/src/webenginewidgets/api/qwebenginesettings.h b/src/webenginewidgets/api/qwebenginesettings.h
index ea18cf02..eb4bf75a 100644
--- a/src/webenginewidgets/api/qwebenginesettings.h
+++ b/src/webenginewidgets/api/qwebenginesettings.h
@@ -64,7 +64,6 @@ public:
FullScreenSupportEnabled,
ScreenCaptureEnabled,
WebGLEnabled,
- WebAudioEnabled,
Accelerated2dCanvasEnabled,
AutoLoadIconsForPage,
TouchIconsEnabled
diff --git a/src/webenginewidgets/doc/src/qwebenginesettings_lgpl.qdoc b/src/webenginewidgets/doc/src/qwebenginesettings_lgpl.qdoc
index cb75c69f..3e0f4cf8 100644
--- a/src/webenginewidgets/doc/src/qwebenginesettings_lgpl.qdoc
+++ b/src/webenginewidgets/doc/src/qwebenginesettings_lgpl.qdoc
@@ -137,8 +137,6 @@
Enables screen capture in an application. Disabled by default. (Added in Qt 5.7)
\value WebGLEnabled
Enables support for HTML 5 WebGL. Enabled by default if available. (Added in Qt 5.7)
- \value WebAudioEnabled
- Enables support for HTML 5 WebAudio. Disabled by default. (Added in Qt 5.7)
\value Accelerated2dCanvasEnabled
Specifies whether the HTML5 2D canvas should be a OpenGL framebuffer.
This makes many painting operations faster, but slows down pixel access. Enabled by default if available. (Added in Qt 5.7)