Commit graph

59198 commits

Author SHA1 Message Date
Translation updater bot
57fbf16aea Localisation updates from https://translatewiki.net.
Change-Id: I0ee5a6d4d1fa172ec0f99f183db933632432fa3f
2014-10-07 20:36:29 +02:00
jenkins-bot
ff88a346f6 Merge "Deprecate OutputPage::rateLimited()" 2014-10-07 17:52:49 +00:00
jenkins-bot
b83369b9ba Merge "Deprecate OutputPage::readOnlyPage()" 2014-10-07 17:52:46 +00:00
jenkins-bot
ac7572935e Merge "mediawiki.api: Remove check for callback in postWithToken" 2014-10-07 14:08:07 +00:00
jenkins-bot
4ffe4ca50b Merge "PrefixSearch: Add unit tests for StringPrefixSearch" 2014-10-07 12:41:08 +00:00
Fomafix
cd0c385aaf mediawiki.api: Remove check for callback in postWithToken
Follows-up I0a650fdb4affd394ae419e21d54baf790116f6f7.

Change-Id: I178f68368cc1930e8b9f12afe5c6db7612235c40
2014-10-07 11:44:32 +00:00
Kevin Israel
95954ab86c Deprecate OutputPage::rateLimited()
Change-Id: I140e6af9dde090b9f8611e7b53a650061f2e84eb
2014-10-07 12:35:59 +02:00
Kevin Israel
202db653c3 Deprecate OutputPage::readOnlyPage()
Also, as this method is never called with an argument in any Gerrit-hosted
extension, shortened it to just `throw new ReadOnlyError;` on the assumption
that the removed portion was only left in for EditPage.

Change-Id: Icc2fc166b155eac548dfd5f3e67b0b1f92ef90d3
2014-10-07 12:34:56 +02:00
Matthew Flaschen
57d98abc50 MW UI: Show all permutations of checkboxes in Living Style Guide
* Regular unchecked
* Regular checked (added)
* Disabled unchecked
* Disabled checked

Although you can obviously check and uncheck it yourself, it's easier
for the user to show them the permutations on page load.  Otherwise,
they might not even notice the special check mark image.

Also, fix a couple unrelated typos in buttons.less.

Change-Id: I17b63eeb424e23d1c3b9ce9ab8bfaa66b5bf4a46
2014-10-07 09:18:08 +02:00
jenkins-bot
40022d6cbc Merge "Updating style documentation for quiet anchors and quiet buttons" 2014-10-07 06:57:49 +00:00
jenkins-bot
02d80d6958 Merge "hash_equals(): Avoid division by zero when $known_string is empty" 2014-10-07 06:49:20 +00:00
kaldari
9a2d85f28a Updating style documentation for quiet anchors and quiet buttons
See discussion on design-l for more context:
https://lists.wikimedia.org/pipermail/design/2014-October/002161.html

Change-Id: I1d958724d4222c95ad5ed52778d26228b09bd121
2014-10-07 08:49:08 +02:00
jenkins-bot
59efe37730 Merge "UploadBaseTest: Use setMwGlobals() instead of juggling globals" 2014-10-07 06:46:11 +00:00
jenkins-bot
20fcd7b913 Merge "MWCryptHKDFTest: Mock $wgSecretKey to ensure atomicity" 2014-10-07 06:45:08 +00:00
Kevin Israel
4620e3b862 hash_equals(): Avoid division by zero when $known_string is empty
Per Tim Starling's review of Icb239471, reverted back to the version of
the function from Patch Set 1 of Iece006ec, which did not have the bug.
This version does not attempt to minimize the inevitable leakage of the
string's length.

Also revised the doc comment to explain more effectively what the problem
with a normal (===) string comparison is for the use cases of this function.

Follows-up b9e1d5f5c0.

Change-Id: I1b347e69b39af3d7d8ba6673af63f1a616befbdf
2014-10-07 06:42:12 +00:00
Tim Starling
9f0d40e08f HashBagOStuff: use the value itself as the CAS token
Avoid an unnecessary serialize() call on get() requests, which makes it
faster and also happens to work around a nasty crash bug which is
causing lots of segfaults right now.

CAS semantics should be the same, if the caller handles a CAS token in
an opaque way and does not assume it is a string. I could only find one
caller of cas() in core and WMF deployed extensions, and that is
BagOStuff::mergeViaCas(), which does correctly handle CAS tokens of any
type.

Bug: 71724
Change-Id: I0b0b5f0157c005ec7f76210dfb8576c056314733
2014-10-07 16:29:57 +11:00
Timo Tijhof
0d5a0dbf06 MWCryptHKDFTest: Mock $wgSecretKey to ensure atomicity
Follows-up af66c04.

