Commit graph

14635 commits

Author SHA1 Message Date
Bartosz Dziewoński a247fd4e90 MWImageNode: Make 'mw' attribute optional again
It contains some rare options that we don't currently make editable,
and we don't set it when creating new image nodes.

We could change our code to always set it, and consider it required,
but that would theoretically be a break in backwards-compatibility.

Bug: T198660
Change-Id: I6e77cce257f733f0f8f6e896b967177ff01658c6
2018-07-03 21:03:46 +02:00
Translation updater bot 6f2886823e Localisation updates from https://translatewiki.net.
Change-Id: I3fc6aaa516d4d988a2ce33f84bd665a52debe9d8
2018-06-29 22:28:10 +02:00
jenkins-bot 4c88fc7ef4 Merge "Pass page parameter for multipage file (PDF, DjVu) thumbnails" 2018-06-29 20:08:55 +00:00
jenkins-bot 611ef4ef1c Merge "Pass video thumbtime to thumbnail metadata request" 2018-06-29 20:07:42 +00:00
Ed Sanders 715d67b564 Pass page parameter for multipage file (PDF, DjVu) thumbnails
Bug: T182392
Change-Id: Ib3bc7b13f24493da27078631a41e9c08bcc6c0f4
2018-06-29 19:26:42 +00:00
Translation updater bot fd1ac29964 Localisation updates from https://translatewiki.net.
Change-Id: I93f6fd3175e80121b6cf430f3a2c064d7f593c12
2018-06-28 22:21:46 +02:00
Ed Sanders 5cdbc17899 Pass video thumbtime to thumbnail metadata request
Bug: T198150
Change-Id: Ic8895c359a92fcc60ac486e3daf86db02599d3ff
2018-06-28 15:52:50 +01:00
jenkins-bot 08b1d31d84 Merge "Update VE core submodule to master (49fd5e439)" 2018-06-28 11:08:10 +00:00
jenkins-bot 17041d3f07 Merge "Don't call Resizable constructor conditionally" 2018-06-27 21:49:31 +00:00
Translation updater bot eb3c3e7484 Localisation updates from https://translatewiki.net.
Change-Id: If87d2bcfbb7339de504bd0e6919b7a0d8a9a77a9
2018-06-27 22:20:50 +02:00
James D. Forrester 22979cdc8b Update VE core submodule to master (49fd5e439)
New changes:
49fd5e439 Update OOUI to v0.27.4

Change-Id: Ib70a0f2d41d9d22ed9232ba6b6dbeb604fc5eb12
2018-06-27 11:31:04 -07:00
David Lynch 56a3aa9f01 Update link contexts with label info from core
Bug: T124305
Depends-On: Iad48fb559f3dae16cc0013791b79ec71308a1f9f
Change-Id: I341a15199bddb45e2cd8391b9b00c86e1c3a193e
2018-06-26 21:16:53 +00:00
Bartosz Dziewoński e73d6f3f67 Update VE core submodule to master (fab33197b)
New changes:
664b9017b ve.dm.Document: Handle no valid offsets in #getNearestCursorOffset
879e319d4 Don't break before/after multiline insert in source mode
386344d19 LinkContextItem: add label information to the context

Bug: T124305
Bug: T197651
Bug: T198010
Change-Id: Ic0b16b7f85f91ce699eb90f8ee171fc69c9ddd53
2018-06-26 23:16:09 +02:00
Ed Sanders bb1d7271cd Pass content language in Accept-Language header to RESTBase
Bug: T198186
Change-Id: I2176f68f76fa462de0c1c2c47365de62fda4abe0
2018-06-26 16:42:35 +01:00
Ed Sanders 1b116394cf Correct documentation of $title Title object and add type hints
Change-Id: I8108161e2330d54e9e3f9969ead9352cc5810fb0
2018-06-26 16:35:46 +01:00
Translation updater bot 7a812e8fcb Localisation updates from https://translatewiki.net.
Change-Id: Id786a99a4da478dbeb514afd1b04779121c63bdc
2018-06-25 22:22:19 +02:00
jenkins-bot 4a41a1aa4c Merge "Update VE core submodule to master (c8d6dac8b)" 2018-06-25 19:07:07 +00:00
jenkins-bot d318f79a61 Merge "Show images/descriptions on import's title widget if possible" 2018-06-25 17:59:17 +00:00
jenkins-bot 13fb253532 Merge "mw.DesktopArticleTarget: remove action=edit when tearing down as single-tab" 2018-06-25 17:59:14 +00:00
James D. Forrester 8baf06a8b3 Update VE core submodule to master (c8d6dac8b)
New changes:
4418e04c5 Localisation updates from https://translatewiki.net.
12fd1e53e Add isResizable method to dynamically disable resizing
87047170d Use getter to retrieve change stores
58150e710 Use ve.dm.Change object for completeHistory
bc9a1a8af Fix appearance of source surface

Change-Id: I7654d9859741dfbfb0a053a72d0d00b34f1835d6
2018-06-25 10:47:02 -07:00
David Lynch 09a315ca69 mw.DesktopArticleTarget: remove action=edit when tearing down as single-tab
aeb4f2f2b7 added a #wpTextbox1 to the wikitext surface, which confused our
existing teardown check. This confusion only became apparent in single-tab
mode, when using the wikitext editor.

Bug: T197615
Change-Id: I98e64e7135aaf6f8fda441a91e6cbc4bac6cea39
2018-06-25 11:55:51 -05:00
jenkins-bot dfc78ad5df Merge "ve.ui.MWTemplateDialog: Prevent scrolling to top after removing a parameter" 2018-06-25 16:53:09 +00:00
jenkins-bot 1a0ea50bd6 Merge "If VE was opened on action=edit URL, redirect to view URL when closing" 2018-06-25 16:50:25 +00:00
jenkins-bot 25b50ab8aa Merge "Give up on realistic styling of mw-collapsible" 2018-06-25 15:37:59 +00:00
Translation updater bot 71252a3faa Localisation updates from https://translatewiki.net.
Change-Id: Iaedae2be454b0ab7a8dd1ad06e48114b31926a26
2018-06-24 22:26:13 +02:00
Ed Sanders ac7ed91731 Show images/descriptions on import's title widget if possible
Change-Id: Ibeb32ae3fafcabb3c5585b363496e0accab82460
2018-06-24 19:22:34 +01:00
Ed Sanders ac88166da1 Give up on realistic styling of mw-collapsible
Using display:inline causes the <p> to be destroyed
when empty.

Bug: T197987
Change-Id: Icfcb2ddc91e6793221608fac9f2995c6afeb4313
2018-06-23 14:17:21 +01:00
jenkins-bot 5d9f90ea46 Merge "Follow-up I213bd946f: Correct URL of Parsoid HTML profile" 2018-06-22 17:49:17 +00:00
C. Scott Ananian 83918e735a Follow-up I213bd946f: Correct URL of Parsoid HTML profile
The URL for the HTML profile used by Parsoid changed after 1.2.x, but
it was never updated in VE.

Change-Id: Id4ab8567dc907b71e790a04ab10044c1e081c8ce
2018-06-22 10:27:00 -07:00
jenkins-bot 7e72ef63e4 Merge "Update VE core submodule to master (52bd0592b)" 2018-06-22 07:29:20 +00:00
Ed Sanders 47e6e3f6b1 Update VE core submodule to master (52bd0592b)
New changes:
c5df99d3a Remove remaining assert.expect's
593b09992 Localisation updates from https://translatewiki.net.
14a29056c Follow-up 593b099: Add 'lfn' language to build to unbreak the repo
faba29bde Fix cursor position when adjacent to a nail
9854cc88c Sanitize message body in standalone using DOMPurify
52bd0592b ve.dm.Change: Store DOM node arrays as single strings

Local changes:
Add sanitize module

Bug: T197723
Bug: T197894
Change-Id: I572f5bcc80175cc50ef176efb961c9b10b38c7f0
2018-06-22 09:12:35 +02:00
Bartosz Dziewoński 37e349913e If VE was opened on action=edit URL, redirect to view URL when closing
We already do it after save, but not if the editor is closed without
saving.

This behavior is a bit awkward for non-existent pages (redlinks),
since MediaWiki normally doesn't display them in view mode (all links
point to action=edit). But this seems less weird than not allowing the
editor to be closed.

Bug: T122388
Bug: T168338
Change-Id: Id9ee41356f011dfbfa6e8744b8d9076f8eacaf39
2018-06-22 01:10:11 +02:00
jenkins-bot fbb83cc391 Merge "Update VE to request Parsoid HTML v1.7.0" 2018-06-21 22:31:25 +00:00
Translation updater bot e9f4ebde0f Localisation updates from https://translatewiki.net.
Change-Id: Id8a060af11c5ea1f004c2b83155cb49481ed5c6c
2018-06-21 22:42:50 +02:00
C. Scott Ananian a13b8ae178 Update VE to request Parsoid HTML v1.7.0
The seasons change, and so do Parsoid HTML specifications...

