lhc/web/wiklou.git
8 years agoAdd simplified storage API
jdlrobson [Tue, 11 Aug 2015 18:16:21 +0000 (11:16 -0700)]
Add simplified storage API

Provide a standard mechanism for accessing localStorage.

It may seems simplistic right now, but to give an idea of the why:
* We already have jquery.jStorage.js which is a much more heavyweight
approach to storing non-essential values.
* We are repeating ourselves a lot in extensions by having
to do localStorage detection and then deal with full localStorage.
In MobileFrontend we have a settings module. This is one of the reasons Gather
depends on MobileFrontend and I'm keen to remove that dependency.
* We might want to move to indexdb in future. Having a single API makes moving
this easier - we don't have to update everywhere that uses localStorage
* Saving non-string support would be useful. The API could be adjusted to take a
mixed second parameter that stringifys JSON objects.
* Cookie fallbacks are a possible alternative when localStorage is not supported. This allows
us to be agnostic of the storage mechanism going forward.

Note:
This doesn't reuse the handling in mediawiki.js as at this point
I am not sure there is value. mw.loader.store.enabled is false when
$wgResourceLoaderStorageEnabled is not true and this should work even
without that case. We can review this at a latter point.

See:
Id5c32bb7a662dda8d153490f7c47e972cabc1efd
I3fd44b0ae6633a7053aee247bc3c4704ba987bc8

Bug: T96155
Change-Id: Idb37352acecd745beb53aa8d77ea050851448e0d

8 years agoMessageCache: derive the hash from the cache contents
Ori Livneh [Thu, 13 Aug 2015 04:40:49 +0000 (21:40 -0700)]
MessageCache: derive the hash from the cache contents

Follow-up for I020617d, where I got this wrong. It is probable that multiple
application servers will try to build a local cache at the same time, in which
case they will cause the cache key to thrash. It is necessary that two
application servers building a local cache from the database generate the same
hash for a given set of messages.

Change-Id: Ieeefc2094a83be9401c466bec859c1588ddfbcdf

8 years agoMerge "ResourceLoader: apply minify-js filter to config scripts"
jenkins-bot [Fri, 14 Aug 2015 19:47:36 +0000 (19:47 +0000)]
Merge "ResourceLoader: apply minify-js filter to config scripts"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 14 Aug 2015 19:40:57 +0000 (21:40 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib58e7609fd477b4f763c9a7d2a982a56535a026f

8 years agoMerge "Optimize the order of styles and scripts in <head>"
jenkins-bot [Fri, 14 Aug 2015 19:26:33 +0000 (19:26 +0000)]
Merge "Optimize the order of styles and scripts in <head>"

8 years agoOptimize the order of styles and scripts in <head>
Ori Livneh [Thu, 13 Aug 2015 21:30:31 +0000 (14:30 -0700)]
Optimize the order of styles and scripts in <head>

Emit styles and scripts in the following order:
* Inline <script>...</script> tags.
* External stylesheets.
* External script tags.

I have attempted this before in I98d383a6, and subsequently reverted (in
I151f74a41) when it failed to show a performance improvement. Our ability
to measure performance were substantially poorer then, so I would like to
give this another try and see if it makes a dent in first render times.

Change-Id: I5e6c79c7041aa77bcdc6130e91e77aa538334c42

8 years agoResourceLoader: apply minify-js filter to config scripts
Ori Livneh [Fri, 14 Aug 2015 18:49:33 +0000 (11:49 -0700)]
ResourceLoader: apply minify-js filter to config scripts

Minify the JavaScript generated in ResourceLoader::makeConfigSetScript() unless
debug mode is set.

Change-Id: I45b5839803546c8e35e74b72c679777815294315

8 years agoAdd descriptions for composer.json suggested packages
Bryan Davis [Fri, 14 Aug 2015 18:04:47 +0000 (12:04 -0600)]
Add descriptions for composer.json suggested packages

The value for a suggested package is intended to be a description of why
the library might be desired.
<https://getcomposer.org/doc/04-schema.md#suggest>

Change-Id: Ic9e7cc884baf82c493b72ef405cfd5ded810dded

8 years agoMerge "JavaScriptMinifier: minify booleans"
jenkins-bot [Fri, 14 Aug 2015 18:02:02 +0000 (18:02 +0000)]
Merge "JavaScriptMinifier: minify booleans"

8 years agoJavaScriptMinifier: minify booleans
Ori Livneh [Fri, 14 Aug 2015 05:31:22 +0000 (22:31 -0700)]
JavaScriptMinifier: minify booleans

Minify true to !0 and false to !1, like Google Closure Compiler and UglifyJS2.

Change-Id: I5ab29b686b812d64a2913611be091084c06d630b

8 years agoUserMailer comment cleanup
Bryan Davis [Fri, 14 Aug 2015 17:44:35 +0000 (11:44 -0600)]
UserMailer comment cleanup

Use `//` line comment markers.

Change-Id: I327bf2de17bd5996f3bf1b8e74c55f7067df3336

8 years agoAdd PEAR's Mail and Mail_Mime to composer.json's suggestions
Chad Horohoe [Wed, 29 Apr 2015 14:56:20 +0000 (07:56 -0700)]
Add PEAR's Mail and Mail_Mime to composer.json's suggestions

Bug: T97454
Change-Id: Ib9f0f5329249b504814d08638f5b7fbde091344c

8 years agoMore multi-DC tweaks to MessageCache::load()
Aaron Schulz [Wed, 12 Aug 2015 02:53:03 +0000 (19:53 -0700)]
More multi-DC tweaks to MessageCache::load()

* Use hash key volatility to propagate invalidations over DCs
  in addition to memcached->APC instances.
* Make use of stale APC cache due to hash mismatch instead
  of waiting around in some cases. This is similar to the
  TTL expiry and volatility cases.
* Renamed $hashExpired and added some comments for clarity.

Change-Id: I8890fb174cae72c4ce8872df64f52f5cbd55183b

8 years agoFix some newlines in en.json of API
umherirrender [Thu, 6 Aug 2015 09:09:54 +0000 (11:09 +0200)]
Fix some newlines in en.json of API

The api modules are grouped with newlines, but some newlines where
misplaced.

Change-Id: I8ba1fc9cffe0466721b9b96ddd958a23aa65cf1b

8 years agoIgnore tagfilter url parameter on Special:EditTags for log items
umherirrender [Fri, 14 Aug 2015 08:09:36 +0000 (10:09 +0200)]
Ignore tagfilter url parameter on Special:EditTags for log items

There is no need to pre-filter the seleteced log items for a tag.
This avoids use of $wgRequest in ChangeTags::modifyDisplayQuery

Similar to I5899a66ad8c500f058ce006c623d3e20c5bf8508

Change-Id: I36c2e2c638dc2418b9fb5b07c46a24235746d99f

8 years agoMerge "Enable users to watch category membership changes"
jenkins-bot [Fri, 14 Aug 2015 06:58:48 +0000 (06:58 +0000)]
Merge "Enable users to watch category membership changes"

8 years agoMerge "Avoid fatal when accessing method of non-objects on Special:Undelete"
jenkins-bot [Fri, 14 Aug 2015 04:05:28 +0000 (04:05 +0000)]
Merge "Avoid fatal when accessing method of non-objects on Special:Undelete"

8 years agoMerge "Don't add a link to Special:RecentChanges when tag filter is disabled"
jenkins-bot [Fri, 14 Aug 2015 03:53:58 +0000 (03:53 +0000)]
Merge "Don't add a link to Special:RecentChanges when tag filter is disabled"

8 years agoDon't add a link to Special:RecentChanges when tag filter is disabled
umherirrender [Mon, 10 Aug 2015 19:01:59 +0000 (21:01 +0200)]
Don't add a link to Special:RecentChanges when tag filter is disabled

When wgUseTagFilter = false there is no need to link to
Special:RecentChanges because the special page cannot display the tag
filter and will show all changes, which is wrong.

Bug: T105650
Change-Id: I389aba9cb2862df3ba6980333c5cc94bb30dc202

8 years agoMerge "Import BatchRowUpdate classes from Echo"
jenkins-bot [Fri, 14 Aug 2015 01:38:50 +0000 (01:38 +0000)]
Merge "Import BatchRowUpdate classes from Echo"

8 years agoImport BatchRowUpdate classes from Echo
Erik Bernhardson [Thu, 30 Jul 2015 22:09:11 +0000 (15:09 -0700)]
Import BatchRowUpdate classes from Echo

This is a set of classes written for Echo to simplify writing
maintenance scripts that iterate over an entire table and update
some of those rows.

This has shown to be reusable elsewhere, especially the BatchRowIterator
class and will be useful to have generally avilable in core. The Echo
classes are all prefixed with the Echo name so there wont be any
conflict is both are installed.

Change-Id: I64c1751106caf34f41af799dbaf8794115537f06

8 years agoUpdate OOjs UI to v0.12.4
James D. Forrester [Thu, 13 Aug 2015 21:06:45 +0000 (14:06 -0700)]
Update OOjs UI to v0.12.4

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

Change-Id: I3d5a027e06a6d81289988a5199e56a7b1b25d35c

8 years agoAdded statsd metrics for ObjectCacheSessionHandler
Aaron Schulz [Mon, 10 Aug 2015 23:25:25 +0000 (16:25 -0700)]
Added statsd metrics for ObjectCacheSessionHandler

Change-Id: I86e967a027e2010f962831b55a9fceab02d8a19e

8 years agoMerge "Change "1 title" to "A single title" in watchlistedit-normal-done"
jenkins-bot [Thu, 13 Aug 2015 19:00:23 +0000 (19:00 +0000)]
Merge "Change "1 title" to "A single title" in watchlistedit-normal-done"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 13 Aug 2015 18:36:37 +0000 (20:36 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I50410890d654c1a81684392ef1e66c81b181ccee

8 years agoMerge "Don't send email notifs to blocked users if $wgBlockDisablesLogin is true"
jenkins-bot [Thu, 13 Aug 2015 16:44:05 +0000 (16:44 +0000)]
Merge "Don't send email notifs to blocked users if $wgBlockDisablesLogin is true"

8 years agoEnable users to watch category membership changes
Kai_WMDE [Sun, 17 May 2015 16:09:59 +0000 (18:09 +0200)]
Enable users to watch category membership changes

Bug: T9148
Change-Id: I5a89d8f19804b1120f4c755d834e2da6ca12ceae

8 years agoChange "1 title" to "A single title" in watchlistedit-normal-done
Amir E. Aharoni [Sat, 1 Aug 2015 09:22:13 +0000 (12:22 +0300)]
Change "1 title" to "A single title" in watchlistedit-normal-done

It was customized this way in en.wikipedia.org,
and it indeed looks better in English.

Change-Id: If43e788f996e2f99fdeda746296129b2c7212f52

8 years agoAdding documentation for new RandomPageQuery hook to hooks.txt
Kaldari [Thu, 13 Aug 2015 06:44:53 +0000 (23:44 -0700)]
Adding documentation for new RandomPageQuery hook to hooks.txt

Hook added in I91cd231d1

Change-Id: I448e0227b00e0e5b9390b144b9de360b8453f9ff

8 years agoAdding a new hook to allow modification of Special:Random query
Kaldari [Thu, 13 Aug 2015 02:27:20 +0000 (19:27 -0700)]
Adding a new hook to allow modification of Special:Random query

See: Ia84c54dcdadf54e9475c1dc7d0ec7c2c48afeaae
Bug: T9937
Change-Id: I91cd231d1cbf610f20134fd0271af46842a9a17d

8 years agoTry to make POSTs as transactional as possible
Aaron Schulz [Wed, 12 Aug 2015 23:08:14 +0000 (16:08 -0700)]
Try to make POSTs as transactional as possible

* WMF has has ignore_user_abort() for *all* request in configuration
  for many years. This brings this to default MediaWiki for all POST
  requests, which are likely to do writes. Of course, some do not,
  notably parse requests and previews, since GET cannot carry the
  payload. Avoiding data corruption is more important though.

Bug: T102890
Change-Id: I11c8b0d99583a682f756cef9747ec5ba9751c5e3

8 years agoMerge "Optimized notification timestamp clearing"
jenkins-bot [Wed, 12 Aug 2015 22:56:14 +0000 (22:56 +0000)]
Merge "Optimized notification timestamp clearing"

8 years agoMerge "Preferences: Don't load all default options for every default preference"
jenkins-bot [Wed, 12 Aug 2015 22:52:01 +0000 (22:52 +0000)]
Merge "Preferences: Don't load all default options for every default preference"

8 years agoOptimized notification timestamp clearing
Aaron Schulz [Wed, 12 Aug 2015 22:37:57 +0000 (15:37 -0700)]
Optimized notification timestamp clearing

* Hint that mariadb can avoid scanning already NULL rows since
  we want to set them all to NULL. This lets the index with the
  timestamp be used, which avoids logs of scanning for users with
  many rows. For non-parallel replication, this also avoids slave
  lag in particular.

Bug: T107923
Change-Id: I8cded5476ef6adb2f8fea57239afd6e9b2a49708

8 years agoPreferences: Don't load all default options for every default preference
Alex Monk [Wed, 12 Aug 2015 22:13:13 +0000 (23:13 +0100)]
Preferences: Don't load all default options for every default preference

Change-Id: Iaaebea56674dfaa48dbfedf6c7e5ad9eaa05759e

8 years agoAdded wfTransactionalTimeLimit() method and applied it
Aaron Schulz [Sat, 8 Aug 2015 00:08:33 +0000 (17:08 -0700)]
Added wfTransactionalTimeLimit() method and applied it

* Potentially long running POST requests often use multiple transactions,
  talk to multiple services, or defer updates. Try to make sure they have
  a chance to complete all of the work. WMF already sets ignore_user_abort()
  across the board in config, but this applies it to key spots for all
  installs, in addition to bumping the time limit.
* Eventually this can lower the need for high overall time limits.

Bug: T102890
Change-Id: I893ddd773064dcd63b5b24c84c6391974f4b5aee

8 years agoMerge "Made JobRunner bail more smoothly on near OOM"
jenkins-bot [Wed, 12 Aug 2015 20:47:39 +0000 (20:47 +0000)]
Merge "Made JobRunner bail more smoothly on near OOM"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 12 Aug 2015 19:14:10 +0000 (21:14 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I02ea462b65c3d406bfc552dd2f6f09d3984bbeb1

8 years agoOutput stylesheet links before other link elements in <head>
Ori Livneh [Wed, 12 Aug 2015 15:52:39 +0000 (08:52 -0700)]
Output stylesheet links before other link elements in <head>

Since external CSS is render-blocking, it should be discoverable to the browser
as soon as possible. So move it up to the top of <head>.

Change-Id: I68a6cce2f33ceb7f6461fcbb7323ae13c413aa89

8 years agoMerge "Changed "archived (revisions)" to "deleted (revisions)""
jenkins-bot [Wed, 12 Aug 2015 15:14:20 +0000 (15:14 +0000)]
Merge "Changed "archived (revisions)" to "deleted (revisions)""

8 years agoRevert "mediawiki.page.ready: When infusing, infuse by id, not by element"
Bartosz Dziewoński [Thu, 6 Aug 2015 09:16:37 +0000 (09:16 +0000)]
Revert "mediawiki.page.ready: When infusing, infuse by id, not by element"

Infusing by element is better, since it avoids the
document.getElementById() lookup and behaves better in case
of duplicate ids (which is invalid HTML, but happens).

This reverts commit 803d89173fc3a56871767663907785cb3eaf7aa5.
Depends on I11fd1c7f2434f904b9ddc94b0903f8278e06f3a1 in OOjs UI.

Bug: T105828
Change-Id: I8c1f5015229db7b8a391f324cfd96be4ac158041

8 years agoUpdate OOjs UI to v0.12.3
James D. Forrester [Tue, 11 Aug 2015 22:39:37 +0000 (15:39 -0700)]
Update OOjs UI to v0.12.3

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

Change-Id: Idd3a4e41154837e84d1dcb4622d04b5765e6cbf9

8 years agoMerge "wikibits.js: Support multiple parameter in document.write"
jenkins-bot [Tue, 11 Aug 2015 21:58:08 +0000 (21:58 +0000)]
Merge "wikibits.js: Support multiple parameter in document.write"

8 years agowikibits.js: Support multiple parameter in document.write
Fomafix [Sat, 8 Aug 2015 20:57:25 +0000 (20:57 +0000)]
wikibits.js: Support multiple parameter in document.write

document.write and document.writeln supports multiple arguments:
http://www.w3.org/html/wg/drafts/html/CR/webappapis.html#document.write%28%29

Support this in the replacement code.

Change-Id: I0ffc51352278d434d8347502c778b16b34c7d73f

8 years agoRestored I4afaecd8: "Avoiding writing sessions for no reason"
Aaron Schulz [Tue, 11 Aug 2015 00:49:19 +0000 (17:49 -0700)]
Restored I4afaecd8: "Avoiding writing sessions for no reason"

* After 203d2c9c11643, the refresh updates should actually trigger

This reverts commit e48fec5a8ab5916735849d420f2dfeec7eb0fced.

Change-Id: I8427ed5b3a5bb80033cbdf071a33f8a3999ecb97

8 years agoMerge "Fixed @var doc in MultiWriteBagOStuff"
jenkins-bot [Tue, 11 Aug 2015 20:29:45 +0000 (20:29 +0000)]
Merge "Fixed @var doc in MultiWriteBagOStuff"

8 years agoFixed @var doc in MultiWriteBagOStuff
Aaron Schulz [Tue, 11 Aug 2015 20:10:28 +0000 (13:10 -0700)]
Fixed @var doc in MultiWriteBagOStuff

Change-Id: I53384460b7a6ccda50a23e3ab1fc614198e82d1a

8 years agoFix argument handling in MultiWriteBagOStuff::get()
Ori Livneh [Tue, 11 Aug 2015 20:02:44 +0000 (13:02 -0700)]
Fix argument handling in MultiWriteBagOStuff::get()

Follow-up for I7ea050a2ea.

Change-Id: Ibaa4cf01ee913c7a725d1719c00308ef3c6b0aff

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 11 Aug 2015 19:49:33 +0000 (21:49 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I204409f696639078b76df2de157e1a7a89086e1f

8 years agoMerge "refreshLinks.php: Don't wait for slaves if nothing found in a chunk"
jenkins-bot [Tue, 11 Aug 2015 19:01:35 +0000 (19:01 +0000)]
Merge "refreshLinks.php: Don't wait for slaves if nothing found in a chunk"

8 years agoMerge "ResourceLoader: make `cacheReport` option false by default"
jenkins-bot [Tue, 11 Aug 2015 18:57:05 +0000 (18:57 +0000)]
Merge "ResourceLoader: make `cacheReport` option false by default"

8 years agoResourceLoader: make `cacheReport` option false by default
Ori Livneh [Tue, 11 Aug 2015 16:24:03 +0000 (09:24 -0700)]
ResourceLoader: make `cacheReport` option false by default

In the three years or so that I have been around, we at Wikimedia have not to
my knowledge used the cache keys to manage the cache of ResourceLoader modules.
Instead, if we want to force a module to rebuild, we simply touch one of its
files. (Though even that is not often required these days.)

Change-Id: Ib62a792e053572f268d4be19a10f99f84c07abc5

8 years agoSECURITY: Don't disclose if an IP is autoblocked on Special:DeletedContributions
Kunal Mehta [Fri, 24 Jul 2015 21:23:46 +0000 (14:23 -0700)]
SECURITY: Don't disclose if an IP is autoblocked on Special:DeletedContributions

Same patch as dc2966bd05b, just for Special:DeletedContributions this
time.

Bug: T106893
Change-Id: I2089b21fc379b612fe9bf087b5f4ea75052bdbd3

8 years agothumb.php: Escape $rel404 in error message
Timo Tijhof [Tue, 28 Apr 2015 05:51:25 +0000 (06:51 +0100)]
thumb.php: Escape $rel404 in error message

Bug: T97391
Change-Id: I363686732fe9e5636c85c267c0728fc872c3e39d

8 years agoSECURITY: API: Use constant-time comparison for watchlist token
Brad Jorsch [Fri, 27 Mar 2015 15:49:58 +0000 (11:49 -0400)]
SECURITY: API: Use constant-time comparison for watchlist token

Avoids a theoretical timing attack.

Bug: T94116
Change-Id: Ia4a2b13bd5d3cd256c6b2deada224148dc2888a6

8 years agoMerge "Add mw.Upload.Dialog as a UI to mw.Upload"
jenkins-bot [Tue, 11 Aug 2015 12:46:03 +0000 (12:46 +0000)]
Merge "Add mw.Upload.Dialog as a UI to mw.Upload"

8 years agoAdd mw.Upload.Dialog as a UI to mw.Upload
Prateek Saxena [Mon, 3 Aug 2015 05:08:55 +0000 (10:38 +0530)]
Add mw.Upload.Dialog as a UI to mw.Upload

Change-Id: I5fcd0a5f8190134b87a75d3c22e7aefc619d3738

8 years agoMerge "Move pager inside searchresults div"
jenkins-bot [Tue, 11 Aug 2015 05:58:56 +0000 (05:58 +0000)]
Merge "Move pager inside searchresults div"

8 years agoCount API and hook calls, with 1:1000 sampling
Gergő Tisza [Tue, 21 Jul 2015 23:31:22 +0000 (16:31 -0700)]
Count API and hook calls, with 1:1000 sampling

Re-adds I6f807adc9cbf71c5d7b83c7eec43965dce1d2a16 and
Ic04daf475b936b942833362c7a979dde671b3ef4 (reverted in
35ccd9c2fe058ed76be905d9efe06c31c11fd696) with 1:1000 sampling
to avoid swamping the statsd hosts.

Also fixes query module logging.

Bug: T102079
Bug: T106450
Change-Id: I8b9366407c0d1713790d08e69aaa518130f01977

8 years agoMerge "MessageCache: use APC for local caching, rather than files"
jenkins-bot [Mon, 10 Aug 2015 20:47:38 +0000 (20:47 +0000)]
Merge "MessageCache: use APC for local caching, rather than files"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 10 Aug 2015 19:41:06 +0000 (21:41 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I12216dc2ef2f270f19311ff52c76f78da8a09b3c

8 years agoMessageCache: use APC for local caching, rather than files
Ori Livneh [Sun, 9 Aug 2015 04:59:47 +0000 (21:59 -0700)]
MessageCache: use APC for local caching, rather than files

In addition to eliminating disk IO in a hot path, using APC spares us from
having to serialize and unserialize cache arrays. Since we're not serializing,
though, we don't have a string representation to hash, so use a random string
instead. (The code already treats the association of hash string to cache as
purely symbolic, so this is not problematic.)

Whereas the hash was previously stored as the first 32 bytes of each cache
file, we now store it as an array key instead (like VERSION and EXPIRY were
already). Because this changes the structure of cached data, we have to bump
MSG_CACHE_VERSION.

While we're here, make MessageCache::getLocalCache() and
MessageCache::saveToLocal() protected, make their signatures more
consistent with other methods in this class. While they were (implicitly)
public before, there are absolutely no external callers in Core or
extensions[0][1], so we can skip the standard deprecation process.

[0]: https://github.com/search?q=%40wikimedia+getlocalcache&type=Code&utf8=%E2%9C%93
[1]: https://github.com/search?utf8=%E2%9C%93&q=%40wikimedia+savetolocal&type=Code

Change-Id: I020617d2df2a8f0f243b85f3383dc7b16f15aaad

8 years agoMoved ObjectCacheSessionHandler renewal logic to wfSetupSession()
Aaron Schulz [Mon, 3 Aug 2015 20:35:50 +0000 (13:35 -0700)]
Moved ObjectCacheSessionHandler renewal logic to wfSetupSession()

* This should trigger more reliably than the shutdown function
  callback, which is really only there for sanity to make sure
  session close/write happens.

Change-Id: I9a1aa76de121ba8de33b3fa850bd223929fae404

8 years agoMerge "Removed ScopedPHPTimeout; unused"
jenkins-bot [Mon, 10 Aug 2015 18:37:48 +0000 (18:37 +0000)]
Merge "Removed ScopedPHPTimeout; unused"

8 years agoMerge "Avoid update.php suggestion on DB connection errors"
jenkins-bot [Mon, 10 Aug 2015 18:31:02 +0000 (18:31 +0000)]
Merge "Avoid update.php suggestion on DB connection errors"

8 years agoRemoved ScopedPHPTimeout; unused
Aaron Schulz [Fri, 7 Aug 2015 23:07:37 +0000 (16:07 -0700)]
Removed ScopedPHPTimeout; unused

Change-Id: Ic3a3500ddd410c68a30d3f3d1947f632e1aff5fd

8 years agoLoad 'mediawiki.legacy.commonPrint' styles with a media type property
Kunal Mehta [Mon, 10 Aug 2015 04:44:27 +0000 (21:44 -0700)]
Load 'mediawiki.legacy.commonPrint' styles with a media type property

Split the 'mediawiki.legacy.commonPrint' styles into a separate <style>
tag which sets media="print", which will make it a non-render blocking
resource.

Bug: T108413
Change-Id: Ife1d65b31bc79f96d7b89b94fdaeb2babf7ddf40

8 years agoMerge "Enforce an alphabetic default order for SiteList entries"
jenkins-bot [Mon, 10 Aug 2015 13:23:11 +0000 (13:23 +0000)]
Merge "Enforce an alphabetic default order for SiteList entries"

8 years agoMerge "A clearer wording for apihelp-query+info-paramvalue-prop-displaytitle"
jenkins-bot [Mon, 10 Aug 2015 11:32:02 +0000 (11:32 +0000)]
Merge "A clearer wording for apihelp-query+info-paramvalue-prop-displaytitle"

8 years agoMerge "Add MessagesSdh.php for Southern Kurdish"
jenkins-bot [Mon, 10 Aug 2015 09:24:16 +0000 (09:24 +0000)]
Merge "Add MessagesSdh.php for Southern Kurdish"

8 years agoMerge "Fix the display of the libraries in Special:Version for RTL wikis"
jenkins-bot [Sun, 9 Aug 2015 22:14:58 +0000 (22:14 +0000)]
Merge "Fix the display of the libraries in Special:Version for RTL wikis"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 9 Aug 2015 18:34:22 +0000 (20:34 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: If3b0cef6be7f0f6bf684b178c237313e27af058b

8 years agoAvoid fatal when accessing method of non-objects on Special:Undelete
umherirrender [Sun, 9 Aug 2015 15:18:54 +0000 (17:18 +0200)]
Avoid fatal when accessing method of non-objects on Special:Undelete

Revision::getContent can return null

Bug: T108495
Change-Id: I8aca2bd9dd536e7bf5ed49c5a7c0e3673c50385e

8 years agoAdd MessagesSdh.php for Southern Kurdish
Amir E. Aharoni [Sun, 9 Aug 2015 13:27:09 +0000 (16:27 +0300)]
Add MessagesSdh.php for Southern Kurdish

This language has 18% of core localization and it's being exported,
but it also needs an entry in Names.php, and a definition of
direction and fallback. Adding them in MessagesSdh.php.

Change-Id: I47febc9252292d2bffa1aad5eb389c41c4c20450

8 years agoMerge "Improve the grammar of tooltip-search-go"
jenkins-bot [Sun, 9 Aug 2015 10:26:15 +0000 (10:26 +0000)]
Merge "Improve the grammar of tooltip-search-go"

8 years agoMerge "Remove all-caps emphasis from simpleantispam-label"
jenkins-bot [Sun, 9 Aug 2015 10:26:10 +0000 (10:26 +0000)]
Merge "Remove all-caps emphasis from simpleantispam-label"

8 years agoMerge "Improve the phrasing of tooltip-preview"
jenkins-bot [Sun, 9 Aug 2015 10:16:51 +0000 (10:16 +0000)]
Merge "Improve the phrasing of tooltip-preview"

8 years agoMerge "Remove use of deprecated TestUser->user"
jenkins-bot [Sun, 9 Aug 2015 05:32:54 +0000 (05:32 +0000)]
Merge "Remove use of deprecated TestUser->user"

8 years agoMerge "Match salt of WatchAction::show() and getWatchToken()"
jenkins-bot [Sun, 9 Aug 2015 03:27:50 +0000 (03:27 +0000)]
Merge "Match salt of WatchAction::show() and getWatchToken()"

8 years agoMerge "mediawiki.legacy: Use 'none' rather than 'initial' to remove border"
jenkins-bot [Sat, 8 Aug 2015 22:48:10 +0000 (22:48 +0000)]
Merge "mediawiki.legacy: Use 'none' rather than 'initial' to remove border"

8 years agoMerge "Use Config instead of globals"
jenkins-bot [Sat, 8 Aug 2015 20:12:08 +0000 (20:12 +0000)]
Merge "Use Config instead of globals"

8 years agoRemove all-caps emphasis from simpleantispam-label
Amir E. Aharoni [Sat, 8 Aug 2015 19:17:33 +0000 (22:17 +0300)]
Remove all-caps emphasis from simpleantispam-label

All-caps emphasis can't be used in most alphabets,
and there is already emphasis with <strong> in this message.

Change-Id: I99a7452c547c34c644b553dd29e55d47f07aa5b3

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 8 Aug 2015 18:29:43 +0000 (20:29 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I521b20120fc0bce1c38ed649ce168e35d918cde0

8 years agoMatch salt of WatchAction::show() and getWatchToken()
firebus [Mon, 3 Aug 2015 04:58:21 +0000 (21:58 -0700)]
Match salt of WatchAction::show() and getWatchToken()

Use getPrefixedDbkey() when generating salt, for consistency.

Bug: T106910
Change-Id: I93e22a2aaee8bf888fa613929c1027f5f0c2642f

8 years agomediawiki.legacy: Use 'none' rather than 'initial' to remove border
Bartosz Dziewoński [Sat, 8 Aug 2015 14:56:25 +0000 (16:56 +0200)]
mediawiki.legacy: Use 'none' rather than 'initial' to remove border

A browser could potentially support 'text-decoration: underline dotted'
(which we check for with '@supports'), but not 'initial' value (which
we don't check for), resulting in double underlining.

Follow-up to I6fb2d2b8016c1f3164999e25cbc058ccd9a2f121.

Change-Id: I13359e99010b524cf1a9f868374327b2c17399b7

8 years agoUse Config instead of globals
Florian [Sat, 8 Aug 2015 09:56:46 +0000 (11:56 +0200)]
Use Config instead of globals

Follow up: I7ed79942c242b1957d46bdcad59985f37466fb83

Change-Id: Iff666a8ecc1f5c5a3fa1a34601fb74206a66b578

8 years agoOverride document.writeln to prevent it from blanking pages
Ori Livneh [Sat, 8 Aug 2015 01:25:55 +0000 (18:25 -0700)]
Override document.writeln to prevent it from blanking pages

Follow-up for Ic9056d7a77. Same rationale.

Bug: T108423
Change-Id: I664ba9b0af4355ac83f2e5892e484a3f3aff0428

8 years agoMade JobRunner bail more smoothly on near OOM
Aaron Schulz [Fri, 7 Aug 2015 22:09:22 +0000 (15:09 -0700)]
Made JobRunner bail more smoothly on near OOM

* Use the regular limit-X style response instead of throwing an
  exception. This avoids loss of statd data and the like.

Change-Id: Ia08384a0d13c268f6e7a673b2265ab77772e5539

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 7 Aug 2015 19:32:35 +0000 (21:32 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie6a5f12b6a526a812557aa80c5cd7d7765c5a26e

8 years agoMerge "mediawiki.legacy: Use CSS3 underlining for <abbr>"
jenkins-bot [Fri, 7 Aug 2015 19:00:21 +0000 (19:00 +0000)]
Merge "mediawiki.legacy: Use CSS3 underlining for <abbr>"

8 years agomediawiki.legacy: Use CSS3 underlining for <abbr>
Minh Nguyễn [Wed, 5 Aug 2015 06:42:37 +0000 (23:42 -0700)]
mediawiki.legacy: Use CSS3 underlining for <abbr>

Where supported, set text-decoration-style instead of border-bottom-style
to avoid double-underlining due to Firefox’s user agent style sheet.

Bug: T107560
Change-Id: I6fb2d2b8016c1f3164999e25cbc058ccd9a2f121

8 years agoRemove use of deprecated TestUser->user
addshore [Fri, 7 Aug 2015 16:10:26 +0000 (17:10 +0100)]
Remove use of deprecated TestUser->user

Change-Id: Iec47ea2609b4d407e827cec5bf2a834b75727005

8 years agoLog human-readable login status
Gergő Tisza [Fri, 7 Aug 2015 02:16:48 +0000 (02:16 +0000)]
Log human-readable login status

Bug: T91701
Change-Id: Ia73fcc21321990befb1d866f76102b24d67adbfa

8 years agoFix the display of the libraries in Special:Version for RTL wikis
Amir E. Aharoni [Fri, 7 Aug 2015 14:35:05 +0000 (17:35 +0300)]
Fix the display of the libraries in Special:Version for RTL wikis

Bug: T108325
Change-Id: I3c9a675fa7330d46090a64c003bcaf66ddf4260f

8 years agoMerge "Revert "Add executable rights for executable (bash) files""
jenkins-bot [Fri, 7 Aug 2015 07:38:00 +0000 (07:38 +0000)]
Merge "Revert "Add executable rights for executable (bash) files""

8 years agoAvoid update.php suggestion on DB connection errors
Aaron Schulz [Thu, 6 Aug 2015 22:09:54 +0000 (15:09 -0700)]
Avoid update.php suggestion on DB connection errors

Bug: T98788
Change-Id: I21974d6b775f13c33055f76c30142e937eb0e965

8 years agoRevert "Add executable rights for executable (bash) files"
Southparkfan [Mon, 3 Aug 2015 15:28:03 +0000 (15:28 +0000)]
Revert "Add executable rights for executable (bash) files"

These are not meant to be complete shell scripts, so
shebang lines don't really make sense here. Rather, as
noted by the author (Daniel Friesen), scripts in the
parent directory include these files using the "source"
or "." command.

This reverts commit 96e0ed45a81dfb4783c74353a8e70d0b926ad900.

Change-Id: I7a0b7bb2a5ea1b1c141cb36f38736fe562b22c10

8 years agoMade BagOStuff::merge() avoid retries on I/O errors
Aaron Schulz [Thu, 6 Aug 2015 23:08:41 +0000 (16:08 -0700)]
Made BagOStuff::merge() avoid retries on I/O errors

Change-Id: Ia2fd61132322ed3fa8909d60d9f7eb42e39cb443

8 years agoresourceloader: Restore anticipated loader states for hardcoded module requests
Timo Tijhof [Fri, 7 Aug 2015 00:44:38 +0000 (17:44 -0700)]
resourceloader: Restore anticipated loader states for hardcoded module requests

Follows-up Icba6d7a87b2 which removed this code in the
assumption that they're now taken care of by mw.loader.load.

While that is the case, they are still in the HTML and when earlier
modules require these modules the loader should not initiate a separate
request.

This was especially problematic for the 'user' module which mw.loader
was requesting with a version from the startup module which is
not associated with the current user. This would've caused edits
to a user's personal scripts post-Icba6d7a87b2 to not propagate
correctly. The second request would be ignored by mw.loader since
it implements a module that is already implemented.

This only affected wikis that were manually depending on the 'user'
module from Common.js or a default-loaded gadget.

Bug: T108275
Change-Id: I1b863a3ee23191adaf34f66b58973618487118b2

8 years agoMerge "Fixed deadlockLoop() IDE errors"
jenkins-bot [Thu, 6 Aug 2015 21:41:06 +0000 (21:41 +0000)]
Merge "Fixed deadlockLoop() IDE errors"