docshell/test/file_bug669671.sjs
author Ed Morley <emorley@mozilla.com>
Mon, 14 May 2012 21:05:24 +0100
changeset 93909 3f7291bc4efc003964fb98b1390019771042f3ac
parent 72506 470cfda4dd83e6df5ea40ce283accb51e317afc8
child 140167 bcc709f93afb905dada3e188a42964e57c746cc5
permissions -rw-r--r--
Backout 345ae68f15f4, b3b40121ac8d, 0d18b7a246d7, 9dbb6064ab58, dee9d7fa8eb6, 63eec6bfa948, 323c6be7cfe8 & f4aac7523a48 (bug 732875) for compilation failures

function handleRequest(request, response)
{
  var count = parseInt(getState('count'));
  if (!count)
    count = 0;
  setState('count', count + 1 + '');

  response.setHeader('Content-Type', 'text/html', false);
  response.setHeader('Cache-Control', 'max-age=0');
  response.write('<html><body onload="opener.onChildLoad()" ' +
                 'onunload="parseInt(\'0\')">' +
                 count + '</body></html>');
}