Closed Bug 967862 Opened 9 years ago Closed 9 years ago

HTTP cache v2: fix xpcshell tests to be independent on difference between use-new-cache in CacheObserver and in preferences

Categories

(Core :: Networking: Cache, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla30

People

(Reporter: mayhemer, Assigned: mayhemer)

References

Details

Attachments

(1 file)

When kDefaultUseNewCache in CacheObserver has value different from what is set in prefs.js, head_cache2.js!newCacheBackEndUsed() returns different value before and after do_get_profile() call.

Tests first must do_get_profile() (if needed) before checking which cache version is used.
Attachment #8370358 - Flags: review?(michal.novotny)
Attachment #8370358 - Flags: review?(michal.novotny) → review+
https://hg.mozilla.org/mozilla-central/rev/4706d1967ebc
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in before you can comment on or make changes to this bug.