/** * 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) { Components.utils.importGlobalProperties(["URLSearchParams"]); let query = new URLSearchParams(request.queryString); let scheme = query.get("scheme"); let policy = query.get("policy"); let rel = query.get("rel"); let linkUrl = scheme + "test1.example.com/browser/browser/base/content/test/referrer/" + "file_referrer_testserver.sjs"; let metaReferrerTag = policy ? `` : ""; let html = `
${metaReferrerTag}