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
This new property is optional and should not be assumed to be present.
Follows-up 2ac7959849.
The constructor defaults 'maps' to an empty object, so there's no need
to add a "|| {}" in extend() or getMaps(). We merely need to make sure
we don't accidentally dereference the default in exchange for undefined.
Change-Id: Id2cb93696d12a20ee14f9d59705877dc174e6564
New changes:
9d162ce Restore the selection to a sensible place when closing FindAndReplace
57229ac Only apply annotations if 'done' is clicked
bfb17ee Always show cancel button on annotation inspectors
91672cf Disable 'done'/'insert' button when input invalid
aef9cbd Only create annotations from text input if it is valid
a384b96 [BREAKING CHANGE] Make getTextFromAnnotation/getAnnotationFromText static
fa09ab7 Scroll table selection into view when it changes
Local changes:
Make getTextFromAnnotation/getAnnotationFromText static
Change-Id: Id3c2a1efb1f327fa6d5b93d57d90bb5bb8ee88f8
New changes:
174e531 Don't show debug CBN highlight in test mode
99fc6bd Localisation updates from https://translatewiki.net.
6fe6690 Localisation updates from https://translatewiki.net.
e313cb4 Localisation updates from https://translatewiki.net.
27c7585 Separate out demo class and init
36abfac Localisation updates from https://translatewiki.net.
bf16b0b Follow-up 36abfac0: Re-fix the build by adding the new 'sa' language
444ad03 ve.utils: Use getWindow in ve.selectElement
1dd52e4 Localisation updates from https://translatewiki.net.
fd3c9d0 Localisation updates from https://translatewiki.net.
e2667ba Localisation updates from https://translatewiki.net.
b657297 Localisation updates from https://translatewiki.net.
d777c41 Localisation updates from https://translatewiki.net.
61b7a8d Fix built resources, broken by l10n bot again.
7b128bd Localisation updates from https://translatewiki.net.
6c72553 mailmap: Add an additional e-mail for Bartosz per request
Change-Id: Id09bed013d29df9f0f23dfcaff980d440fdae7dd
* At this point the IDs are all known so there is no need
to re-query what was written in the transaction
* This works when recent change insertion is deferred
* Also deferred tagging in ApiVisualEditorEdit to after
the RC row is saved
Bug: T100439
Change-Id: Ic4c7d8d89b8cfeee57eda867c0ff74fa9682ffc8