зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1261003 - W3C referrerpolicy content attribute doesn't work in FF. r=josh, r=franziskuskiefer
MozReview-Commit-ID: KKq7ZRJziBu
This commit is contained in:
Родитель
485736ee81
Коммит
b69436726c
|
@ -22,7 +22,7 @@ function parseUrlQueryString(queryString) {
|
|||
function appendIframeToBody(url, attributes) {
|
||||
var iframe = document.createElement("iframe");
|
||||
iframe.src = url;
|
||||
// Extend element with attributes. (E.g. "referrer_policy" or "rel")
|
||||
// Extend element with attributes. (E.g. "referrerPolicy" or "rel")
|
||||
if (attributes) {
|
||||
for (var attr in attributes) {
|
||||
iframe[attr] = attributes[attr];
|
||||
|
@ -40,7 +40,7 @@ function loadImage(src, callback, attributes) {
|
|||
callback(image);
|
||||
}
|
||||
image.src = src;
|
||||
// Extend element with attributes. (E.g. "referrer_policy" or "rel")
|
||||
// Extend element with attributes. (E.g. "referrerPolicy" or "rel")
|
||||
if (attributes) {
|
||||
for (var attr in attributes) {
|
||||
image[attr] = attributes[attr];
|
||||
|
|
|
@ -76,7 +76,7 @@ function ReferrerPolicyTestCase(scenario, testDescription, sanityChecker) {
|
|||
// Depending on the delivery method, extend the subresource element with
|
||||
// these attributes.
|
||||
var elementAttributesForDeliveryMethod = {
|
||||
"attr-referrer": {referrerpolicy: t._scenario.referrer_policy},
|
||||
"attr-referrer": {referrerPolicy: t._scenario.referrer_policy},
|
||||
"rel-noreferrer": {rel: "noreferrer"}
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче