Closed
Bug 626500
Opened 14 years ago
Closed 14 years ago
Don't put the Panorama button on the tab bar by default
Categories
(Firefox :: Toolbars and Customization, defect)
Firefox
Toolbars and Customization
Tracking
()
RESOLVED
FIXED
Firefox 4.0b10
Tracking | Status | |
---|---|---|
blocking2.0 | --- | final+ |
People
(Reporter: dao, Assigned: ehsan.akhgari)
References
Details
(Whiteboard: [hardblocker])
Attachments
(2 files, 4 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review |
Reporter | ||
Updated•14 years ago
|
blocking2.0: --- → ?
Comment 1•14 years ago
|
||
Further, I'd support it if the Panorama button was added to the toolbar the first time it was activated, since that indicates a user who has decided they want to use the feature.
blocking2.0: ? → final+
Whiteboard: [hardblocker]
Comment 2•14 years ago
|
||
(In reply to comment #1)
> Further, I'd support it if the Panorama button was added to the toolbar the
> first time it was activated, since that indicates a user who has decided they
> want to use the feature.
Such handling could be done in Panorama itself, during the "firstrun" behavior (displaying the welcome tab), which is tracked in the browser.panorama.experienced_firstrun pref.
Comment 3•14 years ago
|
||
Related: bug 626525
Assignee | ||
Comment 4•14 years ago
|
||
Attachment #504588 -
Flags: review?(dao)
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → ehsan
Assignee | ||
Comment 5•14 years ago
|
||
Attachment #504593 -
Flags: review?(dao)
Assignee | ||
Comment 6•14 years ago
|
||
These test adjustments are needed because the button doesn't exist by default any more.
Attachment #504594 -
Flags: review?(ian)
Assignee | ||
Updated•14 years ago
|
Whiteboard: [hardblocker] → [hardblocker][has patch][needs review dao/ian]
Comment 7•14 years ago
|
||
Comment on attachment 504593 [details] [diff] [review]
Part 2: Add the Panorama button to the toolbar after the first time that the user enters Panorama
If user has multiple browser windows opened, then enters Panorama for the first time. Does this patch add the tabview-button to all existing browser windows?
Reporter | ||
Comment 8•14 years ago
|
||
Comment on attachment 504588 [details] [diff] [review]
Part 1: Remove the panorama button from the default toolbar set
The browserShared.inc change is wrong, #tabview-button needs to be part of that list just like the other optional buttons.
Attachment #504588 -
Flags: review?(dao) → review-
Reporter | ||
Comment 9•14 years ago
|
||
Comment on attachment 504593 [details] [diff] [review]
Part 2: Add the Panorama button to the toolbar after the first time that the user enters Panorama
>+ if (firstTime) {
>+ gWindow.document.getElementById("TabsToolbar").insertItem("tabview-button",
>+ gWindow.document.getElementById("alltabs-button"));
This doesn't persist the currentset, does it?
What if alltabs-button has been removed? Seems like you'd append after tabs-closebutton then.
Also, can we move this to a separate bug?
Attachment #504593 -
Flags: review?(dao) → review-
Assignee | ||
Comment 10•14 years ago
|
||
Attachment #504588 -
Attachment is obsolete: true
Attachment #504841 -
Flags: review?(dao)
Reporter | ||
Comment 11•14 years ago
|
||
Comment on attachment 504841 [details] [diff] [review]
Part 1: Remove the panorama button from the default toolbar set
>+ <toolbarbutton id="tabview-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
>+ label="&tabGroupsButton.label;"
>+ command="Browser:ToggleTabView"
>+ tooltiptext="&tabGroupsButton.tooltip;"
>+ removable="true"
>+ observes="tabviewGroupsNumber"/>
Remove removable="true".
Attachment #504841 -
Flags: review?(dao) → review+
Assignee | ||
Comment 12•14 years ago
|
||
Comment on attachment 504593 [details] [diff] [review]
Part 2: Add the Panorama button to the toolbar after the first time that the user enters Panorama
(In reply to comment #9)
> Comment on attachment 504593 [details] [diff] [review]
> Part 2: Add the Panorama button to the toolbar after the first time that the
> user enters Panorama
>
> >+ if (firstTime) {
> >+ gWindow.document.getElementById("TabsToolbar").insertItem("tabview-button",
> >+ gWindow.document.getElementById("alltabs-button"));
>
> This doesn't persist the currentset, does it?
>
> What if alltabs-button has been removed? Seems like you'd append after
> tabs-closebutton then.
>
> Also, can we move this to a separate bug?
I filed bug 626791 for that. I'm not going to work on it though, since I seem to not be familiar enough with the toolbar stuff.
Attachment #504593 -
Attachment is obsolete: true
Assignee | ||
Comment 13•14 years ago
|
||
Attachment #504841 -
Attachment is obsolete: true
Assignee | ||
Updated•14 years ago
|
Whiteboard: [hardblocker][has patch][needs review dao/ian] → [hardblocker][has patch][needs review ian]
Reporter | ||
Comment 14•14 years ago
|
||
Comment on attachment 504594 [details] [diff] [review]
Part 3: test adjustments
>--- a/browser/base/content/test/tabview/browser_tabview_launch.js
>+++ b/browser/base/content/test/tabview/browser_tabview_launch.js
>@@ -42,18 +42,20 @@ function test() {
> waitForExplicitFinish();
>
> // verify initial state
> ok(!TabView.isVisible(), "Tab View starts hidden");
>
> // use the Tab View button to launch it for the first time
> window.addEventListener("tabviewshown", onTabViewLoadedAndShown, false);
> let button = document.getElementById("tabview-button");
>- ok(button, "Tab View button exists");
>- button.doCommand();
>+ ok(!button, "Tab View button not exist by default");
>+ let buttonCommand = document.getElementById("Browser:ToggleTabView");
>+ ok(buttonCommand, "The button command should exist, however");
>+ buttonCommand.doCommand();
s/buttonCommand/tabViewCommand/
The button isn't of interest here, I don't think there's a point in verifying that it doesn't exist.
Also, buttonCommand.doCommand() makes ok(buttonCommand, ...) redundant.
>--- a/browser/base/content/test/tabview/browser_tabview_rtl.js
>+++ b/browser/base/content/test/tabview/browser_tabview_rtl.js
> function toggleTabView() {
> let button = document.getElementById("tabview-button");
>- ok(button, "Tab View button exists");
>- button.doCommand();
>+ ok(!button, "Tab View button not exist by default");
>+ let buttonCommand = document.getElementById("Browser:ToggleTabView");
>+ ok(buttonCommand, "The button command should exist, however");
>+ buttonCommand.doCommand();
> }
ditto
Attachment #504594 -
Flags: review?(ian) → review+
Assignee | ||
Comment 15•14 years ago
|
||
(In reply to comment #14)
> The button isn't of interest here, I don't think there's a point in verifying
> that it doesn't exist.
That's the whole point behind this bug, so I think I'm going to keep that check around.
Attachment #504594 -
Attachment is obsolete: true
Assignee | ||
Updated•14 years ago
|
Whiteboard: [hardblocker][has patch][needs review ian] → [hardblocker][needs landing]
Reporter | ||
Comment 16•14 years ago
|
||
(In reply to comment #15)
> Created attachment 505095 [details] [diff] [review]
> Part 3: test adjustments
>
> (In reply to comment #14)
> > The button isn't of interest here, I don't think there's a point in verifying
> > that it doesn't exist.
>
> That's the whole point behind this bug, so I think I'm going to keep that check
> around.
It's not the point of the test. All the test wants is to open panorama.
Assignee | ||
Comment 17•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/411c730f8617
http://hg.mozilla.org/mozilla-central/rev/64c98e4e1797
Status: NEW → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [hardblocker][needs landing] → [hardblocker]
Target Milestone: --- → Firefox 4.0b10
You need to log in
before you can comment on or make changes to this bug.
Description
•