logo

WebKitGTK

Unnamed repository; edit this file 'description' to name the repository.
commit: 27a283bdcacfff8ec44dec5ce5e7ab3b57520196
parent: 4def00a865dc08fe1c3e054db539bcc12623055e
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun,  2 Dec 2018 02:33:31 +0100

Source/WebCore/page/RuntimeEnabledFeatures.h: hard-disable some features

Diffstat:

MSource/WebCore/page/RuntimeEnabledFeatures.h16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/Source/WebCore/page/RuntimeEnabledFeatures.h b/Source/WebCore/page/RuntimeEnabledFeatures.h @@ -48,13 +48,13 @@ public: bool blankAnchorTargetImpliesNoOpenerEnabled() const { return m_blankAnchorTargetImpliesNoOpenerEnabled; } void setLinkPreloadEnabled(bool isEnabled) { m_isLinkPreloadEnabled = isEnabled; } - bool linkPreloadEnabled() const { return m_isLinkPreloadEnabled; } + bool linkPreloadEnabled() const { return false; } void setLinkPrefetchEnabled(bool isEnabled) { m_isLinkPrefetchEnabled = isEnabled; } - bool linkPrefetchEnabled() const { return m_isLinkPrefetchEnabled; } + bool linkPrefetchEnabled() const { return false; } void setMediaPreloadingEnabled(bool isEnabled) { m_isMediaPreloadingEnabled = isEnabled; } - bool mediaPreloadingEnabled() const { return m_isMediaPreloadingEnabled; } + bool mediaPreloadingEnabled() const { return false; } void setResourceTimingEnabled(bool isEnabled) { m_isResourceTimingEnabled = isEnabled; } bool resourceTimingEnabled() const { return m_isResourceTimingEnabled; } @@ -68,19 +68,19 @@ public: bool shadowDOMEnabled() const { return m_isShadowDOMEnabled; } void setInputEventsEnabled(bool isEnabled) { m_inputEventsEnabled = isEnabled; } - bool inputEventsEnabled() const { return m_inputEventsEnabled; } + bool inputEventsEnabled() const { return false; } void setInteractiveFormValidationEnabled(bool isEnabled) { m_isInteractiveFormValidationEnabled = isEnabled; } bool interactiveFormValidationEnabled() const { return m_isInteractiveFormValidationEnabled; } void setCustomElementsEnabled(bool areEnabled) { m_areCustomElementsEnabled = areEnabled; } - bool customElementsEnabled() const { return m_areCustomElementsEnabled; } + bool customElementsEnabled() const { return false; } void setMenuItemElementEnabled(bool isEnabled) { m_isMenuItemElementEnabled = isEnabled; } bool menuItemElementEnabled() const { return m_isMenuItemElementEnabled; } void setDirectoryUploadEnabled(bool isEnabled) { m_isDirectoryUploadEnabled = isEnabled; } - bool directoryUploadEnabled() const { return m_isDirectoryUploadEnabled; } + bool directoryUploadEnabled() const { return false; } void setDataTransferItemsEnabled(bool areEnabled) { m_areDataTransferItemsEnabled = areEnabled; } bool dataTransferItemsEnabled() const { return m_areDataTransferItemsEnabled; } @@ -326,12 +326,12 @@ public: #if ENABLE(ENCRYPTED_MEDIA) void setEncryptedMediaAPIEnabled(bool isEnabled) { m_encryptedMediaAPIEnabled = isEnabled; } - bool encryptedMediaAPIEnabled() const { return m_encryptedMediaAPIEnabled; } + bool encryptedMediaAPIEnabled() const { return false; } #endif #if ENABLE(LEGACY_ENCRYPTED_MEDIA) void setLegacyEncryptedMediaAPIEnabled(bool isEnabled) { m_legacyEncryptedMediaAPIEnabled = isEnabled; } - bool legacyEncryptedMediaAPIEnabled() const { return m_legacyEncryptedMediaAPIEnabled; } + bool legacyEncryptedMediaAPIEnabled() const { return false; } #endif #if ENABLE(SERVICE_WORKER)