Change-Id: I213bd946f6f1547f76a4ea352c7cb083ebadd602
2018-06-21 16:41:02 -04:00
Bartosz Dziewoński b51707d96f ve.ui.MWTemplateDialog: Prevent scrolling to top after removing a parameter
Bug: T180151
Change-Id: I063c53fa572e998f5b34fc895d02fe1a74026c6e
2018-06-21 20:45:06 +02:00
Ed Sanders 963289bd1b Add missing rebase client message
Change-Id: I6c60c25752df356d61fcba5caad05062c7519607
2018-06-21 11:52:49 +01:00
Translation updater bot 5772301f77 Localisation updates from https://translatewiki.net.
Change-Id: I7c909c8ef4abede547be4ca2d787f1b84abc5b4b
2018-06-20 23:11:54 +02:00
Ed Sanders efcea82c9c Follow-up I348b8522: Fix context variable
Bug: T197762
Change-Id: Ife163e1666ec43ecbb21099a9342960615c573d8
2018-06-20 19:50:39 +01:00
jenkins-bot 0b3b229c16 Merge "Add MW-specific DiffElement tests" 2018-06-20 18:47:54 +00:00
Ed Sanders 534b3d66cb Update VE core submodule to master (a1fd90540)
New changes:
71baf1c02 Create an 'htmlMsg' function for HTML messages with HTML or DOM arguments
9a7af223e Use ve.htmlMsg to highlight values in attribute changes
a1fd90540 DiffElement: Refactor describeChanges tests

Local changes:
Implement getHtmlMessage in mw.Platform and use for DiffElement

Bug: T195243
Depends-On: Ib4ad16858e4241d33d018830dbcfded63ff703af
Change-Id: Ib5fa39e4f2f529948354b03a141542e23d169fe0
2018-06-20 12:53:43 +02:00
Bartosz Dziewoński 4948925351 Update VE core submodule to master (e72749663)
New changes:
a7c0f6474 Ignore meta items when computing slug positions
1bce430b6 Prevent null being treated as "object" with typeof operator
437892531 ce.FocusableNode: suppress left clicks within the focusable element
00a559a16 Replace assert.deepEqual's with more appropriate tests

Bug: T196921
Bug: T197139
Bug: T197659
Change-Id: Ia3c02961e86a1051245467ed9115c41c4d4cbc1f
2018-06-20 12:30:44 +02:00
jenkins-bot bbc55bcdba Merge "Replace deepEqual with strictEqual for non-objects" 2018-06-20 08:35:20 +00:00
Translation updater bot 4349bb2b63 Localisation updates from https://translatewiki.net.
Change-Id: Ida3fd4b7611aad116edc19bb3c3f47aeb3e3eed2
2018-06-19 22:25:27 +02:00
jenkins-bot aa882f752f Merge "DesktopArticleTarget: view click handler should only run for active target" 2018-06-19 18:54:47 +00:00
Ed Sanders b6d03da278 Add MW-specific DiffElement tests
Change-Id: If3dfa660b49bceef2da8dc7ec113225aaa7f59f5
Depends-On: Ib4ad16858e4241d33d018830dbcfded63ff703af
2018-06-19 16:04:08 +01:00
Ed Sanders 6e03492011 Replace deepEqual with strictEqual for non-objects
Change-Id: I0a89092f2c57a4c2348c4231fdfea1c2c520fc10
2018-06-19 16:00:28 +01:00
David Lynch 814e26f1e9 DesktopArticleTarget: view click handler should only run for active target
Not checking this results in handlers blocking click actions for "read" after
the teardown of the target.

Bug: T197445
Change-Id: I3a962c66c82a0e48ca54bf2f0b822a9a005da54c
2018-06-18 20:45:52 -05:00
James D. Forrester ec4c28cc1a Update VE core submodule to master (b413a2c51)
New changes:
e29c854d2 Localisation updates from https://translatewiki.net.
cb61bb674 Remove description of 'style' attribute change on a 'span'
625548143 Move ToolbarDialog's open/close triggering of updateState to ve.ui.Toolbar
a4608fe53 Debounce toolbar update

Bug: T197569
Change-Id: Ifda0a53e35e1314d1a792fd49635e3bf1f990ff0
2018-06-18 13:22:19 -07:00
Translation updater bot 90b08f0a3b Localisation updates from https://translatewiki.net.
Change-Id: Id8c21d0909836411652b24268f22cc12e4a6a85b
2018-06-18 22:10:00 +02:00