Commit graph

304 commits

Author SHA1 Message Date
Translation updater bot 753f224dc9 Localisation updates from https://translatewiki.net.
Change-Id: I413c03ab59d86b9c7916c20b9aea261e3921f6d3
2021-06-22 08:09:57 +02:00
jenkins-bot 988570195f Merge "Allow template sandboxing in sanitized-css pages" 2021-06-11 13:59:56 +00:00
Inductiveload fcf12308be Allow template sandboxing in sanitized-css pages
This adds 'sanitized-css' content model pages to the list of default-sandboxed
content models  provided by TemplateSandbox.

Bug: T279021
Depends-On: I702ffb9b196fe44a5bc099c7ee02b0e0e3fef283
Change-Id: I1e5d224c7c20ab49389744c99adcffd1971f9b08
2021-06-08 21:31:08 +01:00
libraryupgrader f7b9217d47 build: Updating browserslist to 4.16.6
* https://npmjs.com/advisories/1747 (CVE-2021-23364)

Change-Id: I49e9becddd99b844cb6a9cfa5197a584443b6c51
2021-05-26 05:10:16 +00:00
Translation updater bot 92d0169f7a Localisation updates from https://translatewiki.net.
Change-Id: I05ea313c55f2845ad7aa19def9e6521b451065bd
2021-05-25 08:54:22 +02:00
Translation updater bot 517724b31e Localisation updates from https://translatewiki.net.
Change-Id: I5d78b1e8251b28a3a48a7122c7e6ef173cb9c93d
2021-05-24 09:55:34 +02:00
libraryupgrader 023998a9ff build: Updating npm dependencies
* grunt: 1.3.0 → 1.4.0
* lodash: 4.17.19 → 4.17.21
  * https://npmjs.com/advisories/1673 (CVE-2021-23337)

Change-Id: I93988ea93c609e6a861f364d0edfdc1f18f6c1a2
2021-05-14 05:06:58 +00:00
libraryupgrader b2ee2313c3 build: Updating composer dependencies
* mediawiki/mediawiki-codesniffer: 35.0.0 → 36.0.0
* php-parallel-lint/php-parallel-lint: 1.2.0 → 1.3.0

Change-Id: I0105b425acd5e65b15c789015cdc9144a2d4f8f1
2021-05-04 09:54:28 +00:00
Reedy e429d5d1ab Remove deprecated config variables
Bug: T277962
Change-Id: Idc1bd573d892a38a79c5c77917dd1fe1c7653a51
2021-04-19 01:02:32 +01:00
libraryupgrader 5e42985fc5 build: Updating eslint-config-wikimedia to 0.20.0
Change-Id: Ia58f7b4bb5934f83ec7666ad1b649ca20511add8
2021-04-14 08:39:21 +00:00
Translation updater bot 41c5ce5980 Localisation updates from https://translatewiki.net.
Change-Id: Idb1f04863c20dc98af17549561174b5ce80e58f8
2021-04-12 08:38:55 +02:00
Umherirrender af68773fd1 build: Swap deprecated @codingStandardsIgnore to phpcs:ignore
Bug: T278594
Change-Id: I356955fd31ffa77f8527212a23ddb829941b9505
2021-03-27 00:59:00 +01:00
Translation updater bot df59bee0f6 Localisation updates from https://translatewiki.net.
Change-Id: Ic9f4fc21437c481438778336c699e6eb5dd30be1
2021-03-24 08:30:50 +01:00
Reedy 57eba81d96 Rename TemplateStylesPropertyBlacklist and TemplateStylesAtRuleBlacklist
* $wgTemplateStylesPropertyBlacklist is now $wgTemplateStylesDisallowedProperties
* $wgTemplateStylesAtRuleBlacklist is now $wgTemplateStylesDisallowedAtRules

Bug: T277962
Change-Id: I2eb120f5c52db1ea9c49bcaf04955771987c1d62
2021-03-21 05:06:51 +00:00
Translation updater bot 5aa7613c1c Localisation updates from https://translatewiki.net.
Change-Id: I2ea8a8f9472c84b861c49b2cd3e6da6ea771b288
2021-03-15 08:41:32 +01:00
libraryupgrader 8183db4d4e build: Updating eslint-config-wikimedia to 0.19.0
Change-Id: If10060ec8a4c17bec8296bf20367956067819c0e
2021-03-14 17:48:55 +00:00
libraryupgrader fb1a1d70c5 build: Updating eslint-config-wikimedia to 0.18.2
Change-Id: I7947cb9901dba928752047650e083682187a2205
2021-03-08 03:06:02 +00:00
Translation updater bot fcaa2407ab Localisation updates from https://translatewiki.net.
Change-Id: Ibab1b39c2bedf59a6344748e2bd6c4d29d8b503d
2021-02-25 08:39:28 +01:00
jenkins-bot 72ebefd8c5 Merge "Replace use of Parser::$mPreprocessor, deprecated in 1.35" 2021-02-25 02:46:41 +00:00
C. Scott Ananian 9b7f131d8e Replace use of Parser::$mStripState, deprecated in 1.35
The replacement, Parser::getStripState(), was added to MediaWiki in
1.34.  This extension already requires MediaWiki >= 1.35.

Bug: T275160
Change-Id: I429da35ca4e276c852b8d6ee102ff19f742c22c0
2021-02-19 17:09:55 -05:00
C. Scott Ananian ef286c1cb7 Replace use of Parser::$mPreprocessor, deprecated in 1.35
This code was a valiant but futile attempt to break a cyclic reference
cycle, copied no doubt from similar code in
tests/phpunit/includes/parser/TagHooksTest.php in core.  However,
there are other cyclic references to Parser, including in StripState,
and unit test code shouldn't really be trying to optimize for memory
usage in any case.

Bug: T275160
Change-Id: I0917290d4ade8675b2d0eac17a22682c9c1b4a85
2021-02-19 12:36:35 -05:00
C. Scott Ananian 2c3e8a8097 Replace use of Parser::$mTagHooks, deprecated in 1.35
The replacement, Parser::getTags(), has been in MediaWiki for over a decade
(since sometime before 1.11).

Bug: T275160
Change-Id: Ib708e3f84aa871de84aa56561c875f4a85bb000c
2021-02-18 17:23:22 -05:00
Translation updater bot 238e0cfa9f Localisation updates from https://translatewiki.net.
Change-Id: I10efa78974f45f1e1c10dc6aa151ad027c0fb74e
2021-02-11 08:40:15 +01:00
Translation updater bot 31eba767d8 Localisation updates from https://translatewiki.net.
Change-Id: I1d4630b73eefcb3ae5078b3b508a4d3b7924d926
2021-02-08 08:45:22 +01:00
libraryupgrader bc8cc1253a build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 34.0.0 → 35.0.0
* mediawiki/minus-x: 1.1.0 → 1.1.1

npm:
* eslint-config-wikimedia: 0.17.0 → 0.18.1

Additional changes:
* Added the "composer phan" command to conveniently run phan.

Change-Id: I8602db6c3312c0ecfd647bf80808ece7121c417b
2021-01-30 14:54:04 +00:00
Translation updater bot b970d40d51 Localisation updates from https://translatewiki.net.
Change-Id: I958b9e123f953f4aaf86b1a3f17d50e061432100
2021-01-18 08:39:57 +01:00
Reedy 24cb62e044 Update use of css-sanitizer classes for PHP 8.0 compat
Bug: T268862
Depends-On: Ia33f51d54f0e0f51249c999c2bd6a0091aac0b66
Change-Id: I13ad3abe70b693886a79ab37c64f34e0113e9071
2021-01-08 19:03:26 +00:00
libraryupgrader f3ff772296 build: Updating mediawiki/mediawiki-phan-config to 0.10.6
Change-Id: Id74a9ad4e10a69a41954999e34f8179f398872ee
2020-12-20 03:50:55 +00:00
libraryupgrader 27a60e0e72 build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.10.4 → 0.10.5

npm:
* ini: 1.3.5 → 1.3.7
  * https://npmjs.com/advisories/1589

Change-Id: Ia29ca74e1ddaf47919154a473516396521c1c241
2020-12-11 11:10:39 +00:00
Translation updater bot e33276baec Localisation updates from https://translatewiki.net.
Change-Id: If01143f8a5db0320282c860b865d27e7a451bb88
2020-12-07 08:47:42 +01:00
libraryupgrader 72f5bffa81 build: Updating mediawiki/mediawiki-codesniffer to 34.0.0
Change-Id: Ibc27a91c218a93efb10e4d4a9e8c1a9ee6fa7a56
2020-12-07 03:31:09 +00:00
libraryupgrader 49bbea7ec1 build: Updating mediawiki/mediawiki-phan-config to 0.10.4
Change-Id: Iafd4c78988f4a62a28bf4ad2cde813d9faff92de
2020-11-20 20:03:38 +00:00
Thiemo Kreuz 7af3fcc8e3 Trivialize TemplateStylesHooks::getConfig()
This is cached anyway in the ConfigFactory.

This patch also includes a few very minor cleanups in the
same file.

Change-Id: Iec44dae1d6a69e0f28d62f875a22f30f8b10cf78
2020-11-11 16:44:09 +01:00
libraryupgrader f17b06db0a build: Updating mediawiki/mediawiki-codesniffer to 33.0.0
Additional changes:
* Dropped .inc files from .phpcs.xml (T200956).
* Added the `wikimedia/mediawiki` profile in .eslintrc.json (T262222).

Change-Id: I19196f86a18cc4be7ac9e24d8c84a2ed4c8121f4
2020-11-04 13:51:41 +00:00
Translation updater bot 58aea1a6af Localisation updates from https://translatewiki.net.
Change-Id: I13d169b1275a510c9325dab85497b27013e1942c
2020-10-21 08:27:57 +02:00
Gergő Tisza 53e0377986 Fix type doc for the extra wrapper
A token is a component value, but not all component values are tokens.
Follows up I5dc04611f.

Bug: T258093
Change-Id: I2292a5dbedf1607f9ad25d2b4021a225a202d407
2020-10-19 08:37:08 +00:00
jenkins-bot 8edccc8d4c Merge "Fix wrapper="…" failing for more complex selectors" 2020-10-15 17:03:02 +00:00
Thiemo Kreuz b76898e848 Fix remaining PHPCS warnings about missing PHPDocs
Change-Id: Ic1c638902066dd5bb9333a2607c9ff84093fb4a2
2020-10-15 08:53:57 +02:00
Thiemo Kreuz 1c0687c850 Fix wrapper="…" failing for more complex selectors
For example, <templatestyles wrapper="a[href]" /> fails with an
InvalidArgumentException very late in the process, long after
the actual validation in TemplateStylesHooks::validateExtraWrapper()
was done. This happens because validateExtraWrapper() works on a
proper tree (where the [href] from the example is a nested object),
but flattens this tree in the end via toTokenArray(). This
flattened array ends in StyleRuleSanitizer::doSanitize() where it
is added to a ComponentValueList – which expects a tree.

The only change in this patch is that the object structure is not
flattened any more. That's all.

Bug: T258093
Change-Id: I5dc04611f91fe672da706f31fa8d0c254e3123d3
2020-10-15 06:51:21 +00:00
libraryupgrader efdcaa278c build: Updating mediawiki/mediawiki-phan-config to 0.10.3
Additional changes:
* Consolidated .phpcs.xml encoding to "UTF-8" (T200956).
* Dropped .php5 files from .phpcs.xml (T200956).

Change-Id: I40902ceda27db7781045e1c721d963e09f19da21
2020-09-25 10:52:28 +00:00
Translation updater bot 1202aafa3b Localisation updates from https://translatewiki.net.
Change-Id: I1171dd13a76bcd18b3f93f53788c7d49b1591cc9
2020-09-24 08:29:49 +02:00
Translation updater bot b325abfdd5 Localisation updates from https://translatewiki.net.
Change-Id: I29347721a43cde11ce3e168cf576c02e28912db7
2020-09-21 08:30:37 +02:00
Umherirrender f67fbc1394 build: Use existing eslint also for json linting
Bug: T220036
Change-Id: I7e9c43ea56366785b8cb94c9c6863b87841a6135
2020-09-11 23:49:03 +02:00
libraryupgrader 8bff1e5bba build: Updating npm dependencies
* eslint-config-wikimedia: 0.16.2 → 0.17.0
* grunt: 1.2.1 → 1.3.0

Change-Id: I203a380057f62c181a40cfe86372595d151d70f8
2020-09-04 23:25:13 +00:00
Translation updater bot 78345b163d Localisation updates from https://translatewiki.net.
Change-Id: If222d73b80c2cffbd15a96f80c3e64e7418701d8
2020-08-24 11:59:14 +02:00
Translation updater bot e9b7001a93 Localisation updates from https://translatewiki.net.
Change-Id: I6ddc47e9a4bfadec70282f38a349cc37b5c35c38
2020-08-10 09:02:02 +02:00
Translation updater bot abc1cb5a4d Localisation updates from https://translatewiki.net.
Change-Id: I61ff62ebf7e5fba68cade0c8c05f175be3bf43d7
2020-07-27 08:38:34 +02:00
Translation updater bot 9bde861add Localisation updates from https://translatewiki.net.
Change-Id: Ic9e748382babd6085661924b30d6f793a8def927
2020-07-21 09:13:40 +02:00
libraryupgrader c434758822 build: Updating grunt to 1.2.1
Change-Id: I74d2a2da678d817223929649f75288bb85f8af76
2020-07-19 02:04:48 +00:00
libraryupgrader f5fb5c3579 build: Updating npm dependencies
* eslint-config-wikimedia: 0.15.3 → 0.16.2
* grunt-eslint: 22.0.0 → 23.0.0

Change-Id: I1025318076083519745263b796c44474b6c336ca
2020-07-17 05:24:58 +00:00