View Single Post
04/18/15, 04:46 PM   #8
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
How to cause the error

Do in chat window:
1. /reloadui
2. /script ClearMenu() AddMenuItem("") ShowMenu() ClearMenu()
3. Go and use an item of your inventory using context-menu

unsecure code?!?

Try this:
1. /reloadui
2. go and open journal and right-click a quest to open a context-menu. In fact any build-in context-menu would be ok. You could also open the context-menu of the inventory.
3. /script ClearMenu() AddMenuItem("") ShowMenu() ClearMenu()
4. Go and use an item of your inventory using context-menu

now the same code is secure

Any addon opening a context-menu before build-in code does it is unsecure.

If you add the code from above to startup code of an addon, you can not use/pickup/destory any item with context-menu anymore. But key-bind (E) would work.

ups!
  Reply With Quote