mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 18:07:31 +09:00
Issue #595 - Implement window.event
This MSIE extension is still technically part of the standard*, although its use is discouraged. This API will also likely never go away based on some comments at this issue on MDN content**. Note that this uses a different approach for getting the inner window. * https://dom.spec.whatwg.org/#interface-window-extensions ** https://github.com/mdn/content/issues/21848 Spec PR: https://github.com/whatwg/dom/pull/407 Spec discussion: https://github.com/whatwg/dom/issues/334 Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=218415
This commit is contained in:
parent
8e6d730463
commit
31283d993b
10 changed files with 110 additions and 6 deletions
|
|
@ -125,6 +125,7 @@ public:
|
|||
, mMayHaveListenerManager(true)
|
||||
, mWantsPreHandleEvent(false)
|
||||
, mRootOfClosedTree(false)
|
||||
, mItemInShadowTree(false)
|
||||
, mParentIsSlotInClosedTree(false)
|
||||
, mParentIsChromeHandler(false)
|
||||
, mRelatedTargetRetargetedInCurrentScope(false)
|
||||
|
|
@ -147,6 +148,7 @@ public:
|
|||
mMayHaveListenerManager = true;
|
||||
mWantsPreHandleEvent = false;
|
||||
mRootOfClosedTree = false;
|
||||
mItemInShadowTree = false;
|
||||
mParentIsSlotInClosedTree = false;
|
||||
mParentIsChromeHandler = false;
|
||||
// Note, we don't clear mRelatedTargetRetargetedInCurrentScope explicitly,
|
||||
|
|
@ -236,6 +238,12 @@ public:
|
|||
*/
|
||||
bool mRootOfClosedTree;
|
||||
|
||||
/**
|
||||
* If target is node and its root is a shadow root.
|
||||
* https://dom.spec.whatwg.org/#event-path-item-in-shadow-tree
|
||||
*/
|
||||
bool mItemInShadowTree;
|
||||
|
||||
/**
|
||||
* True if mParentTarget is HTMLSlotElement in a closed shadow tree and the
|
||||
* current target is assigned to that slot.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue