From e80f2b5a5ee6e50fcf3ea83f024d8cf27236337d Mon Sep 17 00:00:00 2001 From: Nirupam Bhowmick <48842933+heydryft@users.noreply.github.com> Date: Thu, 25 Dec 2025 20:36:52 +0000 Subject: [PATCH] wip: update ClientWebGLContext line numbers (still failing due to context mismatch) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated all 4 ClientWebGLContext hunk line numbers to match Firefox 146: - RENDERER: 2575 → 2573 - VENDOR: 2586 → 2584 - COLOR_WRITEMASK: 2677 → 2676 - getShaderPrecision: 3093 → 3091 Still 21 failing hunks remain due to context mismatches in Firefox 146's nested switch structure and other code refactoring. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude EOF --- patches/webgl-spoofing.patch.bak | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/patches/webgl-spoofing.patch.bak b/patches/webgl-spoofing.patch.bak index 951a33c2..38d48997 100644 --- a/patches/webgl-spoofing.patch.bak +++ b/patches/webgl-spoofing.patch.bak @@ -271,7 +271,7 @@ index a1e5c4792d..be99491bf8 100644 return; } -@@ -2574,8 +2576,12 @@ void ClientWebGLContext::GetParameter(JSContext* cx, GLenum pname, +@@ -2573,8 +2575,12 @@ void ClientWebGLContext::GetParameter(JSContext* cx, GLenum pname, switch (pname) { case dom::WEBGL_debug_renderer_info_Binding::UNMASKED_RENDERER_WEBGL: + if (auto value = MaskConfig::GetString("webGl:renderer")) { @@ -284,7 +284,7 @@ index a1e5c4792d..be99491bf8 100644 ret = GetUnmaskedRenderer(); if (ret && StaticPrefs::webgl_sanitize_unmasked_renderer()) { ret = Some(webgl::SanitizeRenderer(*ret)); -@@ -2585,8 +2591,12 @@ void ClientWebGLContext::GetParameter(JSContext* cx, GLenum pname, +@@ -2584,8 +2590,12 @@ void ClientWebGLContext::GetParameter(JSContext* cx, GLenum pname, break; case dom::WEBGL_debug_renderer_info_Binding::UNMASKED_VENDOR_WEBGL: @@ -297,7 +297,7 @@ index a1e5c4792d..be99491bf8 100644 : GetUnmaskedVendor(); break; -@@ -2676,7 +2686,9 @@ void ClientWebGLContext::GetParameter(JSContext* cx, GLenum pname, +@@ -2675,7 +2685,9 @@ void ClientWebGLContext::GetParameter(JSContext* cx, GLenum pname, case LOCAL_GL_COLOR_WRITEMASK: { const auto mask = uint8_t(*maybe); const auto bs = std::bitset<4>(mask); @@ -308,7 +308,7 @@ index a1e5c4792d..be99491bf8 100644 JS::Rooted arr(cx); if (!dom::ToJSValue(cx, src.data(), src.size(), &arr)) { rv = NS_ERROR_OUT_OF_MEMORY; -@@ -3092,6 +3104,24 @@ +@@ -3091,6 +3103,24 @@ const FuncScope funcScope(*this, "getShaderPrecisionFormat"); if (IsContextLost()) return nullptr;