Commit graph

170 commits

Author SHA1 Message Date
Translation updater bot 3600ef7d1b Localisation updates from https://translatewiki.net.
Change-Id: I7632edeb8e0009e498726062771cbbf9217efa9e
2018-05-31 22:28:46 +02:00
Translation updater bot c46f814b61 Localisation updates from https://translatewiki.net.
Change-Id: Ieee8da80d8a11fa45048b03ceefa31b83300f76f
2018-05-30 22:24:51 +02:00
Translation updater bot f4004647e3 Localisation updates from https://translatewiki.net.
Change-Id: Ic4adfa9476ae69f8db69716a67a2d2e6770c3f82
2018-05-29 22:25:15 +02:00
Brad Jorsch d1734fbeb2 Add tracking categories for errors
Two tracking categories are added:
* A category to track stylesheets with errors. While it's usually not
  possible to save a stylesheet with errors, it can happen if a
  server-side change makes formerly-valid CSS become invalid.
* A category to track pages displaying errors from incorrect use of
  the <templatestyles/> tag.

Bug: T195676
Change-Id: I123679d4bffe36cb28aca1688c052470027ea2a8
2018-05-29 14:36:03 -04:00
libraryupgrader 351e1f715f build: Updating mediawiki/mediawiki-codesniffer to 20.0.0
Change-Id: Iadb3874ba4ea17ee1f6a86023a51a1cfed6397b0
2018-05-26 06:43:46 +00:00
Translation updater bot 3acc982785 Localisation updates from https://translatewiki.net.
Change-Id: Iac2cf3d77b0df844e9e7b489d5957ed0a6a149a3
2018-05-05 22:15:34 +02:00
Reedy 2f97a064b5 Update wikimedia/css-sanitizer to ~1.0.6
Depends-On: I9ed96a29d6db39206377b45e3d46cb2082587f75
Depends-On: I963a61135d66b8baa4638979fd21077d925276b9
Change-Id: I35c7aba4a8518bc0a9e70199aa7407a9786243c7
2018-04-18 14:17:01 +00:00
libraryupgrader 3e03d07154 build: Updating mediawiki/mediawiki-codesniffer to 18.0.0
Change-Id: I06f70505d8b53b4c5abdb07ae2d3c3a3f7cfc063
2018-04-14 06:59:50 +00:00
Translation updater bot b19692b0d0 Localisation updates from https://translatewiki.net.
Change-Id: I57139ff512b8b511f5668efbb3a301baaf066784
2018-04-10 22:15:50 +02:00
libraryupgrader d50324a37d build: Updating mediawiki/mediawiki-codesniffer to 17.0.0
The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment

Change-Id: Idbf1b6ac66fd580c243f0433025ee4e479a1e00e
2018-03-29 06:09:06 +00:00
libraryupgrader 8937ee2acf build: Updating jakub-onderka/php-parallel-lint to 1.0.0
Change-Id: Ife689d0b6688e8b7582e3b88204785fdb6c031c7
2018-03-10 06:05:48 +00:00
Kunal Mehta 37fc1df457 Use SPDX 3.0 license identifier
SPDX released version 3 of their license list (<https://spdx.org/licenses/>),
which changed the FSF licenses to explicitly end in -only or -or-later
instead of relying on an easy to miss + symbol.

Bug: T183858
Change-Id: Ic9accb2eb34bc32d455f48dfe81a91d23a2d5f5e
2018-03-03 23:27:16 +00:00
Gergő Tisza 3d6444fc77 Fix <p> wrappers in unit tests
Updates expected test results for Ide4005842c.

Bug: T186965
Change-Id: Iff92e6cd0a88d4f595148f837d892b7123b12b29
2018-03-03 23:24:21 +00:00
Translation updater bot 777bf7f55a Localisation updates from https://translatewiki.net.
Change-Id: I200d0de0696680cf9b9cd249a71959bc019baac1
2018-02-25 22:34:31 +01:00
libraryupgrader 3fe2b9011a build: Updating mediawiki/mediawiki-codesniffer to 16.0.1
Change-Id: I471871ef1816e623f396b86c37212e55b171d847
2018-02-25 11:32:20 +00:00
libraryupgrader 0551ea9412 build: Updating mediawiki/minus-x to 0.3.1
Change-Id: I9ee2ed98fdb484c4020b65b90c22014e2769826c
2018-02-18 09:52:36 +00:00
libraryupgrader a88b7c164f build: Updating mediawiki/mediawiki-codesniffer to 16.0.0
The following sniffs now pass and were enabled:
* MediaWiki.Files.ClassMatchesFilename.NotMatch

Change-Id: I4b4f7577107b869789479671e74b1fa7329979aa
2018-02-15 14:32:27 +00:00
Fomafix c1c8bed584 Add ENT_NOQUOTES to htmlspecialchars
There is no need to encode double quotes in HTML content.

Change-Id: If30adcf9196ecbfdfd1a9e21fa7b1c0bcd0e51d2
2018-02-11 17:22:27 +01:00
Reedy 203c257894 Set a requirement of MW >= 1.31
Change-Id: I4e2dc7d8d7603f89e6a9c65b5e36b7e54623ea62
2018-02-11 15:11:44 +00:00
jenkins-bot 292a347325 Merge "Swap MediaWiki\quietCall -> Wikimedia\quietCall" 2018-02-11 14:54:15 +00:00
Reedy 37c5b722d2 Swap MediaWiki\quietCall -> Wikimedia\quietCall
Bug: T182273
Change-Id: I9d5028ff04d5a8904462a8b6b0819d1974ee06a7
2018-02-11 06:03:39 +00:00
Brad Jorsch 164b8861d8 Deduplicate embedded style rules
Use the facility added in core change I055abdf4d to deduplicate the
embedded style rules.

Bug: T168333
Change-Id: I98c6d5ca4b474de8826b19355f15a5230aef5650
Depends-On: I055abdf4d73ec65771eaa4fe0999ec907c831568
2018-02-11 05:50:55 +00:00
Reedy 252fb74845 Update wikimedia/css-sanitizer
Updated
* wikimedia/css-santizer v1.0.2 -> v1.0.3

https://github.com/wikimedia/css-sanitizer/compare/v1.0.2...v1.0.3

Bug: T182273
Change-Id: Ib392edd4f7478e709f1bdf6dbc2935c1ac201bb6
Depends-On: I1966eaec7e4105f876206ab4cd606cefdaeb0add
Depends-On: Idd686bf84a44f2106ae13a31516872545946aa03
2018-02-07 11:07:44 +00:00
Brad Jorsch f99d171c80 Fix coverage
* Fix test for TemplateStylesFontFaceAtRuleSanitizer so it's actually run
* Hack up a broken Sanitizer to test a code path in
  TemplateStylesContent::sanitize() that handles such things.
* Ignore an InvalidArgumentException in TemplateStylesContent::processError()
  that's not worth checking. User input can't hit that, only logic bugs.
* Ignore TemplateStylesHooks::getConfig(), it's tested but gets called
  before PHPUnit starts counting.
* Test TemplateStylesHooksTest::onCodeEditorGetPageLanguage()
* Test $wgTemplateStylesDisable
* Test a back-compat code path in TemplateStylesHooks::handleTag().

Change-Id: I7078e5a353a624aa53fe72de7990b93a77b44cf6
2018-02-05 22:36:58 -05:00
Kunal Mehta 5ba45a396b Add @covers tags
Change-Id: Ie87849bc9dcc0b26363c9475930c967841e6a7f7
2018-02-05 18:19:30 -08:00
Kunal Mehta 9a1a06b77d Move PHP classes into includes/ directory
Change-Id: Ibc03a6c298ec3bf3bbfa435033095546db6fc5f0
2018-02-05 18:18:01 -08:00
jenkins-bot 7b025c809a Merge "Cache processed stylesheets during the parse" 2018-02-02 02:45:31 +00:00
jenkins-bot f6ad4c930a Merge "Use 'unwrap' post-cache transform instead of setWrapOutputClass( false )" 2018-02-01 22:53:14 +00:00
jenkins-bot afa1d9be5c Merge "Temporary feature flag for disabling style output" 2018-01-29 20:57:50 +00:00
Translation updater bot 7a9f16775c Localisation updates from https://translatewiki.net.
Change-Id: I1d669f32edc38b101cadabbb0c1698a46522e302
2018-01-27 22:37:53 +01:00
Translation updater bot 31b7fe0683 Localisation updates from https://translatewiki.net.
Change-Id: I809aba618ab63947c05f3169601b5951ca90dc21
2018-01-20 14:43:12 +01:00
Gergő Tisza 34a7cf83fa
Temporary feature flag for disabling style output
Bug: T176268
Change-Id: I6eae1ac80131b9f219c5a6ab3b63c1cc4fe1590f
2018-01-18 17:54:07 -08:00
Translation updater bot 3ee33ce1b3 Localisation updates from https://translatewiki.net.
Change-Id: I63b49b82ceab9f10586b3845a86f90af1e18b131
2018-01-08 22:36:20 +01:00
libraryupgrader 1cd9566e22 build: Updating mediawiki/mediawiki-codesniffer to 15.0.0
Change-Id: I9735c0d9ed1c33c4310903f62336dd61ad7d7ec3
2017-12-30 02:52:59 +00:00
Brad Jorsch 8f3d6ce2d1 Use 'unwrap' post-cache transform instead of setWrapOutputClass( false )
To reduce parser cache fragmentation, core is deprecating
$parserOptions->setWrapOutputClass( false ) in favor of
$parserOutput->getText( [ 'unwrap' => true ] );

Change-Id: I23a26ba0dfbe83007cd40e97d71a2139a5ecddc7
Depends-On: Iba16e78c41be992467101e7d83e9c3134765b101
2017-12-22 13:43:15 -05:00
libraryupgrader 7f410e88f9 build: Updating mediawiki/minus-x to 0.2.1
Change-Id: I2addf8d9381339841f17bf58a4f25bbcbff7972a
2017-12-11 09:10:22 +00:00
Translation updater bot 34a8126c09 Localisation updates from https://translatewiki.net.
Change-Id: I66c06234174ef13fb2327902477d13ea247b28da
2017-12-10 22:33:29 +01:00
Translation updater bot 14a1f72acb Localisation updates from https://translatewiki.net.
Change-Id: I3a5a341db6c6f93d5970e5f5bee86e3a93311e33
2017-12-05 09:41:52 +01:00
Brad Jorsch 9964009346 Cache processed stylesheets during the parse
If we've already processed a stylesheet once, there's no point in
processing it again.

Change-Id: I83f7aab82cc7674037974b0de43ccae6c77ff39f
2017-11-30 14:05:31 -05:00
Translation updater bot 5e29310bf1 Localisation updates from https://translatewiki.net.
Change-Id: Iebc75633323c2e92ecf7255665bd5a4a6185bfdd
2017-11-22 22:44:26 +01:00
Max Semenik dbdd8dbc85 Don't skip tests if the hook is not present
This just hides the error if something's broken with extension
registration because skipped tests don't result in a failed suite.
Instead, explode in everybody's eyes to make it clear there's a
problem.

Change-Id: I2f1e80a1fa4b99d857671c9d1061d34449764f01
2017-11-14 14:14:53 -08:00
Max Semenik 2db83c5d07 Type annotations for some tests
Also fix one function's case.

Change-Id: Ibe1750e6cfed593304e027d4eda7609a73980e62
2017-11-14 14:14:24 -08:00
Max Semenik cec2c6db0c Fix tests
Change-Id: I07d9271511e279cd0e12910673848654e6ff5eef
2017-11-14 13:55:06 -08:00
Umherirrender 53e19f4085 build: Always exclude vendor and node_modules
Change-Id: Iabe54bad6c3e12c7276364b2af4cee26933eaac9
2017-11-12 00:39:13 +01:00
Kunal Mehta 79dcc0b224 build: Adding MinusX
Change-Id: Ic43981c89348a588746b13426b1efa3a37b19b31
2017-11-03 19:50:33 -07:00
Translation updater bot e03f781a4e Localisation updates from https://translatewiki.net.
Change-Id: I5c72f130a7093a28c899daf2c970d165a95124cc
2017-10-31 22:44:34 +01:00
Translation updater bot c9f3d1cc0c Localisation updates from https://translatewiki.net.
Change-Id: I9dad0f21bb3235a7d87c2920de67055b4a264c53
2017-10-30 22:52:17 +01:00
Translation updater bot 95d4d152b9 Localisation updates from https://translatewiki.net.
Change-Id: I766cb1810675213041a2cf656a56782c0aac5075
2017-10-25 23:03:11 +02:00
Translation updater bot fd1eb9d093 Localisation updates from https://translatewiki.net.
Change-Id: I54cd6512ae925cf2f5b12d64cdfc8e73a86c10f3
2017-10-23 23:43:19 +02:00
libraryupgrader be81f3de99 build: Updating mediawiki/mediawiki-codesniffer to 14.1.0
And moved phpcs.xml to .phpcs.xml (T177256).

Change-Id: I02554f10c64f11b2b61ce08f2edf6af2287883c4
2017-10-21 04:31:06 +00:00