Commit afaad42
mergetest
Fix secret-value taint spam in SafeSetFont + click-cast takeover of non-unit buttons
SafeSetFont's font-family re-render read GetText() and compared it with
~= "" — a value comparison on what is a SECRET string for native cooldown
countdown text (and health text) in instanced PvP. The pcall hid the error
but every blocked compare logged a taint incident, hundreds per minute
(bugs #987/#988). Truthiness is the sanctioned test and GetText() returns
nil for empty text, so the comparison was redundant.
ClickCastFrames handling gets an eligibility gate: only Button/Frame
entries carrying a unit attribute are registered, so non-unit secure
buttons (ToyPicker's toy button) no longer have their click attributes
rewritten. Also fixes the RegisterAllFrames sweep precedence bug
(enabled and A or B) that re-registered explicitly disabled entries.1 parent 1775945 commit afaad42
3 files changed
Lines changed: 37 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
735 | 754 | | |
736 | 755 | | |
737 | 756 | | |
| |||
765 | 784 | | |
766 | 785 | | |
767 | 786 | | |
768 | | - | |
| 787 | + | |
769 | 788 | | |
770 | 789 | | |
771 | 790 | | |
| |||
853 | 872 | | |
854 | 873 | | |
855 | 874 | | |
856 | | - | |
| 875 | + | |
857 | 876 | | |
858 | 877 | | |
859 | 878 | | |
| |||
2059 | 2078 | | |
2060 | 2079 | | |
2061 | 2080 | | |
2062 | | - | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
2063 | 2086 | | |
2064 | 2087 | | |
2065 | | - | |
| 2088 | + | |
2066 | 2089 | | |
2067 | 2090 | | |
2068 | 2091 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
769 | | - | |
770 | | - | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
771 | 776 | | |
772 | 777 | | |
773 | | - | |
| 778 | + | |
774 | 779 | | |
775 | 780 | | |
776 | 781 | | |
| |||
0 commit comments