Page MenuHomePhabricator

Add remaining cookie config variables to JavaScript interface
Closed, ResolvedPublic


This is necessary to write cookies correctly from JavaScript. At least one extension (wgCookiePath) is already exporting it for this reason.

Version: 1.22.0
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:49 AM
bzimport set Reference to bz49154.

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.

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