Last modified: 2014-05-16 21:24:52 UTC
This is necessary to write cookies correctly from JavaScript. At least one extension (wgCookiePath) is already exporting it for this reason.
We should just add all the remaining cookie variables, except wgCookieHttpOnly, which won't work in JavaScript. See bug 49156 about providing an easy to use cookie module, which requires this.
Oh, I meant to say, the extension exporting wgCookiePath is MobileFrontend.
Was fixed by 7c585b5a33d57469d19e9b176f14b84403488b73 together with bug 49156.
Except wgCookieSecure, due to technical limitations (a combination of how the config variable is modified in place and how the startup module is not protocol-relative); see https://gerrit.wikimedia.org/r/#/c/120806/