summaryrefslogtreecommitdiffstats
path: root/dom/base/test/file_browser_refresh_iframe.sjs
blob: 0941a1160e44420ce11d6f7729a3dd20025e33f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"use strict";

function handleRequest(request, response) {
  if (getState("iframe_resource") == "") {
    response.setHeader("Content-Type", "text/html", false);
    response.write("first load");
    setState("iframe_resource", "ok");
  } else {
    response.setHeader("Content-Type", "text/html", false);
    response.write("second load");
    setState("iframe_resource", "");
  }
}