Last modified: 2014-04-09 18:24:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T45844, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43844 - VisualEditor: Browser back button should work as expected
VisualEditor: Browser back button should work as expected
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
MediaWiki integration (Other open bugs)
unspecified
All All
: High minor
: VE-deploy-2013-06-13
Assigned To: Krinkle
:
: 49336 (view as bug list)
Depends on:
Blocks: 48426
  Show dependency treegraph
 
Reported: 2013-01-11 00:19 UTC by Roan Kattouw
Modified: 2014-04-09 18:24 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Roan Kattouw 2013-01-11 00:19:45 UTC
We should use pushState such that pressing the back button after clicking VisualEditor takes you back to read mode.
Comment 1 MZMcBride 2013-05-14 01:52:12 UTC
Is this an easy bug?
Comment 2 MZMcBride 2013-05-14 01:54:57 UTC
To further clarify what the issue here is:

* a user visits <https://www.mediawiki.org/wiki/Wikimedia_Engineering/2012-13_Goals>;
* user clicks "edit";
* VisualEditor form loads;
* user tries to escape the form by pressing the "back" button in his/her browser;
* browser's "back" button doesn't work as expected (it should take the user back to the implicit view action where he/she started).
Comment 3 Krinkle 2013-05-14 01:58:28 UTC
We currently use ?veaction=edit as trigger for VisualEditor from a permanent url.

This is implemented by checking the query parameter on page load and triggering init (just like a click on "VisualEditor" would do), and then we replace (without refresh) the url to drop this query parameter using the HTML5 History api (replaceState).

I'd recommend we build on this by using pushState when VisualEditor is initialised (we can then remove the current behaviour as there's no longer any reason to remove it from the url).

Note that it is slightly more complicated than just calling replaceState on init. We also need to listen on('popstate') to move back to read mode if the user presses Back to a url within the history that contains HTML5 history state data from VisualEditor.
Comment 4 Krinkle 2013-06-03 22:27:52 UTC
Setting milestone to 2013-06-27 since it is marked as blocker for "Beta" (2013-07). It may be moved to an earlier milestone as we see fit. But no later than 06-27. Setting it since I use milestone to sort "My bugs".
Comment 5 Gerrit Notification Bot 2013-06-05 22:40:12 UTC
Related URL: https://gerrit.wikimedia.org/r/67171 (Gerrit Change Ia4b949d9c066a3f7b07217aa3d51de9908734e85)
Comment 6 Gerrit Notification Bot 2013-06-05 22:40:14 UTC
Related URL: https://gerrit.wikimedia.org/r/67172 (Gerrit Change I5c345c1526852a84b04436955845bf1b56d94402)
Comment 7 Krinkle 2013-06-10 05:03:59 UTC
*** Bug 49336 has been marked as a duplicate of this bug. ***
Comment 8 James Forrester 2013-06-12 13:11:38 UTC
Merged and will go out with wmf7 (from tomorrow).
Comment 9 Lokal_Profil 2014-03-27 12:48:42 UTC
This seems to be broken again (back button changes URL but doesn't take user back to read state)
Comment 10 Andre Klapper 2014-03-27 13:13:03 UTC
Lokal_Profil: Where? Example link? Browser? Reopening not helpful without giving instructions to reproduce... :-)
Comment 11 Lokal_Profil 2014-03-27 14:54:25 UTC
(In reply to Andre Klapper from comment #10)
> Lokal_Profil: Where? Example link? Browser? Reopening not helpful without
> giving instructions to reproduce... :-)

Sorry ;)

Confirmed in both Firefox and Chorme running on Ubuntu

Tested on both sv.wp[1] and en.wp[2] (logged out on sv.wp to make sure no personal settings were affecting it)

[1] https://sv.wikipedia.org/wiki/Bonsai?uselang=en
[2] https://en.wikipedia.org/wiki/Bonsai
Comment 12 James Forrester 2014-04-09 18:24:40 UTC
(In reply to Lokal_Profil from comment #11)
> (In reply to Andre Klapper from comment #10)
> > Lokal_Profil: Where? Example link? Browser? Reopening not helpful without
> > giving instructions to reproduce... :-)
> 
> Sorry ;)
> 
> Confirmed in both Firefox and Chorme running on Ubuntu
> 
> Tested on both sv.wp[1] and en.wp[2] (logged out on sv.wp to make sure no
> personal settings were affecting it)
> 
> [1] https://sv.wikipedia.org/wiki/Bonsai?uselang=en
> [2] https://en.wikipedia.org/wiki/Bonsai

Moved to bug 63739 as a new regression.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links