UIObject:IsForbidden()

From Wowpedia
Jump to: navigation, search

Returns whether insecure interaction with a widget is forbidden.

isForbidden = UIObject:IsForbidden()

Returns

isForbidden 
boolean - Returns true if this widget object's methods may only be called from secure execution paths, false otherwise.

Details

  • Calling any method except UIObject:IsForbidden(), Frame:GetAttribute(), and Frame:SetAttribute() on a forbidden widget from a tainted execution path will result in an error.
  • SecureActionButtonTemplate's click action, as well as the /click slash command cannot be used to click forbidden buttons.
  • Forbidden widgets are created by nesting their declaration inside a <ScopedModifier forbidden="true"> XML tag.

Patch changes

External links