Closed Bug 585946 Opened 14 years ago Closed 12 years ago

Location / search bar splitter moves to the end of the toolbar when toggling "tabs on top"

Categories

(Firefox :: Toolbars and Customization, defect)

x86
Windows 7
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Firefox 14
Tracking Status
blocking2.0 --- .x+

People

(Reporter: theodorejb, Assigned: dao)

References

Details

(Keywords: polish, regression)

Attachments

(1 file, 3 obsolete files)

User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b4pre) Gecko/20100810 Minefield/4.0b4pre
Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b4pre) Gecko/20100810 Minefield/4.0b4pre

The search field/location bar cannot be resized if you set tabs to be on bottom.

Reproducible: Always

Steps to Reproduce:
1. When tabs are on top, hover mouse over the divider between the location bar and search field, notice that arrows appear and the bar is resizable.
2. Right-click toolbar and uncheck "Tabs on Top" option.
3. Hover mouse over location bar/search field divider again, notice that no arrows appear and the bar is not resizable. 
Actual Results:  
Location bar/search field is not resizable.

Expected Results:  
Should be able to resize search field.

I tested this with Aero enabled. If you switch the tabs back on top, the bar is still not resizable. It only becomes resizable again if you restart the browser or right-click toolbar, choose customize, and click "Restore Default Set".
I can confirm in Aero style.
The problem does not happen in non-Aero style.

After having carried out "Customize toolbar > Done", the rersizer works again.


Regression window:
Works:
Mozilla/5.0 (Windows; U; Windows NT 6.1; WOW64; en-US; rv:1.9.3a6pre) Gecko/20100623 Minefield/3.7a6pre ID:20100624095420
Fails:
http://hg.mozilla.org/mozilla-central/rev/cc7c030f6b42
Mozilla/5.0 (Windows; U; Windows NT 6.1; WOW64; en-US; rv:1.9.3a6pre) Gecko/20100623 Minefield/3.7a6pre ID:20100624112154
Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=4a6f3d15cfdc&tochange=cc7c030f6b42
Candidate Bug:
Bug 555081 - Can't move the window using the titlebar with custom titlebar drawing or glass areas below the titlebar
Blocks: 555081
Status: UNCONFIRMED → NEW
Ever confirmed: true
Seems to be Win7 only, right?
blocking2.0: --- → ?
Version: unspecified → Trunk
Keywords: regression
blocking2.0: ? → final+
Likely not a widget bug. This code fails to update correctly for some reason:

http://mxr.mozilla.org/mozilla-central/source/browser/base/content/browser.js#2366

Maybe this is something similar to bug 555987 [{inc}Dynamically changing -moz-box-ordinal-group doesn't work].
Changing tab position causes re-binding.

  /* Make the window draggable by glassed toolbars (bug 555081) */
    ...
    #navigator-toolbox[tabsontop="false"] > #nav-bar,
    ... {
>>    -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar-drag");
    }

However, the binding constructor does not call UpdateUrlbarSearchSplitterState.
So this problem happens.
Summary: When tabs are placed on bottom, search field cannot be resized → When toggling "tabs on top", search field cannot be resized
Assignee: nobody → dao
Attached patch patch (obsolete) — Splinter Review
Attachment #489799 - Flags: review?(mano)
No, johnathan, this doesn't block.
blocking2.0: final+ → .x
Keywords: polish
Attached patch better patch (obsolete) — Splinter Review
Attachment #489799 - Attachment is obsolete: true
Attachment #513891 - Flags: review?(enndeakin)
Attachment #489799 - Flags: review?(mano)
(In reply to comment #10)
> Created attachment 513891 [details] [diff] [review]
> better patch

I find that with this new patch, in order to get the splitter to function, I have to enter/exit "Toolbar Layout" after toggling tabs-on-top.

This is with Windows 7.
Can you explain when someone would use this 'skipintoolbarset' attribute?

Also, tests should be added to test_toolbar.xul
(In reply to comment #12)
> Can you explain when someone would use this 'skipintoolbarset' attribute?

When adding nodes to the toolbar that aren't supposed to participate in toolbar customization, like the splitter. The (val == this.currentSet) check wouldn't work otherwise. this.currentSet would contain urlbar-search-splitter but val wouldn't.
Summary: When toggling "tabs on top", search field cannot be resized → Location / search bar splitter moves to the end of the toolbar when toggling "tabs on top"
Attached patch test added (obsolete) — Splinter Review
Attachment #513891 - Attachment is obsolete: true
Attachment #514472 - Flags: review?(enndeakin)
Attachment #513891 - Flags: review?(enndeakin)
Just FYI, I see this almost every day.  When I was looking into this in August (to see if it was something I was causing) I added a little CSS in Stylish to make #urlbar-search-splitter's position obvious:

#urlbar-search-splitter { background-color: lime !important; }

and I never turned that off. So, like I said, with my usage pattern, I still notice this on the order of once a day.  FWIW.
Attached patch patchSplinter Review
updated to tip
Attachment #514472 - Attachment is obsolete: true
Attachment #607966 - Flags: review?(neil)
Attachment #514472 - Flags: review?(enndeakin)
Attachment #607966 - Flags: review?(neil) → review+
http://hg.mozilla.org/integration/mozilla-inbound/rev/fe40e7c2d790
Flags: in-testsuite+
Target Milestone: --- → Firefox 14
https://hg.mozilla.org/mozilla-central/rev/fe40e7c2d790
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment on attachment 607966 [details] [diff] [review]
patch

Bah, I knew I had forgotten somthing...

>+            if (val == this.currentSet)
>+              return;
This should return val.
Depends on: 740974
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: