Page MenuHomePhabricator

Edits lost when clicking back from talk overlay
Closed, ResolvedPublic2 Estimated Story Points

Description

NOTE: Discovered while working on T226106

Expected: Edits retained you can continue editing.
Actual: Edits retained you can continue editing.

Now...

  • Press the BROWSER BACK Button
  • A confirmation message shows. Click cancel!

Expected: Edits retained you can continue editing.
Actual: MY EDITS ARE LOST FOREVER OHHHH NO

Developer notes

It's overriding Overlay.prototype.hide - we now encourage a onBeforeExit callback that is passed into the constructor.

QA Results

ACStatusDetails
1T228235#5363811

Event Timeline

Change 523829 had a related patch set uploaded (by Jdlrobson; owner: Jdlrobson):
[mediawiki/extensions/MobileFrontend@master] TalkSectionAddOverlay should use onBeforeExit function

https://gerrit.wikimedia.org/r/523829

ovasileva triaged this task as Medium priority.Jul 17 2019, 3:41 PM
ovasileva set the point value for this task to 2.Jul 17 2019, 4:43 PM

Change 523829 merged by jenkins-bot:
[mediawiki/extensions/MobileFrontend@master] TalkSectionAddOverlay should use onBeforeExit function

https://gerrit.wikimedia.org/r/523829

Test Result

Status: ✅ PASS
OS: macOS Mojave
Browser: Chrome
Device: MBP
Emulated Device: iPhoneX

Test Artifact(s):

QA Steps

Visit https://en.m.wikipedia.beta.wmflabs.org/wiki/Spain#/talk/new
Type in text in subject and body
CLick the back button
A confirmation message shows. Click cancel!
✅ AC1: Edits retained you can continue editing.

T228235.gif (660×605 px, 644 KB)