diff options
Diffstat (limited to 'www/chromium-uc/patches/extra/ungoogled-chromium/disable-webgl-renderer-info.patch')
| -rw-r--r-- | www/chromium-uc/patches/extra/ungoogled-chromium/disable-webgl-renderer-info.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/disable-webgl-renderer-info.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/disable-webgl-renderer-info.patch new file mode 100644 index 0000000..2896a43 --- /dev/null +++ b/www/chromium-uc/patches/extra/ungoogled-chromium/disable-webgl-renderer-info.patch | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | # Return blank values for WebGLDebugRendererInfo to remove a potential data | ||
| 2 | # leak while preventing potential website breakage | ||
| 3 | |||
| 4 | --- third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc.orig | ||
| 5 | +++ third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc | ||
| 6 | @@ -3595,8 +3595,7 @@ ScriptValue WebGLRenderingContextBase::g | ||
| 7 | pname, IdentifiabilityBenignStringToken( | ||
| 8 | String(ContextGL()->GetString(GL_RENDERER)))); | ||
| 9 | } | ||
| 10 | - return WebGLAny(script_state, | ||
| 11 | - String(ContextGL()->GetString(GL_RENDERER))); | ||
| 12 | + return WebGLAny(script_state, String("")); | ||
| 13 | } | ||
| 14 | SynthesizeGLError( | ||
| 15 | GL_INVALID_ENUM, "getParameter", | ||
| 16 | @@ -3610,8 +3609,7 @@ ScriptValue WebGLRenderingContextBase::g | ||
| 17 | pname, IdentifiabilityBenignStringToken( | ||
| 18 | String(ContextGL()->GetString(GL_VENDOR)))); | ||
| 19 | } | ||
| 20 | - return WebGLAny(script_state, | ||
| 21 | - String(ContextGL()->GetString(GL_VENDOR))); | ||
| 22 | + return WebGLAny(script_state, String("")); | ||
| 23 | } | ||
| 24 | SynthesizeGLError( | ||
| 25 | GL_INVALID_ENUM, "getParameter", | ||
