mirror of
https://github.com/servo/servo.git
synced 2025-10-02 09:39:14 +01:00
Follow the HTML specification and allow to use legacy referrer policies (never/default/always/origin-when-crossorigin) only with 'meta' referrer. See https://html.spec.whatwg.org/multipage/#meta-referrer (step 5) While for another HTML elements with 'referrerpolicy' content attribute (https://html.spec.whatwg.org/multipage/#referrer-policy-attribute) and for 'Referrer-Policy' HTTP header (https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-header-dfn) the referrer policy should be determine from the standard policy tokens (https://w3c.github.io/webappsec-referrer-policy/#referrer-policy). So unknown policy values (legacy from meta-referrer) will be ignored and determine as 'ReferrerPolicy::EmptyString'. Testing: No changes Fixes: #36833 Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com> |
||
---|---|---|
.. | ||
async_html.rs | ||
html.rs | ||
mod.rs | ||
prefetch.rs | ||
xml.rs |