Skip to content

Commit 3c764bf

Browse files
committed
patches/webgl: return generic info instead of empty strings
1 parent 00d801f commit 3c764bf

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
1-
# Return blank values for WebGLDebugRendererInfo to remove a potential data
1+
# Return generic values for WebGLDebugRendererInfo to remove a potential data
22
# leak while preventing potential website breakage
33

44
--- a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
55
+++ 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
87
String(ContextGL()->GetString(GL_RENDERER))));
98
}
10-
- return WebGLAny(script_state,
9+
return WebGLAny(script_state,
1110
- 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)"));
1312
}
1413
SynthesizeGLError(
1514
GL_INVALID_ENUM, "getParameter",
16-
@@ -3848,8 +3847,7 @@ ScriptValue WebGLRenderingContextBase::g
15+
@@ -3848,8 +3848,7 @@ ScriptValue WebGLRenderingContextBase::g
1716
pname, IdentifiabilityBenignStringToken(
1817
String(ContextGL()->GetString(GL_VENDOR))));
1918
}
2019
- return WebGLAny(script_state,
2120
- String(ContextGL()->GetString(GL_VENDOR)));
22-
+ return WebGLAny(script_state, String(""));
21+
+ return WebGLAny(script_state, String("Google Inc. (Google)"));
2322
}
2423
SynthesizeGLError(
2524
GL_INVALID_ENUM, "getParameter",

patches/series

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ extra/ungoogled-chromium/add-flag-to-configure-extension-downloading.patch
6464
extra/ungoogled-chromium/add-flag-for-search-engine-collection.patch
6565
extra/ungoogled-chromium/add-flag-to-disable-beforeunload.patch
6666
extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch
67-
extra/ungoogled-chromium/disable-webgl-renderer-info.patch
67+
extra/ungoogled-chromium/spoof-webgl-renderer-info.patch
6868
extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch
6969
extra/ungoogled-chromium/add-suggestions-url-field.patch
7070
extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch

0 commit comments

Comments
 (0)