smaug----
smaug----
this is for https://github.com/whatwg/dom/issues/659, right?
I can commit on updating tests. Would the change require tiny tweak to elements created by the parser?
Internally in Gecko Event objects do have a flag whether they are being handled by a passive listener. We could expose that to JS. It would be a rather ugly...
IIRC this was discussed around the time when MutationObserver was designed and the idea was that since one can add childList observer to the document and then just check document.contains(node),...
Wouldn't a childList observer in document take care of those use cases, at least in common cases?
That example doesn't use MutationObserver at all. onconnected sounds like a Mutation Event.
I wonder if converting Firefox UI code from XBL to more web component-y has brought up any ideas related to this issue. @bgrins
The initial reason in Gecko was https://bugzilla.mozilla.org/show_bug.cgi?id=403168 but the setup we have for wrappers and such is quite different these days. However, what should happen to the network connection if...
Firefox has checks in the webidl callbacks layer to prevent calling listener in the globals which are "gone".
In Gecko if the global of the WebIDL callback itself isn't the current one anymore, the bindings layer prevents the call. Certain EventTarget objects do indeed disconnect themselves too when...