Issue #2790 - Part 2: Address BZ bugs: 1355438 and 1341230

This commit is contained in:
MeladJM 2025-07-22 03:21:45 +08:00 committed by roytam1
commit d99eab0d9d
8 changed files with 85 additions and 0 deletions

View file

@ -1944,6 +1944,20 @@ interface nsIDOMWindowUtils : nsISupports {
const long MOUSE_BUTTONS_5TH_BUTTON = 0x10;
// Buttons are not specified, will be calculated from |aButton|.
const long MOUSE_BUTTONS_NOT_SPECIFIED = -1;
/**
* Add an EventState bit to an element (privileged only).
* @param element The element to modify.
* @param state The EventState bit (see EventStates.h, e.g. NS_EVENT_STATE_AUTOFILL).
*/
void addElementEventState(in nsIDOMElement element, in unsigned long long state);
/**
* Remove an EventState bit from an element (privileged only).
* @param element The element to modify.
* @param state The EventState bit.
*/
void removeElementEventState(in nsIDOMElement element, in unsigned long long state);
};
[scriptable, uuid(c694e359-7227-4392-a138-33c0cc1f15a6)]