Commit graph

106037 commits

Author SHA1 Message Date
Alexander Vorwerk
04dfdc3653 Hard deprecate User::setOption()
deprecated since 1.35

Bug: T277818
Change-Id: Ic251d624e5d6fa857aa92f9c5dd3df44714ac610
2021-09-26 17:18:54 +02:00
jenkins-bot
adee073758 Merge "Inject UserFactory into special pages" 2021-09-26 04:54:00 +00:00
Alexander Vorwerk
9a7637e9e3 Soft deprecate PageProps::getInstance()
PageProps has been converted into a service with dependency injection.
PageProps::getInstance() relies on global state and thus should be
avoided.

Bug: T289544
Change-Id: Iab3e94059cb6d2d11950ae870a1713f4b3a738fb
2021-09-26 00:22:26 +00:00
jenkins-bot
3ff9183d24 Merge "resourceloader: Remove wgCommentByteLimit from mw.config" 2021-09-25 21:10:40 +00:00
jenkins-bot
d18082bfd6 Merge "GlobalFunctions: Test clean up for wfExpandUrl()" 2021-09-25 20:54:03 +00:00
Timo Tijhof
3cfd632b9a GlobalFunctions: Test clean up for wfExpandUrl()
Prep for a larger change to keep review small and simple.

Change-Id: I31f1403ab40c79ab270c4170d2afd6e885a2caac
2021-09-25 20:06:57 +00:00
DannyS712
8855258db8 resourceloader: Remove wgCommentByteLimit from mw.config
Always null, and no longer used. It was deprecated in favour of
wgCommentCodePointLimit which should be used instead.

Originally added in 2018 for T185948 as 255 or null, depending on
$wgCommentTableSchemaMigrationStage. In 2019, (I1479c73774e, T166733),
the comment migration was removed and the variable became always null,
and in change I876b02f45fc all remaining uses were removed in favour
of wgCommentCodePointLimit.

Bug: T291730
Bug: T227047
Change-Id: I0d48985026c96b9a5734a6409c88dc9cd6b2ae8a
2021-09-25 20:05:02 +00:00
jenkins-bot
a6e125c109 Merge "Chinese Conversion Table Update 2021-2" 2021-09-25 18:11:37 +00:00
Alexander Vorwerk
0f2008bcd8 Inject UserFactory into special pages
Change-Id: I2ca5c6bdec1bbf0c64270e55d29151f75935d480
2021-09-25 19:06:57 +02:00
jenkins-bot
068f23780e Merge "ResourceLoader: remove reference to resolveIndexedDependencies()" 2021-09-25 16:50:05 +00:00
DannyS712
b42e1abfb9 PHPUnit: enable convertDeprecationsToExceptions
PHPUnit 8.5.21 no longer converts deprecations to exceptions by default.
However, we rely on such conversions in our tests, otherwise there are
failures:

Failed asserting that exception of type "PHPUnit\Framework\Error\Deprecated" is thrown.

The upstream change is:
fac02620f6

Bug: T291731
Co-Authored-byː Antoine Musso <hashar@free.fr>
Change-Id: Ifacf26905a7fa24ea3aafad79e012ddfb0a797bb
2021-09-25 10:05:18 +00:00
DannyS712
9617f177d2 ResourceLoader: remove reference to resolveIndexedDependencies()
That JavaScript function was inlined

Follow-up: I6c71ed70b3b308d7b2f67924637e23b08467035f
Change-Id: I1ae2dc01cc1755223283e3df2ab543e9c65cdc30
2021-09-25 09:12:12 +00:00
jenkins-bot
3b5c598143 Merge "RELEASE-NOTES-1.38: Tweak wgBrowserFormatDetection introduction" 2021-09-25 00:49:10 +00:00
jenkins-bot
ca9e9c0dc6 Merge "Remove $wgShellLocale, always use C" 2021-09-25 00:48:14 +00:00
jenkins-bot
fc95e1d87f Merge "Update wikimedia/shellbox to 2.1.0" 2021-09-25 00:34:51 +00:00
James D. Forrester
6b63f11dec RELEASE-NOTES-1.38: Tweak wgBrowserFormatDetection introduction
Change-Id: I09af2f08c93484877fe195f1d5f253ea9e9533f1
2021-09-24 17:31:04 -07:00
Tim Starling
65b1b6b56a Remove $wgShellLocale, always use C
$wgShellLocale was a flawed solution to the problem of locale
dependence. MediaWiki has its own concept of locale (the Language
hierarchy) and any kind of dependence on the server's libc locale is
incorrect and harmful, leading to bugs. Developers have an expectation
that functions like strtolower() will work in a certain way, and
respecting the locale set in the environment at install time violates
this expectation.

The problems with using C as a locale, which led to $wgShellLocale, are:

* escapeshellarg() will strip non-ASCII characters. This can be worked
  around by not using it. The security vulnerability it was trying to
  fix can be prevented in another way.
* Shell commands like rsvg will fail to correctly interpret UTF-8
  arguments. This is the reason for the putenv(). On Linux, this can
  be fixed by using C.UTF-8, which we didn't know at the time. On
  Windows, the problem is not relevant (there are unrelated issues
  with UTF-8 arguments).

Bug: T291234
Change-Id: Ib5ac0e7bc720dcc094303a358ee1c7bbdcfc6447
2021-09-24 17:25:01 -07:00
jenkins-bot
eb1421eb6e Merge "resourceloader: Add test for getVersionHash() in debug mode" 2021-09-25 00:24:45 +00:00
Kunal Mehta
041dadd69d Update wikimedia/shellbox to 2.1.0
Depends-On: Ie53f3d000d9d8ae1617b7bdeb454586e8302e240
Change-Id: I7d7285d6ee8b107bf77a68354bb3861d10174258
2021-09-24 17:08:17 -07:00
Timo Tijhof
fc5403e6a8 resourceloader: Add test for getVersionHash() in debug mode
Folllows-up I0e63eef4f85b13.

Bug: T235672
Change-Id: I012ea8b1a40646ce7522c26d11139eddaa2067d1
2021-09-25 00:08:51 +01:00
lens0021
8eced80e24
docs: LogFormatter: $plaintext and $irctext are booleans
It seems all references to them assume the values as booleans.
Code search: https://codesearch.wmcloud.org/deployed/?q=%5C%24this-%3E(plaintext%7Circtext)&i=nope&files=LogFormatter(test)%3F%5C.php&excludeFiles=&repos=

Change-Id: I9bde1f7b1cac0ba9c0b002fd1b57a4407a4912ce
2021-09-25 03:37:43 +09:00
jenkins-bot
7cef14fa6a Merge "Update composer/semver from 3.5.4 to 3.5.5" 2021-09-24 18:32:08 +00:00
jenkins-bot
dca54f923e Merge "Update composer/spdx-licenses from 1.5.4 to 1.5.5" 2021-09-24 18:31:12 +00:00
jenkins-bot
3b7ca0748a Merge "build: Add /cache to eslintignore" 2021-09-24 18:20:36 +00:00
jenkins-bot
82f5a51309 Merge "Stub threshold: Remove CSS" 2021-09-24 18:02:18 +00:00
jenkins-bot
8ef3c2f7a7 Merge "Remove stylelint-disable-next-line plugin/no-unsupported-browser-features" 2021-09-24 17:53:14 +00:00
jenkins-bot
47d31038eb Merge "Allow skipping $wgMaxImageArea check" 2021-09-24 17:35:49 +00:00
jenkins-bot
acd6f7ad99 Merge "MovePage: don't create a recent change for a redirect" 2021-09-24 17:22:39 +00:00
Ammarpad
d5e40efb64 Stub threshold: Remove CSS
Follow-up for: I5c9ea04a9deca136bb7210f07200d18f97fd6686

Bug: T284917
Change-Id: Ia465db6232622dcd74088bf2b5f6ba674882d555
2021-09-24 16:47:08 +01:00
Bartosz Dziewoński
d1edf04720 Remove stylelint-disable-next-line plugin/no-unsupported-browser-features
It is causing build failures as follows:

    Running "stylelint:src" (stylelint) task

    resources/src/mediawiki.special.preferences.styles.ooui.less
     33:2  ✖  Needless disable for "plugin/no-unsupported-browser-features"  --report-needless-disables
     35:2  ✖  Needless disable for "plugin/no-unsupported-browser-features"  --report-needless-disables
     48:2  ✖  Needless disable for "plugin/no-unsupported-browser-features"  --report-needless-disables

I don't know why or how they became needless.

Change-Id: I14d9fdcc97b260b1fd67e67349214c7947733324
2021-09-24 15:38:02 +02:00
jenkins-bot
edad7b3b41 Merge "resourceloader: Document reasons for forced downgrades to Basic" 2021-09-24 09:15:41 +00:00
jenkins-bot
44528aee87 Merge "checkboxShift.js: fix @class documentation" 2021-09-24 08:31:54 +00:00
Translation updater bot
02dda37deb Localisation updates from https://translatewiki.net.
Change-Id: I2797989a984fef975ffcb1c6ab2a20284bee64e6
2021-09-24 08:15:33 +02:00
Timo Tijhof
5140e05363 resourceloader: Document reasons for forced downgrades to Basic
Bug: T283726
Bug: T178356
Change-Id: I08f47cea318829c04c1aac248b3a6172b38a51fe
2021-09-24 03:34:37 +00:00
DannyS712
33d542a319 checkboxShift.js: fix @class documentation
Should be "mw.plugin.page.ready" not "mw.plugin.pageready"

Change-Id: Iea0f166d21c738b377948ac88dd6d29ee230f546
2021-09-24 03:00:12 +00:00
Petr Pchelko
ee4e19498f MovePage: don't create a recent change for a redirect
Follow-up on e33f6b4b8

Bug: T291677
Change-Id: Ibea22700f5e5d2a8a8bd5995474b45ab847d2ba4
2021-09-23 19:58:04 -07:00
Umherirrender
769bdbf091 docs: Fix nullable documentation for class properties
Change-Id: I6d0577124d852103f485ffdc819876a13f6641c3
2021-09-24 00:54:53 +00:00
jenkins-bot
1ed7ad4ffb Merge "sql.php: Fix typos" 2021-09-24 00:17:03 +00:00
Timo Tijhof
035af05c60 build: Add /cache to eslintignore
Bug: T291674
Change-Id: I0d0b78d59a02023b97249c116d8754ad9d4be5e0
2021-09-24 00:47:22 +01:00
DannyS712
2d1c35caca resourceloader: drop some unneeded startup compatibility checks
Remove check for window.JSON, redundant to check for es5
strict mode.

Remove check for window.addEventListener, we also check for
querySelector which is a newer part of the same API.

Bug: T290293
Change-Id: I95e62c7c1ed8f98f9df9e94fef86dda9aa77326b
2021-09-23 23:15:00 +00:00
Reedy
62181c53ac sql.php: Fix typos
Change-Id: I8de1d70039390a3e204dddac9d445187b4bf554d
2021-09-23 23:12:28 +00:00
jenkins-bot
e532630b11 Merge "mediawiki.util: Update addPortletLink to support 'text-wrapper' option" 2021-09-23 22:47:39 +00:00
Kunal Mehta
a7c90ecc5f Allow skipping $wgMaxImageArea check
If $wgMaxImageArea is false, MediaWiki will no longer check if the image
fits within that area before trying to scale it. Extensions can still
use the BitmapHandlerCheckImageArea hook to override it.

This is primarily useful when using an external scaler like Wikimedia
does with Thumbor, which decides whether it can scale images by using a
timeout rather than based on size.

Codesearch indicates that the only extension checking this setting is
PagedTiffHandler, which will be updated in Iefa67321d07f7.

Bug: T291014
Depends-On: Iefa67321d07f79d982388231e02e87e2f18aed40
Change-Id: Id10173bbddb32bc70e036f426369cfbea52cecf4
2021-09-23 15:33:37 -07:00
jenkins-bot
93e2497411 Merge "Fix code example in IDatabase::makeList() documentation" 2021-09-23 22:09:40 +00:00
jenkins-bot
62d9c60273 Merge "Detect and monitor against multiple Parser invocation during edit requests" 2021-09-23 22:01:43 +00:00
Cindy Cicalese
eed48e402b Detect and monitor against multiple Parser invocation during edit requests
Bug: T288707
Change-Id: I0cca8f9bcf1d6e964b8b06c0c4490e83f4fb1de5
2021-09-23 16:12:40 -05:00
jenkins-bot
96ad399733 Merge "htmlform: Fix checkmatrix row vertical alignment" 2021-09-23 18:52:11 +00:00
Bartosz Dziewoński
b7b1ea669e htmlform: Fix checkmatrix row vertical alignment
The labels were not aligned with the info icons.

Change-Id: Ife0accc5bf88d486a0ef6ca4e5c2303a251869f5
2021-09-23 18:19:22 +00:00
bwang
d4d7635979 mediawiki.util: Update addPortletLink to support 'text-wrapper' option
- Add Skin::getOptions and Skin::getPortletLinkOptions, which are used
  to provide skin options to mw.util.
- Add SkinFactory::getSkinOptions, which is used by
  Skin::getPortletLinkOptions.

Depends-On: Ib23360e3439abc828404c1de8e0906915ee7d8b6
Bug: T289163
Change-Id: I801e7d583cb0b0c7da51f4da503268be736bb60c
2021-09-23 19:03:36 +01:00
jdlrobson
87e96b995a Update RELEASE_NOTES with replacements
Follow up to d93f45b034

Change-Id: Icb0222486cd7ffecfa03fb893312a17e4b947b63
2021-09-23 08:59:58 -07:00