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)
Tracking
(firefox43 affected, firefox44 fixed)
RESOLVED
FIXED
Firefox 44
People
(Reporter: u421692, Assigned: mfinkle)
References
Details
Attachments
(3 files)
2.33 KB,
patch
|
Margaret
:
review+
|
Details | Diff | Splinter Review |
3.17 KB,
patch
|
Margaret
:
review+
|
Details | Diff | Splinter Review |
1.30 KB,
patch
|
Margaret
:
review+
|
Details | Diff | Splinter Review |
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
Assignee | ||
Comment 1•9 years ago
|
||
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)
Assignee | ||
Comment 3•9 years ago
|
||
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)
Assignee | ||
Comment 4•9 years ago
|
||
UI Telemetry for the toast
Attachment #8672115 -
Flags: review?(margaret.leibovic)
Comment 5•9 years ago
|
||
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+
Updated•9 years ago
|
Attachment #8672113 -
Flags: review?(margaret.leibovic) → review+
Updated•9 years ago
|
Attachment #8672115 -
Flags: review?(margaret.leibovic) → review+
Assignee | ||
Comment 6•9 years ago
|
||
(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.
Comment 8•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/49877ebcdca5
https://hg.mozilla.org/mozilla-central/rev/dca9314ec360
https://hg.mozilla.org/mozilla-central/rev/5d9a9f5ca4d4
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 44
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•