Many uses of secure snippets failing on TBC beta
On the BC beta:
Lua Code:
local button = CreateFrame("Button", "SecureTest", UIParent, "SecureActionButtonTemplate") button:SetSize(36,36) button:SetPoint("CENTER") button:SetNormalTexture("Interface\\Icons\\INV_Misc_QuestionMark") button:SetAttribute("type","spell") button:SetAttribute("spell","Life Tap")
Functions as expected.
Once you start getting snippets involved, such as:
Lua Code:
local button = CreateFrame("Button", "SecureTest", UIParent, "SecureActionButtonTemplate") button:SetSize(36,36) button:SetPoint("CENTER") button:SetNormalTexture("Interface\\Icons\\INV_Misc_QuestionMark") button:SetAttribute("type","spell") button:SetAttribute("spell","Life Tap") SecureHandlerWrapScript(button, "OnClick", button, [[ print("click") ]])
It starts throwing errors like this:
Quote:
Message: Interface\FrameXML\RestrictedExecution.lua:473: Cannot call restricted closure from insecure code
Time: Sun Apr 4 16:24:56 2021
Count: 2
Stack: Interface\FrameXML\RestrictedExecution.lua:473: Cannot call restricted closure from insecure code
[string "=[C]"]: ?
[string "@Interface\FrameXML\RestrictedExecution.lua"]:473: in function <Interface\FrameXML\RestrictedExecution.lua:447>
[string "=(tail call)"]: ?
[string "@Interface\FrameXML\SecureHandlers.lua"]:285: in function <Interface\FrameXML\SecureHandlers.lua:279>
[string "=(tail call)"]: ?
Locals: (*temporary) = "Cannot call restricted closure from insecure code"
|
My state drivers are failing with a similar issue. It seems like this is may be due to taint with beta debug code.
|