Is there any way to get setPointerCapture to work with artificial pointer events?

I’m working on a browser extension that creates artificial pointer events and sends them into the page using dispatchEvent. I’d like them to work in as many of the same circumstances as regular pointer events from a mouse or touch-screen as possible, and currently I’m trying to get setPointerCapture to work.

Unfortunately, both Chrome and Firefox will report an error when it’s called with the ID from one of my extension’s pointer events: “No active pointer with the given id is found” / “Invalid pointer id”.

Other than something kind of extreme like having my extension monkey patch setPointerCapture / releasePointerCapture / hasPointerCapture to manually get them to work, is there any way to get Chrome or Firefox to recognize the ID of my extension’s pointer events in these functions?