Closed
Bug 1116027
Opened 10 years ago
Closed 9 years ago
Don't offer "Switch to Tab" in Recent Tabs panel
Categories
(Firefox for Android Graveyard :: Awesomescreen, defect)
Tracking
(firefox37 verified, fennec37+)
VERIFIED
FIXED
Firefox 37
People
(Reporter: vivek, Assigned: vivek, Mentored)
Details
(Whiteboard: [lang=java])
Attachments
(1 file, 2 obsolete files)
1.16 KB,
patch
|
Margaret
:
review+
|
Details | Diff | Splinter Review |
This is a regression due to bug 732752. Current: A new tab is always opened to restore the recently closed tab history even where there exists a tab with same session history. Expected: A new tab must be spanned only if there are no tabs with same session history.
Assignee | ||
Comment 1•10 years ago
|
||
NI Richard and Nick for their opinion on the same as this is relevant to bug 1108426
Assignee: nobody → vivekb.balakrishnan
Flags: needinfo?(rnewman)
Flags: needinfo?(nalexander)
Assignee | ||
Comment 2•10 years ago
|
||
A new proposed patch that: * iterates through all open tabs and compares the tab history with recent tab history * spans a new tab to restore the closed tab iff there exists no tab open with matching session history. * As a minor improvement, switches to the most recently closed tab when "open all tabs" option is selected.
Attachment #8541956 -
Flags: review?(margaret.leibovic)
Updated•10 years ago
|
tracking-fennec: --- → ?
Comment 3•10 years ago
|
||
I'm going to go out on a limb here and make a chain of assertions. 1. Usually a user won't have two tabs open with the exact same URL history. This assertion is even stronger when you generalize to the full session history (e.g., entered text in forms, scroll position, …). I feel that the previous switch-to-tab behavior of Recent Tabs was an accidental/serendipitous result of not storing enough information, rather than being desirable. 2. As such, this is very much a corner case, and if anything it'll become an increasingly small corner. Not worth fixing, IMO. 3. Indeed, is it actually a bad thing that we're opening Recent Tabs in a new tab? How many users does it harm? 4. Even if a user has the same page open already, that they're in Recent Tabs implies that they want to reopen the closed tab, not switch to the one they left open. (If they wanted to do that, wouldn't they be in the tabs tray?) That is, if I open two tabs to file bugs in Bugzilla, and I accidentally close one, my desired behavior is *not* to switch tabs; that'll be confounding, probably lose some data, and will annoy me. Every operation with Recently Closed Tabs should open a new tab, restore the session history, and remove the entry from the list. This is how desktop versions of both Firefox and Chrome work. Switch-to-tab is an operation in a navigational context (e.g., awesomebar), not a session-management context. Those four assertions -- this is a very small and shrinking corner, and the new behavior is actually better -- lead me to propose: this isn't really a regression, and we should WONTFIX this bug. If anything, take the time to clean up any hooks that exist in the Recent Tabs panel.
Component: General → Awesomescreen
Flags: needinfo?(rnewman)
OS: Linux → Android
Hardware: x86_64 → All
Comment 4•10 years ago
|
||
I agree with rnewman that we shouldn't have switch-to-tab for the recent tabs panel. We never made an active decision to include that UI, but we ended up with it because of the way we share logic between panels. However, we can't just WONTFIX this bug. We still need to make sure we never show the "switch to tab" UI in the items in the recent tabs list. vivek, let me know if you need help figuring out how to do this.
Comment 5•10 years ago
|
||
Comment on attachment 8541956 [details] [diff] [review] switch_to_closed_tab.patch Review of attachment 8541956 [details] [diff] [review]: ----------------------------------------------------------------- For the reasons rnewman stated, I don't think we should go ahead with this patch.
Attachment #8541956 -
Flags: review?(margaret.leibovic) → review-
Updated•10 years ago
|
Flags: needinfo?(nalexander)
Summary: switch to Tab in Recent Tabs broken → Don't offer "Switch to Tab" in Recent Tabs panel
Whiteboard: [lang=java]
Assignee | ||
Comment 6•10 years ago
|
||
Property added to TwoLinePageRow to override "Switch to tab" in Recent Tabs panel
Attachment #8541956 -
Attachment is obsolete: true
Attachment #8542236 -
Flags: review?(margaret.leibovic)
Assignee | ||
Comment 7•10 years ago
|
||
Reused the existing mShowIcons to suppress "switch to tabs".
Attachment #8542236 -
Attachment is obsolete: true
Attachment #8542236 -
Flags: review?(margaret.leibovic)
Attachment #8542251 -
Flags: review?(margaret.leibovic)
Assignee | ||
Comment 8•10 years ago
|
||
Try server run: https://treeherder.mozilla.org/#/jobs?repo=try&revision=9469f3136cbc
Comment 9•10 years ago
|
||
Comment on attachment 8542251 [details] [diff] [review] 1116027.patch Review of attachment 8542251 [details] [diff] [review]: ----------------------------------------------------------------- Looks good. Can you file a follow-up bug to rename mShowIcons to something more intuitive? If you like you could make it a [good first bug] and make yourself the mentor, and I can just come in for a final review :)
Attachment #8542251 -
Flags: review?(margaret.leibovic) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 10•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/4278e53a8a47
Keywords: checkin-needed
Whiteboard: [lang=java] → [lang=java][fixed-in-fx-team]
Comment 11•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/4278e53a8a47
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Whiteboard: [lang=java][fixed-in-fx-team] → [lang=java]
Target Milestone: --- → Firefox 37
Comment 12•9 years ago
|
||
"Switch to Tab" is not present anymore in the "Recent Tabs" panel, so: Verified as fixed on: Device: Alcatel One Touch OS: Android 4.1.2 Build: Firefox for Android 37.0a1 (2015-01-04)
Updated•9 years ago
|
status-firefox37:
--- → verified
Updated•9 years ago
|
tracking-fennec: ? → 37+
Comment 13•9 years ago
|
||
I will mark this as Verified fixed based on Teodora's comment 12.
Status: RESOLVED → VERIFIED
Updated•3 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
•