# HG changeset patch # Parent c8866291dba2a952caea904aa34097d071c1fd60 # User Shian-Yow Wu Bug 1063538 - Part 2: Test case. r=khuey diff --git a/dom/workers/test/bug1063538_worker.js b/dom/workers/test/bug1063538_worker.js new file mode 100644 --- /dev/null +++ b/dom/workers/test/bug1063538_worker.js @@ -0,0 +1,18 @@ +/** + * Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/publicdomain/zero/1.0/ + */ + +var gJar = "jar:http://example.org/tests/content/base/test/file_bug945152.jar!/data_big.txt"; +var xhr = new XMLHttpRequest({mozAnon: true, mozSystem: true}); + +xhr.onprogress = function(e) { + xhr.abort(); + postMessage({type: 'finish' }); + self.close(); +}; + +onmessage = function(e) { + xhr.open("GET", gJar, true); + xhr.send(); +} diff --git a/dom/workers/test/mochitest.ini b/dom/workers/test/mochitest.ini --- a/dom/workers/test/mochitest.ini +++ b/dom/workers/test/mochitest.ini @@ -3,16 +3,17 @@ support-files = WorkerTest_badworker.js atob_worker.js bug1014466_data1.txt bug1014466_data2.txt bug1014466_worker.js bug1020226_worker.js bug1020226_frame.html bug998474_worker.js + bug1063538_worker.js clearTimeouts_worker.js closeOnGC_server.sjs closeOnGC_worker.js close_worker.js content_worker.js console_worker.js consoleReplaceable_worker.js csp_worker.js @@ -95,16 +96,17 @@ support-files = [test_blobWorkers.html] [test_bug1002702.html] [test_bug949946.html] [test_bug1010784.html] [test_bug1014466.html] [test_bug1020226.html] [test_bug1036484.html] [test_bug998474.html] +[test_bug1063538.html] [test_chromeWorker.html] [test_clearTimeouts.html] [test_close.html] [test_closeOnGC.html] [test_console.html] [test_consoleReplaceable.html] [test_contentWorker.html] [test_csp.html] diff --git a/dom/workers/test/test_bug1063538.html b/dom/workers/test/test_bug1063538.html new file mode 100644 --- /dev/null +++ b/dom/workers/test/test_bug1063538.html @@ -0,0 +1,47 @@ + + + + + + + Test for Bug 1063538 + + + + +Mozilla Bug 1063538 +

+ +
+
+
+ +