lhc/web/wiklou.git
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 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 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"

8 years agoFixed occasional MultiHttpClient "undefined index" errors
Aaron Schulz [Wed, 5 Aug 2015 23:49:12 +0000 (16:49 -0700)]
Fixed occasional MultiHttpClient "undefined index" errors

* These show sometimes in Swift FileBackend tests

Change-Id: I38c1817812282c94cab2011da7c322e92eec96ca

8 years agoMove pager inside searchresults div
Florian [Sun, 26 Jul 2015 14:03:07 +0000 (16:03 +0200)]
Move pager inside searchresults div

The pager is part of the searchresults page, but can't be styled
easily like the searchresults div container, because it's outside
the container. The pager should be in one block element with the
serach results.

This enables (e.g. extensions) to add content to the right side
of the search result page without having the problem with a pager,
that can't easily moved with CSS.

Change-Id: I52d9aacc1f396f42238318ae220266c7498b0824

8 years agoFixed deadlockLoop() IDE errors
Aaron Schulz [Thu, 6 Aug 2015 19:45:30 +0000 (12:45 -0700)]
Fixed deadlockLoop() IDE errors

Change-Id: I76bb9250bc8017756af4f2552cd48ab595a26297

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 6 Aug 2015 19:19:29 +0000 (21:19 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I7fa2dd76d17e2c0ed0e0314e4eaec1845abac4de

8 years agoMerge "Remove unused StatsdClient use from GlobalFunctions"
jenkins-bot [Thu, 6 Aug 2015 18:59:07 +0000 (18:59 +0000)]
Merge "Remove unused StatsdClient use from GlobalFunctions"

8 years agoMerge "Test index duplication in DatabaseSqlite"
jenkins-bot [Thu, 6 Aug 2015 18:29:22 +0000 (18:29 +0000)]
Merge "Test index duplication in DatabaseSqlite"

8 years agoMerge "Status: Correct documentation"
jenkins-bot [Thu, 6 Aug 2015 17:05:52 +0000 (17:05 +0000)]
Merge "Status: Correct documentation"

8 years agoRemove unused StatsdClient use from GlobalFunctions
addshore [Thu, 6 Aug 2015 17:00:43 +0000 (18:00 +0100)]
Remove unused StatsdClient use from GlobalFunctions

Change-Id: I5a773590e229f891298ff3d2eda5e4a258cc1f25

8 years agoAdd 'targets=desktop,mobile' to mediawiki.legacy.wikibits module
Timo Tijhof [Thu, 6 Aug 2015 16:32:38 +0000 (09:32 -0700)]
Add 'targets=desktop,mobile' to mediawiki.legacy.wikibits module

Follows-up 0ac4f99.

Bug: T108191
Change-Id: I88681eeef660301d9d739ee29f44ef5bb68f3293

8 years agoMerge "mediawiki.notify: Add JSDoc tags"
jenkins-bot [Thu, 6 Aug 2015 16:08:55 +0000 (16:08 +0000)]
Merge "mediawiki.notify: Add JSDoc tags"

8 years agomediawiki.notify: Add JSDoc tags
Thiemo Mättig [Thu, 6 Aug 2015 13:22:05 +0000 (15:22 +0200)]
mediawiki.notify: Add JSDoc tags

Change-Id: I8536e161f7c1911c78ad7dfafbc670e7ed42272b

8 years agoTest index duplication in DatabaseSqlite
addshore [Thu, 6 Aug 2015 09:25:16 +0000 (10:25 +0100)]
Test index duplication in DatabaseSqlite

Change-Id: I7b5c69aa68591e6f1105e6822d36c0c2149974d1

8 years agoEnforce an alphabetic default order for SiteList entries
Thiemo Mättig [Thu, 16 Jul 2015 16:48:05 +0000 (11:48 -0500)]
Enforce an alphabetic default order for SiteList entries

Bug: T106054
Change-Id: I8bf22d99b8304d7a6f40e384e8de00a4aca9313d

8 years agoMerge "Duplicate table indexes in DatabaseSqlite::duplicateTableStructure"
jenkins-bot [Thu, 6 Aug 2015 12:37:23 +0000 (12:37 +0000)]
Merge "Duplicate table indexes in DatabaseSqlite::duplicateTableStructure"

8 years agoStatus: Correct documentation
Bartosz Dziewoński [Thu, 6 Aug 2015 11:49:51 +0000 (13:49 +0200)]
Status: Correct documentation

Most of the docs for this class look misleading or downright incorrect...

Change-Id: I4c7397a5dfeca7447cb98611c4f3befaefaefaba

8 years agoDuplicate table indexes in DatabaseSqlite::duplicateTableStructure
Marius Hoch [Thu, 6 Aug 2015 00:55:18 +0000 (02:55 +0200)]
Duplicate table indexes in DatabaseSqlite::duplicateTableStructure

This is consistent with what we do with MySQL and is generally
convenient to have for certain integration tests.

Change-Id: Iaea79bd11263bf75061f19a94da9645ef634422f

8 years agoMerge "resourceloader: Fix undefined $filename in safeFileHash()"
jenkins-bot [Thu, 6 Aug 2015 08:48:04 +0000 (08:48 +0000)]
Merge "resourceloader: Fix undefined $filename in safeFileHash()"

8 years agoMerge "Allow to enable OOUI via a parser tag extension"
jenkins-bot [Thu, 6 Aug 2015 08:39:41 +0000 (08:39 +0000)]
Merge "Allow to enable OOUI via a parser tag extension"

8 years agoresourceloader: Fix undefined $filename in safeFileHash()
Timo Tijhof [Thu, 6 Aug 2015 05:51:06 +0000 (22:51 -0700)]
resourceloader: Fix undefined $filename in safeFileHash()

Follows-up 28f6d7fbdee.

This was causing versions to stay stuck at their current version.
It worked fine for the initial deployment since the rest of the
definition summary is still fine, but subsequent deploys that changed
only the file were ineffective due to these silently becoming
empty strings.

Thanks to suppressWarnings() we never saw these anywhere in the
tests or in production.

Change-Id: Ib4371255fe970442bcc0041219bce633a7f6f6dd

8 years agoReplace native "document.write" with deprecated fallback
Timo Tijhof [Thu, 6 Aug 2015 02:55:53 +0000 (19:55 -0700)]
Replace native "document.write" with deprecated fallback

In most browsers, calling "document.write" after the document is
ready results in the document being re-created with the specified
content (effectively replacing with blank page).

While this is a browser issue, mitigate this by replacing the
method with a fallback (wrapped in "mw.log.deprecate") that just
appends the given HTML to the document body.

Note that scripts do not execute when appended as HTML, they will
become dormant elements. It'll work for raw content as a basic
fallback, but it should become apparent to the end user that the
code needs to be upgraded.

Bug: T108139
Change-Id: Ic9056d7a779f234a28ddad005fd4d76f2e750fcc

8 years agoresourceloader: Restore "blocking" legacy modules
Timo Tijhof [Wed, 5 Aug 2015 22:42:26 +0000 (15:42 -0700)]
resourceloader: Restore "blocking" legacy modules

This ensures 'wikibits' and 'mediawiki.util' (if so configured)
finish loading before executing other modules.

This was previously implicitly provided for the bottom queue by
being in the top-queue, but since this is now asynchronous that
is no lower guaranteed. Fix this by making this explicit instead
of implicit.

Keep them in the top queue as-is to ensure consistency with cached
pages and it allows them to preload and batch in the same request
instead of being discovered later at run-time as a separate request.

Bug: T108124
Change-Id: I74e0cbe616404da927ea46d06308a7bae930eb69

8 years agoMerge "refreshLinks.php: Fix deletion of link entries from nonexistent pages"
jenkins-bot [Thu, 6 Aug 2015 02:28:54 +0000 (02:28 +0000)]
Merge "refreshLinks.php: Fix deletion of link entries from nonexistent pages"

8 years agoMerge "mediawiki.action.edit.stash: reduce idle time from 4k to 3k"
jenkins-bot [Wed, 5 Aug 2015 23:49:34 +0000 (23:49 +0000)]
Merge "mediawiki.action.edit.stash: reduce idle time from 4k to 3k"

8 years agomediawiki.action.edit.stash: reduce idle time from 4k to 3k
Ori Livneh [Wed, 5 Aug 2015 22:31:51 +0000 (15:31 -0700)]
mediawiki.action.edit.stash: reduce idle time from 4k to 3k

Deployed to Wikimedia cluster shortly after 23:00 UTC and led to an appreciable dip in save time.

Change-Id: I08fdda110b71bf7030a45afc3f3f5d7cc32c9b05

8 years agoMerge "qunit: Improved unfinished ajax detection"
jenkins-bot [Wed, 5 Aug 2015 22:34:24 +0000 (22:34 +0000)]
Merge "qunit: Improved unfinished ajax detection"

8 years agojsduck: Update eg-iframe.html to match MediaWiki environment
Timo Tijhof [Wed, 5 Aug 2015 20:55:25 +0000 (13:55 -0700)]
jsduck: Update eg-iframe.html to match MediaWiki environment

* Add 'resources/lib/phpjs-sha1/sha1.js' (follows-up f37cee996)
* Remove 'resources/src/startup.js' (follows-up b00cd0b12)
  This no longer works due to the $VARS placeholder. Either way
  it is redundant because we already define a 'startUp' function
  inside eg-iframe. We don't need anything from startup.js.

Bug: T107925
Change-Id: Iaf75850060556f03ebaa37b8e1dce0de6f1c16ce

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 5 Aug 2015 20:17:10 +0000 (22:17 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Iee978afb2b638a484600ebd3e85881320e59e198

8 years agoMerge "Parser: Don't generate an external link on "http://)" and similar"
jenkins-bot [Wed, 5 Aug 2015 20:12:29 +0000 (20:12 +0000)]
Merge "Parser: Don't generate an external link on ")" and similar"

8 years agoMerge "resourceloader: Convert FileModule to use version hashing"
jenkins-bot [Wed, 5 Aug 2015 19:51:42 +0000 (19:51 +0000)]
Merge "resourceloader: Convert FileModule to use version hashing"

8 years agoresourceloader: Convert FileModule to use version hashing
Timo Tijhof [Thu, 9 Jul 2015 18:30:53 +0000 (19:30 +0100)]
resourceloader: Convert FileModule to use version hashing

Enabling the module content versionining is not feasible for FileModule as that
would involve Lessc and CSSJanus just to compute the version hash.

Instead, we can keep the existing logic that exists for the timestamp-based
versioning (which already has a comprehensive grip on tracking all involved
factors that cause a module to change) and convert it to use hashing instead.

This way the version hashes will be deterministic. Currently module versions
tend to be invalidated too often (and sometimes not often enough) due to Git and
other transport mechanisms not preserving file timestamps.

== Research ==

* <https://phabricator.wikimedia.org/T98087#1412712>
  It'd take upto 10 seconds to run startup if FileModule enables build versioning.

* <https://phabricator.wikimedia.org/T104950#1433142>
  Checking all files in resources/** took only ~30m longer in total with
  sha1_file compared to filemtime.

Bug: T104950
Change-Id: I732fa4db32258c634e32b507952f76eac7fc9395

8 years agoAPI: Ignore '_' parameter in jsonp callback mode
Brad Jorsch [Fri, 27 Mar 2015 16:36:19 +0000 (12:36 -0400)]
API: Ignore '_' parameter in jsonp callback mode

jQuery has a misfeature where it by default appends a '_' parameter as a
cachebuster in jsonp mode. So, when in jsonp mode, mark this bogus
parameter as used to avoid an unnecessary warning.

Bug: T94015
Change-Id: I43373439a3605e4589315139c30976c6c2f68542

8 years agoqunit: Improved unfinished ajax detection
Timo Tijhof [Wed, 5 Aug 2015 00:11:11 +0000 (17:11 -0700)]
qunit: Improved unfinished ajax detection

Sometimes $.active is non-zero but the ajaxRequests array doesn't
contain any pending requests (yet). In that case, log $.active
as well.

Change-Id: I1c181b1234d1f883605de38805bc029c064a1f5b

8 years agoMerge "docs: Add examples for mw.Upload"
jenkins-bot [Wed, 5 Aug 2015 16:04:16 +0000 (16:04 +0000)]
Merge "docs: Add examples for mw.Upload"

8 years agodocs: Add examples for mw.Upload
Prateek Saxena [Wed, 5 Aug 2015 10:28:43 +0000 (15:58 +0530)]
docs: Add examples for mw.Upload

Change-Id: Icd759657fb1756d1559173d3a335f87e7a2baa2e

8 years agoRemove thumbnailaccess logging
Gilles Dubuc [Wed, 5 Aug 2015 08:40:58 +0000 (10:40 +0200)]
Remove thumbnailaccess logging

Bug: T107437
Change-Id: I3c2fe7b894fc571f4f92323637340dda23099a3a

8 years agoMerge "Cleaned up and split up Swift header parsing methods a bit"
jenkins-bot [Wed, 5 Aug 2015 08:29:44 +0000 (08:29 +0000)]
Merge "Cleaned up and split up Swift header parsing methods a bit"

8 years agoCleaned up and split up Swift header parsing methods a bit
Aaron Schulz [Fri, 31 Jul 2015 19:41:03 +0000 (12:41 -0700)]
Cleaned up and split up Swift header parsing methods a bit

* Added tests for the metadata headers portion of the code

Change-Id: I8ac65e31212b4cca4592f963e0ca5ad30e1349f7

8 years agoMerge "docs: Move mw.Upload documentation under the Interface heading"
jenkins-bot [Wed, 5 Aug 2015 03:11:52 +0000 (03:11 +0000)]
Merge "docs: Move mw.Upload documentation under the Interface heading"

8 years agodocs: Move mw.Upload documentation under the Interface heading
Prateek Saxena [Wed, 5 Aug 2015 02:49:18 +0000 (08:19 +0530)]
docs: Move mw.Upload documentation under the Interface heading

Change-Id: If78456696184a56b697dcad612356cde850e4e22

8 years agoMerge "Added BagOStuff READ_LATEST flag for replicated stores"
Aaron Schulz [Wed, 5 Aug 2015 01:48:29 +0000 (01:48 +0000)]
Merge "Added BagOStuff READ_LATEST flag for replicated stores"

8 years agoMerge "resourceloader: Fix RLQ script to support IE8 quirk"
jenkins-bot [Tue, 4 Aug 2015 23:43:52 +0000 (23:43 +0000)]
Merge "resourceloader: Fix RLQ script to support IE8 quirk"

8 years agoresourceloader: Fix RLQ script to support IE8 quirk
Timo Tijhof [Tue, 4 Aug 2015 23:07:45 +0000 (16:07 -0700)]
resourceloader: Fix RLQ script to support IE8 quirk

In IE8 there is a race condition. If the window.RLQ runs first (that is, the
startup module loads first) then 'var RLQ' does not get associated
properly to our custom window.RLQ object.

The other way around is fine, but never happens because <script async>
isn't supported in IE8.

Consistently use 'window.RLQ' (never 'var RLQ') to bypass this bug.

Also updating the startup.js file for consistency (though not strictly
needed since the implicit global reference without 'var' also works fine
in IE8.

Bug: T107954
Change-Id: I3f46fee7c4528abf806bb9c51fc767eceb795009

8 years agomediawiki.notification: Add message type with predefined styles
Fomafix [Mon, 3 Aug 2015 17:37:25 +0000 (17:37 +0000)]
mediawiki.notification: Add message type with predefined styles

New option.type to select a predefined style.

Default styles with colors:
* warn: yellow
* error: red
Other styles can be added.

Bug: T61099
Change-Id: I2d7305d9b62ebddc70e7f787e76e752b8b78d570

8 years agoAdded BagOStuff READ_LATEST flag for replicated stores
Aaron Schulz [Wed, 27 May 2015 18:52:44 +0000 (11:52 -0700)]
Added BagOStuff READ_LATEST flag for replicated stores

Bug: T88493
Change-Id: I7ea050a2eabba635f2aadb4e33b6f8fbfb1b01a8

8 years agoMerge "SpecialJavaScriptTest: Bypass ResourceLoader 'target' scope"
jenkins-bot [Tue, 4 Aug 2015 22:22:44 +0000 (22:22 +0000)]
Merge "SpecialJavaScriptTest: Bypass ResourceLoader 'target' scope"

8 years agoMerge "Made EnqueueJob use the same dummy title as the JobSpecification default"
jenkins-bot [Tue, 4 Aug 2015 22:20:46 +0000 (22:20 +0000)]
Merge "Made EnqueueJob use the same dummy title as the JobSpecification default"

8 years agoMerge "mw.widgets.DateInputWidget: Display a translateable placeholder"
jenkins-bot [Tue, 4 Aug 2015 22:14:20 +0000 (22:14 +0000)]
Merge "mw.widgets.DateInputWidget: Display a translateable placeholder"

8 years agoMade EnqueueJob use the same dummy title as the JobSpecification default
Aaron Schulz [Mon, 3 Aug 2015 19:59:25 +0000 (12:59 -0700)]
Made EnqueueJob use the same dummy title as the JobSpecification default

Change-Id: Ice0056fd4a74f2de6d6c7622b1e4e62fad1927e9

8 years agomw.widgets.DateInputWidget: Display a translateable placeholder
Bartosz Dziewoński [Tue, 4 Aug 2015 20:37:26 +0000 (22:37 +0200)]
mw.widgets.DateInputWidget: Display a translateable placeholder

The translations are sourced from UploadWizard's messages
'mwe-upwiz-tooltip-date' and 'mwe-upwiz-error-date', minus the ones
where the translation was identical to English, there were two
different translations, or the translation looked otherwise suspicious.

Change-Id: I0db3163cbf2a99616fae4ac993f49c69e9e755ba

8 years agoMerge "Hide edit toolbar Signature button in non-discussion namespaces"
jenkins-bot [Tue, 4 Aug 2015 20:05:32 +0000 (20:05 +0000)]
Merge "Hide edit toolbar Signature button in non-discussion namespaces"

8 years agoMerge "Make Special:ConfirmEmail load the user from the master"
jenkins-bot [Tue, 4 Aug 2015 18:50:19 +0000 (18:50 +0000)]
Merge "Make Special:ConfirmEmail load the user from the master"

8 years agoMake Special:ConfirmEmail load the user from the master
Aaron Schulz [Mon, 3 Aug 2015 23:20:39 +0000 (16:20 -0700)]
Make Special:ConfirmEmail load the user from the master

* This can help guard against stale reads if the user was
  created or changed a second ago.

Bug: T105896
Change-Id: Ib2a59762cd8f4a4b7ad86d0700f186bee1d5b2d1

8 years agoMerge "mw.widgets.DateInputWidget: Add missing background"
jenkins-bot [Tue, 4 Aug 2015 18:17:13 +0000 (18:17 +0000)]
Merge "mw.widgets.DateInputWidget: Add missing background"

8 years agoMerge "mw.widgets.DateInputWidget: Don't get stuck on today's date if none given"
jenkins-bot [Tue, 4 Aug 2015 18:17:10 +0000 (18:17 +0000)]
Merge "mw.widgets.DateInputWidget: Don't get stuck on today's date if none given"