Default to 'never' referrer policy for invalid meta tags on iOS.
The w3c spec indicates that parsing an unsupported value for referrer meta tags should not result in a referrer policy change. However, when WKWebView detects one of these tags, it will change the policy to 'never'. testWebReferrerOpenInNewTab verifies this observed behavior of WKWebView but https://codereview.chromium.org/2918313002/ updated ReferrerPolicyFromString() to assume strict adherance to the latest spec rather than WKWebView's actual implementation. This change updates the context menu param construction to use 'never' for unsupported referrer meta tag values so that the policy is consistently defaulted to 'never' for pages that are opened in a new Tab. w3c spec: https://w3c.github.io/webappsec-referrer-policy/#unknown-policy-values Bug: 733202 Change-Id: I74772f799a78c726601debddf64dd8f9ebbb2e0e Reviewed-on: https://chromium-review.googlesource.com/580630 Commit-Queue: Kurt Horimoto <kkhorimoto@chromium.org> Reviewed-by:Eugene But <eugenebut@chromium.org> Cr-Commit-Position: refs/heads/master@{#488810}
Showing
Please register or sign in to comment