mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
42f4510bf1
Bug 1382444 added this line to testing/profiles/prefs_general.js: > user_pref("places.database.lastMaintenance", 7258114800); (7258114800 seconds after 1970 is the start of the year 2200.) libpref stores integers prefs as int32_t and the current parser doesn't detect overflow. So this overflows to -1331819792. (I detected this with the new prefs parser from bug 1423840, which does detect integer overflow.) As a result the condition testing this pref in toolkit/components/places/PlacesCategoriesStarter.js ends up always succeeding in tests, which is the exact opposite of what was intended. This patch changes it to 2147483647 (the year 2038), the maximum int32_t value. MozReview-Commit-ID: LJQmMqQ9hFL --HG-- extra : rebase_source : 84339c8e721abd47cb3cc85c3923a04417b1bbee |
||
---|---|---|
.. | ||
moz.build | ||
prefs_general.js |