Closed Bug 1409803 Opened 7 years ago Closed 7 years ago

Whitespace handling for bookmark keywords in full-page edit dialogue

Categories

(Firefox for Android Graveyard :: Awesomescreen, enhancement)

All
Android
enhancement
Not set
normal

Tracking

(firefox58 fixed)

RESOLVED FIXED
Firefox 58
Tracking Status
firefox58 --- fixed

People

(Reporter: JanH, Assigned: JanH)

References

Details

Attachments

(1 file)

The old Edit Bookmark dialogue has some logic that
- strips any leading/trailing whitespace
- disables the save button if a keyword with spaces mid-string is entered

as keywords with spaces don't work. If we're adding keyword editing to the new dialogue, too (bug 1405215), I need to port that logic as well.
I think that if you port this logic, it'll solve the problem I've reported in bug 1409758...currently the save button is disabled even if leading/trailing (not middle) white space is present, but it shouldn't since the logic should automatically remove leading/trailing white space, I'm right?

BR,
Alessio
(In reply to Alessio "Spinus" Moscatello from comment #1)
> ...currently the save button is disabled even if
> leading/trailing (not middle) white space is present, but it shouldn't since
> the logic should automatically remove leading/trailing white space, I'm
> right?

We already do that in old dialogue that's used for Beta and Release and the new one won't be any different once this bug and bug 1405215 are resolved, so I'm not quite sure what you're referring to?
I've just took a look at the patch, it seems that is precisely what I was looking for :) I'll test it once it'll be integrated in official release :)

Thanks

BR,
Alessio
Flags: needinfo?(cnevinchen)
Comment on attachment 8920289 [details]
Bug 1409803 - Copy logic to prevent spaces in keywords to new Edit Bookmark dialogue.

https://reviewboard.mozilla.org/r/191282/#review197362
Attachment #8920289 - Flags: review?(topwu.tw) → review+
We're sorry, Autoland could not rebase your commits for you automatically. Please manually rebase your commits and try again.

hg error in cmd: hg rebase -s 41fdaf0948ab -d 44455b744ee8: rebasing 431124:41fdaf0948ab "Bug 1409803 - Copy logic to prevent spaces in keywords to new Edit Bookmark dialogue. r=jwu" (tip)
merging mobile/android/base/java/org/mozilla/gecko/bookmarks/BookmarkEditFragment.java
warning: conflicts while merging mobile/android/base/java/org/mozilla/gecko/bookmarks/BookmarkEditFragment.java! (edit, then use 'hg resolve --mark')
unresolved conflicts (see hg resolve, then hg rebase --continue)
Rebase conflict with bug 1382049.
Pushed by mozilla@buttercookie.de:
https://hg.mozilla.org/integration/autoland/rev/41625f3d3a6a
Copy logic to prevent spaces in keywords to new Edit Bookmark dialogue. r=jwu
https://hg.mozilla.org/mozilla-central/rev/41625f3d3a6a
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
Flags: needinfo?(cnevinchen)
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: