Closed Bug 1194182 Opened 10 years ago Closed 9 years ago

Implement switch-to-tab for add-on toast notification

Categories

(Firefox for Android Graveyard :: General, enhancement, P5)

All
Android
enhancement

Tracking

(firefox43 affected, firefox44 fixed)

RESOLVED FIXED
Firefox 44
Tracking Status
firefox43 --- affected
firefox44 --- fixed

People

(Reporter: u421692, Assigned: mfinkle)

References

Details

Attachments

(3 files)

1. Have add-on manager tab opened 2. Open AMO and install an add-on 3. When the toast notification(installation complete) is displayed, tap on add-ons button from toast Actual result: add-on manager is opened in a new tab Expected result: It should switch to the tab where add-on manager is already opened
This patch refactors the BrowserApp.selectOrOpenTab: * Renames to selectOrAddTab since that mirrors the underlying methods * Adds a param argument that is passed to addTab, if called. Can be null.
Assignee: nobody → mark.finkle
Attachment #8672113 - Flags: review?(margaret.leibovic)
Switches the two places where we open "about:addons" from using addTab to selectOrAddTab. Also removes the hash from the toast. (bug 1173893)
Attachment #8672114 - Flags: review?(margaret.leibovic)
UI Telemetry for the toast
Attachment #8672115 - Flags: review?(margaret.leibovic)
Comment on attachment 8672114 [details] [diff] [review] selectoradd-addons v0.1 Review of attachment 8672114 [details] [diff] [review]: ----------------------------------------------------------------- I guess this is fine, so I don't want to be stop energy about it, but I think we should clean up this code and get rid of unused options and code paths so that we can reduce the number of parameters needed here. ::: mobile/android/chrome/content/browser.js @@ +1330,5 @@ > * Otherwise, a new tab is opened with the given URL. > * > * @param aURL URL to open > + * @param aParam Options used if a tab is created > + * @param aFlags Options for the search. Currently supports: This is confusing... right now the only supported flag is "startsWith", and the only consumer of this method sets that flag to true, so maybe we should get rid of this option and just set this as the default behavior. This would mean we could also get rid of the options method (and an used code path) in getTabWithURL.
Attachment #8672114 - Flags: review?(margaret.leibovic) → review+
Attachment #8672113 - Flags: review?(margaret.leibovic) → review+
Attachment #8672115 - Flags: review?(margaret.leibovic) → review+
(In reply to :Margaret Leibovic from comment #5) > Comment on attachment 8672114 [details] [diff] [review] > selectoradd-addons v0.1 > > Review of attachment 8672114 [details] [diff] [review]: > ----------------------------------------------------------------- > > I guess this is fine, so I don't want to be stop energy about it, but I > think we should clean up this code and get rid of unused options and code > paths so that we can reduce the number of parameters needed here. DownloadNotifications.jsm uses { startsWith: true } , but the two browser.js uses of selectOrAdd do not use the flag. We should make sure that all consumers could handle one case or the other before changing them. I agree that simplifying would be great.
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: