|
1 |
| -# Return blank values for WebGLDebugRendererInfo to remove a potential data |
| 1 | +# Return generic values for WebGLDebugRendererInfo to remove a potential data |
2 | 2 | # leak while preventing potential website breakage
|
3 | 3 |
|
4 | 4 | --- a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
|
5 | 5 | +++ b/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
|
6 |
| -@@ -3833,8 +3833,7 @@ ScriptValue WebGLRenderingContextBase::g |
7 |
| - pname, IdentifiabilityBenignStringToken( |
| 6 | +@@ -3834,7 +3834,7 @@ ScriptValue WebGLRenderingContextBase::g |
8 | 7 | String(ContextGL()->GetString(GL_RENDERER))));
|
9 | 8 | }
|
10 |
| -- return WebGLAny(script_state, |
| 9 | + return WebGLAny(script_state, |
11 | 10 | - String(ContextGL()->GetString(GL_RENDERER)));
|
12 |
| -+ return WebGLAny(script_state, String("")); |
| 11 | ++ String("ANGLE (Google, Vulkan 1.3.0 (SwiftShader Device (Subzero) (0x0000C0DE)), SwiftShader driver-5.0.0)")); |
13 | 12 | }
|
14 | 13 | SynthesizeGLError(
|
15 | 14 | GL_INVALID_ENUM, "getParameter",
|
16 |
| -@@ -3848,8 +3847,7 @@ ScriptValue WebGLRenderingContextBase::g |
| 15 | +@@ -3848,8 +3848,7 @@ ScriptValue WebGLRenderingContextBase::g |
17 | 16 | pname, IdentifiabilityBenignStringToken(
|
18 | 17 | String(ContextGL()->GetString(GL_VENDOR))));
|
19 | 18 | }
|
20 | 19 | - return WebGLAny(script_state,
|
21 | 20 | - String(ContextGL()->GetString(GL_VENDOR)));
|
22 |
| -+ return WebGLAny(script_state, String("")); |
| 21 | ++ return WebGLAny(script_state, String("Google Inc. (Google)")); |
23 | 22 | }
|
24 | 23 | SynthesizeGLError(
|
25 | 24 | GL_INVALID_ENUM, "getParameter",
|
0 commit comments