From: Ori Livneh Date: Mon, 11 Jan 2016 20:52:32 +0000 (-0800) Subject: Module storage: set stricter storage quotas on Firefox X-Git-Tag: 1.31.0-rc.0~8372^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=7787a85d5c6f2f755e283b56f4851d8f3cea7547;p=lhc%2Fweb%2Fwiklou.git Module storage: set stricter storage quotas on Firefox The 100 kB limit is being effectively circumvented by the fact that heavy-hitters like VisualEditor are now split up into a greater number of smaller modules. We can improve matters further by making the per-module size limit smaller on Firefox, where the quota is especially tight due to . Bug: T66721 Change-Id: Ia1bb1e0b834af4280989cec5ba382ff2b3c50237 --- diff --git a/resources/src/mediawiki/mediawiki.js b/resources/src/mediawiki/mediawiki.js index c25e32767e..82b45881fe 100644 --- a/resources/src/mediawiki/mediawiki.js +++ b/resources/src/mediawiki/mediawiki.js @@ -2042,9 +2042,10 @@ // Whether the store is in use on this page. enabled: null, - // Modules whose string representation exceeds 100 kB are ineligible - // for storage due to bug T66721. - MODULE_SIZE_MAX: 100000, + // Modules whose string representation exceeds 100 kB (30 kB on FF) are + // ineligible for storage due to bug T66721. The quota is stricter on + // Firefox due to . + MODULE_SIZE_MAX: ( /Firefox/.test( navigator.userAgent ) ? 30 : 100 ) * 1000, // The contents of the store, mapping '[module name]@[version]' keys // to module implementations.