Note that while the code was written in 2014 (well after the iphone was released), someone tried to remove the code this year[1], and gave up because some sites now rely on this hack.
[1]: https://github.com/WebKit/WebKit/commit/049188a35af6c67fa30c...