Skip to content

Retail 12.0.5: OverrideActionBarButton1-6 still update after ConsolePort_Bar hides OverrideActionBar #182

Description

@jcll

I'm seeing taint/error spam on Retail 12.0.5 with ConsolePort_Bar enabled.

ConsolePort_Bar hides OverrideActionBar in ConsolePort_Bar/Controller/Blizzard/Retail.lua, but the child buttons OverrideActionBarButton1 through OverrideActionBarButton6 still seem to remain registered and receive Blizzard action button updates. In my case, this was repeatedly hitting OverrideActionBarButton2Cooldown.

Example error:

...Blizzard_ActionBar/Shared/ActionButton.lua:847: bad argument #1 to 'SetCooldown'
(Usage: self:SetCooldown(start, duration [, modRate]).
Secret values are only allowed during untainted execution for this argument.)

[Blizzard_ActionBar/Shared/ActionButton.lua]:866: in function 'ActionButton_ApplyCooldown'
[Blizzard_ActionBar/Shared/ActionButton.lua]:842: in function 'ActionButton_UpdateCooldown'
[Blizzard_ActionBar/Shared/ActionButton.lua]:571: in function 'Update'
[Blizzard_ActionBar/Shared/ActionButton.lua]:544: in function 'UpdateAction'
[Blizzard_ActionBar/Shared/ActionButton.lua]:975: in function 'OnEvent'

Locals:
cooldown=OverrideActionBarButton2Cooldown
start=<no value>
duration=<no value>
enable=true
modRate=<no value>

I also saw this earlier in the same session:

[ADDON_ACTION_BLOCKED] AddOn 'ConsolePort_Bar' tried to call the protected function 'OverrideActionBarButton2:SetAttribute()'.

This looks separate from #179. That issue had the same SetCooldown cascade, but from MICRO_BUTTONS causing toolbar initialization to abort. This one still happens after that path is no longer the problem, and the affected cooldown frame is specifically OverrideActionBarButton2Cooldown.

The relevant bit in Retail.lua currently hides the override bar frame:

OverrideActionBar = true;

but unlike the main bar and multibars, it does not also call hideActionButton() on the actual override buttons.

This local patch stopped the errors for me after reload:

for i = 1, 6 do
    hideActionButton(_G['OverrideActionBarButton' .. i])
end

I added it right after the HUD frame hiding loop in env.UIHandler:HideBlizzard().

Environment:

  • WoW Retail 12.0.5.67314
  • ConsolePort 3.1.38
  • ConsolePort_Bar enabled

I don't know if there are other side effects to hiding those buttons this way, but it matches how the file already handles ActionButton1..12 and the multibar buttons.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions