Closed Bug 1459887 Opened 7 years ago Closed 7 years ago

Relabel the "Remove Bookmark" button to "Cancel" in the New Bookmark dialog

Categories

(Firefox :: Bookmarks & History, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 62
Tracking Status
firefox62 --- fixed

People

(Reporter: dao, Assigned: dao)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

No description provided.
Summary: Relabel the "Remove Bookmark" button to "Cancel" New Bookmark dialog → Relabel the "Remove Bookmark" button to "Cancel" in the New Bookmark dialog
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Comment on attachment 8980224 [details] Bug 1459887 - Relabel the "Remove Bookmark" button to "Cancel" in the New Bookmark dialog. https://reviewboard.mozilla.org/r/246370/#review252542 ::: browser/base/content/browser-places.js:131 (Diff revision 2) > } > > switch (aEvent.keyCode) { > case KeyEvent.DOM_VK_ESCAPE: > + if (this._isNewBookmark) { > + this._removeBookmarksOnPopupHidden = true; I'm a little surprised by this change. The reason is, that although we're changing to save/cancel buttons, we're still going to be auto-saving after a time. If the user is used to pressing escape to dismiss the dialog (to get it out the way), then they're now going to be removing the bookmark and use some other action. If UX has cleared/requested this, that's fine, if not, I think we should check with them. Also, we should include a test for this change if we keep it. ::: browser/base/content/browser-places.js:248 (Diff revision 2) > - > await PlacesUtils.bookmarks.fetch({url: aUrl}, > bookmark => this._itemGuids.push(bookmark.guid)); > > - let forms = gNavigatorBundle.getString("editBookmark.removeBookmarks.label"); > + let removeButton = this._element("editBookmarkPanelRemoveButton"); > + if (this._isNewBookmark) { I guess we haven't always done extensive tests, but it would be nice to get a test added for checking the button label has been set correctly, just in case something breaks it in future. Probably could do it quite simply in browser_bookmark_popup.js.
Attachment #8980224 - Flags: review?(standard8)
(In reply to Mark Banner (:standard8) from comment #4) > Comment on attachment 8980224 [details] > Bug 1459887 - Relabel the "Remove Bookmark" button to "Cancel" in the New > Bookmark dialog. > > https://reviewboard.mozilla.org/r/246370/#review252542 > > ::: browser/base/content/browser-places.js:131 > (Diff revision 2) > > } > > > > switch (aEvent.keyCode) { > > case KeyEvent.DOM_VK_ESCAPE: > > + if (this._isNewBookmark) { > > + this._removeBookmarksOnPopupHidden = true; > > I'm a little surprised by this change. The reason is, that although we're > changing to save/cancel buttons, we're still going to be auto-saving after a > time. When a dialog has a cancel button, then the escape key doing the same thing really seems like the only sensible option to me; users will expect this from interacting with other dialogs. Enter still works for dismissing the dialog while keeping the bookmark.
(In reply to Dão Gottwald [::dao] from comment #5) > (In reply to Mark Banner (:standard8) from comment #4) > > Comment on attachment 8980224 [details] > > Bug 1459887 - Relabel the "Remove Bookmark" button to "Cancel" in the New > > Bookmark dialog. > > > > https://reviewboard.mozilla.org/r/246370/#review252542 > > > > ::: browser/base/content/browser-places.js:131 > > (Diff revision 2) > > > } > > > > > > switch (aEvent.keyCode) { > > > case KeyEvent.DOM_VK_ESCAPE: > > > + if (this._isNewBookmark) { > > > + this._removeBookmarksOnPopupHidden = true; > > > > I'm a little surprised by this change. The reason is, that although we're > > changing to save/cancel buttons, we're still going to be auto-saving after a > > time. > > When a dialog has a cancel button, then the escape key doing the same thing > really seems like the only sensible option to me; users will expect this > from interacting with other dialogs. Enter still works for dismissing the > dialog while keeping the bookmark. Ok, I hadn't thought of it like that. Lets keep it like you've got it, but just with the added tests.
Comment on attachment 8980224 [details] Bug 1459887 - Relabel the "Remove Bookmark" button to "Cancel" in the New Bookmark dialog. https://reviewboard.mozilla.org/r/246370/#review252834 Great, thank you for the additional test changes. r=Standard8
Attachment #8980224 - Flags: review?(standard8) → review+
Pushed by dgottwald@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/210b7cb896da Relabel the "Remove Bookmark" button to "Cancel" in the New Bookmark dialog. r=standard8
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 62
Blocks: 1464489
I have reproduced this bug with Nightly 62.0a1 (2018-05-24) on Windows 10, 64 Bit! This bug's fix is verified with latest Beta! Build ID 20180702164905 User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0
QA Whiteboard: [bugday-20180627]
QA Whiteboard: [bugday-20180627] → [good first verify][bugday-20180627]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: