lhc/web/wiklou.git
6 years agoMerge "Make chunkedUpload match upload behavior"
jenkins-bot [Thu, 14 Sep 2017 19:45:14 +0000 (19:45 +0000)]
Merge "Make chunkedUpload match upload behavior"

6 years agoMerge "RCFilters: Live update: no data returns 204"
jenkins-bot [Thu, 14 Sep 2017 18:11:14 +0000 (18:11 +0000)]
Merge "RCFilters: Live update: no data returns 204"

6 years agoMerge "mediawiki.Title: Remove obsolete Object.create ES3 fallback"
jenkins-bot [Thu, 14 Sep 2017 17:40:08 +0000 (17:40 +0000)]
Merge "mediawiki.Title: Remove obsolete Object.create ES3 fallback"

6 years agomediawiki.Title: Remove obsolete Object.create ES3 fallback
Timo Tijhof [Thu, 14 Sep 2017 17:25:15 +0000 (19:25 +0200)]
mediawiki.Title: Remove obsolete Object.create ES3 fallback

We no longer support non-ES5 browsers.

Change-Id: If1e18dc3111899f3b0a5ae53909624186101a8ba

6 years agoMerge "mw.loader: Remove Deferred overhead from execute() hot code path"
jenkins-bot [Thu, 14 Sep 2017 17:03:01 +0000 (17:03 +0000)]
Merge "mw.loader: Remove Deferred overhead from execute() hot code path"

6 years agoMerge "mw.loader: Add unit test to confirm implicit 'site' dependency for 'user'"
jenkins-bot [Thu, 14 Sep 2017 13:47:47 +0000 (13:47 +0000)]
Merge "mw.loader: Add unit test to confirm implicit 'site' dependency for 'user'"

6 years agoMerge "Fix saved query names cutoff"
jenkins-bot [Thu, 14 Sep 2017 12:47:35 +0000 (12:47 +0000)]
Merge "Fix saved query names cutoff"

6 years agoMerge "De-duplicate HTMLCacheUpdate jobs with a page array of size 1"
jenkins-bot [Thu, 14 Sep 2017 12:36:52 +0000 (12:36 +0000)]
Merge "De-duplicate HTMLCacheUpdate jobs with a page array of size 1"

6 years agomw.loader: Remove Deferred overhead from execute() hot code path
Timo Tijhof [Thu, 14 Sep 2017 09:52:52 +0000 (11:52 +0200)]
mw.loader: Remove Deferred overhead from execute() hot code path

This was introduced by 0ac4f99804c for the concept of globally
implied legacy dependencies.

Commit ba257035b07 then re-purposed this for the site/user module
dependency.

The legacy wait was removed in 0ac6076b4c0, thus leaving only the
site/user code.

This commit now simplifies the code back to how it was before 0ac4f99804c
(but keeping the improved error handling from ba257035b07).

Change-Id: I2eae3b78fbe4f03a7a098d8a6233bdc2b79171b8

6 years agomw.loader: Add unit test to confirm implicit 'site' dependency for 'user'
Timo Tijhof [Thu, 14 Sep 2017 09:48:03 +0000 (11:48 +0200)]
mw.loader: Add unit test to confirm implicit 'site' dependency for 'user'

The underlying logic is in mw.loader#execute and mw.loader#runScript,
but currently untested.

Adding tests in prep for refactoring this code.

Change-Id: I77ffb5f23443e24ca1d86f36ddf434673e9c1538

6 years agoDe-duplicate HTMLCacheUpdate jobs with a page array of size 1
Aaron Schulz [Thu, 14 Sep 2017 09:25:23 +0000 (11:25 +0200)]
De-duplicate HTMLCacheUpdate jobs with a page array of size 1

BacklinkJobUtils consistently uses the "pages" field in leaf
jobs, even when there is only one page per leaf job.

RefreshLinksJob already has this logic for de-duplication.

Change-Id: Ia189bbc9df44f2161cfed4192c23b2ac3cfa65ce

6 years agoFix saved query names cutoff
petarpetkovic [Thu, 14 Sep 2017 08:37:08 +0000 (10:37 +0200)]
Fix saved query names cutoff

Fix saved filters name misalignment and cutoff for
letters that have descenders on RC page.

Bug: T174111
Change-Id: I32e61fad98f38b48e0234467056a939d634eb15c

6 years agoPrefer that enqueueable post-send updates are run immediately
Aaron Schulz [Thu, 14 Sep 2017 08:07:38 +0000 (10:07 +0200)]
Prefer that enqueueable post-send updates are run immediately

If the user is not waiting at this point, so there is not much
reason to enqueue a job over just doing the work now. Running
the update now gives more immediate results however.

This has the effect of  making LinksUpdate run post-send for
forward link updates, since the addUpdate() call in WikiPage uses
the default POSTSEND mode. These updates used to be synchronous
in the past, before proper post-send update support. With post-send
updates, there is not much benefit to using the job queue here.

If post-send updates are not supported, this will continue to
use the job queue.

If a caller needs such updates to enqueue post-send to avoid DB
updates on HTTP GET or if the update is too big to run outside of
JobRunner, it can always just use JobQueueGroup::lazyPush() with
a direct job object or JobSpecification.

Change-Id: Ibc4b1e17538cc8b1fba7d13759e1ebb83abed869

6 years agoMerge "Improve flaky SiteStatsTest"
jenkins-bot [Thu, 14 Sep 2017 02:35:09 +0000 (02:35 +0000)]
Merge "Improve flaky SiteStatsTest"

6 years agoMerge "JobQueueMemory: Actually return values in MappedIterator callback"
jenkins-bot [Thu, 14 Sep 2017 02:33:56 +0000 (02:33 +0000)]
Merge "JobQueueMemory: Actually return values in MappedIterator callback"

6 years agoMerge "Allow users to restrict who can send them direct emails via Special:EmailUser"
jenkins-bot [Thu, 14 Sep 2017 01:02:25 +0000 (01:02 +0000)]
Merge "Allow users to restrict who can send them direct emails via Special:EmailUser"

6 years agoRCFilters: Output namespace class on log actions as well
Moriel Schottlender [Thu, 14 Sep 2017 00:18:11 +0000 (17:18 -0700)]
RCFilters: Output namespace class on log actions as well

Bug: T174732
Change-Id: Icaf7117d9566bb2bb31c69cf86078491d6c217cc

6 years agopopulateIpChanges.php: Insert rows in batches
Reedy [Wed, 13 Sep 2017 22:22:19 +0000 (23:22 +0100)]
populateIpChanges.php: Insert rows in batches

Change-Id: I0233b5a17fc64751514ec6d0701f155a73906873

6 years agoMerge "Center items in 'Save current filter settings'"
jenkins-bot [Wed, 13 Sep 2017 20:57:39 +0000 (20:57 +0000)]
Merge "Center items in 'Save current filter settings'"

6 years agoMerge "RCFilters: make live update part of the beta feature"
jenkins-bot [Wed, 13 Sep 2017 20:49:04 +0000 (20:49 +0000)]
Merge "RCFilters: make live update part of the beta feature"

6 years agoMerge "Fix submit button id on Special:Preferences"
jenkins-bot [Wed, 13 Sep 2017 20:47:16 +0000 (20:47 +0000)]
Merge "Fix submit button id on Special:Preferences"

6 years agoRCFilters: make live update part of the beta feature
Stephane Bisson [Wed, 13 Sep 2017 20:07:54 +0000 (16:07 -0400)]
RCFilters: make live update part of the beta feature

Cleanup wgStructuredChangeFiltersEnableLiveUpdate

Bug: T175766
Change-Id: I03db105bef6c3730221c2d00ce56afb2c78bf57c

6 years agoMerge "Sync up with Parsoid parserTests.txt"
jenkins-bot [Wed, 13 Sep 2017 20:36:48 +0000 (20:36 +0000)]
Merge "Sync up with Parsoid parserTests.txt"

6 years agoSync up with Parsoid parserTests.txt
Subramanya Sastry [Wed, 13 Sep 2017 20:20:40 +0000 (15:20 -0500)]
Sync up with Parsoid parserTests.txt

This now aligns with Parsoid commit dcf2706cff795b84fbbfb6cd22749a86655b04f2

Change-Id: I24700184204000465922930dbac2b019259b5a01

6 years agoFix submit button id on Special:Preferences
Bartosz Dziewoński [Wed, 13 Sep 2017 19:58:25 +0000 (21:58 +0200)]
Fix submit button id on Special:Preferences

For reasons beyond human fathoming, the button had the id set
to 'prefsubmit' in PHP code and then changed to 'prefcontrol'
in JS code. This functionality has been carefully preserved
across multiple rewrites of this code since 2004, when it was
added in 30d0ccd0 (rSVN3618). Let's just set the id in PHP.

