Bug 1261003 - W3C referrerpolicy content attribute doesn't work in FF. r=josh, r=franziskuskiefer
authorThomas Nguyen <tnguyen@mozilla.com>
Mon, 25 Apr 2016 11:47:06 +0800
changeset 295805 3aff4dae71ac0870dfab0483691ebef02c5330db
parent 295804 2f32c58b741bc8d3b128b1d2ef6ffde6c7a2a733
child 295806 a25f97b1cf4d4a973650eff89c7f194fc92e82d4
push id76095
push usercbook@mozilla.com
push dateTue, 03 May 2016 08:48:23 +0000
treeherdermozilla-inbound@e93c12bc1ffc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjosh, franziskuskiefer
bugs1261003
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1261003 - W3C referrerpolicy content attribute doesn't work in FF. r=josh, r=franziskuskiefer MozReview-Commit-ID: KKq7ZRJziBu
testing/web-platform/tests/referrer-policy/generic/common.js
testing/web-platform/tests/referrer-policy/generic/referrer-policy-test-case.js
--- a/testing/web-platform/tests/referrer-policy/generic/common.js
+++ b/testing/web-platform/tests/referrer-policy/generic/common.js
@@ -17,17 +17,17 @@ function parseUrlQueryString(queryString
   }
 
   return params;
 };
 
 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];
     }
   }
   document.body.appendChild(iframe);
 
   return iframe;
@@ -35,17 +35,17 @@ function appendIframeToBody(url, attribu
 
 function loadImage(src, callback, attributes) {
   var image = new Image();
   image.crossOrigin = "Anonymous";
   image.onload = function() {
     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];
     }
   }
   document.body.appendChild(image)
 }
 
--- a/testing/web-platform/tests/referrer-policy/generic/referrer-policy-test-case.js
+++ b/testing/web-platform/tests/referrer-policy/generic/referrer-policy-test-case.js
@@ -71,17 +71,17 @@ function ReferrerPolicyTestCase(scenario
     },
 
     _invokeSubresource: function(callback) {
       var invoker = subresourceInvoker[t._scenario.subresource];
 
       // 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"}
       };
 
       var delivery_method = t._scenario.delivery_method;
 
       if (delivery_method in elementAttributesForDeliveryMethod) {
         invoker(t._subresourceUrl,
                 callback,