From 7787a85d5c6f2f755e283b56f4851d8f3cea7547 Mon Sep 17 00:00:00 2001 From: Ori Livneh Date: Mon, 11 Jan 2016 12:52:32 -0800 Subject: [PATCH] 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 --- resources/src/mediawiki/mediawiki.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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. -- 2.20.1