Change-Id: Ib23bd0e481e73a51ff0a16731f47a2df11b2c1b8

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 13 Sep 2017 20:03:46 +0000 (22:03 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id145914494c1acfac06ec68cef3805341cbdcc88

6 years agoRCFilters: Live update: no data returns 204
Stephane Bisson [Wed, 13 Sep 2017 16:58:16 +0000 (12:58 -0400)]
RCFilters: Live update: no data returns 204

Return status 204 when peek=1 and there is no data

Also refactor _fetchChangesList to allow checking for new changes
and pulling them different handling.

Bug: T173613
Change-Id: I8fe2556156bac3d0cfa4f557ae82a163b6eb4d37

6 years agoMerge "Move call of Sanitizer::decodeCharReferences from Skin to Parser"
jenkins-bot [Wed, 13 Sep 2017 17:54:13 +0000 (17:54 +0000)]
Merge "Move call of Sanitizer::decodeCharReferences from Skin to Parser"

6 years agoMerge "Do not double decode HTML entities for IDs"
jenkins-bot [Wed, 13 Sep 2017 17:50:37 +0000 (17:50 +0000)]
Merge "Do not double decode HTML entities for IDs"

6 years agoMerge "RCFilters: Add an initialization hook"
jenkins-bot [Wed, 13 Sep 2017 17:35:25 +0000 (17:35 +0000)]
Merge "RCFilters: Add an initialization hook"

6 years agoMerge "RCFilters: Actually apply proper classes to grouped pages"
jenkins-bot [Wed, 13 Sep 2017 17:34:49 +0000 (17:34 +0000)]
Merge "RCFilters: Actually apply proper classes to grouped pages"

6 years agoAllow users to restrict who can send them direct emails via Special:EmailUser
David Barratt [Tue, 29 Aug 2017 13:43:35 +0000 (09:43 -0400)]
Allow users to restrict who can send them direct emails via Special:EmailUser

Users can now specify a blacklist of users who are prevented from sending them a direct email.

Bug: T138166
Change-Id: Ifa26153f593b0ca3a9121e1e29961911c616c9e4

6 years agoMerge "mediawiki.htmlform.checker: Add missing dependency on jquery.throttle-debounce"
jenkins-bot [Wed, 13 Sep 2017 17:26:28 +0000 (17:26 +0000)]
Merge "mediawiki.htmlform.checker: Add missing dependency on jquery.throttle-debounce"

6 years agoRCFilters: Actually apply proper classes to grouped pages
Moriel Schottlender [Wed, 13 Sep 2017 00:44:03 +0000 (17:44 -0700)]
RCFilters: Actually apply proper classes to grouped pages

Bug: T174734
Change-Id: Ie0a8f5587103c3caed31d29585db78017ac4ab4c

6 years agomediawiki.htmlform.checker: Add missing dependency on jquery.throttle-debounce
Bartosz Dziewoński [Wed, 13 Sep 2017 16:54:34 +0000 (18:54 +0200)]
mediawiki.htmlform.checker: Add missing dependency on jquery.throttle-debounce

Change-Id: I56345cac3d52f2862d4b3b5df3ba3b6d0ed29c34

6 years agoMerge "WikiPage::doCreate() should provide 12th parameter to PageContentSaveComplete...
jenkins-bot [Wed, 13 Sep 2017 16:41:35 +0000 (16:41 +0000)]
Merge "WikiPage::doCreate() should provide 12th parameter to PageContentSaveComplete hook"

6 years agoMerge "Add CommentStoreComment::newUnsavedComment()"
jenkins-bot [Wed, 13 Sep 2017 15:42:28 +0000 (15:42 +0000)]
Merge "Add CommentStoreComment::newUnsavedComment()"

6 years agoMerge "Replace more problematic uses of "SELECT *""
jenkins-bot [Wed, 13 Sep 2017 14:59:19 +0000 (14:59 +0000)]
Merge "Replace more problematic uses of "SELECT *""

6 years agoWikiPage::doCreate() should provide 12th parameter to PageContentSaveComplete hook
Mark A. Hershberger [Mon, 11 Sep 2017 16:21:56 +0000 (12:21 -0400)]
WikiPage::doCreate() should provide 12th parameter to PageContentSaveComplete hook

In case the hook user has created the 12th param without a default.

Bug: T175596
Change-Id: I63142daaaeea069364dc70b45ee62680ac955f1e

6 years agoCenter items in 'Save current filter settings'
petarpetkovic [Wed, 13 Sep 2017 13:41:17 +0000 (15:41 +0200)]
Center items in 'Save current filter settings'

- Center cancel button (X) in 'Save current filter settings' menu.
- Center head label in 'Save current filter settings' menu.

Bug: T174454
Change-Id: I44ce0b40aa6acf5797f70fda731e5e4bde9f9748

6 years agoMerge "RCFilters: Preference length is in bytes, so use $.byteLength"
jenkins-bot [Wed, 13 Sep 2017 13:38:54 +0000 (13:38 +0000)]
Merge "RCFilters: Preference length is in bytes, so use $.byteLength"

6 years agoMerge "Skin.php: HTML escape message pipe-separator"
jenkins-bot [Wed, 13 Sep 2017 13:16:39 +0000 (13:16 +0000)]
Merge "Skin.php: HTML escape message pipe-separator"

6 years agoReplace more problematic uses of "SELECT *"
Brad Jorsch [Wed, 13 Sep 2017 12:13:02 +0000 (08:13 -0400)]
Replace more problematic uses of "SELECT *"

With the introduction of CommentStore, selects from various table
require certain joins or column aliases for proper operation.

Change-Id: I2ecb6030bf253664c3227d69b5ed2277596a83f0

6 years agoMove call of Sanitizer::decodeCharReferences from Skin to Parser
Fomafix [Wed, 13 Sep 2017 11:49:02 +0000 (13:49 +0200)]
Move call of Sanitizer::decodeCharReferences from Skin to Parser

Supporting HTML entities in Wikitext is part of the parser not of the
skin.

Change-Id: Ib30ff08f4f4ce585f31211aa24b719783f06456e

6 years agoSkin.php: HTML escape message pipe-separator
Fomafix [Wed, 13 Sep 2017 10:37:36 +0000 (12:37 +0200)]
Skin.php: HTML escape message pipe-separator

This prevents HTML and JavaScript injections.

Change-Id: I6241dadf29e96aa1aa15324a3edc51538214345d

6 years agoMerge "Linker: Accept LinkTargets in makeCommentLink()"
jenkins-bot [Wed, 13 Sep 2017 10:15:54 +0000 (10:15 +0000)]
Merge "Linker: Accept LinkTargets in makeCommentLink()"

6 years agoMerge "Linker: Accept LinkTarget objects in link()"
jenkins-bot [Wed, 13 Sep 2017 10:10:38 +0000 (10:10 +0000)]
Merge "Linker: Accept LinkTarget objects in link()"

6 years agoMerge "Linker: Don't use Title::setFragment()"
jenkins-bot [Wed, 13 Sep 2017 10:07:16 +0000 (10:07 +0000)]
Merge "Linker: Don't use Title::setFragment()"

6 years agoMerge "ImageHistoryPseudoPager: Don't use Title::setFragment()"
jenkins-bot [Wed, 13 Sep 2017 10:03:44 +0000 (10:03 +0000)]
Merge "ImageHistoryPseudoPager: Don't use Title::setFragment()"

6 years agoRCFilters: Preference length is in bytes, so use $.byteLength
Matthew Flaschen [Wed, 13 Sep 2017 02:22:33 +0000 (22:22 -0400)]
RCFilters: Preference length is in bytes, so use $.byteLength

Also, a minor fix to $.byteLength docs

Change-Id: I0f93edb0cb61a057da5ce0876b74cd17179c6587

6 years agoMerge "Fix coverage annotations"
jenkins-bot [Wed, 13 Sep 2017 06:51:53 +0000 (06:51 +0000)]
Merge "Fix coverage annotations"

6 years agoMerge "Use db query builder not raw sql"
jenkins-bot [Wed, 13 Sep 2017 00:03:58 +0000 (00:03 +0000)]
Merge "Use db query builder not raw sql"

6 years agoMerge "Quote $default in PostgresUpdater::setDefault"
jenkins-bot [Tue, 12 Sep 2017 23:46:29 +0000 (23:46 +0000)]
Merge "Quote $default in PostgresUpdater::setDefault"

6 years agoMerge "Remove @covers from private Sanitizer method"
jenkins-bot [Tue, 12 Sep 2017 23:43:51 +0000 (23:43 +0000)]
Merge "Remove @covers from private Sanitizer method"

6 years agoMerge "Chinese Conversion Table Update 2017-4"
jenkins-bot [Tue, 12 Sep 2017 23:38:11 +0000 (23:38 +0000)]
Merge "Chinese Conversion Table Update 2017-4"

6 years agoMerge "Split off remaining helper classes for special pages to separate files"
jenkins-bot [Tue, 12 Sep 2017 23:35:11 +0000 (23:35 +0000)]
Merge "Split off remaining helper classes for special pages to separate files"

6 years agoChinese Conversion Table Update 2017-4
Chiefwei [Thu, 17 Aug 2017 06:10:08 +0000 (14:10 +0800)]
Chinese Conversion Table Update 2017-4

Update the Chinese conversion table routinely to fix bugs reported from https://zh.wikipedia.org/wiki/Wikipedia:%E5%AD%97%E8%AF%8D%E8%BD%AC%E6%8D%A2/%E4%BF%AE%E5%A4%8D%E8%AF%B7%E6%B1%82 .

It is only data changes and only works for Chinese WikiProjects.

Change-Id: Ic66546d3a47e4dd946ae67c636a638ca181b0ca1

6 years agoUse db query builder not raw sql
Reedy [Tue, 12 Sep 2017 22:24:12 +0000 (23:24 +0100)]
Use db query builder not raw sql

Change-Id: I8e26932e28fdda9a52e0486c5d2eb269eb9ecae5
Follows-up: Ice1bdae3d16cf365da14c6df0e8d91d2b914e064

6 years agoMerge "postEdit: Use standard close icon"
jenkins-bot [Tue, 12 Sep 2017 22:14:13 +0000 (22:14 +0000)]
Merge "postEdit: Use standard close icon"

6 years agoSplit off remaining helper classes for special pages to separate files
Bartosz Dziewoński [Tue, 12 Sep 2017 21:03:26 +0000 (23:03 +0200)]
Split off remaining helper classes for special pages to separate files

includes/specials/formfields/
* EditWatchlistCheckboxSeriesField (for SpecialEditWatchlist)
* UploadSourceField                (for SpecialUpload)
* Licenses                         (for SpecialUpload)

includes/specials/forms/
* EditWatchlistNormalHTMLForm      (for SpecialEditWatchlist)
* PreferencesForm                  (for SpecialPreferences)
* UploadForm                       (for SpecialUpload)

includes/specials/helpers/
* ImportReporter                   (for SpecialImport)
* License                          (for SpecialUpload)

Change-Id: I58abcbb44dbf9bf1762b4252555f7552bfa7c253

6 years agoMerge "Enable recursive partials in TemplateParser"
jenkins-bot [Tue, 12 Sep 2017 20:08:47 +0000 (20:08 +0000)]
Merge "Enable recursive partials in TemplateParser"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 12 Sep 2017 19:56:32 +0000 (21:56 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I23445b9466fb16491dc794c730e743a035cc5b17

6 years agoMerge "Reduce code duplication for parsing messages into dropdown menus"
jenkins-bot [Tue, 12 Sep 2017 19:35:26 +0000 (19:35 +0000)]
Merge "Reduce code duplication for parsing messages into dropdown menus"

6 years agoMerge "EditPage: Stop using $wgLang"
jenkins-bot [Tue, 12 Sep 2017 19:14:41 +0000 (19:14 +0000)]
Merge "EditPage: Stop using $wgLang"

6 years agoReduce code duplication for parsing messages into dropdown menus
Bartosz Dziewoński [Wed, 12 Jul 2017 19:31:33 +0000 (21:31 +0200)]
Reduce code duplication for parsing messages into dropdown menus

The same behavior was implemented by Xml::listDropDown(),
Article::confirmDelete() and HTMLFormField::getOptions().
A new function Xml::listDropDownOptions() is added and
all three are changed to use it.

Additionally:
* Xml::listDropDown() now uses XmlSelect internally to generate the
  dropdown HTML.
* Xml::listDropDownOptionsOoui() is introduced to handle converting
  the existing format to the OOUI format, which was previously
  duplicated in Article::confirmDelete() and HTMLFormField::getOptionsOOUI().
* This change allows HTMLForm 'select' fields (HTMLSelectField) to
  support nested options (optgroups) in OOUI mode. This is a
  prerequisite for T117781.

Bug: T117781
Change-Id: I0a088f61eb32ec59677113583c7ecdcbc3fd2af0

6 years agoEditPage: Stop using $wgLang
Kunal Mehta [Tue, 12 Sep 2017 18:31:43 +0000 (11:31 -0700)]
EditPage: Stop using $wgLang

Change-Id: Ifca2cdcff45b4e06aef6e06dc5a3b852752a7a1a

6 years agoEditPage: Rename and make getSubmitButtonLabel() protected
Kunal Mehta [Tue, 12 Sep 2017 18:17:20 +0000 (11:17 -0700)]
EditPage: Rename and make getSubmitButtonLabel() protected

Calling this method "SaveButton" is misleading since this function
controls whether the button is called "save" or "publish". The
corresponding config option (EditSubmitButtonLabelPublish) already uses
the terminology "SubmitButton" so re-use it here.

And make it protected so subclasses (e.g. TwoColConflict) can use it
instead of having to re-implement it.

Change-Id: Iae811f0487f661bb501a9893037c352efa4e1e73

6 years agoSync up with Parsoid parserTests.txt
Arlo Breault [Tue, 12 Sep 2017 17:50:11 +0000 (13:50 -0400)]
Sync up with Parsoid parserTests.txt

This now aligns with Parsoid commit c695317294087a691bad649237f9d86fbfce64c5

Change-Id: I6cb1eafcaf23846aba25714e6177c0e510c0b174

6 years agoRemove @covers from private Sanitizer method
Reedy [Tue, 12 Sep 2017 16:39:46 +0000 (17:39 +0100)]
Remove @covers from private Sanitizer method

Breaks mediawiki-core-code-coverage

https://integration.wikimedia.org/ci/job/mediawiki-core-code-coverage/3003/console

Change-Id: I3204289c1d45e5ea0bee5c4bb6869434152e6017

6 years agoJobQueueMemory: Actually return values in MappedIterator callback
Brad Jorsch [Tue, 12 Sep 2017 15:45:45 +0000 (11:45 -0400)]
JobQueueMemory: Actually return values in MappedIterator callback

Change-Id: Ie489d43ba3e9f4a10580716f38ec0f123d9ab5bb

6 years agoImprove flaky SiteStatsTest
Brad Jorsch [Tue, 12 Sep 2017 15:48:41 +0000 (11:48 -0400)]
Improve flaky SiteStatsTest

SiteStatsTest::testJobsCountGetCached() is somewhat flaky in that if it
runs after a test that adds a page (thereby producing htmlCacheUpdate
and recentChangesUpdate jobs) but doesn't have the CI framework reset
the `page` tables (which has the side effect of clearing all such jobs),
it will fail.

This change manually clears those jobs so it doesn't depend on test
ordering.

Change-Id: I1277e633c81b29bda7564fa12d23f13ded7298c7

6 years agoMerge "Update padding of mw-ui-input to match OOUI"
jenkins-bot [Tue, 12 Sep 2017 14:27:53 +0000 (14:27 +0000)]
Merge "Update padding of mw-ui-input to match OOUI"

6 years agoDo not double decode HTML entities for IDs
Fomafix [Mon, 2 May 2016 05:14:45 +0000 (05:14 +0000)]
Do not double decode HTML entities for IDs

* in links (T103714)
* in indicators (T104196)

This change removes the automatic Sanitizer::decodeCharReferences from
Sanitizer::escapeId and Sanitizer::escapeIdInternal. Where decoding of
HTML entities are wanted an explicit call to
Sanitizer::decodeCharReferences is added.

Explicit decode HTML entities in non local autocomments. (T104311)

Bug: T103714
Bug: T104196
Bug: T104311
Change-Id: I88e8e2077e6f5eec2b232391f7818370894a62dc

6 years agoUpdate padding of mw-ui-input to match OOUI
Ed Sanders [Tue, 12 Sep 2017 13:38:28 +0000 (14:38 +0100)]
Update padding of mw-ui-input to match OOUI

Change-Id: I85c7044666be41a9baa52e8f7ba019a96dac4a6b

6 years agoMerge "Port BCP47 formatter from PHP to JavaScript"
jenkins-bot [Tue, 12 Sep 2017 11:43:49 +0000 (11:43 +0000)]
Merge "Port BCP47 formatter from PHP to JavaScript"

6 years agoPort BCP47 formatter from PHP to JavaScript
Niklas Laxström [Thu, 7 Sep 2017 12:11:01 +0000 (14:11 +0200)]
Port BCP47 formatter from PHP to JavaScript

It can be accessed via mw.language.bcp47.
To be used in ContentTranslation, see T157212

Change-Id: I37d32ab8a55c7101b903b03869899f00a39afd11

6 years agoMerge "Replace autocomment color with WCAG conformant WikimediaUI palette one"
jenkins-bot [Tue, 12 Sep 2017 08:53:48 +0000 (08:53 +0000)]
Merge "Replace autocomment color with WCAG conformant WikimediaUI palette one"

6 years agoMerge "Sanity check "stashedtexthash" param before checking memcached"
jenkins-bot [Tue, 12 Sep 2017 08:53:45 +0000 (08:53 +0000)]
Merge "Sanity check "stashedtexthash" param before checking memcached"

6 years agoReplace autocomment color with WCAG conformant WikimediaUI palette one
Volker E [Tue, 12 Sep 2017 05:00:20 +0000 (22:00 -0700)]
Replace autocomment color with WCAG conformant WikimediaUI palette one

Replacing outdated `.autocomment` color with WCAG level AA conformant
one from WikimediaUI color palette and also replace `.wikitable`'s
color with normal text color. Black is to be used solely on emphasized
UI elements and we're remaining high contrast level.
Follow-up to Ide230784be654def9f120d5242d036f7423e65b2

Bug: T152025
Change-Id: I8e860b53481caf03e11f9bcdd836a80c3a2fc39f

6 years agoFix coverage annotations
Max Semenik [Tue, 12 Sep 2017 04:34:43 +0000 (21:34 -0700)]
Fix coverage annotations

Change-Id: I1f9b421a4ce55f1e0d4a81ed4a886aae20100fab

6 years agoMerge "Don't percent-encode HTML5 IDs"
jenkins-bot [Tue, 12 Sep 2017 01:38:59 +0000 (01:38 +0000)]
Merge "Don't percent-encode HTML5 IDs"

6 years agoDon't percent-encode HTML5 IDs
Max Semenik [Fri, 1 Sep 2017 00:48:42 +0000 (17:48 -0700)]
Don't percent-encode HTML5 IDs

During the TechCom meeting, it was decided this is the better way.

Bug: T152540

Change-Id: I6c3ec1c407225b4e925b7373bf52208e2f6b6c4a

6 years agoFix bug in dl-dt list output generation
Subramanya Sastry [Wed, 6 Sep 2017 22:47:54 +0000 (17:47 -0500)]
Fix bug in dl-dt list output generation

* An open <dt> (;) should be closed when we encounter a new <dd> (:)
  char even if it is on a new line that has other nested lists inside.

* Tidy was hiding this PHP parser bug by closing a <dt> and opening
  a <dd> when given this HTML: "<dl><dt>a<ul><li>b</li></ul></dt></dl>"
  It generates "<dl><dt>a</dt><dd><ul><li>b</li></ul></dd></dl>"

  However, a HTML5 parser like RemexHTML, domino (used by Parsoid),
  or browsers don't do this fixup.

* So, what I thought was a bug in RemexHTML turned out to be a bug
  in the PHP parser that was being hidden by the use of Tidy.

* Added a regression test.

Bug: T175099
Change-Id: I6d5b225b82cecf9a43f23837ed8ec359b31aadad

6 years agoMerge "Provide an opt-out preference for New Filters for RecentChanges"
jenkins-bot [Tue, 12 Sep 2017 00:30:13 +0000 (00:30 +0000)]
Merge "Provide an opt-out preference for New Filters for RecentChanges"

6 years agoRCFilters: Add an initialization hook
Moriel Schottlender [Sat, 9 Sep 2017 00:24:27 +0000 (17:24 -0700)]
RCFilters: Add an initialization hook

Change-Id: I9adc529bee0d5e25566409cc98f7bbac8178c478

6 years agoProvide an opt-out preference for New Filters for RecentChanges
James D. Forrester [Wed, 23 Aug 2017 21:30:20 +0000 (14:30 -0700)]
Provide an opt-out preference for New Filters for RecentChanges

Currently this is disabled by default. On wikis with the BetaFeatures and
WikimediaMessages extensions installed, this preference is set (if the
$wgEnableRcFiltersBetaFeature flag is set) via BetaFeatures. This change
lets users on normal wikis use these too, and lets BetaFeatures-capable
wikis "graduate" the feature to be provided to all users by default.

Bug: T168376
Change-Id: I3c75f9f2f6287414bf330f116d959d078250392d

6 years agoMerge "Add some devs with significant contributions to core"
jenkins-bot [Mon, 11 Sep 2017 21:59:59 +0000 (21:59 +0000)]
Merge "Add some devs with significant contributions to core"

6 years agoMerge "FeedbackDialog: Improve alignment"
jenkins-bot [Mon, 11 Sep 2017 20:46:26 +0000 (20:46 +0000)]
Merge "FeedbackDialog: Improve alignment"

6 years agoMerge "Add <body> class marking whether RCFilters is enabled"
jenkins-bot [Mon, 11 Sep 2017 20:36:39 +0000 (20:36 +0000)]
Merge "Add <body> class marking whether RCFilters is enabled"

6 years agoMerge "RCFilters: Live update: disable peek param"
jenkins-bot [Mon, 11 Sep 2017 20:32:28 +0000 (20:32 +0000)]
Merge "RCFilters: Live update: disable peek param"

6 years agoAdd <body> class marking whether RCFilters is enabled
Matthew Flaschen [Mon, 11 Sep 2017 07:12:03 +0000 (03:12 -0400)]
Add <body> class marking whether RCFilters is enabled

Also added OutputPage->addBodyClasses to allow this

Bug: T175062
Change-Id: I2111d0762328f2e59038c92d63583a9bb267fc9f

6 years agoAdd CommentStoreComment::newUnsavedComment()
Brad Jorsch [Mon, 11 Sep 2017 18:27:01 +0000 (14:27 -0400)]
Add CommentStoreComment::newUnsavedComment()

Revision (or more accurately, its upcoming MCR replacement) should allow
for the full flexibility of CommentStore in its interface, and the most
straightforward way to do that is to use CommentStoreComment. But for
that to work sanely, we need a non-@private way to create a new
CommentStoreComment that hasn't been saved to the database yet.

Change-Id: I76028e8ef3da4568a16e098cdfbc806a67b814e3

6 years agoMerge "Show a warning in edit preview when a template loop is detected"
jenkins-bot [Mon, 11 Sep 2017 18:26:11 +0000 (18:26 +0000)]
Merge "Show a warning in edit preview when a template loop is detected"

6 years agoMerge "Use CommentStore::getCommentLegacy with CommentStore::getFields"
jenkins-bot [Mon, 11 Sep 2017 18:13:29 +0000 (18:13 +0000)]
Merge "Use CommentStore::getCommentLegacy with CommentStore::getFields"

6 years agoApiQuery: Fix type docs for $groups in ApiQueryBase::selectNamedDB() call chain
Kunal Mehta [Sun, 10 Sep 2017 22:14:33 +0000 (15:14 -0700)]
ApiQuery: Fix type docs for $groups in ApiQueryBase::selectNamedDB() call chain

Change-Id: Iaa2ed914347fc4a1b477406cc8b83d7f21adf1a7

6 years agoMerge "ApiQueryWatchlist: Document type of $commentStore property"
jenkins-bot [Mon, 11 Sep 2017 14:54:07 +0000 (14:54 +0000)]
Merge "ApiQueryWatchlist: Document type of $commentStore property"

6 years agoMerge "ApiQueryWatchlist: Don't reinvent Title::newFromLinkTarget()"
jenkins-bot [Mon, 11 Sep 2017 14:43:23 +0000 (14:43 +0000)]
Merge "ApiQueryWatchlist: Don't reinvent Title::newFromLinkTarget()"

6 years agoUse CommentStore::getCommentLegacy with CommentStore::getFields
Brad Jorsch [Mon, 11 Sep 2017 14:33:29 +0000 (10:33 -0400)]
Use CommentStore::getCommentLegacy with CommentStore::getFields

It doesn't matter when $wgCommentTableSchemaMigrationStage is
MIGRATION_OLD, but it'll fail when we start changing that to later
migration stages.

Follows up I3447a412.

Change-Id: I6c010cefedd99324080ec078b83159d12709c1b1

6 years agoApiQueryWatchlist: Document type of $commentStore property
Kunal Mehta [Sun, 10 Sep 2017 22:13:26 +0000 (15:13 -0700)]
ApiQueryWatchlist: Document type of $commentStore property

Change-Id: I884bdd347aeddadfd4a7de89261e5ab1a0d8f6f2

6 years agoRCFilters: Live update: disable peek param
Stephane Bisson [Mon, 11 Sep 2017 12:38:53 +0000 (08:38 -0400)]
RCFilters: Live update: disable peek param

Temporarily disable the peek parameter until
we figure out why it doesn't work in betalabs.

This makes the responses larger but still much
smaller than they were originally.

Bug: T173613
Change-Id: I15af48d520644e3da073f0cc3bc63a7f7b7b3850