resourceloader: Proxy 'window.performance' to support Safari bug
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 15 Sep 2015 00:50:32 +0000 (01:50 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 15 Sep 2015 00:55:24 +0000 (01:55 +0100)
commit47dda77573f27d4126690dfc00df5c10224d1488
treea334c17f904c04cfe18d9b51006ae5d6d1ecc81f
parentdad14732abc77d9e04b6476d16b12e9e8d99ba02
resourceloader: Proxy 'window.performance' to support Safari bug

Follows-up 5b0749d, which first introduced a call to performance.mark
outside of startup.js – thus triggering this excotic bug in Safari.

In Safari the native thread MAY (emphasis on MAY) decide at any
point to recreate window.performance and blow away any previously
succesfully attached properties.

Bug: T112287
Change-Id: I653e580566da5335d34f1cf1ef52f51ceee2cf5a
.jshintrc
resources/src/mediawiki/mediawiki.js
resources/src/startup.js