Merge "Fall back to autoincrement when page cannot be recreated with old ID"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 12 Jan 2016 04:42:00 +0000 (04:42 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 12 Jan 2016 04:42:00 +0000 (04:42 +0000)
resources/src/mediawiki/mediawiki.js

index c25e327..82b4588 100644 (file)
                                        // 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 <https://bugzilla.mozilla.org/show_bug.cgi?id=1064466>.
+                                       MODULE_SIZE_MAX: ( /Firefox/.test( navigator.userAgent ) ? 30 : 100 ) * 1000,
 
                                        // The contents of the store, mapping '[module name]@[version]' keys
                                        // to module implementations.