Closed Bug 1388863 Opened 7 years ago Closed 7 years ago

Bookmarking a link via Activity Stream context menu should give feedback

Categories

(Firefox :: New Tab Page, enhancement)

enhancement
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 57
Tracking Status
firefox57 --- verified

People

(Reporter: ursula, Assigned: ursula)

References

Details

Attachments

(1 file)

If you've bookmarked a link via Activity Stream's context menu (the "..." that appear when hovering over a card), it should open up a bookmarking dialog to give some visual feedback that the bookmarking action went through successfully.

Preferably we want to use the shiny new Photon designs for bookmarking a page, but if that isn't possible (we would have to add some new functions to browser-places.js since this is the first instance where we show a UI for a page we're bookmarking that isn't actually loaded) then we can stick with the old showBookmarkDialog panel.
Assignee: nobody → usarracini
Attachment #8895536 - Flags: feedback?(adw)
Comment on attachment 8895536 [details]
Bug 1388863 - Bookmarking a link via Activity Stream context menu should give feedback

https://reviewboard.mozilla.org/r/166754/#review171890

This is basically what I had in mind too, but it looks like there are a few more uses of aBrowser in bookmarkPage and _bookmarkPagePT that you'll ultimately need to account for.  I think it's OK to set docInfo to {} if !aBrowser (or to null, but {} might be easier), and to leave charset null.

I think you'll need to update the !useAsyncTransactions case in bookmarkPage too because right now async transactions are only enabled on Nightly, and I'm not sure when that will change.
Attachment #8895536 - Flags: feedback?(adw) → feedback+
Comment on attachment 8895536 [details]
Bug 1388863 - Bookmarking a link via Activity Stream context menu should give feedback

https://reviewboard.mozilla.org/r/166754/#review173642

Thanks Ursula, looks good.

::: toolkit/modules/NewTabUtils.jsm:1139
(Diff revision 2)
> +   * the bookmarking action has been successful
>     *
> -   * @param {String} aUrl
> -   *          The url to bookmark
> +   * @param {Object} aData
> +   *          aData.url The url to bookmark
> +   *          aData.title The title of the page to bookmark
>     *

Need a @param for aBrowser
Attachment #8895536 - Flags: review?(adw) → review+
Pushed by usarracini@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/44b5074b9c65
Bookmarking a link via Activity Stream context menu should give feedback r=adw
https://hg.mozilla.org/mozilla-central/rev/44b5074b9c65
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
Blocks: 1394533
When bookmarking a link via Activity Stream context menu, it opens a bookmark dialog and there is a visual feedback that express the action was successfully performed. Verified as fixed using latest Nightly 57.0a1 Build ID 20170918220054, on Windows 10 x64, Mac 10.12 and Ubuntu 14.04 x64.
Status: RESOLVED → VERIFIED
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: