Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Save resilience #2961

Merged
merged 3 commits into from
Jun 5, 2017
Merged

Save resilience #2961

merged 3 commits into from
Jun 5, 2017

Conversation

ianb
Copy link
Contributor

@ianb ianb commented Jun 2, 2017

This deals with several issues from #2957:

  • Log weird data URLs better
  • Fix the Save button staying stuck disabled
  • Fix changing the clip after an unsuccessful save
  • Give an error when you have zero-area selection

ianb added 3 commits June 2, 2017 13:00
Change the Save button to not be disabled after the timeout
Remove any previous clip images if Save is invoked twice
Previously they were creating empty data: URLs and causing server rejection
@@ -27,6 +27,8 @@ loginErrorDetails = We couldn’t save your shot because there is a problem with
unshootablePageErrorTitle = We can’t screenshot this page.
unshootablePageErrorDetails = This isn’t a standard Web page, so you can’t take a screenshot of it.
selfScreenshotErrorTitle = You can’t take a shot of a Firefox Screenshots page!
# Fired when someone makes a zero-width or zero-height selection
emptySelectionErrorTitle = Your selection is too small
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@flodolo We're aiming for 55, but have a new string to add. Is it possible to get strings uplifted after 55 graduates to Beta?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Localization happens in GitHub, outside of mozilla-central, so you're not bound to trains: the content that you land in mozilla-central is not exposed to localizers, so no problem with uplifts.

Having said that, the sooner you land, the better. And if you're planning to enable in 55, website's localization is getting kind of late.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very obscure error: the user has the resize the selection down to zero height or width to encounter it, so I think if it doesn't get localized the impact will be very small.

Copy link
Member

@jaredhirsch jaredhirsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me. I'd suggest we wait to land this until we figure out whether a new string could be localized in time for 55, but feel free to #YOLO merge if you want to live dangerously

@ianb ianb merged commit 910c251 into master Jun 5, 2017
@ianb ianb deleted the save-resilience branch June 5, 2017 16:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants