Commit graph

21232 commits

Author SHA1 Message Date
David Lynch 709e791acd Edit check: let ecenable bypass the account age requirement
Clean up accountShouldSeeEditCheck since nothing is calling it but the
new method inside BaseEditCheck

Follow-up to e947e53f98

Change-Id: Ic55187bb77f5ef003369313b76a65897fb3be392
2024-09-09 10:52:50 -05:00
jenkins-bot b19679e381 Merge "Edit check: stop from appearing outside the main namespace" 2024-09-09 13:29:48 +00:00
jenkins-bot 6125b965e7 Merge "Update VE core submodule to master (8bac83777)" 2024-09-09 13:17:58 +00:00
Translation updater bot 3dbeb7f4ae
Localisation updates from https://translatewiki.net.
Change-Id: Idaa94c3ee8592df8d6756fd9ab6c0c3cadc8e3a9
2024-09-09 09:23:26 +02:00
Ebrahim Byagowi 4330014577 Avoid use of deprecated wfGetUrlUtils
Change-Id: Ica961fd161898292f0bfe33c1980329ca548c680
2024-09-08 09:55:09 +03:30
Bartosz Dziewoński d9a99e89a2 Update VE core submodule to master (8bac83777)
New changes:
8a5b36cd2 Localisation updates from https://translatewiki.net.
15cb24580 Localisation updates from https://translatewiki.net.
1ec0304ef Localisation updates from https://translatewiki.net.
e9f9f3f51 Localisation updates from https://translatewiki.net.
8bac83777 Localisation updates from https://translatewiki.net.

Change-Id: Id346e2a99c7b6b681129051e0bca55ae4d354f5b
2024-09-06 22:32:29 +00:00
Translation updater bot 076f27a0fc
Localisation updates from https://translatewiki.net.
Change-Id: I6e2ab7152af61b57d8896a997edf66d47fc0e3b8
2024-09-06 09:40:46 +02:00
Ed Sanders cefa56ecb9 Use fixed font size for UI componenets in Vector 22
Use rem's to set the font size of the toolbar and local/global
overlays, as the font size is now variable in that skin.

Bug: T373875
Change-Id: Ib2511debd01dbc0cf03ff6d92cd9bfe71078c387
2024-09-05 11:21:08 +01:00
Translation updater bot 33182de13e
Localisation updates from https://translatewiki.net.
Change-Id: Ic31aa69079694187a727f3821de37abe83cf0a8c
2024-09-05 09:25:55 +02:00
David Lynch e947e53f98 Edit check: stop from appearing outside the main namespace
This was accidentally removed in d69d366469 during its refactor.

Because of the change to how checks are decided to be shown, I've made
AddReferenceEditCheck always be required -- later code in
hasAddedContentNeedingReference assumes that it's loaded anyway, so a
wiki deciding to configure it to not load at all for some account types
would have broken saving.

Bug: T373692
Change-Id: I007cd705451581ebacfa12e8ac5502bd1bc56a38
2024-09-04 10:33:22 -05:00
Translation updater bot 5a781dc3c8
Localisation updates from https://translatewiki.net.
Change-Id: I52e344a4fc22881ed095be0a4a89868c425c3613
2024-09-04 09:17:09 +02:00
Translation updater bot d04e86c780
Localisation updates from https://translatewiki.net.
Change-Id: I3c2e8d837b777be7c977070e5317fea359bef75d
2024-09-03 09:33:58 +02:00
Translation updater bot d29293e043
Localisation updates from https://translatewiki.net.
Change-Id: I2417fa6f554a48aeadc0164ea856a15257d1c8e6
2024-09-02 09:21:51 +02:00
libraryupgrader e58ca67d8c build: Updating micromatch to 4.0.8
* https://github.com/advisories/GHSA-952p-6rrq-rcjv

Change-Id: I4761a8fed5ca2241036f4e065a733a39f2462630
2024-08-31 09:05:56 +00:00
Translation updater bot dedd30bfef
Localisation updates from https://translatewiki.net.
Change-Id: I103ce5ad2adc11b48a2d7ed8ea72e4e892dc6b9f
2024-08-30 09:20:39 +02:00
jenkins-bot f363c943cc Merge "Allow &veaction=editsource to load 2017WTE regardless of user prefs" 2024-08-30 06:20:42 +00:00
jenkins-bot 1b777d45e0 Merge "Fix exception editing cross-wiki redirects" 2024-08-29 22:54:21 +00:00
C. Scott Ananian c026712a40 Ensure page is reloaded after edit using Parsoid if appropriate
This passes the option to ApiParse which will ensure that it uses
the ArticleParserOptions hook so that the parser options used after
reload match the ones originally used to render the article.

Bug: T373212
Depends-On: I906affc8d2335b7bb48dff3a4b061fcf86b71cee
Change-Id: I18147254f1ac5f08a57e85eb2f031df7701dccef
2024-08-29 11:41:18 -04:00
James D. Forrester 6d527b9f0a Replace use of deprecated global URL functions with wfGetUrlUtils()
This is a quick fix rather than the proper DI fix.

Bug: T319340
Change-Id: Iea0d8a6b34aa4aea1c325868365d2bb65fa65eed
2024-08-28 15:10:21 -04:00
Mahmoud Al-Qudsi a9278f654b Fix exception editing cross-wiki redirects
As described in T326169, when editing a (manually created) cross-wiki redirect,
VisualEditor will throw a null dereference exception causing it to fail to load
in the browser (looking like it is just taking forever to load).

This patch prevents the exception from occurring by not attempting to write to
the null object.

Bug: T326169
Change-Id: I50fa803c7b4ce65dac1fe345431d8b8f9d0b3d61
2024-08-28 13:27:09 -05:00
Translation updater bot 471e84a0d9
Localisation updates from https://translatewiki.net.
Change-Id: Ic7ad4140ac4eeded1de5331ad1d57f17b2cd11ca
2024-08-28 09:41:04 +02:00
Bartosz Dziewoński b4fc696ad5 Reattempt save as temporary user only when we were previously anon
…but not when we were previously logged-in. Temporary accounts no
longer leak IP addresses, but it's still not nice to lose attribution
of edits by logged-in users.

Follow-up to 317d6dd724.

Bug: T345975
Change-Id: I24c786c0f060921f773e1d6d1c7463f1cc79aab2
2024-08-27 23:23:11 +02:00
jenkins-bot 24c53a321e Merge "Reattempt save when refreshing temporary user if session expired" 2024-08-27 13:49:58 +00:00
Translation updater bot 9edc3db1ef
Localisation updates from https://translatewiki.net.
Change-Id: Ibee782a169ba7548466f54e321441c0299ecd673
2024-08-27 09:49:07 +02:00
Bartosz Dziewoński c93d4a9695 Allow &veaction=editsource to load 2017WTE regardless of user prefs
Bug: T239796
Change-Id: I0391d44d15763980cfb48b2945bac35e5b08e930
2024-08-26 20:13:36 +02:00
Translation updater bot d9c7c05e32
Localisation updates from https://translatewiki.net.
Change-Id: I5eeb703911cd5914a71d9241be0eb97ebbd4df5c
2024-08-26 09:23:43 +02:00
jenkins-bot 0392462ba3 Merge "build: Update MediaWiki requirement to 1.43" 2024-08-24 20:49:05 +00:00
Translation updater bot ebac60d114
Localisation updates from https://translatewiki.net.
Change-Id: Ib3b161f7d0db89f85d6259796b4c21f16dffaba9
2024-08-23 09:47:37 +02:00
James D. Forrester 07c0ab5a35 build: Update MediaWiki requirement to 1.43
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I58cc6a04628f8b443b7a8ae46752151bbcfd6305
2024-08-22 18:48:21 -04:00
jenkins-bot 69d4d869d8 Merge "tests: Force templateDataInstalled condition for MWTemplateTitleInputWidget" 2024-08-22 19:32:02 +00:00
jenkins-bot eae9fc876a Merge "Edit check: center the text in the proofreading toolbar" 2024-08-22 12:28:14 +00:00
Translation updater bot 31b7db023a
Localisation updates from https://translatewiki.net.
Change-Id: If835daa3817582d7a15d2afff15224515b2b6080
2024-08-22 09:23:20 +02:00
David Lynch 16c2dd919b Edit check: center the text in the proofreading toolbar
Bug: T341308
Change-Id: I5e12cefe690c2b9fba7cd7998a11723931575465
2024-08-22 01:23:27 -05:00
Timo Tijhof 07a132d310 tests: Force templateDataInstalled condition for MWTemplateTitleInputWidget
Change-Id: I730a0e53547d4e7510fcec09905ea98030490c0d
2024-08-22 00:29:16 +01:00
Translation updater bot 55301c4596
Localisation updates from https://translatewiki.net.
Change-Id: Iba58cf8cf9a4e420145a8fd9cbc6b7dbc73ee76d
2024-08-21 09:24:20 +02:00
Translation updater bot 762a5c0ff9
Localisation updates from https://translatewiki.net.
Change-Id: I71885816cfe342b8cba5b6e5d443dbee1f12a859
2024-08-19 09:25:55 +02:00
jenkins-bot fcce9b0b89 Merge "Move edit section colorings to core" 2024-08-17 14:19:55 +00:00
jenkins-bot b54f4ebb28 Merge "Fix getTemplateDataQueryTitle() when the title ends with a newline" 2024-08-16 15:30:57 +00:00
Translation updater bot 34c9961e03
Localisation updates from https://translatewiki.net.
Change-Id: I6c6fc1c5215f7c077b6318a73f9e3667bd1a0a79
2024-08-16 09:30:10 +02:00
Translation updater bot fd15b8b6de
Localisation updates from https://translatewiki.net.
Change-Id: I7c303550e44dd07c1cca634d5f1f8d7f252bff77
2024-08-15 09:21:17 +02:00
Ebrahim Byagowi 84557b6d13 Move edit section colorings to core
Bug: T372436
Depends-On: I691dbef2313e006de4b7d096232c531d81bdd380
Change-Id: If6c606cd6d3816b9286aee0ffd4d96be704521d4
2024-08-14 22:24:00 +03:30
Translation updater bot bc43b809ff
Localisation updates from https://translatewiki.net.
Change-Id: Ic372ec473c68033fd3e24c1665429ce1760f8860
2024-08-14 09:24:10 +02:00
Jamie Kuppens 317d6dd724 Reattempt save when refreshing temporary user if session expired
A notice already appears and informs the user of the visual editor that
they're not logged in if their session has ended. Showing an additional
error dialog informing the editor of this when saving changes is not
needed.

Bug: T345975
Change-Id: I20a904dbc6d3c2f0d08e4ceea27e35ee1b65bb71
2024-08-13 16:33:55 -07:00
Translation updater bot dfb4826617
Localisation updates from https://translatewiki.net.
Change-Id: I6f3866b03f41b31f3ff10084f9b1556bc5c0b72b
2024-08-13 09:52:17 +02:00
Translation updater bot ca1586a6ed
Localisation updates from https://translatewiki.net.
Change-Id: Ic93b15e04deb2e2795d6163d62be4fca9d721522
2024-08-12 09:23:31 +02:00
libraryupgrader d2bcf4a8bf build: Updating mediawiki/mediawiki-codesniffer to 44.0.0
Change-Id: If09c329ac41b2c30a125cf664ad2e0d9fb7ad8be
2024-08-10 16:16:11 +00:00
Bartosz Dziewoński 326b4a2804 Replace deprecated PermissionManager::getPermissionErrors() and friends
Change-Id: Ic217af5f9766ae2d7850597a4aec1a890d58766f
2024-08-09 13:35:29 +00:00
Translation updater bot 459a6e2605
Localisation updates from https://translatewiki.net.
Change-Id: Ie74c95168186a14433fd1c38f5eabe1dbce6366e
2024-08-09 09:37:31 +02:00
jenkins-bot 00e4b4cd65 Merge "Edit check: another counter for the save process" 2024-08-08 08:08:57 +00:00
Translation updater bot b0ac08ecce
Localisation updates from https://translatewiki.net.
Change-Id: I1e36f4ea3f9da58a34b988e331db64eb2a47556c
2024-08-08 09:20:55 +02:00