Commit graph

2909 commits

Author SHA1 Message Date
Željko Filipin d4b61852cc Selenium: do not run selenium-MultimediaViewer Jenkins job on macOS
The job has been failing for months for macOS. Tests are not providing
any value.

Ruby Selenium framework has been deprecated since 2017. We are removing
support for it from CI.

Bug: T214389
Bug: T220035
Change-Id: I4fef826a7ac1e7b2d260b1bf8f5d42e3f214b07d
2019-07-11 15:14:03 +02:00
James D. Forrester c480f7a724 build: Upgrade phan-taint-check-plugin from 1.5.x to 2.0.1
Change-Id: I52464872c7ab3f4ff80f3e5f0dbcf66ef346341a
2019-07-09 14:11:45 -07:00
Simon Legner c7c8059a0a Clicking on the black wrapper should close MVV
Bug: T133900
Change-Id: I0f05a3b16cdbef9a64a3d5cb4982525460e3b002
2019-07-09 17:21:10 +00:00
Translation updater bot 001494d627 Localisation updates from https://translatewiki.net.
Change-Id: I2458079f6fd4792baf135dbccb9dd598566e246f
2019-07-07 22:40:34 +02:00
Translation updater bot 922df1d568 Localisation updates from https://translatewiki.net.
Change-Id: I60ba04193c6da99eec9bcf87d64c3d89b28a305b
2019-07-03 22:45:14 +02:00
Translation updater bot 89fc29e80a Localisation updates from https://translatewiki.net.
Change-Id: Id33252aed11ca15f1a87b020c8f5ddfdfd6d4939
2019-06-24 08:39:05 +02:00
Translation updater bot dc8f713091 Localisation updates from https://translatewiki.net.
Change-Id: Ib8d8b4df908a5480821f0d7488565896896266a0
2019-06-16 22:36:21 +02:00
jenkins-bot 989af50dcf Merge "Make the download/share buttons actual links for right/middle click" 2019-06-15 22:09:38 +00:00
jenkins-bot e19944e67d Merge "Use Object.create( null )" 2019-06-14 18:31:26 +00:00
Translation updater bot 93d07bfcdb Localisation updates from https://translatewiki.net.
Change-Id: I52c1dfc0f64e688622e75a06fc23b6299f31b502
2019-06-13 22:39:58 +02:00
Simon Legner a663d2884c Chrome does not revert title to article title
The issue seems to be related with the chronology of the document.title
update and the history.pushState/replaceState call.

Bug: T225387
Change-Id: Ifcd11d5efb3ba64d88b137eccb4b9c763d043004
2019-06-11 11:50:44 +02:00
Translation updater bot 66e5d2577a Localisation updates from https://translatewiki.net.
Change-Id: I033ea52c58f672f01e27bf7235291ce19924b873
2019-06-10 22:55:22 +02:00
Fomafix 08d5eaeb20 Use Object.create( null )
Object.create( null ) creates an Object without predefined methods like
hasOwnProperty or constructor. This allow to use
	key in object
instead of
	Object.prototype.hasOwnProperty.call( object, key )
although key is 'constructor'.

Change-Id: I07ef3b97a6b2d1b2fa9f3fb746ffe93a7f325cdf
2019-06-10 15:03:00 +02:00
Fomafix f89d7dc878 Remove "window." for location and setTimeout
The JavaScript in core also don't use "window." for these browser
properties and methods.

Change-Id: I344573fd7ef0e73c252779b4e59a53168d16574f
2019-06-10 12:46:58 +02:00
Fomafix 7e03aa58a5 Use mw.log.error instead of window.console.error
mw.log.error is always present and calls console.error if available.

Change-Id: I6337ce7f0b6fef2933b067cda7097037cf757d7b
2019-06-10 12:22:19 +02:00
libraryupgrader 336dba408d build: Updating mediawiki/mediawiki-phan-config to 0.6.1
Change-Id: Ic5b0d96c42cbc1599dce82be13960e44f7f04dcf
2019-06-10 09:10:17 +00:00
Simon Legner cfe16ede56 Update AUTHORS
Content has been generated using the following command and .mailmap from mediawiki/core:
$ git log --format='%aN <%aE>' | sort | uniq --count | sort --reverse --numeric-sort

Change-Id: Ib3e3556f4f2f68e76863f04a043eba2b50f84178
2019-06-06 11:26:34 +02:00
Translation updater bot 8afd30599e Localisation updates from https://translatewiki.net.
Change-Id: If2a7d9363ec081c60428bd06f657e322ff142597
2019-06-05 22:29:27 +02:00
jenkins-bot ebb1497b82 Merge "Remove unused "position" field from "ResourceModules" in extension.json" 2019-06-03 07:51:03 +00:00
Kunal Mehta 0c460e78cf Remove unused "position" field from "ResourceModules" in extension.json
Bug: T224847
Change-Id: I260e9b19b1243f10aab749e6d2fdc4f2f571462a
2019-06-02 22:12:54 -04:00
Translation updater bot 20b9ec6e2e Localisation updates from https://translatewiki.net.
Change-Id: Ia0a1c86ff675247da484ade6a9cea2780873b28e
2019-06-02 22:30:20 +02:00
jenkins-bot 0d4d5096b1 Merge "Replace moment.js with Date.toLocaleString" 2019-05-31 21:14:00 +00:00
Simon Legner 682873dd2d Replace moment.js with Date.toLocaleString
Bug: T224626
Change-Id: Ib312821d2c72c2570cec29153557fd44e4db2bf7
2019-05-31 21:56:45 +02:00
jenkins-bot c7e33d0f5e Merge "Download sizes: 480p, 720p, 1080p, 2160p" 2019-05-31 16:54:00 +00:00
jenkins-bot 1e704eec51 Merge "Fix unresponsive download button" 2019-05-31 16:52:51 +00:00
jenkins-bot e34ffbe40f Merge "Fix routing after repeatedly opening/closing" 2019-05-31 16:26:32 +00:00
Translation updater bot 1ebe4806a2 Localisation updates from https://translatewiki.net.
Change-Id: Ie86e787ad5db324d97698e8db6acd849d973b4a8
2019-05-30 22:53:42 +02:00
Simon Legner 1a00347c49 Fix unresponsive download button
Some handlers were not correctly unregistered when performing
`unattach`. Thus, `Dialog.handleOpenCloseClick` could be fired more than
once resulting in the dialog been opened and closed immediately
afterwards.

Bug: T186461
Change-Id: I0c3c79644a10d7201ef198f4a4d381c10db4c3af
2019-05-28 23:11:18 +02:00
Simon Legner e77393744d Fix routing after repeatedly opening/closing
Steps to reproduce:
1. click on image, 2. press Esc, 3. click on image, 4. press Esc

Expected results: page is visible again
Actual results: navigation to previous page happens

Change-Id: Idd1b6612971b8ea258bb55982e3241986ad1a54d
2019-05-28 22:37:00 +02:00
jenkins-bot a4e63f623c Merge "Adopt mediawiki.router" 2019-05-28 15:14:50 +00:00
Translation updater bot d933c1c728 Localisation updates from https://translatewiki.net.
Change-Id: Ib13ef9d10f71bcede40d92a0c78e0b08d1a5aeae
2019-05-26 22:23:12 +02:00
Simon Legner b1ade19388 Adopt mediawiki.router
Bug: T77258
Change-Id: Id4df92b0ebed3fb4f4b9269862c952f3968bf957
2019-05-26 19:46:38 +02:00
Simon Legner 2fbf2c06a9 Download sizes: 480p, 720p, 1080p, 2160p
Bug: T77642
Change-Id: I41b7d59d14342345fc060085b755ce28f3e9cf98
2019-05-26 19:15:09 +02:00
Ed Sanders 394b893c7d Use upstream CopyTextLayout in share/embed/download panels
Results in small UI changes, but allows us to delete a lot
of code duplication.

Depends-On: I9049f5a1c0d88680fc4a174e390dd08e27c0eee2
Change-Id: Iebe7bdc8a026b929a35e823d8107d90e7bb62b82
2019-05-23 20:01:36 +01:00
Translation updater bot 0808346969 Localisation updates from https://translatewiki.net.
Change-Id: I8f716bcc40c4a15e14e7d9a8275f31d080b7b0c9
2019-05-20 22:30:10 +02:00
jenkins-bot 4f9b3eff8a Merge "Enlarge click regions of all icons in the main UI" 2019-05-20 11:08:08 +00:00
jenkins-bot a3bd1df9b9 Merge "Make multiline text fields auto-size depending on the value" 2019-05-20 10:46:17 +00:00
jenkins-bot bc666cb1e7 Merge "Show the hand mouse cursor on all "copy to clipboard" icons" 2019-05-20 10:07:48 +00:00
Thiemo Mättig 8b647c09e7 Make the download/share buttons actual links for right/middle click
Bug: T71469
Change-Id: Ib9dca98a70a056e93e252ba1d08479be509e7a18
2019-05-20 09:05:10 +00:00
Thiemo Kreuz 873a88e654 Enlarge click regions of all icons in the main UI
Before, the icons on the right all had a 24x24px click region, exactly
as big as the icon. There was no wiggle room. You had to be very precise.
This patch adds a padding that can be clicked as well, 14px left and
right, but no additional padding top and bottom (this might be an
additional change for another patch).

I made sure the positions of all icons are 100% as before.

Change-Id: I1618681b5ab714cb4cfc789dc6d501ec30643bc0
2019-05-19 19:00:27 +00:00
Simon Legner 44ed1c69b8 Fix typos in qqq.json
The keys/strings "small" and "large" were mixed up.

Change-Id: Icf3b4853d0fe6e156d1fa9cc0754fd9815739411
2019-05-19 20:25:20 +02:00
jenkins-bot fb40e5b09f Merge "Do not clone CSS class names as well" 2019-05-19 13:12:18 +00:00
Thiemo Kreuz 646d871eee Make multiline text fields auto-size depending on the value
This avoids a series of issues on the "Embed" tab, for both the
"Wikitext" and the "HTML" snippet. Without this patch, the textareas
might show a resize handle that does have weird effects when used.
Sometimes the textarea contains very few text and empty space,
sometimes a long text that is barely visible. Auto-fitting it to the
content feels like the right thing to do here.

Change-Id: Ieeaf4d33fef8eb3660fb177f57dfb753b8c208f8
2019-05-19 14:59:43 +02:00
Thiemo Kreuz 6d042d7fa6 Show the hand mouse cursor on all "copy to clipboard" icons
All other icons show the pointer (a.k.a. hand) mouse cursor, except
this one. I believe this is just a mistake.

Change-Id: Id48f65273be0ea81e7c10f0b222430cc85f815a5
2019-05-19 14:57:56 +02:00
Thiemo Kreuz 26fbcd6095 Do not clone CSS class names as well
What MultiMediaViewer does is re-using the small thumbnail <img> that
is already present on the page, cloning it, blowing the size up, and
using it as a "placeholder thumbnail". The moment the bigger image
finished loading, it replaces the placeholder.

The issue here is that the cloning includes class names like the
<img class="thumbimage"> on every [[File:…|thumb]] image. This shows a
gray border. The cloned DOM node in MultiMediaViewer shows this gray
border around the placeholder for a short time. This can be distracting.

Change-Id: Ie83427fab478b6568731b9a0b1f7dbbcc6d5b0fb
2019-05-19 10:44:21 +00:00
Simon Legner e1caa0f65e Fix typos in code/comments
No functional change.

Change-Id: I6447aefe8fdd39642d613f55ad0a5537f64dcb9d
2019-05-19 10:17:44 +00:00
James D. Forrester feb56c0e84 build: Upgrade mediawiki/mediawiki-phan-config from 0.5.0 to 0.6.0
Change-Id: I17e563e8acfbc7b0687ff5d4de265d1047e32bb0
2019-05-19 12:15:01 +02:00
jenkins-bot 870735c0e9 Merge "Fix copy share URL to clipboard" 2019-05-18 17:29:25 +00:00
Simon Legner 5be5afe0a7 Fix copy share URL to clipboard
Typo in method.

Bug: T223729
Change-Id: I45ffeea5d9837fcdf63df7ee72d8b9a6298415df
2019-05-18 17:16:21 +00:00
Simon Legner b23a32a413 Remove SVG checks
Bug: T223649
Change-Id: I252ca1cbba3e67921a4db82358d22bf02c20dc63
2019-05-18 17:46:20 +02:00