Disable WebResponse setters for post-send processing
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 8 Jun 2018 18:51:25 +0000 (14:51 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 12 Jun 2018 16:35:41 +0000 (12:35 -0400)
commit23706be35c033f994d7bede56a27305f28416660
treedd594a294acb61dc31583111eaf41c2e1bd54a4a
parentb7116e4f7d53f7fc29020d4acb02971fe8b0c302
Disable WebResponse setters for post-send processing

When jobs are being run synchronously post-send, we don't want to allow
bugs to result in a job somehow setting cookies or headers that
interfere with those that were intended to be set in the request.

Bug: T191537
Change-Id: Ib5714a17af417797140f99e41eaacbba1bfd20f4
includes/MediaWiki.php
includes/WebResponse.php
tests/phpunit/includes/MediaWikiTest.php