Fix IE11 sniffing. Fixes #17311.
(cherry picked from commit f58c0e19ce509398985908688a768c8fb41191b8)
(cherry picked from commit 28e1f7c31de5a407a0c095038bf851518085bffc)

Conflicts:
	sniff.js
	window.js