Quantcast WoWInterface - View Single Post - FocusUnit() error
View Single Post
05-22-11, 01:48 PM   #3
A Pyroguard Emberseer
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,183
This is a problem with DropDownMenus and any UnitFrame AddOn (even Blizzard's own UnitFrames).

Since so many AddOns use DropDownMenus, and the buttons for the menus are recycled between uses, the DropDownMenus become tainted - and since the (non-secure) focus button calls FocusUnit(), which is a protection function, the tainted execution path produces the error.

There is no fix for this - Blizzard needs to overhaul either the DropDownMenus to prevent the taint or make the FocusUnit() function non-protected (which isn't going to happen). The only alternative is to target something and type "/focus"
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of Revelation, Spamalyzer, TravelAgent, Volumizer, and many other AddOns.