mediawiki-extensions-Visual.../modules/ve-mw
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
..
ce
dm Fixing minor jsdoc typo 2021-08-10 16:15:30 +02:00
init Move abort event tracking from the start to the end of the teardown process 2021-07-27 22:50:52 +02:00
preinit Fix history.replaceState call on diff pages 2021-08-14 10:51:24 +00:00
tests Revert "Hide deprecated parameters if they don't have a value" 2021-08-03 08:24:24 +00:00
themes
ui Merge "Minimize template dialog CSS a bit" 2021-08-11 13:19:20 +00:00