From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- modules/libjar/test/unit/test_bug336691.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 modules/libjar/test/unit/test_bug336691.js (limited to 'modules/libjar/test/unit/test_bug336691.js') diff --git a/modules/libjar/test/unit/test_bug336691.js b/modules/libjar/test/unit/test_bug336691.js new file mode 100644 index 000000000..e10dd3c9c --- /dev/null +++ b/modules/libjar/test/unit/test_bug336691.js @@ -0,0 +1,12 @@ +// Regression test for bug 336691 - nsZipArchive::Test shouldn't try to ExtractFile on directories. +var Cc = Components.classes; +var Ci = Components.interfaces; + +function run_test() { + var file = do_get_file("data/test_bug336691.zip"); + var zipReader = Cc["@mozilla.org/libjar/zip-reader;1"]. + createInstance(Ci.nsIZipReader); + zipReader.open(file); + zipReader.test(null); // We shouldn't crash here. + zipReader.close(); +} -- cgit v1.2.3