Page MenuHomePhabricator

Some form content (Search; Create new task) not fully preserved after "Back" button
Open, LowestPublic

Description

  1. Open a new bug form in a bugzilla, e.g. https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora (requires login)
  2. Type "blabla" in the comment field
  3. Click any of the links in the page
  4. Go back

I. Observed: there is "blabla" in the form.

  1. Do the same in Phabricator.

II. Observed: the form is loaded empty.

Tested with Firefox 34.0.

With Safari on iOS 7, 8 or 9:

  1. Go to the task creation form in Phabricator.
  2. Enter a title, some projects and a description.
  3. Go to www.perdu.com.
  4. Click Back.

III.A. Observed (with Saf on iOS 7 or 8), variant A: The title and description are kept, but the projects are lost; this is inconsistent.

III.B. Observed [on 2016-03-16] (with Saf on iOS 9), variant B: The title, the description and the projects are lost!

With Safari iPad or Firefox iPad:

  1. Go to phabricator.wikimedia.org
  2. Enter a word in the search field at the top right.
  3. Press Access (launch the search).
  4. In the navigator, click the button Back.

IV. Observed: In the search field, the word entered has been erased.

Related Objects

Event Timeline

Nemo_bis raised the priority of this task from to Needs Triage.
Nemo_bis updated the task description. (Show Details)
Nemo_bis added a project: Phabricator.
Nemo_bis subscribed.
Aklapper triaged this task as Lowest priority.Jan 11 2015, 10:52 PM
Aklapper edited projects, added Phabricator (Upstream); removed Phabricator.
Aklapper set Security to None.

For me it works in Chrome, not in Firefox.

Aklapper renamed this task from "Create new task" form content is not preserved after "back" button to "Create new task" form content is not preserved in Firefox after "back" button.Jan 14 2015, 10:45 PM
Nnemo renamed this task from "Create new task" form content is not preserved in Firefox after "back" button to "Create new task" form content is not fully preserved after "back" button.Mar 8 2015, 1:44 PM
Nnemo renamed this task from "Create new task" form content is not fully preserved after "back" button to "Create new task" form content is not fully preserved after "Back" button.
Nnemo updated the task description. (Show Details)
In T86463#969753, @Qgil wrote:

For me it works in Chrome, not in Firefox.

Even the projects are kept after you click Back?

Assigned and Projects are empty when I click back in Chrome

With Safari on iOS 8.2, the projects are lost after I click Back.

Aklapper renamed this task from "Create new task" form content is not fully preserved after "Back" button to Some form content (Search; Create new task) not fully preserved after "Back" button.Feb 23 2016, 9:09 AM
Aklapper added a subscriber: StudiesWorld.

When the user comes back with the navigator, the search field gets erased. This is incorrect.

It would be nice to stop doing that. Thank you.

Now, the behaviour I encounter in Phabricator is worse.

After writing in the task creation form, going away and coming back, the title, the description and the projects are lost!

See the task T129765.

Is this the same issue since this bug report here does not include that same error message? If it is here is another way this can occur:

Steps to replicate the issue (include links if applicable):

  • Start writing a bug report in phabricator
  • Put the computer into standby to return to it hours later
  • Continue writing the bug report
  • Try to Create New Task

What happens?:

It shows the the error:

Unhandled Exception ("AphrontMalformedRequestException")
You are trying to save some data to permanent storage, but the request your browser made included an incorrect token. Reload the page and try again. You may need to clear your cookies.
This was a Web request.
This request had an invalid CSRF token.

unhandled exception.png (229×1 px, 39 KB)

What should have happened instead?:

It should create the issue without showing such an error. If such an error is shown the text should not be lost – I pressed back but the the issue text field did not have my previously written description anymore, that text was lost and couldn't be recovered. It's not really a problem that this unhandled exception occurred but that there was no way to get the text back.

The error message in the last comment is unrelated; that error message is due to session lost. The issue described in this task occurs also without session lost.

Ahem, I'm definitely NOT here because I just lost 30+ minutes worth of task. Just casually passing by. A few cross-links and stuff:

  • Upstream umbrella task about content loss is https://we.phorge.it/T16011
  • For the specific case of asking for confirmation when the window is closed with unsaved changes, see https://we.phorge.it/T15202
  • I adapted the upstream snippet into a user script. Feel free to use it if you'd like. No guarantees, obviously. Available in P74205.