The tests depend indirectly on wgSecretKey (used by
MWCryptHKDF::generateHex). On test installs I tend to set this
to "example" or "***", which is less than 16 characters and thus
the unit tests failed with "MWCryptHKDF secret was too short".

Change-Id: I9a85fd9fbb345863e4837fed2910d60ebf1b0d83
2014-10-07 05:22:37 +02:00
Timo Tijhof
dabd389220 UploadBaseTest: Use setMwGlobals() instead of juggling globals
Abstracts the logic for restoration into the built-in teardown()
handler.

Also purify the test configuration by setting wgHooks and
wgFileExtensions to otherwise empty arrays instead of extending
existing ones.

Change-Id: Ied65ee62f658dd650c603a54e72cd19965867a8f
2014-10-07 05:13:32 +02:00
jenkins-bot
17adab6135 Merge "SpecialWhatlinkshere: Add autocompletion for target input" 2014-10-07 00:31:38 +00:00
aude
3e87e7edf5 Log non-MediaWiki exceptions for requests via main entry point
Previously, non-MediaWiki exceptions were logged only for api requests,
job runner, resource loader, etc. but not for general requests
such as page views.

Bug: 61914
Change-Id: Id4de5cac0b9996a98cdaf5e73655d49fa55ea8c3
2014-10-06 23:57:49 +00:00
PiRSquared17
258808ff8a SpecialWhatlinkshere: Add autocompletion for target input
This adds the mw-searchInput class so suggestions are given by
mediawiki.searchSuggest (if loaded by the skin).

Bug: 65209
Change-Id: If4ae687ba125c002eedce114820a271cf615011b
2014-10-06 20:59:18 +02:00
Translation updater bot
03cfd26a7a Localisation updates from https://translatewiki.net.
Change-Id: Ia0998d81e51a5081b31ca8146f7ec7ef67f75d09
2014-10-06 20:59:05 +02:00
Kevin Israel
e189306d51 Remove SquidUpdate::newFromLinksTo()
This has been broken since r9199 / e0ce5a322e41; a DB query error will occur
because the links table no longer exists, and even if the table were to
exist, the pl_* columns would not exist in that table.

There is no usage in core or Gerrit-hosted extensions.

Change-Id: I4922f85417bfb4d40f08662ba100ab5b78edd5fb
2014-10-06 18:19:10 +00:00
jenkins-bot
eb221f575d Merge "Tune Skin::preloadExistence" 2014-10-06 18:00:53 +00:00
James D. Forrester
9e142a35ca Update OOjs UI to v0.1.0-pre (26dadbc60f)
New changes:
6c91643 Make buttons respond to :active events
9137aaf Move window overlay up to be a sibling of the frame
19d8c83 ComboBoxWidget: Append menu to $overlay option
eb0fcb8 InlineMenuWidget: Fix documentation
19d2c2b SelectWidget: Fix typos in documentation
495d281 TextInputMenuWidget: Fix typo in documentation
b4ae961 Toolbar: Correctly display "More" label on catch-all groups
32e769e Toolbar demo: Fix tool name mismatch
e9983b6 build: Clean up Grunt config and add missing csscomb run

Change-Id: I1ee2e51460c709fa01934ae7d58ac8411b124867
2014-10-06 09:03:58 -07:00
aude
ec6ee905b5 Move TimestampException to exception directory
Change-Id: Id3829cbd155636839a272dc7e28e45bee7b87e8b
2014-10-06 11:03:54 +02:00
jenkins-bot
86a56f0a8a Merge "Adjust h3 size to keep it smaller than h2 across normal platforms" 2014-10-06 07:16:11 +00:00
Jackmcbarn
fd9173e588 Include categories in Special:ExpandTemplates
Show the categories box at the bottom of the page,
which more accurately represents what the page would
look like and allows users to see the effective
categories of the expanded page.

Bug: 71633
Change-Id: I4c003fb1f42b29602cd8924b224ff7642e8cf857
2014-10-06 02:24:15 +00:00
jenkins-bot
5a07c1a4b7 Merge "Update usage of getRedirectSnippet() and getSectionSnippet()" 2014-10-05 20:09:58 +00:00
Mark A. Hershberger
50adf671ef Update usage of getRedirectSnippet() and getSectionSnippet()
Meant to include this in I571e015814ea756771c66c243cb8db86448db463 but
it was missed.

Change-Id: I9ff805daee1c10d7ea75dedd0ba59b467aaadd50
2014-10-05 16:02:05 -04:00
Translation updater bot
13b263dfb4 Localisation updates from https://translatewiki.net.
Change-Id: Ide1bf69a2454e7031c3b373184e2f32a57d66b59
2014-10-05 21:44:46 +02:00
jenkins-bot
d5aac726d0 Merge "Update usage of getTitleSnippet(), getRedirectSnippet() and getSectionSnippet()" 2014-10-05 18:30:31 +00:00
umherirrender
09467b52cf Tune Skin::preloadExistence
Just preload user page and talk, when the personal bar is shown.
Use Skin::getRelevantTitle for the title to have the correct title
preloaded, when using for example [[Special:WhatLinksHere]].

Change-Id: I4363a9f3fd909cfdc341dc1a8c6c0189efd9b736
2014-10-05 19:28:51 +02:00
umherirrender
2682eb00aa Undefined variable: attrs in HistoryAction.php on line 202
Replaced by an array() and removed an unused variable near by.

Follow-Up: I61bb3c358f755ed9f2153d94b744c1a9da02c456
Change-Id: I5c4dc22e1e9346bfc410a9dda4353d5297a5825e
2014-10-05 19:08:15 +02:00
jenkins-bot
71e6840b70 Merge "jquery.ui: Collapse border in ui-helper-clearfix" 2014-10-05 08:00:14 +00:00
jenkins-bot
b1a32ed130 Merge "Update OOjs UI to v0.1.0-pre (48980881f3)" 2014-10-04 21:34:25 +00:00
jenkins-bot
ca28853e22 Merge "Fix for Bug 63980 - Comparison of limits in pingLimiter is incorrect" 2014-10-04 20:35:30 +00:00
jenkins-bot
3827a5a3b5 Merge "Add comment to AFL_* constants in Defines.php" 2014-10-04 20:19:36 +00:00
Amir E. Aharoni
46b3698947 Avoid extra-long code lines
Makes phpcs happy.

Change-Id: Ideb4d4e7b9f5c385f108b91b26a796ecf6833d47
2014-10-04 16:25:50 +00:00
Amir E. Aharoni
4cdbcd52a2 Whitespace correction
Change-Id: Ia6e9c1e47bf6289398a38e6b4b2f5055e30ba4fb
2014-10-04 16:29:43 +03:00
jenkins-bot
9268b6f763 Merge "mediawiki.page.image.pagination: Cache last-loaded pages" 2014-10-04 12:46:36 +00:00
umherirrender
d3da4ab7c2 Add comment to AFL_* constants in Defines.php
$wgAntiLockFlags was removed in
Ia709ccdc9addc55c99cbff21a5ff3009b5fbb53c

Change-Id: Ia8685a84b72abb1a86b70f73c3f1e9f0c3e52a8f
2014-10-04 02:40:08 +00:00
James D. Forrester
c2ff1ba594 Update OOjs UI to v0.1.0-pre (48980881f3)
New changes:
aafebc4 LookupInputWidget: Fix whitespace and documentation
cf89618 Element: Remove unneeded IIFE
4898088 build: Create minified JS and CSS distribution files

Change-Id: Iaea30c2429401be4061f30d98a8edc7cce5567b1
2014-10-03 18:51:05 -07:00
jenkins-bot
c1abd570c6 Merge "update-oojs-ui.sh: Exclude the minimised distribution files" 2014-10-04 01:23:34 +00:00
isarra
bb65f55412 Adjust h3 size to keep it smaller than h2 across normal platforms
Some platforms (especially certain linux distros) use slightly wider
sans-serifs than others by default. Bolding these wider fonts has a
more significant size impact than with narrower ones, so because the
h3 is bold and the h2 is not, a little more distance between their
defined sizes should ensure that the h3 will remain smaller than the
h2 regardless of platform.

Bug: 69999
Change-Id: I667c60f553d67e5208c708446f13b0773ad11ace
2014-10-04 01:03:36 +00:00
jenkins-bot
e50872d052 Merge "Html: Use https for @see url of buttonAttributes()" 2014-10-03 22:20:48 +00:00
Prateek Saxena
b7b74ec8ec Html: Use https for @see url of buttonAttributes()
Follows up I61bb3c358f755ed9f2153d94b744c1a9da02c456.

Change-Id: I46be4249bdfde1b801e798e732617077f71f983d
2014-10-03 22:12:41 +00:00
jenkins-bot
3e92f7bffd Merge "Use neutral instead of progressive for secondary edit page buttons" 2014-10-03 21:57:19 +00:00
Matthew Flaschen
92bee8e99f Use neutral instead of progressive for secondary edit page buttons
Only applies if wgUseMediaWikiUIEverywhere is true.

Bug: 71628
Change-Id: Iae6d28e989a7c5b92ba8b31e166aa7b5d3244baf
2014-10-03 17:44:07 -04:00
jenkins-bot
8a52d9af46 Merge "Revert "buttons: Update focus for quiet buttons"" 2014-10-03 21:38:00 +00:00