From 620375a7eec184c3a642c797fee72be602166e6a Mon Sep 17 00:00:00 2001 From: Yoav Weiss Date: Sun, 26 Jan 2020 13:03:06 -0800 Subject: [PATCH] [UA client hints] Align implementation with PR#46 This CL aligns the UA-CH implementation with PR#46[1]. It also turns a bunch of the high entropy attributes into methods, in preparation for upcoming changes that will turn them into promises. [1] https://github.com/WICG/ua-client-hints/pull/46 Change-Id: I8221d8a967213180a1aa1d9ef23f17e6f95718b7 --- client-hints/resources/sec-ch-ua.py | 2 +- .../navigator_user_agent.https.html | 23 +++++++++++++++++++ .../navigator_user_agent.tentative.https.html | 21 ----------------- 3 files changed, 24 insertions(+), 22 deletions(-) create mode 100644 html/webappapis/system-state-and-capabilities/the-navigator-object/navigator_user_agent.https.html delete mode 100644 html/webappapis/system-state-and-capabilities/the-navigator-object/navigator_user_agent.tentative.https.html diff --git a/client-hints/resources/sec-ch-ua.py b/client-hints/resources/sec-ch-ua.py index a14a27dadf9e333..f77eee8c4e9b13a 100644 --- a/client-hints/resources/sec-ch-ua.py +++ b/client-hints/resources/sec-ch-ua.py @@ -5,7 +5,7 @@ def main(request, response): response.headers.set("Accept-CH-Lifetime", "10") response.content = ''' Sec-CH-UA: %s ''' % (ua, ua) diff --git a/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator_user_agent.https.html b/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator_user_agent.https.html new file mode 100644 index 000000000000000..e460d65979ce9fc --- /dev/null +++ b/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator_user_agent.https.html @@ -0,0 +1,23 @@ + + + + + diff --git a/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator_user_agent.tentative.https.html b/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator_user_agent.tentative.https.html deleted file mode 100644 index 5f0dba6bcf72cb9..000000000000000 --- a/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator_user_agent.tentative.https.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - -