]> git.parisson.com Git - pdf.js.git/commitdiff
Fixed browser shutdown bug for Macs
authorArtur Adib <arturadib@gmail.com>
Tue, 6 Sep 2011 17:59:14 +0000 (13:59 -0400)
committerArtur Adib <arturadib@gmail.com>
Tue, 6 Sep 2011 17:59:14 +0000 (13:59 -0400)
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.

test/driver.js

index cfa9dff753fd8399620f0bf5699df5c0d8d94b65..265de08528fc9e4127ff33d2f6b368ecd4163ab4 100644 (file)
@@ -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('');
 }