When loading VE by clicking Edit on a view url, this naturally
works (we temporarily append our query, and remove it when ready).
When loading VE from a permalink (e.g. Open in new tab) or any
other source linked from HTML pages, then we're not in control
over adding the query (it's already there); we're only in control
over restoring the view url afterwards.
Bug: T102363
Change-Id: I4912ff1c6b28ac987517760ffed481a4cd3bd1ca
In the MediaWiki API, booleans exist or don't exist (with an empty string),
you can't check "if (bool)..." since that will always be false. The API has
a newer formatversion=2 that fixes this but we're not using that yet.
Also update the defaultSource placeholder to match the API response. If one
would only update defaultSource without the 'if'-fix, one can reproduce T66822
on a local wiki (JSON-P request instead of JSON).
Bug: T66822
Change-Id: I5a8ab1136325c33c62982c0869fa14ca2fb26034
Previously, it failed in WCAG contrast ratio tests. To make
it pass, font size has been slightly increased and color
has been darkened.
Increased the line height to match increased font size
Bug: T100017
Change-Id: I073ca96c64d5e3af3c01936d34e9e83e9384b4b5
New changes:
3368c4c Remove some assumptions about the state of the context
79918af Move contexts to subfolder
820eaec Tests for some drag/drop functionality
e5f0e3e Convert CE surface tests to use a mock UI surface
c81dbcf Localisation updates from https://translatewiki.net.
7561ff3 Create a mock UI surface that only contains a model for model-only action tests
ad60333 Convert test timings on APIResultsQueue from seconds to milliseconds
b52d7df Table cursoring tests
3f8e821 Localisation updates from https://translatewiki.net.
9c737df Update OOjs UI to v0.11.4
5befc34 Stop using deprecated aliases for OO.ui.mixin.*
Change-Id: Ida6d4ba724686d8189975c55a18c4a6c2cfe4875
This change is for compatibility with Iee61e5b527 in MediaWiki.
This patch increases the minor minor version number due to said requirement.
Change-Id: I0ac775ca286e64825e31a9213b94648e41a5bc30
The current approach matched historical RL conventions, but was quite
fragile. It used memcached to track hashes of all (or most?) factors
that influence the generated script.
Now that RL uses version hashes instead of timestamp, just hash the
script directly. Currently ResourceLoader falls back to hashing
the generated timestamp. Let's bypass this.
As a bonus, this also gets rid of the getMessages() hack which was
causing all messages to load twice and the module to be almost
twice a big as it could be.
It loaded messages once as part of getScript, via ve.init.platform.addMessages.
And a second time via getMessages() for which mw.loader calls mw.messages.set.
Bug: T94074
Change-Id: Ib8e688bf3a9c151cbb18016e10230c3a4bab46b8
New changes:
1518f13 Fixing the behaviour of resizable images so that redlinked images, inline and block, can be represented properly
a325247 Insertions: heed cursor position relative to annotations
b43b746 FindAndReplaceDialog tests
afc3e08 At empty matches, don't assume lastIndex is unchanged
44593ae Localisation updates from https://translatewiki.net.
ee41fca Localisation updates from https://translatewiki.net.
042645b Localisation updates from https://translatewiki.net.
f821c6e Fix 'open' button on link inspector
Change-Id: Ia09d7fe754c3e0bca6b441ad2ea88644e275ea6b
've-ui-mwTitleInputWidget-menu', too. Removed in
b3d2e9013f, but we actually
use these classes in styles and in browser tests.
Bug: T101600
Change-Id: I40dae9c68bbcba2f980c307fe0dfa0956b4eb78a
New changes:
e3eea5d Allow right click copy on focusable nodes
ec74440 Remove registry test hacks now that MW is fixed
ed4b38d Localisation updates from https://translatewiki.net.
712bcbd Add tests for methods converting click targets to table selections
5d318e0 demo: Show 'Back to editor' button in read mode correctly
b30dcf6 demo: Tweak toolbar positioning in read mode
ae50c8d demo: Avoid exception when switching modes if surface is destroyed
9e2dac0 Localisation updates from https://translatewiki.net.
4c33460 Test for DSVFileTransferHandler
a1860c6 Prune old unused property
45e69c7 Rename variables to clarify state snapshot timing
e65f921 Localisation updates from https://translatewiki.net.
1440dc0 build: Update to full jscs preset
795550c build: Provide a `grunt fix` task to auto-fix jscs failures
Change-Id: I212fd233412cf2c48d125d2a870cd6868c427c80
Although an internal link is unlikely to be a valid external link, this
prevents an annoying experience when the user switches to external and
then back to internal while exploring features.
Change-Id: I178cf3f641db683f5dd0a49c246c204ded89760c
Once MW images are registered, we should remove core image support so
we don't accidentally match to them (e.g. an MW inline image with an
unsupported extra RDFa type).
Change-Id: I1c8567346c371fe338f95b232c9ac53e009c5a46