WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   PTR UI Bugs (https://www.wowinterface.com/forums/forumdisplay.php?f=176)
-   -   Many uses of secure snippets failing on TBC beta (https://www.wowinterface.com/forums/showthread.php?t=58675)

Gello 04-04-21 02:30 PM

Many uses of secure snippets failing on TBC beta
 
On the BC beta:
Lua Code:
  1. local button = CreateFrame("Button", "SecureTest", UIParent, "SecureActionButtonTemplate")
  2. button:SetSize(36,36)
  3. button:SetPoint("CENTER")
  4. button:SetNormalTexture("Interface\\Icons\\INV_Misc_QuestionMark")
  5.  
  6. button:SetAttribute("type","spell")
  7. button:SetAttribute("spell","Life Tap")
Functions as expected.

Once you start getting snippets involved, such as:
Lua Code:
  1. local button = CreateFrame("Button", "SecureTest", UIParent, "SecureActionButtonTemplate")
  2. button:SetSize(36,36)
  3. button:SetPoint("CENTER")
  4. button:SetNormalTexture("Interface\\Icons\\INV_Misc_QuestionMark")
  5.  
  6. button:SetAttribute("type","spell")
  7. button:SetAttribute("spell","Life Tap")
  8.  
  9. SecureHandlerWrapScript(button, "OnClick", button, [[
  10.   print("click")
  11. ]])
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.

Dridzt 04-04-21 03:01 PM

Related to this?

https://github.com/Stanzilla/WoWUIBugs/issues/66

Gello 04-12-21 06:48 PM

Today's patch seems to have fixed my issues with the secure environment.


All times are GMT -6. The time now is 09:41 PM.

vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI