Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http.headers.Referrer-Policy - Update for "Safari on iOS", Safari and IE #14675

Closed
debiru opened this issue Jan 26, 2022 · 1 comment · Fixed by #15089
Closed

http.headers.Referrer-Policy - Update for "Safari on iOS", Safari and IE #14675

debiru opened this issue Jan 26, 2022 · 1 comment · Fixed by #15089
Labels
data:http Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP

Comments

@debiru
Copy link
Contributor

debiru commented Jan 26, 2022

What information was incorrect, unhelpful, or incomplete?

  • It is written as No (No support) for iOS Safari and IE in the MDN. But current iOS Safari supports it as well as Safari.
    https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy
  • And IE11 partially supports it.
  • NOTES: about Default policy is strict-origin-when-cross-origin
    • At least Safari 15.3 supports this. (I have not been able to test with version 15.0)
      • Safari 14.1.2 does not support this.
    • iOS Safari (iOS 15.0) supports this.
      • iOS Safari (iOS 14.0) does not support this.

refs. https://caniuse.com/referrer-policy

What did you expect to see?

(The table before revision) IE Safari Safari on iOS
Referrer-Policy No 11.1 No
Default policy is
strict-origin-when-cross-origin
No No No
same-origin No 11.1 No
strict-origin No 11.1 No
strict-origin-when-cross-origin No 11.1 No
(The table after revision) IE Safari Safari on iOS
Referrer-Policy 11
(partial support)
11.1 12
Default policy is
strict-origin-when-cross-origin
No 15 15
same-origin No 11.1 12
strict-origin No 11.1 12
strict-origin-when-cross-origin No 11.1 12

I'm not sure, but I made the following difference for reference.

diff --git a/http/headers/referrer-policy.json b/http/headers/referrer-policy.json
index 20ea3093f..bb5de2cc5 100644
--- a/http/headers/referrer-policy.json
+++ b/http/headers/referrer-policy.json
@@ -22,7 +22,9 @@
               "version_added": "50"
             },
             "ie": {
-              "version_added": false
+              "version_added": "11",
+              "partial_implementation": true,
+              "notes": "Browsers initially supported an <a href='https://wiki.whatwg.org/wiki/Meta_referrer'>early draft</a> of the specification which can only use a meta tag and is only compatible with the <code>origin</code> value from the new spec."
             },
             "opera": {
               "version_added": "43"
@@ -34,7 +36,7 @@
               "version_added": "11.1"
             },
             "safari_ios": {
-              "version_added": false
+              "version_added": "12"
             },
             "samsunginternet_android": {
               "version_added": "7.2"
@@ -78,10 +80,10 @@
                 "version_added": "60"
               },
               "safari": {
-                "version_added": false
+                "version_added": "15"
               },
               "safari_ios": {
-                "version_added": false
+                "version_added": "15"
               },
               "samsunginternet_android": {
                 "version_added": "14.0"
@@ -129,7 +131,7 @@
                 "version_added": "11.1"
               },
               "safari_ios": {
-                "version_added": false
+                "version_added": "12"
               },
               "samsunginternet_android": {
                 "version_added": "7.2"
@@ -177,7 +179,7 @@
                 "version_added": "11.1"
               },
               "safari_ios": {
-                "version_added": false
+                "version_added": "12"
               },
               "samsunginternet_android": {
                 "version_added": "7.2"
@@ -225,7 +227,7 @@
                 "version_added": "11.1"
               },
               "safari_ios": {
-                "version_added": false
+                "version_added": "12"
               },
               "samsunginternet_android": {
                 "version_added": "7.2"

Did you test this? If so, how?

I built a test site for Referrer Policy and tested it on each browser. Especially, I tested about support of Default policy is strict-origin-when-cross-origin.

Browser Default policy testing environment
Safari 14.1.2 no-referrer-when-downgrade Native macOS
Safari 15.0 unknown (no test) nothing
Safari 15.3 strict-origin-when-cross-origin Native macOS
Safari on iOS 14.0 no-referrer-when-downgrade BrowserStack
Safari on iOS 15.0 strict-origin-when-cross-origin BrowserStack

MDN page report details

@debiru
Copy link
Contributor Author

debiru commented Jan 26, 2022

Oops, I overlooked #9846. Sorry.

@queengooborg queengooborg added the data:http Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP label Jan 26, 2022
@debiru debiru changed the title http.headers.Referrer-Policy - Update for "Safari on iOS" and IE http.headers.Referrer-Policy - Update for "Safari on iOS", Safari and IE Jan 26, 2022
debiru added a commit to debiru/browser-compat-data that referenced this issue Feb 22, 2022
ddbeck pushed a commit that referenced this issue Mar 22, 2022
…15089)

* Update for "Safari on iOS", Safari and IE (#14675)

* Fixes version to 15 from 15.0 on Safari and Safari on iOS.

* Update HTML/Element/meta name.referrer instead of HTTP/Headers/Referrer-Policy for IE

* Update HTML/Element/meta name.referrer for Safari and Safari on iOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:http Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants