summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/extra/ungoogled-chromium/disable-webgl-renderer-info.patch
blob: 2896a437699f30be3294dc58cfd5dc71eb86b5e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Return blank values for WebGLDebugRendererInfo to remove a potential data
# leak while preventing potential website breakage

--- third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc.orig
+++ third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
@@ -3595,8 +3595,7 @@ ScriptValue WebGLRenderingContextBase::g
               pname, IdentifiabilityBenignStringToken(
                          String(ContextGL()->GetString(GL_RENDERER))));
         }
-        return WebGLAny(script_state,
-                        String(ContextGL()->GetString(GL_RENDERER)));
+        return WebGLAny(script_state, String(""));
       }
       SynthesizeGLError(
           GL_INVALID_ENUM, "getParameter",
@@ -3610,8 +3609,7 @@ ScriptValue WebGLRenderingContextBase::g
               pname, IdentifiabilityBenignStringToken(
                          String(ContextGL()->GetString(GL_VENDOR))));
         }
-        return WebGLAny(script_state,
-                        String(ContextGL()->GetString(GL_VENDOR)));
+        return WebGLAny(script_state, String(""));
       }
       SynthesizeGLError(
           GL_INVALID_ENUM, "getParameter",