From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- image/test/crashtests/1205923-1.html | 36 ++ image/test/crashtests/1210745-1.gif | Bin 0 -> 23 bytes image/test/crashtests/1212954-1.svg | 16 + image/test/crashtests/1235605.gif | Bin 0 -> 2360 bytes image/test/crashtests/1241728-1.html | 17 + image/test/crashtests/1241729-1.bmp | Bin 0 -> 548 bytes image/test/crashtests/1241729-1.html | 5 + image/test/crashtests/1242093-1.html | 22 + image/test/crashtests/1242778-1.png | Bin 0 -> 15929 bytes image/test/crashtests/1249576-1.png | Bin 0 -> 1169 bytes image/test/crashtests/1251091-1.html | 51 +++ image/test/crashtests/1251091-1.png | Bin 0 -> 95370 bytes image/test/crashtests/1253362-1.html | 11 + image/test/crashtests/1262549-1.gif | Bin 0 -> 428 bytes image/test/crashtests/1277397-1.jpg | Bin 0 -> 266 bytes image/test/crashtests/1277397-2.jpg | Bin 0 -> 1407 bytes image/test/crashtests/1355898-1.html | 45 ++ image/test/crashtests/1375842-1.html | 16 + image/test/crashtests/1413762-1.gif | Bin 0 -> 7866 bytes image/test/crashtests/1443232-1.gif | Bin 0 -> 42434 bytes image/test/crashtests/1443232-1.html | 30 ++ image/test/crashtests/1509998.gif | Bin 0 -> 92 bytes image/test/crashtests/1526717-1.html | 1 + image/test/crashtests/1526717-1.png | Bin 0 -> 318 bytes image/test/crashtests/1629490-1-iframe.html | 1 + image/test/crashtests/1629490-1.html | 49 ++ image/test/crashtests/1634839-1-iframe.html | 1 + image/test/crashtests/1634839-1.html | 51 +++ image/test/crashtests/1634839-2-iframe.html | 1 + image/test/crashtests/1634839-2.html | 51 +++ image/test/crashtests/1676172-1-iframe.html | 13 + image/test/crashtests/1676172-1.gif | Bin 0 -> 2439 bytes image/test/crashtests/1676172-1.html | 57 +++ image/test/crashtests/1763581-1-iframe.html | 15 + image/test/crashtests/1763581-1.gif | Bin 0 -> 70793 bytes image/test/crashtests/1763581-1.html | 28 ++ image/test/crashtests/1763581-1.sjs | 71 +++ image/test/crashtests/1765871-1.jpg | Bin 0 -> 6872 bytes image/test/crashtests/1814553.avif | Bin 0 -> 803330 bytes image/test/crashtests/1814561.avif | Bin 0 -> 2104 bytes image/test/crashtests/1814677.avif | Bin 0 -> 1607 bytes image/test/crashtests/1814708.avif | Bin 0 -> 1607 bytes image/test/crashtests/1814741.avif | Bin 0 -> 1607 bytes image/test/crashtests/1814774.avif | Bin 0 -> 2104 bytes image/test/crashtests/1817108.avif | Bin 0 -> 2105 bytes image/test/crashtests/1848717-1.avif | Bin 0 -> 301 bytes image/test/crashtests/1852649.webp | Bin 0 -> 1072 bytes image/test/crashtests/1862059-1.html | 15 + image/test/crashtests/1862059-1.svg | 43 ++ image/test/crashtests/1862059-1.svg^headers^ | 3 + image/test/crashtests/256-height.ico | Bin 0 -> 154 bytes image/test/crashtests/256-width.ico | Bin 0 -> 154 bytes image/test/crashtests/463696.bmp | Bin 0 -> 1272 bytes image/test/crashtests/523528-1.gif | Bin 0 -> 132 bytes image/test/crashtests/523528-2.gif | Bin 0 -> 132 bytes image/test/crashtests/570451.png | Bin 0 -> 114 bytes image/test/crashtests/694165-1.xhtml | 510 +++++++++++++++++++++ image/test/crashtests/732319-1.html | 2 + image/test/crashtests/83804-1.gif | Bin 0 -> 37 bytes image/test/crashtests/844403-1.html | 10 + image/test/crashtests/856616.gif | Bin 0 -> 27 bytes image/test/crashtests/89341-1.gif | Bin 0 -> 769 bytes image/test/crashtests/944353.jpg | Bin 0 -> 610965 bytes image/test/crashtests/colormap-range.gif | Bin 0 -> 5657 bytes image/test/crashtests/crashtests.list | 83 ++++ image/test/crashtests/delayedframe.sjs | 44 ++ image/test/crashtests/delaytest.html | 59 +++ image/test/crashtests/discardframe.htm | 1 + image/test/crashtests/finite-apng.png | Bin 0 -> 5834 bytes image/test/crashtests/ie.png | Bin 0 -> 466589 bytes .../test/crashtests/invalid-disposal-method-1.gif | Bin 0 -> 167 bytes .../test/crashtests/invalid-disposal-method-2.gif | Bin 0 -> 167 bytes .../test/crashtests/invalid-disposal-method-3.gif | Bin 0 -> 167 bytes image/test/crashtests/invalid-icc-profile.jpg | Bin 0 -> 2568 bytes .../test/crashtests/invalid-size-second-frame.gif | Bin 0 -> 673 bytes image/test/crashtests/invalid-size.gif | Bin 0 -> 329 bytes image/test/crashtests/invalid_ico_height.ico | Bin 0 -> 894 bytes image/test/crashtests/invalid_ico_width.ico | Bin 0 -> 894 bytes image/test/crashtests/multiple-png-hassize.ico | Bin 0 -> 18096 bytes image/test/crashtests/out2.gif | Bin 0 -> 24129 bytes image/test/crashtests/ownerdiscard.html | 48 ++ image/test/crashtests/rainbow.gif | Bin 0 -> 6171 bytes image/test/crashtests/threeframes-end.gif | Bin 0 -> 16 bytes image/test/crashtests/threeframes-start.gif | Bin 0 -> 92 bytes image/test/crashtests/truncated-second-frame.png | Bin 0 -> 72247 bytes image/test/crashtests/unsized-svg.svg | 1 + 86 files changed, 1407 insertions(+) create mode 100644 image/test/crashtests/1205923-1.html create mode 100644 image/test/crashtests/1210745-1.gif create mode 100644 image/test/crashtests/1212954-1.svg create mode 100644 image/test/crashtests/1235605.gif create mode 100644 image/test/crashtests/1241728-1.html create mode 100644 image/test/crashtests/1241729-1.bmp create mode 100644 image/test/crashtests/1241729-1.html create mode 100644 image/test/crashtests/1242093-1.html create mode 100644 image/test/crashtests/1242778-1.png create mode 100644 image/test/crashtests/1249576-1.png create mode 100644 image/test/crashtests/1251091-1.html create mode 100644 image/test/crashtests/1251091-1.png create mode 100644 image/test/crashtests/1253362-1.html create mode 100644 image/test/crashtests/1262549-1.gif create mode 100644 image/test/crashtests/1277397-1.jpg create mode 100644 image/test/crashtests/1277397-2.jpg create mode 100644 image/test/crashtests/1355898-1.html create mode 100644 image/test/crashtests/1375842-1.html create mode 100644 image/test/crashtests/1413762-1.gif create mode 100644 image/test/crashtests/1443232-1.gif create mode 100644 image/test/crashtests/1443232-1.html create mode 100644 image/test/crashtests/1509998.gif create mode 100644 image/test/crashtests/1526717-1.html create mode 100644 image/test/crashtests/1526717-1.png create mode 100644 image/test/crashtests/1629490-1-iframe.html create mode 100644 image/test/crashtests/1629490-1.html create mode 100644 image/test/crashtests/1634839-1-iframe.html create mode 100644 image/test/crashtests/1634839-1.html create mode 100644 image/test/crashtests/1634839-2-iframe.html create mode 100644 image/test/crashtests/1634839-2.html create mode 100644 image/test/crashtests/1676172-1-iframe.html create mode 100644 image/test/crashtests/1676172-1.gif create mode 100644 image/test/crashtests/1676172-1.html create mode 100644 image/test/crashtests/1763581-1-iframe.html create mode 100644 image/test/crashtests/1763581-1.gif create mode 100644 image/test/crashtests/1763581-1.html create mode 100644 image/test/crashtests/1763581-1.sjs create mode 100644 image/test/crashtests/1765871-1.jpg create mode 100644 image/test/crashtests/1814553.avif create mode 100644 image/test/crashtests/1814561.avif create mode 100644 image/test/crashtests/1814677.avif create mode 100644 image/test/crashtests/1814708.avif create mode 100644 image/test/crashtests/1814741.avif create mode 100644 image/test/crashtests/1814774.avif create mode 100644 image/test/crashtests/1817108.avif create mode 100644 image/test/crashtests/1848717-1.avif create mode 100644 image/test/crashtests/1852649.webp create mode 100644 image/test/crashtests/1862059-1.html create mode 100644 image/test/crashtests/1862059-1.svg create mode 100644 image/test/crashtests/1862059-1.svg^headers^ create mode 100644 image/test/crashtests/256-height.ico create mode 100644 image/test/crashtests/256-width.ico create mode 100644 image/test/crashtests/463696.bmp create mode 100644 image/test/crashtests/523528-1.gif create mode 100644 image/test/crashtests/523528-2.gif create mode 100644 image/test/crashtests/570451.png create mode 100644 image/test/crashtests/694165-1.xhtml create mode 100644 image/test/crashtests/732319-1.html create mode 100644 image/test/crashtests/83804-1.gif create mode 100644 image/test/crashtests/844403-1.html create mode 100644 image/test/crashtests/856616.gif create mode 100644 image/test/crashtests/89341-1.gif create mode 100644 image/test/crashtests/944353.jpg create mode 100644 image/test/crashtests/colormap-range.gif create mode 100644 image/test/crashtests/crashtests.list create mode 100644 image/test/crashtests/delayedframe.sjs create mode 100644 image/test/crashtests/delaytest.html create mode 100644 image/test/crashtests/discardframe.htm create mode 100644 image/test/crashtests/finite-apng.png create mode 100644 image/test/crashtests/ie.png create mode 100644 image/test/crashtests/invalid-disposal-method-1.gif create mode 100644 image/test/crashtests/invalid-disposal-method-2.gif create mode 100644 image/test/crashtests/invalid-disposal-method-3.gif create mode 100644 image/test/crashtests/invalid-icc-profile.jpg create mode 100644 image/test/crashtests/invalid-size-second-frame.gif create mode 100644 image/test/crashtests/invalid-size.gif create mode 100644 image/test/crashtests/invalid_ico_height.ico create mode 100644 image/test/crashtests/invalid_ico_width.ico create mode 100644 image/test/crashtests/multiple-png-hassize.ico create mode 100644 image/test/crashtests/out2.gif create mode 100644 image/test/crashtests/ownerdiscard.html create mode 100644 image/test/crashtests/rainbow.gif create mode 100644 image/test/crashtests/threeframes-end.gif create mode 100644 image/test/crashtests/threeframes-start.gif create mode 100644 image/test/crashtests/truncated-second-frame.png create mode 100644 image/test/crashtests/unsized-svg.svg (limited to 'image/test/crashtests') diff --git a/image/test/crashtests/1205923-1.html b/image/test/crashtests/1205923-1.html new file mode 100644 index 0000000000..456fc51b6e --- /dev/null +++ b/image/test/crashtests/1205923-1.html @@ -0,0 +1,36 @@ + + + + + + diff --git a/image/test/crashtests/1210745-1.gif b/image/test/crashtests/1210745-1.gif new file mode 100644 index 0000000000..92bcf72224 Binary files /dev/null and b/image/test/crashtests/1210745-1.gif differ diff --git a/image/test/crashtests/1212954-1.svg b/image/test/crashtests/1212954-1.svg new file mode 100644 index 0000000000..83dd7b9c7f --- /dev/null +++ b/image/test/crashtests/1212954-1.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + diff --git a/image/test/crashtests/1235605.gif b/image/test/crashtests/1235605.gif new file mode 100644 index 0000000000..e7c3ea0b87 Binary files /dev/null and b/image/test/crashtests/1235605.gif differ diff --git a/image/test/crashtests/1241728-1.html b/image/test/crashtests/1241728-1.html new file mode 100644 index 0000000000..126c02e624 --- /dev/null +++ b/image/test/crashtests/1241728-1.html @@ -0,0 +1,17 @@ + + + + + + + + \ No newline at end of file diff --git a/image/test/crashtests/1241729-1.bmp b/image/test/crashtests/1241729-1.bmp new file mode 100644 index 0000000000..e6f36d0398 Binary files /dev/null and b/image/test/crashtests/1241729-1.bmp differ diff --git a/image/test/crashtests/1241729-1.html b/image/test/crashtests/1241729-1.html new file mode 100644 index 0000000000..47f23134b4 --- /dev/null +++ b/image/test/crashtests/1241729-1.html @@ -0,0 +1,5 @@ + + + + + diff --git a/image/test/crashtests/1242093-1.html b/image/test/crashtests/1242093-1.html new file mode 100644 index 0000000000..3eab166efd --- /dev/null +++ b/image/test/crashtests/1242093-1.html @@ -0,0 +1,22 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/image/test/crashtests/1242778-1.png b/image/test/crashtests/1242778-1.png new file mode 100644 index 0000000000..4504d54e45 Binary files /dev/null and b/image/test/crashtests/1242778-1.png differ diff --git a/image/test/crashtests/1249576-1.png b/image/test/crashtests/1249576-1.png new file mode 100644 index 0000000000..637dafbc2b Binary files /dev/null and b/image/test/crashtests/1249576-1.png differ diff --git a/image/test/crashtests/1251091-1.html b/image/test/crashtests/1251091-1.html new file mode 100644 index 0000000000..520a393b43 --- /dev/null +++ b/image/test/crashtests/1251091-1.html @@ -0,0 +1,51 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/image/test/crashtests/1251091-1.png b/image/test/crashtests/1251091-1.png new file mode 100644 index 0000000000..078b19a569 Binary files /dev/null and b/image/test/crashtests/1251091-1.png differ diff --git a/image/test/crashtests/1253362-1.html b/image/test/crashtests/1253362-1.html new file mode 100644 index 0000000000..fdee850aab --- /dev/null +++ b/image/test/crashtests/1253362-1.html @@ -0,0 +1,11 @@ + + + + + + + +
+ + + diff --git a/image/test/crashtests/1262549-1.gif b/image/test/crashtests/1262549-1.gif new file mode 100644 index 0000000000..7cb2e769d2 Binary files /dev/null and b/image/test/crashtests/1262549-1.gif differ diff --git a/image/test/crashtests/1277397-1.jpg b/image/test/crashtests/1277397-1.jpg new file mode 100644 index 0000000000..54f21182b6 Binary files /dev/null and b/image/test/crashtests/1277397-1.jpg differ diff --git a/image/test/crashtests/1277397-2.jpg b/image/test/crashtests/1277397-2.jpg new file mode 100644 index 0000000000..f9fc8744e8 Binary files /dev/null and b/image/test/crashtests/1277397-2.jpg differ diff --git a/image/test/crashtests/1355898-1.html b/image/test/crashtests/1355898-1.html new file mode 100644 index 0000000000..2df55b34ac --- /dev/null +++ b/image/test/crashtests/1355898-1.html @@ -0,0 +1,45 @@ + + + + + + + + + Your browser doesn't appear to support the <canvas> element. + + + \ No newline at end of file diff --git a/image/test/crashtests/1375842-1.html b/image/test/crashtests/1375842-1.html new file mode 100644 index 0000000000..457966a1b9 --- /dev/null +++ b/image/test/crashtests/1375842-1.html @@ -0,0 +1,16 @@ + + + + + + + + + + + diff --git a/image/test/crashtests/1413762-1.gif b/image/test/crashtests/1413762-1.gif new file mode 100644 index 0000000000..5dd10b8f25 Binary files /dev/null and b/image/test/crashtests/1413762-1.gif differ diff --git a/image/test/crashtests/1443232-1.gif b/image/test/crashtests/1443232-1.gif new file mode 100644 index 0000000000..198519e7c0 Binary files /dev/null and b/image/test/crashtests/1443232-1.gif differ diff --git a/image/test/crashtests/1443232-1.html b/image/test/crashtests/1443232-1.html new file mode 100644 index 0000000000..a7302e9e16 --- /dev/null +++ b/image/test/crashtests/1443232-1.html @@ -0,0 +1,30 @@ + + + +
+ + + diff --git a/image/test/crashtests/1509998.gif b/image/test/crashtests/1509998.gif new file mode 100644 index 0000000000..05b141ba5f Binary files /dev/null and b/image/test/crashtests/1509998.gif differ diff --git a/image/test/crashtests/1526717-1.html b/image/test/crashtests/1526717-1.html new file mode 100644 index 0000000000..b120340416 --- /dev/null +++ b/image/test/crashtests/1526717-1.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/image/test/crashtests/1526717-1.png b/image/test/crashtests/1526717-1.png new file mode 100644 index 0000000000..5ac5b32744 Binary files /dev/null and b/image/test/crashtests/1526717-1.png differ diff --git a/image/test/crashtests/1629490-1-iframe.html b/image/test/crashtests/1629490-1-iframe.html new file mode 100644 index 0000000000..2d20e28eed --- /dev/null +++ b/image/test/crashtests/1629490-1-iframe.html @@ -0,0 +1 @@ + diff --git a/image/test/crashtests/1629490-1.html b/image/test/crashtests/1629490-1.html new file mode 100644 index 0000000000..f35568ca4e --- /dev/null +++ b/image/test/crashtests/1629490-1.html @@ -0,0 +1,49 @@ + + + + + +
+ +
+ + + + diff --git a/image/test/crashtests/1634839-1-iframe.html b/image/test/crashtests/1634839-1-iframe.html new file mode 100644 index 0000000000..07c1b6545e --- /dev/null +++ b/image/test/crashtests/1634839-1-iframe.html @@ -0,0 +1 @@ + diff --git a/image/test/crashtests/1634839-1.html b/image/test/crashtests/1634839-1.html new file mode 100644 index 0000000000..865f83645f --- /dev/null +++ b/image/test/crashtests/1634839-1.html @@ -0,0 +1,51 @@ + + + + + +
+ +
+ + + + diff --git a/image/test/crashtests/1634839-2-iframe.html b/image/test/crashtests/1634839-2-iframe.html new file mode 100644 index 0000000000..6907844499 --- /dev/null +++ b/image/test/crashtests/1634839-2-iframe.html @@ -0,0 +1 @@ + diff --git a/image/test/crashtests/1634839-2.html b/image/test/crashtests/1634839-2.html new file mode 100644 index 0000000000..d3629421fb --- /dev/null +++ b/image/test/crashtests/1634839-2.html @@ -0,0 +1,51 @@ + + + + + +
+ +
+ + + + diff --git a/image/test/crashtests/1676172-1-iframe.html b/image/test/crashtests/1676172-1-iframe.html new file mode 100644 index 0000000000..c989c579bb --- /dev/null +++ b/image/test/crashtests/1676172-1-iframe.html @@ -0,0 +1,13 @@ + + + + + diff --git a/image/test/crashtests/1676172-1.gif b/image/test/crashtests/1676172-1.gif new file mode 100644 index 0000000000..c5635218d5 Binary files /dev/null and b/image/test/crashtests/1676172-1.gif differ diff --git a/image/test/crashtests/1676172-1.html b/image/test/crashtests/1676172-1.html new file mode 100644 index 0000000000..08374a4772 --- /dev/null +++ b/image/test/crashtests/1676172-1.html @@ -0,0 +1,57 @@ + + + + + + + + + diff --git a/image/test/crashtests/1763581-1-iframe.html b/image/test/crashtests/1763581-1-iframe.html new file mode 100644 index 0000000000..6064183b9e --- /dev/null +++ b/image/test/crashtests/1763581-1-iframe.html @@ -0,0 +1,15 @@ + + + + + + + + + diff --git a/image/test/crashtests/1763581-1.gif b/image/test/crashtests/1763581-1.gif new file mode 100644 index 0000000000..237d6a1722 Binary files /dev/null and b/image/test/crashtests/1763581-1.gif differ diff --git a/image/test/crashtests/1763581-1.html b/image/test/crashtests/1763581-1.html new file mode 100644 index 0000000000..167f541a24 --- /dev/null +++ b/image/test/crashtests/1763581-1.html @@ -0,0 +1,28 @@ + + + + + + + + + + diff --git a/image/test/crashtests/1763581-1.sjs b/image/test/crashtests/1763581-1.sjs new file mode 100644 index 0000000000..9fb70dd463 --- /dev/null +++ b/image/test/crashtests/1763581-1.sjs @@ -0,0 +1,71 @@ + +function getFileStream(filename) +{ + // Get the location of this sjs file, and then use that to figure out where + // to find where our other files are. + var self = Components.classes["@mozilla.org/file/local;1"] + .createInstance(Components.interfaces.nsIFile); + self.initWithPath(getState("__LOCATION__")); + var file = self.parent; + file.append(filename); + + var fileStream = Components.classes['@mozilla.org/network/file-input-stream;1'] + .createInstance(Components.interfaces.nsIFileInputStream); + fileStream.init(file, 1, 0, false); + + return fileStream; +} + +// stolen from file_blocked_script.sjs +function setGlobalState(data, key) { + x = { + data, + QueryInterface: ChromeUtils.generateQI([]), + }; + x.wrappedJSObject = x; + setObjectState(key, x); +} + +function getGlobalState(key) { + var data; + getObjectState(key, function(x) { + data = x && x.wrappedJSObject.data; + }); + return data; +} + +const DELAY_MS = 100; +let gTimer; + +function handleRequest(request, response) { + let count = getGlobalState("count"); + if (count == null) { + count = 0; + } + + if (count > 0) { + response.processAsync(); + + gTimer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer); + gTimer.init( + () => { + response.setStatusLine(request.httpVersion, 304, "Not Modified"); + response.finish(); + }, + DELAY_MS, + Ci.nsITimer.TYPE_ONE_SHOT + ); + + return; + } + + response.setStatusLine(request.httpVersion, 200, "OK"); + response.setHeader("Content-Type", "image/gif", false); + + var inputStream = getFileStream("1763581-1.gif"); + response.bodyOutputStream.writeFrom(inputStream, inputStream.available()); + inputStream.close(); + + count++; + setGlobalState(count, "count"); +} diff --git a/image/test/crashtests/1765871-1.jpg b/image/test/crashtests/1765871-1.jpg new file mode 100644 index 0000000000..11460a62c3 Binary files /dev/null and b/image/test/crashtests/1765871-1.jpg differ diff --git a/image/test/crashtests/1814553.avif b/image/test/crashtests/1814553.avif new file mode 100644 index 0000000000..7e2f040c53 Binary files /dev/null and b/image/test/crashtests/1814553.avif differ diff --git a/image/test/crashtests/1814561.avif b/image/test/crashtests/1814561.avif new file mode 100644 index 0000000000..33ad44d2a3 Binary files /dev/null and b/image/test/crashtests/1814561.avif differ diff --git a/image/test/crashtests/1814677.avif b/image/test/crashtests/1814677.avif new file mode 100644 index 0000000000..b91d4f955b Binary files /dev/null and b/image/test/crashtests/1814677.avif differ diff --git a/image/test/crashtests/1814708.avif b/image/test/crashtests/1814708.avif new file mode 100644 index 0000000000..21a39cfa4d Binary files /dev/null and b/image/test/crashtests/1814708.avif differ diff --git a/image/test/crashtests/1814741.avif b/image/test/crashtests/1814741.avif new file mode 100644 index 0000000000..842eaea1c1 Binary files /dev/null and b/image/test/crashtests/1814741.avif differ diff --git a/image/test/crashtests/1814774.avif b/image/test/crashtests/1814774.avif new file mode 100644 index 0000000000..77ffba7af2 Binary files /dev/null and b/image/test/crashtests/1814774.avif differ diff --git a/image/test/crashtests/1817108.avif b/image/test/crashtests/1817108.avif new file mode 100644 index 0000000000..a06b923ee4 Binary files /dev/null and b/image/test/crashtests/1817108.avif differ diff --git a/image/test/crashtests/1848717-1.avif b/image/test/crashtests/1848717-1.avif new file mode 100644 index 0000000000..10c9eb26f8 Binary files /dev/null and b/image/test/crashtests/1848717-1.avif differ diff --git a/image/test/crashtests/1852649.webp b/image/test/crashtests/1852649.webp new file mode 100644 index 0000000000..2d702587b6 Binary files /dev/null and b/image/test/crashtests/1852649.webp differ diff --git a/image/test/crashtests/1862059-1.html b/image/test/crashtests/1862059-1.html new file mode 100644 index 0000000000..75aec190af --- /dev/null +++ b/image/test/crashtests/1862059-1.html @@ -0,0 +1,15 @@ + + + + diff --git a/image/test/crashtests/1862059-1.svg b/image/test/crashtests/1862059-1.svg new file mode 100644 index 0000000000..af025a1d18 --- /dev/null +++ b/image/test/crashtests/1862059-1.svg @@ -0,0 +1,43 @@ +--BOUNDARYOMG +Content-Type: image/svg+xml; charset=utf-8 + +--BOUNDARYOMG +Content-Type: image/svg+xml; charset=utf-8 + +--BOUNDARYOMG +Content-Type: image/svg+xml; charset=utf-8 + +--BOUNDARYOMG +Content-Type: image/svg+xml; charset=utf-8 + +--BOUNDARYOMG +Content-Type: image/svg+xml; charset=utf-8 + +--BOUNDARYOMG +Content-Type: image/svg+xml; charset=utf-8 + +--BOUNDARYOMG +Content-Type: image/svg+xml; charset=utf-8 + +--BOUNDARYOMG +Content-Type: image/svg+xml; charset=utf-8 + +--BOUNDARYOMG +Content-Type: image/svg+xml; charset=utf-8 + +--BOUNDARYOMG +Content-Type: image/svg+xml; charset=utf-8 + +--BOUNDARYOMG +Content-Type: image/svg+xml; charset=utf-8 + +--BOUNDARYOMG +Content-Type: image/svg+xml; charset=utf-8 + +--BOUNDARYOMG +Content-Type: image/svg+xml; charset=utf-8 + +--BOUNDARYOMG +Content-Type: image/svg+xml; charset=utf-8 + + \ No newline at end of file diff --git a/image/test/crashtests/1862059-1.svg^headers^ b/image/test/crashtests/1862059-1.svg^headers^ new file mode 100644 index 0000000000..f5e846508e --- /dev/null +++ b/image/test/crashtests/1862059-1.svg^headers^ @@ -0,0 +1,3 @@ +HTTP 200 OK +Content-Type: multipart/x-mixed-replace;boundary=BOUNDARYOMG +Cache-Control: no-cache diff --git a/image/test/crashtests/256-height.ico b/image/test/crashtests/256-height.ico new file mode 100644 index 0000000000..6a3c5c1944 Binary files /dev/null and b/image/test/crashtests/256-height.ico differ diff --git a/image/test/crashtests/256-width.ico b/image/test/crashtests/256-width.ico new file mode 100644 index 0000000000..a82983ce4f Binary files /dev/null and b/image/test/crashtests/256-width.ico differ diff --git a/image/test/crashtests/463696.bmp b/image/test/crashtests/463696.bmp new file mode 100644 index 0000000000..ec80d54126 Binary files /dev/null and b/image/test/crashtests/463696.bmp differ diff --git a/image/test/crashtests/523528-1.gif b/image/test/crashtests/523528-1.gif new file mode 100644 index 0000000000..abadca7ad2 Binary files /dev/null and b/image/test/crashtests/523528-1.gif differ diff --git a/image/test/crashtests/523528-2.gif b/image/test/crashtests/523528-2.gif new file mode 100644 index 0000000000..5be3bd46f6 Binary files /dev/null and b/image/test/crashtests/523528-2.gif differ diff --git a/image/test/crashtests/570451.png b/image/test/crashtests/570451.png new file mode 100644 index 0000000000..c49f2d11f1 Binary files /dev/null and b/image/test/crashtests/570451.png differ diff --git a/image/test/crashtests/694165-1.xhtml b/image/test/crashtests/694165-1.xhtml new file mode 100644 index 0000000000..1e340a0f2f --- /dev/null +++ b/image/test/crashtests/694165-1.xhtml @@ -0,0 +1,510 @@ + + +]> + + + + diff --git a/image/test/crashtests/732319-1.html b/image/test/crashtests/732319-1.html new file mode 100644 index 0000000000..b9d9c6de87 --- /dev/null +++ b/image/test/crashtests/732319-1.html @@ -0,0 +1,2 @@ + + diff --git a/image/test/crashtests/83804-1.gif b/image/test/crashtests/83804-1.gif new file mode 100644 index 0000000000..3967c703f6 Binary files /dev/null and b/image/test/crashtests/83804-1.gif differ diff --git a/image/test/crashtests/844403-1.html b/image/test/crashtests/844403-1.html new file mode 100644 index 0000000000..ef207c0f9f --- /dev/null +++ b/image/test/crashtests/844403-1.html @@ -0,0 +1,10 @@ + + + diff --git a/image/test/crashtests/856616.gif b/image/test/crashtests/856616.gif new file mode 100644 index 0000000000..0fac811014 Binary files /dev/null and b/image/test/crashtests/856616.gif differ diff --git a/image/test/crashtests/89341-1.gif b/image/test/crashtests/89341-1.gif new file mode 100644 index 0000000000..14b3892d17 Binary files /dev/null and b/image/test/crashtests/89341-1.gif differ diff --git a/image/test/crashtests/944353.jpg b/image/test/crashtests/944353.jpg new file mode 100644 index 0000000000..fd81c58263 Binary files /dev/null and b/image/test/crashtests/944353.jpg differ diff --git a/image/test/crashtests/colormap-range.gif b/image/test/crashtests/colormap-range.gif new file mode 100644 index 0000000000..887add653f Binary files /dev/null and b/image/test/crashtests/colormap-range.gif differ diff --git a/image/test/crashtests/crashtests.list b/image/test/crashtests/crashtests.list new file mode 100644 index 0000000000..93dec82954 --- /dev/null +++ b/image/test/crashtests/crashtests.list @@ -0,0 +1,83 @@ +# Bug 668068 - Maximum (256) width and height icons that we currently interpret as 0-width and 0-height. +load 256-height.ico +load 256-width.ico + +load 83804-1.gif +load 89341-1.gif +load 463696.bmp +load 570451.png +# Bug 1390704 - Skip on debug because it triggers a quadratic behavior that makes it take +# so much time that it can trip on the reftest timeout of 5 minutes. +skip-if(Android||isDebugBuild||ThreadSanitizer) load 694165-1.xhtml +load 732319-1.html +load 844403-1.html +load 856616.gif +skip-if(wayland&&isDebugBuild) skip-if(ThreadSanitizer) load 944353.jpg # wayland: bug 1857023 +load 1205923-1.html +# Ensure we handle detecting that an image is animated, then failing to decode +# it. (See bug 1210745.) +load 1210745-1.gif +load 1212954-1.svg +load 1235605.gif +load 1241728-1.html +load 1241729-1.html +load 1242093-1.html +load 1242778-1.png +load 1249576-1.png +load 1253362-1.html +skip-if(Android&&browserIsRemote) load 1355898-1.html # bug 1507207 +load 1375842-1.html +load 1413762-1.gif +pref(image.downscale-during-decode.enabled,true) load 1443232-1.html +load colormap-range.gif +HTTP load delayedframe.sjs # A 3-frame animated GIF with an inordinate delay between the second and third frame + +# Animated gifs with a very large canvas, but tiny actual content. +load delaytest.html?523528-1.gif +load delaytest.html?523528-2.gif + +load delaytest.html?1262549-1.gif +load delaytest.html?1277397-1.jpg +load delaytest.html?1277397-2.jpg + +# Bug 1160801 - Ensure that we handle invalid disposal types. +load invalid-disposal-method-1.gif +load invalid-disposal-method-2.gif +load invalid-disposal-method-3.gif + +load invalid-icc-profile.jpg # This would have exposed the leak discovered in bug 642902 + +# Ensure we handle ICO directory entries which specify the wrong size for the contained resource. +load invalid_ico_height.ico +load invalid_ico_width.ico + +# Bug 525326 - Test image sizes of 65535x65535 which is larger than we allow) +load invalid-size.gif +load invalid-size-second-frame.gif + +load multiple-png-hassize.ico # Bug 863958 - This icon's size is such that it leads to multiple writes to the PNG decoder after we've gotten our size. +skip-if(ThreadSanitizer) asserts(0-2) load ownerdiscard.html # Bug 1323672, bug 807211 +load truncated-second-frame.png # Bug 863975 + +# Bug 1509998 - Ensure that we handle empty frame rects in animated images. +load 1509998.gif + +load 1526717-1.html +skip-if(ThreadSanitizer) pref(widget.windows.window_occlusion_tracking.enabled,false) load 1629490-1.html # Bug 1819154 + +pref(widget.windows.window_occlusion_tracking.enabled,false) HTTP load 1634839-1.html # Bug 1819154 +pref(widget.windows.window_occlusion_tracking.enabled,false) HTTP load 1634839-2.html # Bug 1819154 +pref(image.animated.decode-on-demand.batch-size,1) pref(image.animated.decode-on-demand.threshold-kb,0) HTTP load 1676172-1.html +pref(browser.soft_reload.only_force_validate_top_level_document,false) HTTP load 1763581-1.html +load 1765871-1.jpg + +load 1814561.avif +load 1814708.avif +load 1814553.avif +load 1814677.avif +load 1814741.avif +load 1814774.avif +load 1817108.avif +load 1848717-1.avif +load 1852649.webp +pref(widget.windows.window_occlusion_tracking.enabled,false) HTTP load 1862059-1.html diff --git a/image/test/crashtests/delayedframe.sjs b/image/test/crashtests/delayedframe.sjs new file mode 100644 index 0000000000..0cd7ce97e9 --- /dev/null +++ b/image/test/crashtests/delayedframe.sjs @@ -0,0 +1,44 @@ +function getFileStream(filename) +{ + // Get the location of this sjs file, and then use that to figure out where + // to find where our other files are. + var self = Components.classes["@mozilla.org/file/local;1"] + .createInstance(Components.interfaces.nsIFile); + self.initWithPath(getState("__LOCATION__")); + var file = self.parent; + file.append(filename); + dump(file.path + "\n"); + + var fileStream = Components.classes['@mozilla.org/network/file-input-stream;1'] + .createInstance(Components.interfaces.nsIFileInputStream); + fileStream.init(file, 1, 0, false); + + return fileStream; +} + +var gTimer; + +function handleRequest(request, response) +{ + response.processAsync(); + response.setStatusLine(request.httpVersion, 200, "OK"); + response.setHeader("Content-Type", "image/gif", false); + + var firststream = getFileStream("threeframes-start.gif"); + response.bodyOutputStream.writeFrom(firststream, firststream.available()) + firststream.close(); + + gTimer = Components.classes["@mozilla.org/timer;1"].createInstance(Components.interfaces.nsITimer); + gTimer.initWithCallback(function() + { + var secondstream = getFileStream("threeframes-end.gif"); + response.bodyOutputStream.writeFrom(secondstream, secondstream.available()) + secondstream.close(); + response.finish(); + + // This time needs to be longer than the animation timer in + // threeframes-start.gif. That's specified as 100ms; just use 5 seconds as + // a reasonable upper bound. Since this is just a crashtest, timeouts + // aren't a big deal. + }, 5 * 1000 /* milliseconds */, Components.interfaces.nsITimer.TYPE_ONE_SHOT); +} diff --git a/image/test/crashtests/delaytest.html b/image/test/crashtests/delaytest.html new file mode 100644 index 0000000000..fb368c1e90 --- /dev/null +++ b/image/test/crashtests/delaytest.html @@ -0,0 +1,59 @@ + + + +Delayed image reftest wrapper + + + + + + + diff --git a/image/test/crashtests/discardframe.htm b/image/test/crashtests/discardframe.htm new file mode 100644 index 0000000000..5ced0029c5 --- /dev/null +++ b/image/test/crashtests/discardframe.htm @@ -0,0 +1 @@ + diff --git a/image/test/crashtests/finite-apng.png b/image/test/crashtests/finite-apng.png new file mode 100644 index 0000000000..778613d851 Binary files /dev/null and b/image/test/crashtests/finite-apng.png differ diff --git a/image/test/crashtests/ie.png b/image/test/crashtests/ie.png new file mode 100644 index 0000000000..74c4a1a323 Binary files /dev/null and b/image/test/crashtests/ie.png differ diff --git a/image/test/crashtests/invalid-disposal-method-1.gif b/image/test/crashtests/invalid-disposal-method-1.gif new file mode 100644 index 0000000000..30c61de188 Binary files /dev/null and b/image/test/crashtests/invalid-disposal-method-1.gif differ diff --git a/image/test/crashtests/invalid-disposal-method-2.gif b/image/test/crashtests/invalid-disposal-method-2.gif new file mode 100644 index 0000000000..66158d81a9 Binary files /dev/null and b/image/test/crashtests/invalid-disposal-method-2.gif differ diff --git a/image/test/crashtests/invalid-disposal-method-3.gif b/image/test/crashtests/invalid-disposal-method-3.gif new file mode 100644 index 0000000000..0da0723773 Binary files /dev/null and b/image/test/crashtests/invalid-disposal-method-3.gif differ diff --git a/image/test/crashtests/invalid-icc-profile.jpg b/image/test/crashtests/invalid-icc-profile.jpg new file mode 100644 index 0000000000..938c7713ce Binary files /dev/null and b/image/test/crashtests/invalid-icc-profile.jpg differ diff --git a/image/test/crashtests/invalid-size-second-frame.gif b/image/test/crashtests/invalid-size-second-frame.gif new file mode 100644 index 0000000000..22005ae4ca Binary files /dev/null and b/image/test/crashtests/invalid-size-second-frame.gif differ diff --git a/image/test/crashtests/invalid-size.gif b/image/test/crashtests/invalid-size.gif new file mode 100644 index 0000000000..665ca9b5dc Binary files /dev/null and b/image/test/crashtests/invalid-size.gif differ diff --git a/image/test/crashtests/invalid_ico_height.ico b/image/test/crashtests/invalid_ico_height.ico new file mode 100644 index 0000000000..50d6842278 Binary files /dev/null and b/image/test/crashtests/invalid_ico_height.ico differ diff --git a/image/test/crashtests/invalid_ico_width.ico b/image/test/crashtests/invalid_ico_width.ico new file mode 100644 index 0000000000..4ace07c16f Binary files /dev/null and b/image/test/crashtests/invalid_ico_width.ico differ diff --git a/image/test/crashtests/multiple-png-hassize.ico b/image/test/crashtests/multiple-png-hassize.ico new file mode 100644 index 0000000000..6944220018 Binary files /dev/null and b/image/test/crashtests/multiple-png-hassize.ico differ diff --git a/image/test/crashtests/out2.gif b/image/test/crashtests/out2.gif new file mode 100644 index 0000000000..f062c7f20c Binary files /dev/null and b/image/test/crashtests/out2.gif differ diff --git a/image/test/crashtests/ownerdiscard.html b/image/test/crashtests/ownerdiscard.html new file mode 100644 index 0000000000..2e5be86023 --- /dev/null +++ b/image/test/crashtests/ownerdiscard.html @@ -0,0 +1,48 @@ + + + +
+ + +
+ + + diff --git a/image/test/crashtests/rainbow.gif b/image/test/crashtests/rainbow.gif new file mode 100644 index 0000000000..72a7816928 Binary files /dev/null and b/image/test/crashtests/rainbow.gif differ diff --git a/image/test/crashtests/threeframes-end.gif b/image/test/crashtests/threeframes-end.gif new file mode 100644 index 0000000000..baf6a418c2 Binary files /dev/null and b/image/test/crashtests/threeframes-end.gif differ diff --git a/image/test/crashtests/threeframes-start.gif b/image/test/crashtests/threeframes-start.gif new file mode 100644 index 0000000000..bc641a3166 Binary files /dev/null and b/image/test/crashtests/threeframes-start.gif differ diff --git a/image/test/crashtests/truncated-second-frame.png b/image/test/crashtests/truncated-second-frame.png new file mode 100644 index 0000000000..0aef5e44de Binary files /dev/null and b/image/test/crashtests/truncated-second-frame.png differ diff --git a/image/test/crashtests/unsized-svg.svg b/image/test/crashtests/unsized-svg.svg new file mode 100644 index 0000000000..714efc7ef0 --- /dev/null +++ b/image/test/crashtests/unsized-svg.svg @@ -0,0 +1 @@ + -- cgit v1.2.3