lhc/web/wiklou.git
8 years agoAdd support for blacklisting common passwords
Brian Wolff [Sun, 22 Nov 2015 07:45:02 +0000 (02:45 -0500)]
Add support for blacklisting common passwords

This changes the default config to not allow the top 25 passwords
to be used by Sysop/Crats. This should almost certainly be set to
a higher number, but I think its best to wait until after this is
comitted to argue over what the best value is.

I would expect that once this is comitted, there would be a config
change for wmf wikis, so that there is no change until this has
been discussed with the community.

The included common password file was generated from the first
10000 entries of
https://github.com/danielmiessler/SecLists/blob/master/Passwords/rockyou.txt?raw=true
10,000 was chosen based on csteipp's suggestion.

Change-Id: I26a9e8f2318a1eed33d7638b125695e8de3a9796

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 15 Nov 2015 20:56:14 +0000 (21:56 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I13ff9d21bd07513cf26dfddbce091418c62d38e7

8 years agoMerge "phpcs: Use __DIR__ constant instead of calling"
jenkins-bot [Sun, 15 Nov 2015 20:30:53 +0000 (20:30 +0000)]
Merge "phpcs: Use __DIR__ constant instead of calling"

8 years agoMake JobQueueAggregator::doNotifyQueueNonEmpty() avoid queries
Aaron Schulz [Wed, 11 Nov 2015 21:50:35 +0000 (13:50 -0800)]
Make JobQueueAggregator::doNotifyQueueNonEmpty() avoid queries

Avoid 2 of the 3 queries in doNotifyQueueNonEmpty(), the ones
that register the queue, once such a command has been done in
the request already.

Change-Id: I58553f0c56660f05a3e3000065270baebb8cbb62

8 years agophpcs: Use __DIR__ constant instead of calling
umherirrender [Thu, 12 Nov 2015 18:58:20 +0000 (19:58 +0100)]
phpcs: Use __DIR__ constant instead of calling

Replaced all dirname(__FILE__) by __DIR__ or added
@codingStandardsIgnore

Found by tests:
https://integration.wikimedia.org/ci/job/mediawiki-core-phpcs/2736/consoleFull

Change-Id: I90ff10f183ed60175fe580c43d73c0e57fd04234

8 years agoClean up some wfDebug() calls in LoadBalancer
Aaron Schulz [Fri, 13 Nov 2015 08:07:14 +0000 (00:07 -0800)]
Clean up some wfDebug() calls in LoadBalancer

Change-Id: I01143bec5b084a32c3edd836d194c0a17ca0e43c

8 years agoMerge "Generalize the LinkCache clear() call to JobRunner"
jenkins-bot [Sun, 15 Nov 2015 06:52:12 +0000 (06:52 +0000)]
Merge "Generalize the LinkCache clear() call to JobRunner"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 14 Nov 2015 21:02:44 +0000 (22:02 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I71454ec5faa274e2b0e768a041c0a595009be4e0

8 years agoGeneralize the LinkCache clear() call to JobRunner
Aaron Schulz [Sat, 14 Nov 2015 13:17:23 +0000 (05:17 -0800)]
Generalize the LinkCache clear() call to JobRunner

The use for this logic is not specific to RefreshLinksJob

Change-Id: I4bb911ab5882d1795e12163df8ae6b227c58bc8a

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 13 Nov 2015 20:16:30 +0000 (21:16 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I9891f7770ff4ccf0f12847c1e903a85cb030789a

8 years agoAdd i18n messages for API feedrecentchanges 'categories' and 'categories_any'
Brad Jorsch [Fri, 13 Nov 2015 14:55:21 +0000 (09:55 -0500)]
Add i18n messages for API feedrecentchanges 'categories' and 'categories_any'

Bug: T118515
Change-Id: I7ae7c474aacceea0346991882f1f44cc6c998c7d

8 years agoMerge "resourceloader: Update MessageBlobStore documentation and code cleanup"
jenkins-bot [Fri, 13 Nov 2015 06:30:20 +0000 (06:30 +0000)]
Merge "resourceloader: Update MessageBlobStore documentation and code cleanup"

8 years agoMerge "Remove PHP detection from entry points other than index.php"
jenkins-bot [Fri, 13 Nov 2015 01:01:00 +0000 (01:01 +0000)]
Merge "Remove PHP detection from entry points other than index.php"

8 years agoresourceloader: Update MessageBlobStore documentation and code cleanup
Timo Tijhof [Thu, 12 Nov 2015 23:54:04 +0000 (23:54 +0000)]
resourceloader: Update MessageBlobStore documentation and code cleanup

* Update and improve class documentation.

* Remove comment that claims to return false if the module has no message.
  generateMessageBlob() returns '{}' in that case. And this is expected since
  we want to cache the absence of messages.

* Re-use the module objects passed to MessageBlobStore::get() in getFromDB()
  instead of using ResourceLoader::getModule(). The object is the same either
  way (since ResourceLoader re-uses the objects also) but reduces complexity
  of getFromDB() to not need the ResourceLoader object as parameter.

Change-Id: I89a14d7185877fae52791f6837883ed3a6749cd7

8 years agoAdd LBFactory::disableChronologyProtection method
Aaron Schulz [Fri, 13 Nov 2015 00:07:50 +0000 (16:07 -0800)]
Add LBFactory::disableChronologyProtection method

This is useful for things like job running entry points by
avoiding pointless overhead.

Change-Id: I007273dd95e6a2e9d258d475d383bc869d63f7b1

8 years agoDecouple ChronologyProtector from user sessions
Aaron Schulz [Sun, 18 Oct 2015 19:53:40 +0000 (12:53 -0700)]
Decouple ChronologyProtector from user sessions

* It now works for users without using sessions.
  Sessions should not be cluttered with things
  unrelated to authentication and tokens.
* Public services doing api.php requests on behalf
  of a users only need to set XFF headers (as normal)
  for position wait logic to trigger. They can opt out
  of ChronologyProtector via a new HTTP header
  "ChronologyProtection: false".
* Requests across subdomains, such as the SUL2 handshake
  for CentralAuth on account creation, now have position
  wait logic applied. This helps avoid anomolies were a
  row just written in the last request may not be seen.
* Use merge() to avoid rolling back master positions if
  the user has multiple tabs open and doing writes at once.
* $_SESSION global state is gone from ChronologyProtector.
* Cleaned up post-send LBFactory::shutdown() logic for
  avoiding master position writes with an explicit flag.
* Use 'replication' debug log group in more places.

Bug: T111264
Change-Id: Ib25d05994d62b25c2f89e67b7f51009c54f4bca8

8 years agoMerge "Move down $logEntry publish() call in recordUpload2()"
Aaron Schulz [Thu, 12 Nov 2015 22:41:42 +0000 (22:41 +0000)]
Merge "Move down $logEntry publish() call in recordUpload2()"

8 years agoRemove PHP detection from entry points other than index.php
Timo Tijhof [Thu, 12 Nov 2015 22:36:50 +0000 (22:36 +0000)]
Remove PHP detection from entry points other than index.php

The following entry points already didn't have it:

* opensearch.php
* thumb.php
* thumb_handlers.php

Now removed from api.php and load.php as well. The check was broken
because these entry points use the 'use' keyword for PHP namespaces,
which results in a syntax error on PHP < 5.3.

The check remains in index.php, mw-config/index.php, and
Maintenance (for e.g. install.php).

Bug: T112942
Change-Id: I9026d69ddfb3e02612256b4a9df525c432bb33c6

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 12 Nov 2015 21:13:58 +0000 (22:13 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ifab8c58dd1e702c586d0e9003a86d77cbfe92830

8 years agoMerge "Add file extension mapping for opus"
Brion VIBBER [Thu, 12 Nov 2015 20:58:07 +0000 (20:58 +0000)]
Merge "Add file extension mapping for opus"

8 years agoRelease notes for Ic7cd6f77
Brian Wolff [Tue, 10 Nov 2015 23:33:23 +0000 (18:33 -0500)]
Release notes for Ic7cd6f77

Change-Id: I5da293a98f8de8172acc64987b8ef7b9fc7da98b

8 years agoMove down $logEntry publish() call in recordUpload2()
Aaron Schulz [Thu, 12 Nov 2015 03:36:13 +0000 (19:36 -0800)]
Move down $logEntry publish() call in recordUpload2()

This was moved before the defered doEditContent() call
for new pages by mistake.

Bug: T118433
Change-Id: I007acf82622ec6d68c007921f632793392025f40

8 years agoMerge "Followup a88df43d: make $wgDebugDumpSql log commented queries again"
jenkins-bot [Thu, 12 Nov 2015 02:46:03 +0000 (02:46 +0000)]
Merge "Followup a88df43d: make $wgDebugDumpSql log commented queries again"

8 years agoFollowup a88df43d: make $wgDebugDumpSql log commented queries again
Roan Kattouw [Thu, 12 Nov 2015 02:17:23 +0000 (18:17 -0800)]
Followup a88df43d: make $wgDebugDumpSql log commented queries again

Change-Id: I0c10b2119f03fa047dbb2bad1c4c1233403bff59

8 years agoMerge "Remove spammy wfDebug() from LocalFile::loadFromCache()"
jenkins-bot [Thu, 12 Nov 2015 00:52:59 +0000 (00:52 +0000)]
Merge "Remove spammy wfDebug() from LocalFile::loadFromCache()"

8 years agoresourceloader: Remove deprecated MessageBlobStore::getInstance()
Timo Tijhof [Thu, 12 Nov 2015 00:24:38 +0000 (00:24 +0000)]
resourceloader: Remove deprecated MessageBlobStore::getInstance()

Deprecated since MediaWiki 1.25.
Not used anywhere in public Wikimedia Git.

Change-Id: Iaa31d0e83b95fb033c62430bc3fc4dd66af16906

8 years agoMerge "startup.test: Add IE11 and Edge strings to Grade A tests"
jenkins-bot [Wed, 11 Nov 2015 23:17:19 +0000 (23:17 +0000)]
Merge "startup.test: Add IE11 and Edge strings to Grade A tests"

8 years agostartup.test: Add IE11 and Edge strings to Grade A tests
James D. Forrester [Wed, 11 Nov 2015 16:48:05 +0000 (08:48 -0800)]
startup.test: Add IE11 and Edge strings to Grade A tests

Change-Id: Ia4fa69c1abfb8381913885aada0784a04c22aa7c

8 years agoMerge "Really validate that $wgArticlePath starts with a slash"
jenkins-bot [Wed, 11 Nov 2015 22:46:25 +0000 (22:46 +0000)]
Merge "Really validate that $wgArticlePath starts with a slash"

8 years agoMerge "Cleaner Special:Watchlist options form"
jenkins-bot [Wed, 11 Nov 2015 22:24:08 +0000 (22:24 +0000)]
Merge "Cleaner Special:Watchlist options form"

8 years agoMerge "Allow undo via ApiEditPage for all content models"
jenkins-bot [Wed, 11 Nov 2015 22:09:58 +0000 (22:09 +0000)]
Merge "Allow undo via ApiEditPage for all content models"

8 years agoReally validate that $wgArticlePath starts with a slash
Bartosz Dziewoński [Wed, 11 Nov 2015 22:00:31 +0000 (23:00 +0100)]
Really validate that $wgArticlePath starts with a slash

The regular expression wasn't entirely correct.
Follow-up to a4a3d0454069c25a24e2bfe732a665cc6a865878.

Bug: T48998
Change-Id: I08bdf2db20c1c3de55527fc812bcbb55fa23f7bc

8 years agoRemove spammy wfDebug() from LocalFile::loadFromCache()
Aaron Schulz [Wed, 11 Nov 2015 21:36:53 +0000 (13:36 -0800)]
Remove spammy wfDebug() from LocalFile::loadFromCache()

Change-Id: I36ad31f197ec8f71c97e6a8673ac5ca979f8d9ab

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 11 Nov 2015 20:34:04 +0000 (21:34 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I197a422a9cd705e75853fbbbd6da01714a3e22f1

8 years agoAllow undo via ApiEditPage for all content models
aude [Thu, 13 Aug 2015 20:34:45 +0000 (22:34 +0200)]
Allow undo via ApiEditPage for all content models

It might be even nicer to separate undo into action=undo,
but for now undo is done via ApiEditPage and should be
allowed for all content models.

Bug: T101694
Change-Id: I833bcc20d86fa5bf216dc9444e2b8a16ddd45f66

8 years agoMerge "Update OOjs to v1.1.10"
jenkins-bot [Wed, 11 Nov 2015 19:01:33 +0000 (19:01 +0000)]
Merge "Update OOjs to v1.1.10"

8 years agoUpdate OOjs to v1.1.10
James D. Forrester [Wed, 11 Nov 2015 17:02:06 +0000 (09:02 -0800)]
Update OOjs to v1.1.10

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fcore.git/v1.1.10/History.md

Change-Id: Id19682f59690aafc70fa05c6febf32b1206090c2

8 years agoMerge "Make TitleInputWidget configurable, if term should be highlighted or not"
jenkins-bot [Wed, 11 Nov 2015 17:11:22 +0000 (17:11 +0000)]
Merge "Make TitleInputWidget configurable, if term should be highlighted or not"

8 years agoMerge "mw.loader: Use requestIdleCallback to update module store"
jenkins-bot [Wed, 11 Nov 2015 16:43:03 +0000 (16:43 +0000)]
Merge "mw.loader: Use requestIdleCallback to update module store"

8 years agoMerge "Add flexbox mixins to mediawiki.mixins"
jenkins-bot [Wed, 11 Nov 2015 16:16:38 +0000 (16:16 +0000)]
Merge "Add flexbox mixins to mediawiki.mixins"

8 years agoMerge "Language: Convert names cache from MapCacheLRU to HashBagOStuff"
jenkins-bot [Wed, 11 Nov 2015 15:20:31 +0000 (15:20 +0000)]
Merge "Language: Convert names cache from MapCacheLRU to HashBagOStuff"

8 years agoMerge "Title: Convert cache from MapCacheLRU to HashBagOStuff"
jenkins-bot [Wed, 11 Nov 2015 15:16:28 +0000 (15:16 +0000)]
Merge "Title: Convert cache from MapCacheLRU to HashBagOStuff"

8 years agomediawiki.Uri: Remove redundant jshint overrides for latedef
Timo Tijhof [Wed, 11 Nov 2015 00:14:30 +0000 (00:14 +0000)]
mediawiki.Uri: Remove redundant jshint overrides for latedef

These aren't being violated. They were either left-over from
refactoring or added to work around bugs in JSHint that have
been fixed since.

Change-Id: I3ac4a6e97b6294f392ae9ec2474eab448b044a13

8 years agoMerge "build: Enable all remaining jsduck jsDoc rules except two"
jenkins-bot [Wed, 11 Nov 2015 03:46:39 +0000 (03:46 +0000)]
Merge "build: Enable all remaining jsduck jsDoc rules except two"

8 years agoMerge "TitleSearchWidget: Only update results if the query is current"
jenkins-bot [Wed, 11 Nov 2015 02:18:35 +0000 (02:18 +0000)]
Merge "TitleSearchWidget: Only update results if the query is current"

8 years agoMerge "UserMailer: Use PHP_EOL instead of DIY"
jenkins-bot [Wed, 11 Nov 2015 01:41:57 +0000 (01:41 +0000)]
Merge "UserMailer: Use PHP_EOL instead of DIY"

8 years agoTitleSearchWidget: Only update results if the query is current
David Lynch [Tue, 10 Nov 2015 23:59:27 +0000 (15:59 -0800)]
TitleSearchWidget: Only update results if the query is current

With near-simultaneous inputs (e.g. holding down the backspace key
while deleting text) you can cause the suggestion promise to resolve
out-of-order. This causes apparently incorrect suggestions to be
displayed for the current input.

To fix this, abort the existing promise if it exists.

Bug: T114178
Change-Id: I9332452fd914b54e7c564284da2a8a00865ae806

8 years agoUserMailer: Use PHP_EOL instead of DIY
Chad Horohoe [Wed, 11 Nov 2015 01:28:32 +0000 (17:28 -0800)]
UserMailer: Use PHP_EOL instead of DIY

Also fixes arrayToHeaderString() to be correct when called without
the $endl parameter

Change-Id: I8b9f72500f9a055f9f2e1cfcbb276d565674f1b8

8 years agoAdd flexbox mixins to mediawiki.mixins
Isarra [Tue, 27 Oct 2015 02:54:45 +0000 (02:54 +0000)]
Add flexbox mixins to mediawiki.mixins

Includes some fallback support for 2009 (old firefox and some mobile
browsers) and 2012 (IE10) specs.

Change-Id: I0c6fca82b778a28930bf83fd43a3059858fe9243

8 years agoMerge "Avoid using !important and hide the nolabel instead"
jenkins-bot [Wed, 11 Nov 2015 00:33:49 +0000 (00:33 +0000)]
Merge "Avoid using !important and hide the nolabel instead"

8 years agoMerge "Update OOjs UI to v0.13.2"
jenkins-bot [Wed, 11 Nov 2015 00:11:42 +0000 (00:11 +0000)]
Merge "Update OOjs UI to v0.13.2"

8 years agoMerge "Make runOnTransactionIdleCallbacks() handle dangling transactions"
jenkins-bot [Tue, 10 Nov 2015 23:49:30 +0000 (23:49 +0000)]
Merge "Make runOnTransactionIdleCallbacks() handle dangling transactions"

8 years agoUpdate OOjs UI to v0.13.2
James D. Forrester [Tue, 10 Nov 2015 23:44:04 +0000 (15:44 -0800)]
Update OOjs UI to v0.13.2

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.13.2/History.md

Change-Id: I0626d91d4b93e1d680579f1e6a02555c6050127f

8 years agoMerge "Validates wgArticlePath does start with slash (/)."
jenkins-bot [Tue, 10 Nov 2015 23:21:19 +0000 (23:21 +0000)]
Merge "Validates wgArticlePath does start with slash (/)."

8 years agoValidates wgArticlePath does start with slash (/).
JuneHyeon Bae [Sat, 24 May 2014 10:48:02 +0000 (19:48 +0900)]
Validates wgArticlePath does start with slash (/).

When relative URL used in $wgArticlePath, and $wgArticlePath does not
start with slash (/), raise FatalError.

Bug: T48998
Change-Id: Ic7cd6f774cff97081f4f35af351161170b4b26eb

8 years agoMerge "Avoid doNotifyQueueEmpty() race conditions for Redis"
jenkins-bot [Tue, 10 Nov 2015 22:50:55 +0000 (22:50 +0000)]
Merge "Avoid doNotifyQueueEmpty() race conditions for Redis"

8 years agoAvoid doNotifyQueueEmpty() race conditions for Redis
Aaron Schulz [Tue, 10 Nov 2015 22:34:24 +0000 (14:34 -0800)]
Avoid doNotifyQueueEmpty() race conditions for Redis

Previously, races could cause queues to be seen as empty
and ignored when they actually have jobs in them.

Change-Id: I6cdf5c1fbd33c9ed7982e5d2d494974b1d7e09fd

8 years agomw.loader: Use requestIdleCallback to update module store
Timo Tijhof [Tue, 10 Nov 2015 22:09:21 +0000 (22:09 +0000)]
mw.loader: Use requestIdleCallback to update module store

.. instead of setTimeout.

Also adapt the code accordingly since it is no longer needed to
cancel and re-schedule an update every time update() is called.
This is already handled by requestIdleCallback.

We can let the already-scheduled callback survive. The data
that will be saved is serialised during the flush anyway,
not when scheduling.

Change-Id: Iea48919b4baba7647040b6ed9ff4b6d0d387b962

8 years agoMake TitleInputWidget configurable, if term should be highlighted or not
Florian [Fri, 6 Nov 2015 17:17:29 +0000 (18:17 +0100)]
Make TitleInputWidget configurable, if term should be highlighted or not

Depends on: I36502da43c383373

Bug: T106273
Change-Id: I393eef9cd20bdf80e4db72891f23de08bcdfd376

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 10 Nov 2015 21:20:04 +0000 (22:20 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic027cac2ca0839cbb6083078c5a90eabee280510

8 years agoMerge "Migrate feeds from $messageMemc to the WAN cache"
jenkins-bot [Tue, 10 Nov 2015 21:15:53 +0000 (21:15 +0000)]
Merge "Migrate feeds from $messageMemc to the WAN cache"

8 years agoMerge "Various JobQueue test tweaks"
jenkins-bot [Tue, 10 Nov 2015 21:02:46 +0000 (21:02 +0000)]
Merge "Various JobQueue test tweaks"

8 years agoAvoid using !important and hide the nolabel instead
Derk-Jan Hartman [Tue, 10 Nov 2015 20:48:25 +0000 (21:48 +0100)]
Avoid using !important and hide the nolabel instead

Instead of playing catchup with width settings, let's simply hide the
table cells with nolabel. This seems closer to the original intent,
and it works with at least IE8 as well, so why not.

It does effectively move every element without a label 1em (padding) +
1px to the left in your preferences. This will likely be noticeable by
endusers.

Follow-up to: I24d9b16ed672

Change-Id: I92083687ef8a9a6e5fc9c822f9449a1aa7ed7ea1

8 years agoMerge "Make getLaggedSlaveMode() use reuseConnection() as needed"
jenkins-bot [Tue, 10 Nov 2015 20:46:52 +0000 (20:46 +0000)]
Merge "Make getLaggedSlaveMode() use reuseConnection() as needed"

8 years agoMerge "resourceloader: Log if MessageBlobStore failed to fetch a message"
jenkins-bot [Tue, 10 Nov 2015 20:30:21 +0000 (20:30 +0000)]
Merge "resourceloader: Log if MessageBlobStore failed to fetch a message"

8 years agoMake getLaggedSlaveMode() use reuseConnection() as needed
Aaron Schulz [Tue, 10 Nov 2015 20:18:00 +0000 (12:18 -0800)]
Make getLaggedSlaveMode() use reuseConnection() as needed

Bug: T118162
Change-Id: I03e1386b952a9e9243518c12fb175727f81c9976

8 years agoMerge "Make FindOrphanedFiles handle bad file titles"
jenkins-bot [Tue, 10 Nov 2015 20:02:11 +0000 (20:02 +0000)]
Merge "Make FindOrphanedFiles handle bad file titles"

8 years agoMerge "Make FindOrphanedFiles handle files with ! properly"
jenkins-bot [Tue, 10 Nov 2015 19:52:30 +0000 (19:52 +0000)]
Merge "Make FindOrphanedFiles handle files with ! properly"

8 years agoMigrate feeds from $messageMemc to the WAN cache
Aaron Schulz [Tue, 10 Nov 2015 06:48:36 +0000 (22:48 -0800)]
Migrate feeds from $messageMemc to the WAN cache

This makes the delete() calls work properly for all DCs.
Also, using the message cache was fairly bizzare.

Change-Id: Idec7fa47811e982ba89bb8fbbd9565a26585e77f

8 years agoMerge "Move Math specific CSS from core to extension"
jenkins-bot [Tue, 10 Nov 2015 19:08:43 +0000 (19:08 +0000)]
Merge "Move Math specific CSS from core to extension"

8 years agoMerge "SpecialAllMessages: Use cached getHtmlCode() instead of wfBCP47()"
jenkins-bot [Tue, 10 Nov 2015 19:08:39 +0000 (19:08 +0000)]
Merge "SpecialAllMessages: Use cached getHtmlCode() instead of wfBCP47()"

8 years agoImplement mw.requestIdleCallback for deferred background tasks
Timo Tijhof [Wed, 21 Oct 2015 01:52:52 +0000 (02:52 +0100)]
Implement mw.requestIdleCallback for deferred background tasks

We often use the idiom "window.onload" or "$(window).on('load')".
Since code loads asynchronous, this is problematic because the event won't
always be observed as it may fire before the event handler is attached.

Most tasks also don't really want to wait until the page is loaded (in which
case it would run immediately if the page is already loaded). Rather their intent
is just to defer it to a later point in time – to avoid disrupting user events.

Bug: T111456
Change-Id: Ieba0440c6d83086762c777dfbbc167f1c314a751

8 years agoSpecialAllMessages: Use cached getHtmlCode() instead of wfBCP47()
Fomafix [Tue, 10 Nov 2015 17:27:40 +0000 (17:27 +0000)]
SpecialAllMessages: Use cached getHtmlCode() instead of wfBCP47()

Follows-up 5efbb10f

Change-Id: Icf00a4a20559d666b2ac551b933873e695735c9c

8 years agoMove Math specific CSS from core to extension
physikerwelt [Sat, 31 Oct 2015 09:55:26 +0000 (10:55 +0100)]
Move Math specific CSS from core to extension

Depends on I3775980916de12aef23bac85c38a6f92253aa479
in extension Math.

Bug: T110492
Change-Id: If6a4ca34a54c451cdb10d011ffd806a34cbccd2c

8 years agoMention main WAN and stash instances in cache debug statement
Aaron Schulz [Tue, 10 Nov 2015 06:41:04 +0000 (22:41 -0800)]
Mention main WAN and stash instances in cache debug statement

Change-Id: Ic98ce5aecc093400f23d3595be75df3bf54268bf

8 years agoVarious JobQueue test tweaks
Aaron Schulz [Tue, 10 Nov 2015 05:24:34 +0000 (21:24 -0800)]
Various JobQueue test tweaks

* Remove some getAcquiredCount() assertions when claimTTL=0
  as this is not well defined enough (queues may take a few
  minutes to garbage collect the failed jobs).
* Added some tests to make sure push() only de-duplicates
  among unclaimed jobs.

Change-Id: Ie0a5e539095c245dfcc8c160417e12824eb7ab83

8 years agoImprove LoadBalancer::doWait() performance via APC
Aaron Schulz [Mon, 9 Nov 2015 20:44:06 +0000 (12:44 -0800)]
Improve LoadBalancer::doWait() performance via APC

* This avoids bothering with MASTER_POS_WAIT() if an equal/higher
  position was already successfully waited on by another process.
* Add DBMasterPos toString() and hasReached() methods, which
  MySQLMasterPos already implemented and used.
* Moved more wfDebug() statements to the 'replication' log.

Change-Id: I423b5fe2da8d97889a6d204a635e351342de7649

8 years agoMerge "Break long lines and cleanup some RefreshLinksJob checks"
jenkins-bot [Tue, 10 Nov 2015 04:46:39 +0000 (04:46 +0000)]
Merge "Break long lines and cleanup some RefreshLinksJob checks"

8 years agoresourceloader: Log if MessageBlobStore failed to fetch a message
Timo Tijhof [Tue, 10 Nov 2015 04:40:31 +0000 (04:40 +0000)]
resourceloader: Log if MessageBlobStore failed to fetch a message

Bug: T93800
Change-Id: I6f174251a6b9a6b31921037f672dbc197f3abb7e

8 years agoobjectcache: Reduce MediaWiki-specificness from Memcached classes
Timo Tijhof [Tue, 10 Nov 2015 03:20:08 +0000 (03:20 +0000)]
objectcache: Reduce MediaWiki-specificness from Memcached classes

Follows-up f36b73e96c, which moved these classes to libs/objectcache.

* Fix wrong @throws in MemcachedPeclBagOStuff.
* Fix wrong @returns in MemcachedBagOStuff::getClient().
* Rename MWMemcached to MemcachedClient.
* Remove mention of 'memcached.php', which doesn't exist anymore.

Change-Id: I34dbc859be4778cea489fd2344f233f30452605c

8 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Tue, 10 Nov 2015 01:18:38 +0000 (01:18 +0000)]
Merge "Sync up with Parsoid parserTests."

8 years agoMerge "Removed useless field in SqlBagOStuff"
jenkins-bot [Tue, 10 Nov 2015 01:18:34 +0000 (01:18 +0000)]
Merge "Removed useless field in SqlBagOStuff"

8 years agoMerge "Upgrade JobRunner "COMMIT ENQUEUED" log entries to WARNING"
jenkins-bot [Tue, 10 Nov 2015 01:08:44 +0000 (01:08 +0000)]
Merge "Upgrade JobRunner "COMMIT ENQUEUED" log entries to WARNING"

8 years agoSync up with Parsoid parserTests.
Arlo Breault [Tue, 10 Nov 2015 00:56:48 +0000 (16:56 -0800)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit b869b084be641d0e2150648ea926ca974590e6e3

Change-Id: I3e8ebd578db8b6630d23ebbdedb5036fa5a092e5

8 years agoRemoved useless field in SqlBagOStuff
Aaron Schulz [Mon, 9 Nov 2015 06:02:30 +0000 (22:02 -0800)]
Removed useless field in SqlBagOStuff

Change-Id: I27c0b35769667ce48ba761ff4bbc828033c6849d

8 years agoMerge "MessageCache: Remove redundant Language::ucfirst() optimisation"
jenkins-bot [Tue, 10 Nov 2015 01:02:40 +0000 (01:02 +0000)]
Merge "MessageCache: Remove redundant Language::ucfirst() optimisation"

8 years agoMerge "languages: Avoid getPreferredVariant() in ucfirst/lcfirst unless needed"
jenkins-bot [Tue, 10 Nov 2015 01:02:07 +0000 (01:02 +0000)]
Merge "languages: Avoid getPreferredVariant() in ucfirst/lcfirst unless needed"

8 years agoUpgrade JobRunner "COMMIT ENQUEUED" log entries to WARNING
Aaron Schulz [Sat, 7 Nov 2015 07:31:45 +0000 (23:31 -0800)]
Upgrade JobRunner "COMMIT ENQUEUED" log entries to WARNING

Change-Id: I3f3bbb5c3a59975e152b099481dc07617c845b8e

8 years agolanguages: Avoid getPreferredVariant() in ucfirst/lcfirst unless needed
Timo Tijhof [Tue, 10 Nov 2015 00:33:07 +0000 (00:33 +0000)]
languages: Avoid getPreferredVariant() in ucfirst/lcfirst unless needed

This method calls out to LanguageConverter which involve the User,
Request, and additional validation.

Change-Id: I3edae1244073767a8d8888708024bb5498c70dc9

8 years agoMessageCache: Remove redundant Language::ucfirst() optimisation
Timo Tijhof [Tue, 10 Nov 2015 00:40:54 +0000 (00:40 +0000)]
MessageCache: Remove redundant Language::ucfirst() optimisation

Language::ucfirst() already has this optimisation. The expensive
method is Language::uc(), which is only called when needed.

The ord() < 128 is one of the conditionals in Language::ucfirst().

Change-Id: Idd648b7b84eba1f92dda904438122fe38d3cf22b

8 years agoMerge "BacklinkCache: Remove use of ProcessCacheLRU"
jenkins-bot [Tue, 10 Nov 2015 00:35:30 +0000 (00:35 +0000)]
Merge "BacklinkCache: Remove use of ProcessCacheLRU"

8 years agoMerge "Don't apply CSS columns if less than 3 results were found on AllPages & Prefix...
jenkins-bot [Tue, 10 Nov 2015 00:22:04 +0000 (00:22 +0000)]
Merge "Don't apply CSS columns if less than 3 results were found on AllPages & PrefixIndex"

8 years agoBacklinkCache: Remove use of ProcessCacheLRU
Timo Tijhof [Mon, 9 Nov 2015 23:51:11 +0000 (23:51 +0000)]
BacklinkCache: Remove use of ProcessCacheLRU

Follows-up af89b09a06 and e40a90f0bc, and general phasing out
of MapCacheLRU and ProcessCacheLRU.

Use of ProcessCacheLRU seems redundant in this case as it is
essentially just a keyed singleton.

Change-Id: I7cc84cf6c76ecc422ea337dba2d216c3d7ebf281

8 years agoLanguage: Convert names cache from MapCacheLRU to HashBagOStuff
Timo Tijhof [Mon, 9 Nov 2015 23:29:07 +0000 (23:29 +0000)]
Language: Convert names cache from MapCacheLRU to HashBagOStuff

Change-Id: I3237c8ed97d23e82caa171d936ecb5745a2fe3d5

8 years agoTitle: Convert cache from MapCacheLRU to HashBagOStuff
Timo Tijhof [Mon, 9 Nov 2015 23:22:16 +0000 (23:22 +0000)]
Title: Convert cache from MapCacheLRU to HashBagOStuff

Change-Id: I0d4c21be1356216970d9ad424ffc848f82778e50

8 years agoLinkCache: Convert from MapCacheLRU to HashBagOStuff.
Timo Tijhof [Mon, 9 Nov 2015 23:17:39 +0000 (23:17 +0000)]
LinkCache: Convert from MapCacheLRU to HashBagOStuff.

Change-Id: I28a9509ad4c6d724a12dc72bc50d3cf58642c651

8 years agoLinkCache: Minor clean up of documentation and variable names
Timo Tijhof [Mon, 9 Nov 2015 23:14:42 +0000 (23:14 +0000)]
LinkCache: Minor clean up of documentation and variable names

In preparation for conversion from MapCacheLRU to HashBagOStuff.

* Use early-return pattern for error and rejection cases.
* Add 'int' to @return for getGoodLinkFieldObj() per the
  values set in addGoodLinkObj().
* Add type hints for Title where possible.
* Avoid single-letter variables like $f and $s.
* Add visibility for public static methods.

Change-Id: Iab90539922f648c21cb147f749943a64f598e8de

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 9 Nov 2015 20:15:50 +0000 (21:15 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ibb56238c1948221039ad18c36cba14af79881847

8 years agoMerge "Convert LCStoreDB to using startAtomic/endAtomic"
jenkins-bot [Mon, 9 Nov 2015 20:08:02 +0000 (20:08 +0000)]
Merge "Convert LCStoreDB to using startAtomic/endAtomic"

8 years agoMerge "Revert "Disable Preferences save button before setting change""
jenkins-bot [Mon, 9 Nov 2015 20:05:24 +0000 (20:05 +0000)]
Merge "Revert "Disable Preferences save button before setting change""