Closed
Bug 695152
Opened 13 years ago
Closed 13 years ago
Tabs, Separate activity, some ui spec needed
Categories
(Firefox for Android Graveyard :: General, defect, P1)
Tracking
(firefox11 fixed, fennec11+)
RESOLVED
FIXED
Firefox 11
People
(Reporter: elan, Assigned: sriram)
References
Details
(Keywords: feature)
Attachments
(2 files, 1 obsolete file)
65.50 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
1.40 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
* Separate activity
* some ui spec needed
Updated•13 years ago
|
Summary: Tabs → Tabs, Separate activity, some ui spec needed
Assignee | ||
Comment 1•13 years ago
|
||
This patch moves the tabs to a popupwindow in same activity.
Since "Tabs" is held separate, the popup shows even when Gecko is loading.
The tabs's title, url, favicon (and even new tabs opening) are updated in the popup when it is showing (for such events happening in the background).
Close tabs work by switching to previous tab in the list.
Some followups:
1. There are 2 data structures used: one for fast retrieval, the other for preserving the order. This needs to be optimized (ArrayList<Tab> is same as ArrayList<Integer> though).
2. The close tabs does something with gecko when the tab closed is the selected tab. I'm failing to understand the reason. The java side sends proper messages.
3. The tab popup has a height of 50% on portrait mode. This need to be changed with the list's height. I would like to take this as a followup bug with the actual styling for the popupwindow.
Assignee: nobody → sriram
Attachment #568668 -
Flags: review?(mark.finkle)
Comment 2•13 years ago
|
||
Comment on attachment 568668 [details] [diff] [review]
Initial Patch
This patch is pretty much ready to land except:
* Move the "New Tab" string into a resource (don't use "+ add tab" as the text either)
* I want to use a convention for our JS->Java messages, so for the tab stuff:
** "onAddTab" -> "Tab:Added"
** "onCloseTab" -> "Tab:Closed"
** "onSelectTab" -> "Tab:Selected"
While we are doing this, change the Java->JS names:
* "tab-add" -> "Tab:Add"
* "tab-load" -> "Tab:Load"
* "tab-select" -> "Tab:Select"
* "tab-close" -> "Tab:Close"
I think we'll be r+ ready with those changes
Attachment #568668 -
Flags: review?(mark.finkle) → review-
Assignee | ||
Comment 3•13 years ago
|
||
Made the required changes.
This also fixes the "close-tab" problem.
- When selected tab is closed, a tab is explicitly selected _before_ closing the tab.
- When a background tab is closed, a tab is explicitly selected _after_ closing the tab.
Attachment #568668 -
Attachment is obsolete: true
Attachment #569136 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 4•13 years ago
|
||
This patch preserves the tabs count, title and favicon of the selected tab on the BrowserToolbar on rotation.
Attachment #569139 -
Flags: review?(mark.finkle)
Updated•13 years ago
|
Attachment #569139 -
Flags: review?(mark.finkle) → review+
Comment 5•13 years ago
|
||
Comment on attachment 569136 [details] [diff] [review]
Patch for tabs tray
Just some questions:
* Do we need to keep Tabs.java order array? or can we try to remove it in the future?
* the screen shot at http://cl.ly/0w3I311s2a3w3g0r2B3C shows the "tabs" button is a little offset vertically from the rest of the URL bar. We can file a followup for fixing that, but I wanted to point it out.
* File a followup to fix the "prompt" message handler
r+
Attachment #569136 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Comment 7•13 years ago
|
||
http://hg.mozilla.org/projects/birch/rev/8db2fba86f75 - fixed the issue.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
tracking-fennec: --- → 11+
Updated•13 years ago
|
status-firefox11:
--- → fixed
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
•