So this one is weird, but it seems to be a bug with the ZO_Dialogs_ShowDialog method. It seems like this should be callable from custom Add-On code without causing issues in the UI but it seems to break other functionality which is... odd.
Steps to reproduce:
1. Have UI in Gamepad mode
2. Show a dialog from custom API code, this can be replicated by typing the below into chat (dismiss the dialog afterward by pressing A). Note the last parameter "true" tells it to open in Gamepad mode. If that is "false" it will show a non-gamepad dialog, and not reproduce the exception. The dialog used doesn't matter, and even creating a custom dialog and calling it will cause this to happen.
/script ZO_Dialogs_ShowDialog("TOO_FREQUENT_BUG_SCREENSHOT", nil, nil, true)
3. Open inventory
4. Attempt to delete an item
5. When you attempt to confirm the deletion on the Delete Item dialog, "insecure code" exception:
EsoUI/Ingame/Inventory/Gamepad/GamepadInventory.lua:308: Attempt to access a private function 'RespondToDestroyRequest' from insecure code. The callstack became untrusted 2 stack frame(s) from the top.
stack traceback:
EsoUI/Ingame/Inventory/Gamepad/GamepadInventory.lua:308: in function 'ReleaseDialog'
EsoUI/Ingame/Inventory/Gamepad/GamepadInventory.lua:349: in function 'buttonCallback'
EsoUI/Libraries/ZO_Dialog/Gamepad/ZO_GenericDialog_Gamepad.lua:31: in function 'callback'
EsoUI/Libraries/ZO_KeybindStrip/ZO_KeybindStrip.lua:645: in function 'ZO_KeybindStrip:TryHandlingKeybindDown'
(tail call): ?
EsoUI/Libraries/ZO_Dialog/ZO_Dialog.lua:1258: in function 'ZO_Dialogs_ButtonKeybindPressed'
:1: in function '(main chunk)'
Edited by xeiocub18_ESO on December 12, 2019 5:04AM