From 2f20316513737fe2e005d765ac17261a8d2c7e53 Mon Sep 17 00:00:00 2001 From: Eric Portis Date: Mon, 24 Sep 2018 06:50:15 -0700 Subject: [PATCH 1/2] Check Feature Policy before sending Client Hints --- fetch.bs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fetch.bs b/fetch.bs index c265d89b2..fd1d477bc 100644 --- a/fetch.bs +++ b/fetch.bs @@ -2813,8 +2813,14 @@ the request.
a suitable width value -
  • A user agent should append - hintName/value to request's header list. +

  • If the result of running + Should? + request be allowed to use feature, + given request and hintName’s + associated + policy-controlled feature, returns true, the user agent should + append hintName/value to request's + header list.

  • Let record be a new From 876054911aa395f623cca4207d22bc4b2c7539bd Mon Sep 17 00:00:00 2001 From: Eric Portis Date: Mon, 24 Sep 2018 08:26:55 -0700 Subject: [PATCH 2/2] Add Feature-Policy biblio reference --- fetch.bs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/fetch.bs b/fetch.bs index fd1d477bc..6c5fa4d8b 100644 --- a/fetch.bs +++ b/fetch.bs @@ -86,6 +86,14 @@ url:https://tools.ietf.org/html/rfc7234#section-1.2.1;text:delta-seconds;type:df }, "OCSP": { "aliasOf": "RFC2560" + }, + "FEATURE-POLICY": { + "authors": [ + "Ian Clelland" + ], + "href": "https://wicg.github.io/feature-policy/", + "publisher": "WICG", + "title": "Feature Policy" } } @@ -2814,13 +2822,14 @@ the request.

  • If the result of running - Should? - request be allowed to use feature, + Should + request be allowed to use feature?, given request and hintName’s associated policy-controlled feature, returns true, the user agent should append hintName/value to request's header list. + [[!FEATURE-POLICY]] [[!CLIENT-HINTS]]

  • Let record be a new