Allow fallbacks for $wgReferrerPolicy
authorGergő Tisza <tgr.huwiki@gmail.com>
Sat, 23 Dec 2017 17:35:59 +0000 (09:35 -0800)
committerKunal Mehta <legoktm@member.fsf.org>
Sun, 24 Dec 2017 23:14:10 +0000 (15:14 -0800)
commitfbe17a7386ff6d917f0488d54808ae2b8ec96d12
treee8efb21f63abfc41b993ed9ccab1e8e042b84a8c
parent8adb581a6af0c3c39c60642885e7b58df56e7866
Allow fallbacks for $wgReferrerPolicy

For browsers that support older versions of the Referrer Policy
specification (Edge and Safari), using a value from a newer version of
the specification will result in those browsers falling back to a
default of "default".

So allow $wgReferrerPolicy to have fallbacks if the browser does not
recognize the currently set value. It will emit <meta> tags for each
value in the array, but in reverse order, as browsers will use the last
one that they recognize.

Bug: T180921
Change-Id: Ie0f523fc6937c9ecffc8a6fc791c6b54d5a1cb06
RELEASE-NOTES-1.31
includes/DefaultSettings.php
includes/OutputPage.php