New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 698792 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Mar 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

Invalid 'referrerpolicy' values are reflected on <link> elements

Project Member Reported by est...@chromium.org, Mar 6 2017

Issue description

Chrome Version: 56.0.2924.87

Chrome fails the web-platform-tests test "Invalid referrerPolicy attribute value" for the link element specifically. It seems that referrerPolicy="not-a-valid-value" will be reflected in the `elem.referrerPolicy` getter even though it shouldn't be (and isn't for other elements).

The failing WPT is referrer-policy/generic/subresource-test/attr-referrer-invalid-value.html:

      test(function () {
          var elements = ["iframe", "img", "a", "area", "link"];
          for (var i = 0; i < elements.length; i++) {
              var elem = document.createElement(elements[i]);
              elem.referrerPolicy = "unsafe-url";
              assert_equals(elem.referrerPolicy, "unsafe-url");
              elem.referrerPolicy = "not-valid-value";
              assert_equals(elem.referrerPolicy, "");
          }
      }, "Invalid referrerpolicy values not reflected");
 
Owner: y...@yoav.ws
Status: Assigned (was: Available)
yoav, would you be able to take a look?

Comment 2 by y...@yoav.ws, Mar 6 2017

Status: WontFix (was: Assigned)
The test passes on Canary. This was already solved by jochen at https://codereview.chromium.org/2698433002/

WONTFIXing (as there's no specific bug for a duplicate)

Sign in to add a comment