From: Artur Adib Date: Tue, 6 Sep 2011 17:59:14 +0000 (-0400) Subject: Fixed browser shutdown bug for Macs X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=1296da313cb3d942e1613472f94cbc242c954977;p=pdf.js.git Fixed browser shutdown bug for Macs The unnecessary spaces in the URL query were causing `tellAppToQuit()` to fail to detect the query `path`, so the browser was being killed via timeout instead of intended script. --- diff --git a/test/driver.js b/test/driver.js index cfa9dff..265de08 100644 --- a/test/driver.js +++ b/test/driver.js @@ -157,7 +157,7 @@ function snapshotCurrentPage(page, task, failure) { function sendQuitRequest() { var r = new XMLHttpRequest(); - r.open('POST', '/tellMeToQuit?path = ' + escape(appPath), false); + r.open('POST', '/tellMeToQuit?path=' + escape(appPath), false); r.send(''); }