Open Bug 1832202 Opened 1 year ago Updated 8 months ago

`EventDispatcher::Dispatch` should stop creating `kungFuDeathGrip` for `nsPresContext` param

Categories

(Core :: DOM: Events, defect)

defect

Tracking

()

People

(Reporter: masayuki, Unassigned)

References

Details

It's already been marked as MOZ_CAN_RUN_SCRIPT (bug 1539884). Therefore, all params' lifetime should be guaranteed by the callers. It should stop creating kungFuDeathGrip with checking whether all callers are now safe.

And I wonder, why it takes aTarget as nsISupports* instead of dom::EventTarget*? If it can be changed, we can save the QI cost and extra add/release refcount.

(In reply to Masayuki Nakano [:masayuki] (he/him)(JST, +0900) from comment #1)

And I wonder, why it takes aTarget as nsISupports* instead of dom::EventTarget*? If it can be changed, we can save the QI cost and extra add/release refcount.

I'm fixing this in bug 1843484.

(In reply to Markus Stange [:mstange] from comment #2)

(In reply to Masayuki Nakano [:masayuki] (he/him)(JST, +0900) from comment #1)

And I wonder, why it takes aTarget as nsISupports* instead of dom::EventTarget*? If it can be changed, we can save the QI cost and extra add/release refcount.

I'm fixing this in bug 1843484.

Thank you very much!

You need to log in before you can comment on or make changes to this bug.