Commit graph

14653 commits

Author SHA1 Message Date
Translation updater bot a070e3ab3a Localisation updates from https://translatewiki.net.
Change-Id: I0f32f1f15372b041c161d7f69a0866b957f3e81b
2018-06-06 23:06:29 +02:00
jenkins-bot ef0f1db361 Merge "eslint: Move qunit env flag to test config" 2018-06-05 21:11:49 +00:00
L10n-bot a67813d8e5 Merge "Localisation updates from https://translatewiki.net." 2018-06-05 20:19:00 +00:00
Translation updater bot ed65185de2 Localisation updates from https://translatewiki.net.
Change-Id: I28b055d7d6180b6e815b85557966719886050636
2018-06-05 22:17:08 +02:00
Ed Sanders 7dbc4c7140 eslint: Move qunit env flag to test config
Change-Id: I290c436b25e306a3657324304ded08011ffcea7a
2018-06-05 21:12:56 +01:00
jenkins-bot cb62540fac Merge "eslint: Enable qunit/no-assert-equal,no-early-return,no-negated-ok" 2018-06-05 20:11:46 +00:00
Ed Sanders b668286e9b eslint: Enable qunit/no-assert-equal,no-early-return,no-negated-ok
Change-Id: I6a202a496ba9359c63febf623ef8b4dd3caa47dd
2018-06-05 20:41:39 +01:00
Ed Sanders dee50b778c MWTransclusionNode: Remove old createInvisibleIcon override
Bug: T196479
Change-Id: I99aab2e0eee3274305a6877263414ce21049fa5b
2018-06-05 18:50:14 +01:00
Ed Sanders b79c98f1e3 Simplify conversion of images
Assume that images provided by Parsoid will adhere to the DOMspec.

Change-Id: I52eb4f27e6b1e1cd092133c3e27e42021ae83783
2018-06-05 13:05:40 +01:00
Translation updater bot be1c31d988 Localisation updates from https://translatewiki.net.
Change-Id: Icbf7dc0eff8cb17579a06d162476bbabbc990fe3
2018-06-04 22:44:51 +02:00
Ed Sanders 98ec3947a9 Add preview mode converter tests
Change-Id: I58a2c9a9e8fd0bf8254819b960c5a5ad8190f643
Depends-On: I3f1a4772cbf67091b5fd52bab610390ebd9b16ef
2018-06-04 19:00:34 +00:00
Ed Sanders bb6cd33821 VisualDiff: Don't compare images with different src's
Bug: T196343
Change-Id: I99ddce806e044ca427bf01b41d164c89dd2e15fd
2018-06-04 18:49:18 +01:00
Ed Sanders a7049dacea Update language variant node to use new invisible icon API
Bug: T195887
Depends-On: I4eab7b9edf04454ef1a62535656b179480c3054b
Change-Id: I655757b13514e8ff89c312dcc2e1147d188a2718
2018-06-04 17:34:22 +00:00
James D. Forrester b998e3cae3 Update VE core submodule to master (aca98533e)
New changes:
d62da204c Fix documentation in dm.Surface, remove duplicate dm.Selection.equals
b2ee82d06 Bypass expensive hasRendering calculation for CommentNodes
522959e5c ve.ce.AlienNode: Fix hover highlight opacity in IE/Edge
06e67e2a1 ve.ce.FocusableNode: Remove "ve-ce-focusableNode-highlight-relocatable-marker"
d38b994d9 Localisation updates from https://translatewiki.net.
2056626bc Remove unused & untested HashValueStore.filter
49a8fbae4 Upstream comment node's invisble icon with label into focusable node

Bug: T195887
Change-Id: Id2da1f2da4e5e32acb3d604307d0f84f6a82bf39
2018-06-04 09:45:04 -07:00
jenkins-bot 6594055882 Merge "Paste conversion dialog shouldn't be escapable" 2018-06-04 16:44:39 +00:00
David Lynch d3fd979d3b Paste conversion dialog shouldn't be escapable
It doesn't have a "cancel and do nothing" route to fall back on, so pressing
escape does the non-progressive action, which is to paste-as-wikitext rather
than paste-as-plaintext. Neither of these is really an intuitive outcome.

Change-Id: I786b6fc87e3cdf3bb50898a070a15a353a242848
2018-06-04 11:16:19 -05:00
Santhosh Thottingal b049a82e8d
ApiResponseCache: Add a check for data.query before accessing redirects
Follow-up: If4f8c9b6719c123b31d852eb71f06a79cc0f7917
Change-Id: I5f1814f341ce401fcb3926487a2cea276698bca0
2018-06-04 13:50:27 +05:30
Translation updater bot a93d1e6102 Localisation updates from https://translatewiki.net.
Change-Id: I48d83893b5867283ea2835a31f879916f7055665
2018-06-03 22:36:44 +02:00
Translation updater bot 6883aaa323 Localisation updates from https://translatewiki.net.
Change-Id: I6163a444ab187b39bb56fdf3ee84d732dd718790
2018-06-02 22:41:45 +02:00
Translation updater bot c3f567ff02 Localisation updates from https://translatewiki.net.
Change-Id: I1eed9e109e011426386fb251f1a91c849518fb6d
2018-06-01 22:27:51 +02:00
Ed Sanders cb36c6ded3 Fix parsing of external links, now Parsoid adds 'external' classes
Bug: T196025
Bug: T188656
Change-Id: I89b8ba378108bde6c8db0144ed306cbc8471111b
2018-06-01 08:47:46 +00:00
jenkins-bot 22d1cfeecb Merge "Update VE core submodule to master (6847cfba6)" 2018-06-01 08:37:26 +00:00
Translation updater bot 15d048f9a3 Localisation updates from https://translatewiki.net.
Change-Id: I4edd4509605e81cbb80fa3580eead7d62432f9fd
2018-05-31 22:28:48 +02:00
Timo Tijhof 21f526bffe mw.trackSubscriber: Remove action.init.timing value
In Schema:Edit, all action timing durations (ready, loaded, saveAttempt etc.)
are defined as "time since the editor was initialised", which is internally
stored as the timestamp for the "init" action.

The 'init' action itself does not have a timing duratation, but the Edit schema
has a special case for it, definining it as "time since the page was loaded".

In actually, it isn't actually implemented as "time since the page loaded",
and I suspect that as such, this value is probably not used by EventLogging
consumers of the Edit schema. Or, it might be used, but doesn't represent
what the consumers think it does.

Presently, it uses the init time now() - mediaWikiLoadStart, which basically
means the time between the random point at which MediaWiki core JavaScript
finished executing which is quite variable in practice due to the race between
<script async> and browssing parsing/rendering of HTML. That is by design,
and is also why mediaWikiLoadStart is undocumented and internal, and actually
in the process of being removed.

After many iterations on this patch to try and approximate an alternative to
this undocumented variable, I came up with an alternative approach with DLynch
at the Hackathon, which is to simply not record this one timing value, but
preserve the behaviour of all the other timing values exactly as-is.

That is, keep the behaviour of storing `now()` as "init" when the editor
activates, and keep the behaviour of substracting "init" from all other action
times, but only don't report "init" itself to EventLogging (given its value
would be 0, which isn't useful).

Bug: T160315
Change-Id: I778234efe40dde8ff30333339335be1c3910a4e0
2018-05-31 18:27:12 +00:00
James D. Forrester d7dcf6f681 Update VE core submodule to master (6847cfba6)
New changes:
89c8891eb Update OOUI to v0.27.1
d542afe0f Fix OOUI deprecation warning from tests
962cd9f5c Localisation updates from https://translatewiki.net.
40e8a27b0 Add test coverage for preview mode (optionally)

Change-Id: I6dd76c021ffc4f5b4be9e5e12ddda710b4595c12
2018-05-31 10:10:37 -07:00
jenkins-bot 725adb2ae3 Merge "Disconnect surface model history listener when tearing down" 2018-05-31 00:23:37 +00:00
jenkins-bot 47fab2753b Merge "DesktopArticleTarget: Section-scroll as part of restoring the page" 2018-05-30 22:03:49 +00:00
jenkins-bot c9f3f45b9d Merge "ApiVisualEditor: Defensively check that query prop revisions returns arrays" 2018-05-30 22:03:35 +00:00
jenkins-bot fbdb76fd80 Merge "build: Introduce eslint-plugin-qunit" 2018-05-30 21:01:55 +00:00
Translation updater bot 46c0141eb3 Localisation updates from https://translatewiki.net.
Change-Id: Icc1af8332ff11f77790548d2fd43fb2b7a2d903a
2018-05-30 22:24:54 +02:00
Ed Sanders a7f5a76bca build: Introduce eslint-plugin-qunit
Change-Id: I0a169916eaf260500ca6a172e6fb2b0c61f8d422
2018-05-30 21:04:02 +01:00
jenkins-bot 083d2aa588 Merge "ApiResponseCache: Support redirects data processing" 2018-05-30 16:53:07 +00:00
Translation updater bot b687368264 Localisation updates from https://translatewiki.net.
Change-Id: Ic196eaf34d9e2189cc7b01f75bfbd920df8118be
2018-05-29 22:25:22 +02:00
James D. Forrester 8543cd525d Update VE core submodule to master (73e80ba80)
New changes:
15d2625b4 build: Bump devDependencies to latest
d613f4766 build: Introduce eslint-plugin-qunit
1d675a7b2 build: Enable eslint's qunit/literal-compare-order rule, with an exception
591a22590 build: Enable eslint's qunit/no-ok-equality rule
d89243c16 Move QUnit eslint config to tests/ folder
a67715636 Localisation updates from https://translatewiki.net.
4eb5301a0 Refactor diff ready for de-generalisation
a5e433473 Add expanded=false to FragmentInspector's container
ad4556a5e Rename 'Dialog windows' section to 'Window controls'
f5e9be727 annotationsAtFocus: Replace $.parents with $.closest

Bug: T195843
Bug: T195854
Change-Id: I20d39d0da4f88555bcb2ba5f691c51d22e497070
2018-05-29 08:40:20 -07:00
Translation updater bot d8a5f22e0f Localisation updates from https://translatewiki.net.
Change-Id: Id16069d8537e6fd9452451ba38876638ba51475d
2018-05-28 22:42:48 +02:00
Ed Sanders 4f456b143e Disconnect surface model history listener when tearing down
Bug: T195775
Change-Id: I6f6fe654dc190d7d891d3ac346bf3f4b2f426947
2018-05-28 18:30:07 +00:00
Ed Sanders 9386d54be9 Fix template param diff when value is empty string
Bug: T195764
Change-Id: I0bd5fe71996a2ffeaa201e549f8515439c07996d
2018-05-28 14:56:53 +01:00
libraryupgrader 54f9335232 build: Updating mediawiki/mediawiki-codesniffer to 20.0.0
Change-Id: Idfc004c9439d9b8421f378fdd559990b09ad851c
2018-05-25 23:18:11 +00:00
David Lynch d3824dee76 DesktopArticleTarget: Section-scroll as part of restoring the page
We were scrolling to the edited section when we saved the page, and otherwise
reverting scroll position to the top if we just abandoned the edit. This
unifies these cases, so any section-edit which leaves the editor will scroll
to the section being edited. (If section==new and the edit is abandoned, it'll
scroll to the last section on the page.)

Bug: T194631
Change-Id: Ic2aca68b3127c435545644912b96212bcfa6648d
2018-05-25 16:30:22 -05:00
James D. Forrester d4841abbb6 ApiVisualEditor: Defensively check that query prop revisions returns arrays
I can't see where this would return a string, but users are reporting that
they're getting that at times…

Bug: T193718
Change-Id: I6b635bacdd59431568bc5c679e455f67cb764df0
2018-05-25 21:04:38 +00:00
Translation updater bot 58f2816c70 Localisation updates from https://translatewiki.net.
Change-Id: I6044bc3d04c75626272d5c241d1393fed8160ee5
2018-05-25 22:14:33 +02:00
James D. Forrester 19641b1f96 Update VE core submodule to master (a17837fa6)
New changes:
d8c4fe1a1 ce.Surface cleanup
220978561 Simplify TableLineContextItem styles
83d818983 Make delete row/col buttons destructive
4f5f66703 Localisation updates from https://translatewiki.net.
55e1c1424 Fix try/catch in internal paste with original data
da86b36ff Fix async beforeEach in ve.ce.Surface tests
8b10fdc89 Strip 'about' attributes when comparing alien nodes

Bug: T195344
Bug: T195514
Change-Id: I7222d6378f375a228e9efd328b6a8b9bbf4c6de3
2018-05-25 11:08:02 -07:00
Santhosh Thottingal 27d0634abf
ApiResponseCache: Support redirects data processing
If the mediawiki Api pass redirects as true, the response will have
redirect data. ApiResponseCache ignores it now. This commit adds
support for processing that and set in the cache.

Change-Id: If4f8c9b6719c123b31d852eb71f06a79cc0f7917
2018-05-25 12:06:09 +05:30
Translation updater bot cd63220738 Localisation updates from https://translatewiki.net.
Change-Id: I4c0cd8a20d18e09cd225994739be13067853a9a8
2018-05-24 22:25:06 +02:00
jenkins-bot c52be40555 Merge "MobileArticleTarget: Include placeholder for references" 2018-05-24 17:30:48 +00:00
jenkins-bot 6c90442326 Merge "ce.MWWikitextSurface: ask on paste about wikitext conversion" 2018-05-24 17:21:07 +00:00
David Lynch 4d5fc16a9a MobileArticleTarget: Include placeholder for references
Cite's a08febb0afa2d changed the rules for adding the Cite button to the
toolbar – it now requires a placeholder slot in the toolbar, rather than
finding the link tool and adding itself after that. As ve.init.mw.Target
was updated for this it kept working on desktop, but MobileArticleTarget
completely overrides the toolbar, and was missed.

Bug: T195191
Change-Id: I55c9de9e736bb83f5f05028f2fc07af0ad996050
2018-05-24 17:18:50 +00:00
Translation updater bot 086bde1274 Localisation updates from https://translatewiki.net.
Change-Id: I0ee8371928b7ff271a690a0d892079087bddf066
2018-05-23 22:20:28 +02:00
jenkins-bot f805169fdc Merge "Remove dependencies on deprecated modules 'mediawiki.api.*'" 2018-05-23 19:19:19 +00:00
Ed Sanders 4dc573a0c9 Pass importTitle directly to target, instead of through query string
Change-Id: I2d561c3b2b8992b78412707d70a55ded0f5ad1c9
2018-05-23 17:20:05 +00:00