/** * Renders a link with the provided referrer policy. * Used in browser_referrer_*.js, bug 1113431. * Arguments: ?scheme=http://&policy=origin&rel=noreferrer */ function handleRequest(request, response) { Cu.importGlobalProperties(["URLSearchParams"]); let query = new URLSearchParams(request.queryString); let scheme = query.get("scheme"); let policy = query.get("policy"); let rel = query.get("rel"); let cross = query.get("cross"); let host = cross ? "example.com" : "test1.example.com"; let linkUrl = scheme + host + "/browser/browser/base/content/test/referrer/" + "file_referrer_testserver.sjs"; let metaReferrerTag = policy ? `` : ""; let html = `
${metaReferrerTag}