#6170 changes the behaviour of jQuery.trigger() such that the following text is invalid:
Note: For both plain objects and DOM objects, if a triggered event name matches the name of a property on the object, jQuery will attempt to invoke the property as a method if no event handler calls event.preventDefault(). If this behaviour is not desired, use .triggerHandler() instead.
This note should state that this behavior does not work on the window object and reference #6170. (https://developer.mozilla.org/en-US/docs/Web/API/Window declares that window is a DOM object by referring to it as “the DOM window object”).
Note that $(window).trigger() is special, close gh-298.