On Tue Feb 27 17:51:31 2024 +0000, Jacek Caban wrote:
This event may be fired by a script, so we should probably check if it's the real event here. This could be done using nsIDOMEvent::GetIsTrusted or, perhaps better, pass event as DOMEvent (instead of nsIDOMEvent) and just check event->trusted.
I just tried making this change, but it seems to be a breaking change. The test at line 88 in `documentmode.js` started failing: ```js ok(performance.timing.domContentLoadedEventStart >= performance.timing.domInteractive, "domContentLoadedEventStart < domInteractive"); ```
I confirmed the old code was doing this when trusted was false, and given the tests pass on Windows, I'm guessing Windows does too.