mediawiki-extensions-Visual.../modules/ve-mw/preinit
jwbth 6d7a062dbb Fix history.replaceState call on diff pages
The history.replaceState call in onReviewModeButtonSelectSelect() (1)
ignores any changes to the document URL made by external tools such as
RevisionSlider, (2) replaces with an empty string the history entry
state object if it was set by external tools such as, again,
RevisionSlider. Both 1 and 2 result in a wrong URL ending up in the
address bar at some point. This patch addresses these problems, (1)
creating a new mw.Uri() object every time
onReviewModeButtonSelectSelect() is called, (2) keeping the current
history.state object.

The original variable storing the URI object is renamed to avoid
shadowing (optionally can be replaced with its value as it's used only
once).

Bug: T288636
Change-Id: Ieb97b561a6c076aa28aae231fe286ac4d1051bbd
2021-08-14 10:51:24 +00:00
..
styles Remove obsolete vendor prefixed properties 2021-05-03 08:09:01 -07:00
.eslintrc.json Replace $.when with ve.promiseAll 2019-11-04 22:06:54 +08:00
ve.init.mw.ArticleTargetLoader.js Remove @param/@return docs that literally repeat the code 2021-06-14 15:44:51 +02:00
ve.init.mw.ArticleTargetSaver.js Document and use mw.Api parameter defaults 2021-07-12 09:13:59 +02:00
ve.init.mw.DesktopArticleTarget.init.js Avoid conflicts between 2017 wikitext editor and DiscussionTools new topic tool 2021-07-28 16:10:22 +02:00
ve.init.mw.DiffLoader.js Move vars inline in preinit code 2021-05-05 18:06:37 +01:00
ve.init.mw.DiffPage.init.js Fix history.replaceState call on diff pages 2021-08-14 10:51:24 +00:00
ve.init.mw.ProgressBarWidget.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.mw.TempWikitextEditorWidget.js Use term "wikitext" when working with TempWikitextEditorWidget 2021-06-09 10:23:36 +02:00
ve.init.MWEditingTabDialog.js build: Update eslint-config-wikimedia to 0.17.0 2020-08-18 13:16:49 +01:00
ve.init.MWEditModeTool.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.MWVESwitchConfirmDialog.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.MWVESwitchPopupWidget.js Move vars inline in preinit code 2021-05-05 18:06:37 +01:00
ve.init.MWWelcomeDialog.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.utils.parsoid.js Move vars inline in preinit code 2021-05-05 18:06:37 +01:00