Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified form save data warning dismissed if users chooses to print/save but the action is canceled #12283

Closed
bogdanmaris opened this issue Aug 26, 2020 · 3 comments

Comments

@bogdanmaris
Copy link

bogdanmaris commented Aug 26, 2020

Affected versions

  • Firefox 81.0b2
  • Latest Nightly 82.0a1

Affected platforms

  • Windows 10 64bit
  • MacOS 10.15.6
  • Ubuntu 18.04 64bit

Steps to reproduce

  1. Open a pdf with form (eg: https://www.irs.gov/pub/irs-pdf/f1040.pdf)
  2. Enter some text in a random field
  3. Click the print button inside pdf/Hit CTRL+S
  4. Cancel the print action/save action
  5. Reload/close the tab with the pdf

Expected result

  • Save notification message is still there since user did not print/save the page.

Actual result

  • Save notification message is not displayed anymore and the data is lost upon reloading/closing the tab

Regression range

Additional notes

Suggested severity

  • I my opinion this should have the S2 severity since we are dealing with data loss.
@Snuffleupagus
Copy link
Collaborator

Snuffleupagus commented Aug 26, 2020

Cancel the print action/save action
[...]
Save notification message is not displayed anymore and the data is lost upon reloading/closing the tab

That's a known problem, which is even explicitly mentioned in #12265 (comment), and in general it's probably going to very difficult to detect those cases.

Potential regressor: Bug 1660617 - Update pdf.js to version 2.6.302 / #12265

Sorry, but this doesn't really make sense, and as mentioned in that PR the "cancelling of saving"-case already didn't work prior to that.

Also logged in bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1661207

Edit: Also, filing the same issue in two places will only make tracking bugs more difficult.

@timvandermeij
Copy link
Contributor

We would be happy to address this, but I don't think there is any way for us to know if printing/saving succeeded in general and across browsers.

@timvandermeij
Copy link
Contributor

Closing since I don't know of any way we can know this, especially across browsers. The upstream issue will remain open for any ideas, but for now this is not actionable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants