Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
1 // Regression test for bug 336691 - nsZipArchive::Test shouldn't try to ExtractFile on directories.
2 const Cc = Components.classes;
3 const Ci = Components.interfaces;
5 function run_test() {
6 var file = do_get_file("data/test_bug336691.zip");
7 var zipReader = Cc["@mozilla.org/libjar/zip-reader;1"].
8 createInstance(Ci.nsIZipReader);
9 zipReader.open(file);
10 zipReader.test(null); // We shouldn't crash here.
11 zipReader.close();
12 }