From 0744f889797aa5c59e605dcb63c7ca774ac6a8a4 Mon Sep 17 00:00:00 2001 From: Daniel Bernal Date: Wed, 9 Oct 2024 14:52:11 +0200 Subject: [PATCH] Add Comment --- DuckDuckGo/DuckPlayer/DuckPlayer.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DuckDuckGo/DuckPlayer/DuckPlayer.swift b/DuckDuckGo/DuckPlayer/DuckPlayer.swift index fd2277e216..cde2b9d08b 100644 --- a/DuckDuckGo/DuckPlayer/DuckPlayer.swift +++ b/DuckDuckGo/DuckPlayer/DuckPlayer.swift @@ -184,6 +184,9 @@ final class DuckPlayer: DuckPlayerProtocol { } public func getUserValues(params: Any, message: WKScriptMessage) -> Encodable? { + // If the user is in the 'control' group, sending 'nil' effectively disables + // Duckplayer in SERP, showing old overlays. + // Fixes: https://app.asana.com/0/1207252092703676/1208450923559111 let duckPlayerExperiment = DuckPlayerLaunchExperiment() if duckPlayerExperiment.isEnrolled && duckPlayerExperiment.isExperimentCohort { return encodeUserValues()