mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-06 07:17:30 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
13
dom/xhr/tests/file_XHRDocURI.sjs
Normal file
13
dom/xhr/tests/file_XHRDocURI.sjs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
function handleRequest(aRequest, aResponse)
|
||||
{
|
||||
var url = aRequest.queryString.match(/\burl=([^#&]*)/);
|
||||
if (!url) {
|
||||
aResponse.setStatusLine(aRequest.httpVersion, 404, "Not Found");
|
||||
return;
|
||||
}
|
||||
|
||||
url = decodeURIComponent(url[1]);
|
||||
aResponse.setStatusLine(aRequest.httpVersion, 302, "Found");
|
||||
aResponse.setHeader("Cache-Control", "no-cache", false);
|
||||
aResponse.setHeader("Location", url, false);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue