Commit graph

82590 commits

Author SHA1 Message Date
Fomafix
d65ac78277 Replace HTTP by HTTPS
* https://www.unicode.org/ instead of http://www.unicode.org/ or
  http://unicode.org/
* https://secure.php.net/ instead of http://www.php.net/ or
  http://php.net/
* https://hhvm.com/ instead of http://hhvm.com/
* https://www.iis.net/ instead of http://www.iis.net/

Change-Id: I84d818a7e0ced5ffb9485ec89a75efb28a77c1e0
2018-05-22 12:14:14 +02:00
jenkins-bot
24d1fcafba Merge "Job: Remove insert() and batchInsert(), deprecated since 1.21" 2018-05-22 03:37:41 +00:00
Translation updater bot
f6eed95d98 Localisation updates from https://translatewiki.net.
Change-Id: I2961ab68c20aadbbb601bb8191e06764be9ec443
2018-05-21 21:53:48 +02:00
jenkins-bot
5701d2e4dd Merge "registration: Validate AutoloadNamespaces keys have trailing \" 2018-05-21 19:28:51 +00:00
jenkins-bot
6b6b934c37 Merge "Use LinkRenderer instead of deprecated Linker in LogPage" 2018-05-21 19:23:53 +00:00
James D. Forrester
f8ac266287 Job: Remove insert() and batchInsert(), deprecated since 1.21
Bug: T179624
Change-Id: I0d78a926c8c513fd652a424e8a51ded20e524a4a
2018-05-21 20:10:09 +01:00
MarcoAurelio
4f8cf894f9 Add support for Tachawit (Latin script) (shy-latn)
Bug: T194047
Change-Id: If02515754857c224579519b94fe6fea27e1bd08f
2018-05-21 08:39:15 +00:00
Kunal Mehta
b332aa879d Use LinkRenderer instead of deprecated Linker in LogPage
Change-Id: Ia31706cbbffd1d03916b6c087cc3a6b218e83fe6
2018-05-20 14:05:00 -07:00
Translation updater bot
0499939a64 Localisation updates from https://translatewiki.net.
Change-Id: I0eb6cee336672321dd707f0fa84825f686fe65db
2018-05-20 22:08:02 +02:00
Kunal Mehta
bf9bc2ae49 registration: Validate AutoloadNamespaces keys have trailing \
The PSR-4 autoloader requires "AutoloadNamespaces" keys to have a
trailing \ (\\ in JSON), so add a validation check for that.

Unfortunately the validation error isn't great, since it checks to see
if the property matches patternProperties, and when it doesn't, it
claims the property isn't defined since additionalProperties is false.
But it's still better than not failing when they are missing.

Bug: T189136
Change-Id: If01bd06cdd767fb704a8ff85cdf1c143e53fa4ca
2018-05-20 12:13:05 -07:00
jenkins-bot
4c08744280 Merge "Don't require trailing slash in PSR-4 autoloader directory" 2018-05-20 18:52:31 +00:00
Mark A. Hershberger
3b85e362a4 Don't require trailing slash in PSR-4 autoloader directory
This avoids the confusing error “Fatal error: Uncaught
InvalidArgumentException” or similar.

Bug: T195211
Change-Id: Ifda59a26f8bd968a2d0acbdb157d81dc0bf6aab4
2018-05-20 18:42:27 +00:00
jenkins-bot
bc97f7ccd9 Merge "API: Use User::getCanonicalName() when validating user names" 2018-05-20 17:46:14 +00:00
Timo Tijhof
ecc812f06e mediawiki.api: Merge modules into one
These are all quite tiny and not worth providing separately
to the system as deliverable file bundles.

Mark the other mediawiki.api.* modules as alias to 'mediawiki.api'
for back-compat, with deprecation warning.

Highlights:

* Change mediawiki.api.edit.js to not use mw.user, because that
  causes a circular dependency, given mw.user also depends on
  mediawiki.api.

Bug: T192623
Change-Id: I0afdc8ab50bc1354bb5099bf39923c07eab0b665
2018-05-20 16:51:48 +02:00
jenkins-bot
a6ad278b0e Merge "filebackend: Fix undefined 'req_params' context in FileOperation log" 2018-05-20 08:55:03 +00:00
jenkins-bot
c5a1a7372f Merge "resourceloader: Add test case for ResourceLoader::getLessCompiler" 2018-05-20 08:50:48 +00:00
jenkins-bot
7ab77f0aa5 Merge "registration: Perform extra validation for mediawiki.org URLs" 2018-05-20 08:50:45 +00:00
Aaron Schulz
ec46c46787 Reduce impact of revision day/month/year variables on edit stashing
Change-Id: I0ddebdfa8a13844ab003aad577624e89daba7d6b
2018-05-20 08:11:22 +00:00
Timo Tijhof
a89095bd52 filebackend: Fix undefined 'req_params' context in FileOperation log
Follows-up 9d49075b38. Noticed various log messages on Beta Cluster
from this code path that used "{params}" even in the real messages
(not normalised). Turned out, it isn't being defined due to a typo.

Change-Id: Ib9cf644fdf413035504d9d7486696cffa7737d4a
2018-05-20 01:39:36 +02:00
Kunal Mehta
399b391f24 registration: Perform extra validation for mediawiki.org URLs
If the "url" field in extension.json is pointing to mediawiki.org,
perform some extra validation steps:
* Require HTTPS
* Require the `www.mediawiki.org` canonical domain

Change-Id: I3371443d3f6c76f53437adf90a700969bba7d0e7
2018-05-19 16:26:15 -07:00
jenkins-bot
21c56e7d04 Merge "Re-enable MediaWiki.Usage.AssignmentInReturn.AssignmentInReturn sniff" 2018-05-19 23:13:25 +00:00
jenkins-bot
a58cca7e58 Merge "Re-enable MediaWiki.Usage.SuperGlobalsUsage.SuperGlobals sniff" 2018-05-19 23:13:22 +00:00
Timo Tijhof
f4d1039a20 resourceloader: Add test case for ResourceLoader::getLessCompiler
This was previously covered implicitly by an unrelated test.
Change that test (dependency.less) to use ../ to access the file
directly so that that test case is only about tracking dependencies
and testing the parser.

Then, add a second case that tests the use of import dirs.

Bug: T140807
Change-Id: Ie85abffe313922c03b3e146422f36b1d6a79743d
2018-05-19 23:06:54 +00:00
jenkins-bot
1339c129e0 Merge "Autofix MediaWiki.Commenting.FunctionComment.SpacingDoc* errors" 2018-05-19 22:24:34 +00:00
Kunal Mehta
392ec10686 Re-enable MediaWiki.Usage.AssignmentInReturn.AssignmentInReturn sniff
...except in tests, where there's a pattern of using it in data
providers.

Change-Id: Iea15cd9c6046910b0c91044cd2aeaff1a40f4fc5
2018-05-19 15:07:25 -07:00
Kunal Mehta
06ca92eb8c Re-enable MediaWiki.Usage.SuperGlobalsUsage.SuperGlobals sniff
Disable it in specific files and places where there are legitimate uses
to access $_GET and $_POST directly.

For EditPage, which wants to output $_POST for debugging information,
introduce WebRequest::getPostValues() as a wrapper, matching the
existing ::getQueryValues().

Change-Id: I2cb0a7012fb7ed29dcd720056b42f56508ddc5fa
2018-05-19 15:07:25 -07:00
jenkins-bot
d20882ff05 Merge "Re-enable Generic.Files.OneObjectStructurePerFile sniff" 2018-05-19 21:26:35 +00:00
Kunal Mehta
230958d97c Autofix MediaWiki.Commenting.FunctionComment.SpacingDoc* errors
Change-Id: I63761ebce04c03b9b13237919c27cc10180f198f
2018-05-19 14:07:03 -07:00
Kunal Mehta
2331d9742a Re-enable Generic.Files.OneObjectStructurePerFile sniff
Whitelist existing violations in .phpcs.xml, and enable the sniff to
prevent people from accidentally introducing new violations.

languages/ is blanket exempted since languages that have language
converters tend to have two classes in one file.

tests/ is also blanket exempted since many tests create mock classes,
and we don't care about PSR-4 compliance in tests.

Change-Id: I56be2f23bae3e24c062198b766cb48edab5e395e
2018-05-19 13:31:14 -07:00
Timo Tijhof
ee8a5e488e resourceloader: Apply safemode to startup module registry
This effectively applies safemode to the mw.loader client,
without the client itself needing specific knowledge of safemode.

Test Plan:
* Unchanged: When viewing a page in safemode, the 'user' and
  'site' modules are still not queued by OutputPage.
* New: mw.loader.getState('site'), previously would yield
  'registered', but will now yield null.
* New: mw.loader.load('site'), previously loaded the module,
  it now logs a dependency warning for unknown module, like for
  any other unknown module.
* New: mw.loader.using('site'), previously resolved, it is now
  rejected.

Bug: T185303
Change-Id: I672e3891c8e1b3c2d13655fa134d0f1d031b8247
2018-05-19 22:14:33 +02:00
Translation updater bot
90988b3d88 Localisation updates from https://translatewiki.net.
Change-Id: Ia5116d3301606e7672799523c838bb598e7d3b66
2018-05-19 22:01:55 +02:00
jenkins-bot
399d9c24a8 Merge "Document nodata for HTMLFormFields" 2018-05-19 14:17:57 +00:00
Florian Schmidt
d99c3a4e6d Document nodata for HTMLFormFields
This could be a useful feature for users of HTMLForm, so they should be
able to know about it.

Bug: T156056
Change-Id: Ib444051e38292c06ebe370465b7c751e136d42b2
2018-05-19 13:48:49 +00:00
jenkins-bot
bc3993ae70 Merge "Change a.external padding from 15px to 13px to match Vector" 2018-05-19 13:16:16 +00:00
jenkins-bot
de3be78190 Merge "resourceloader: Simplify mwLoadEnd hook implementation" 2018-05-19 12:19:38 +00:00
jenkins-bot
4120bd03e1 Merge "makeCollapsible: Remove animations" 2018-05-19 12:09:28 +00:00
jenkins-bot
d91fa04124 Merge "Add ct_tag_id field to change_tag table" 2018-05-19 11:56:58 +00:00
Derk-Jan Hartman
1d83b443e4 makeCollapsible: Remove animations
The animations are:
* not well liked
* non-configurable (in presence and time)
* bad for performance
* javascript based instead of CSS

Removing them allows us to make it easier to replace NavFrame and
collapsible as deployed by the communities, and will be better for
mobile use as well.

Bug: T195049
Change-Id: I5eb505d1bd2097fe5d98db47293583e7225310de
2018-05-19 13:12:18 +02:00
Timo Tijhof
9d2e43df75 resourceloader: Simplify mwLoadEnd hook implementation
In addition to the high overhead of $.Deferred per-module in
mw.loader.using(), this was also using $.when() and another
Deferred in catch() for casting.

The handler for marking mwLoadEnd needs a Promise in our fallback
for compatibility with the original using() call. But the code
within our fallback does not need to use N promises, for that
we can simply use a counter that we decrement, given we only need
to worry about completion.

So basically, use `Deferred#always(callback)`
instead of `Deferred.catch(=>Defered().resolve)).then(callback)`.

This is in preparation for moving the code to NavigationTiming.

Change-Id: I20514d3fe680fc9384a0f7ce0880652970d86856
2018-05-19 10:51:35 +00:00
jenkins-bot
99a57ca021 Merge "tablesorter: test for data-sort-value on children" 2018-05-19 10:48:09 +00:00
jenkins-bot
c8c2d83312 Merge "tablesorter: be more specific about reserving space for header cells" 2018-05-19 10:41:42 +00:00
jenkins-bot
242a76d2be Merge "Avoid unnecessary WaitConditionLoop delays in ChronologyProtector" 2018-05-19 10:38:23 +00:00
jenkins-bot
d1f826c746 Merge "Add Special:PasswordPolicies" 2018-05-19 09:26:48 +00:00
Ed Sanders
a8d1630c29 Change a.external padding from 15px to 13px to match Vector
This is the default in Vector & Minerva, but was never
upstreamed to core. Other skins (e.g. Monobook) use the same
icons so it doesn't make sense to maintain two standards
for spacing.

Change-Id: I7eaf0756d4d58c0f902238b48176334689f3c704
2018-05-19 11:20:52 +02:00
Reedy
18d21c9ba0 Add Special:PasswordPolicies
Bug: T174812
Change-Id: Ifb4876f7309a667154c7469c29e703b6c33d54af
2018-05-19 08:55:39 +00:00
jenkins-bot
0eb1619898 Merge "Define pt as fallback for tet" 2018-05-19 08:55:06 +00:00
jenkins-bot
28d17d2b10 Merge "resourceloader: Allow style-only modules to have deprecation warnings" 2018-05-19 08:47:21 +00:00
Aaron Schulz
52af356cad Avoid unnecessary WaitConditionLoop delays in ChronologyProtector
Since it takes time for the agent to get the response and set the
cookie and, as well, the time into a request that a LoadBalancer is
initialized varies by many seconds (cookies loaded from the start),
give the cookie a much lower TTL than the DB positions in the stash.

This avoids having to wait for a position with a given cpPosIndex
value, when the position already expired from the store, which is
a waste of time.

Also include the timestamp in "cpPosIndex" cookies to implement
logical expiration in case clients do not expire them correctly.

Bug: T194403
Bug: T190082
Change-Id: I97d8f108dec59c5ccead66432a097cda8ef4a178
2018-05-18 13:43:05 -07:00
jenkins-bot
16ae88e4e9 Merge "Remove else from UserGroupMembership" 2018-05-18 20:39:25 +00:00
Translation updater bot
4f5283a546 Localisation updates from https://translatewiki.net.
Change-Id: I22321d32a7eff63c6aadeaf86d60f12b9cc11b09
2018-05-18 22:18:58 +02:00