Skip to content

Commit fbbe5e5

Browse files
committed
fix: more taint fixes for tooltips
1 parent ba41afc commit fbbe5e5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Skin/Interface/AddOns/Blizzard_SharedXML/SharedTooltipTemplates.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,18 @@ local Hook, Skin = Aurora.Hook, Aurora.Skin
1010
local Color, Util = Aurora.Color, Aurora.Util
1111

1212
do --[[ FrameXML\SharedTooltipTemplates.lua ]]
13+
-- Tooltips skinned via the taint-safe path (NineSlice border pieces
14+
-- hidden with SetAlpha(0), no _auroraNineSlice flag) must not have
15+
-- their NineSlice touched from addon context during display, or the
16+
-- "secret number" taint propagates to child widgets.
17+
local taintSafeTooltips = {}
18+
function Hook.SetTaintSafe(tooltip)
19+
taintSafeTooltips[tooltip] = true
20+
end
21+
1322
function Hook.SharedTooltip_SetBackdropStyle(self, style, embedded)
1423
if self:IsForbidden() then return end
24+
if taintSafeTooltips[self] then return end
1525
if not (embedded or self.IsEmbedded) then
1626
local r, g, b = Color.frame:GetRGB()
1727
local a = Util.GetFrameAlpha()

0 commit comments

Comments
 (0)