[webkit-dev] Adding <meta name="referrer"> to WebCore

Jochen Eisinger jochen at chromium.org
Tue Mar 6 07:58:54 PST 2012


Hey all,

this is a belated announcement of the <meta name="referrer"> feature. It
allows web sites to specify different policies for sending referrers,
without resorting to ugly redirect hacks. This feature is currently a
proposal: http://wiki.whatwg.org/wiki/Meta_referrer

The implementation of the feature was tracked here:
https://bugs.webkit.org/show_bug.cgi?id=72674

I'm sorry that this mail goes out after the feature has landed. Thank
you, Maciej, for pointing this out.

The feature is also not behind a flag. If any of the ports would prefer, I
can add such a flag.

In order to make the feature work with your port, you might need to add
some extra plumbing. Here's a list of changes that were required for
Chromium (AFAIK it works out of the box for Safari):

- the chromium out-of-process network stack would enforce the referrer
policy on redirects, so the referrer policy needed to be plumbed there
- context menus in chromium are also out-of-process, so the referrer policy
needed to be plumbed there for "open in new tab" etc
- the tab navigation history in chromium is out-of-process, as well as
storing the navigation history on disk for session restore, so the policy
had to be plumbed there as well

The feature is covered by layout tests in
http/tests/security/referrer-policy-*html

Looking forward to your comments

best
-jochen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20120306/d000a3d8/attachment.html>


More information about the webkit-dev mailing list