mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-05 03:08:37 +00:00
6d7a062dbb
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 |
||
---|---|---|
.. | ||
styles | ||
.eslintrc.json | ||
ve.init.mw.ArticleTargetLoader.js | ||
ve.init.mw.ArticleTargetSaver.js | ||
ve.init.mw.DesktopArticleTarget.init.js | ||
ve.init.mw.DiffLoader.js | ||
ve.init.mw.DiffPage.init.js | ||
ve.init.mw.ProgressBarWidget.js | ||
ve.init.mw.TempWikitextEditorWidget.js | ||
ve.init.MWEditingTabDialog.js | ||
ve.init.MWEditModeTool.js | ||
ve.init.MWVESwitchConfirmDialog.js | ||
ve.init.MWVESwitchPopupWidget.js | ||
ve.init.MWWelcomeDialog.js | ||
ve.utils.parsoid.js |