27 Feb
2024
27 Feb
'24
7:57 p.m.
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:
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. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5156#note_62848