Tooltip taint trapping#142
Conversation
Updated and trapped out (via early exit) tooltip taint on Forces % against secret values.
|
Thanks for the PR! Sorry for the delayed response ... Do you have context for this change, e.g. stacktrace or error from the taint? |
|
My apologies. I should have included that here. Luckily I still have it in my notes, so I've put it below. It should help clear up why I used GetUnit() and UnitGUID() checks instead of canAccessValue(). That was my first approach, but I couldn't get it to reliably work. It would work in some cases, but in others I'd still get errors. Likely because canAccessValue() expects data.guid to have a value in the callback, which it won't if the cursor isn't over a player. I could have trapped it out there using much the same method as I have here, by checking GetUnit() and UnitGUID(), but then, why not just trap it out that way first? Checking for GetUnit() and UnitGUID() and exiting early was the cleanest fix I could find.
|
|
Updated my comment to use a quote block instead of a code block for the sake of formatting and readability |
Updated and trapped out (via early exit) tooltip taint on Forces % against secret values.