Closed Bug 980374 Opened 10 years ago Closed 10 years ago

Adjust height of buttons in the nav-bar to match the height of urlbar and search box

Categories

(Firefox :: Theme, defect)

x86
macOS
defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 30
Tracking Status
firefox29 --- verified
firefox30 --- verified

People

(Reporter: mikedeboer, Assigned: mikedeboer)

References

Details

(Whiteboard: [Australis:P3])

Attachments

(2 files, 4 obsolete files)

Whiteboard: [Australis:P4] → [Australis:P3]
Assignee: nobody → mdeboer
Comment on attachment 8387186 [details] [diff] [review]
Patch v1: adjust OSX toolbar buttons height to match urlbar and search bar

Cancelling review based on a couple of glitches I saw when testing. Discussed with mikedeboer in meatspace.
Attachment #8387186 - Flags: review?(mconley)
This fixes stuff with the Bookmarks menu button. Was there another question you had that I can't remember?
Attachment #8387186 - Attachment is obsolete: true
Attachment #8387333 - Flags: review?(mconley)
Comment on attachment 8387333 [details] [diff] [review]
Patch v1.1: adjust OSX toolbar buttons height to match urlbar and search bar

Cancelling review because there's still that one issue with the Bookmarks Toolbar Items in the nav-bar causing the back button to be clipped.
Attachment #8387333 - Flags: review?(mconley)
Attachment #8387333 - Attachment is obsolete: true
Attachment #8387629 - Attachment is obsolete: true
Attachment #8387629 - Flags: review?(mconley)
Comment on attachment 8387764 [details] [diff] [review]
Patch v1.3: adjust OSX toolbar buttons height to match urlbar and search bar

Review of attachment 8387764 [details] [diff] [review]:
-----------------------------------------------------------------

::: browser/themes/osx/browser.css
@@ +116,5 @@
>  #PersonalToolbar {
>    padding: 0 4px 4px;
>  }
>  
> +#main-window[customize-entered] #PersonalToolbar {

As per discussion, we're going to yank this particular rule because it makes the customize mode transition look worse with the bookmarks toolbar enabled.
Attachment #8387764 - Flags: review?(mconley)
Comment on attachment 8387799 [details] [diff] [review]
Patch v1.4: adjust OSX toolbar buttons height to match urlbar and search bar

Review of attachment 8387799 [details] [diff] [review]:
-----------------------------------------------------------------

Let's roll!

We should also file follow-up bugs for the bookmarks toolbar items stuff we noticed.
Attachment #8387799 - Flags: review?(mconley) → review+
Pushed as: https://hg.mozilla.org/integration/fx-team/rev/74568436ab02

Follow-up bugs coming up!
Whiteboard: [Australis:P3] → [Australis:P3][fixed-in-fx-team]
:-(
Whiteboard: [Australis:P3][fixed-in-fx-team] → [Australis:P3]
I'm guessing this is breaking because:

http://mxr.mozilla.org/mozilla-central/source/browser/components/places/tests/browser/browser_toolbarbutton_menu_context.js#34

no longer clicks the right thing. I'm not sure if that's a bug in this patch and how it affects the nested buttons, or if it's an issue with the test. In the latter case, it might be possible to switch to synthesizeKey with VK_ESCAPE, but I've not tried that.
Yup, but my try push with another 'fix' yielded other test failures, in UITour code this time. I'm currently investigating why that would be the case.
Status: NEW → ASSIGNED
Blocks: 980445
Personal bookmarks toolbar placeholder follow-up bug filed as bug 982215.
Try push I was referring to earlier: https://tbpl.mozilla.org/?tree=Try&rev=730c70bb7396
Matt, do you know why `browser/modules/test/browser_UITour_panel_close_annotation.js` would fail when the toolbar buttons on OSX are made smaller by this bug/ patch?

The test fails with the message "Timeout waiting for popup at anchor: Highlight should move to the appMenu button and still be visible", see the TBPL link I posted in comment 17.
Flags: needinfo?(MattN+bmo)
Pushed another try: https://tbpl.mozilla.org/?tree=Try&rev=7c947a7ca776

This disables the UITour test on Mac and uses Gijs' suggested test update to hide the panel with VK_ESCAPE.
Try run is green, so posting the patch for review.

- For browser_toolbarbutton_menu_context.js I made the panel hide with VK_ESCAPE.
- I disabled browser_UITour_panel_close_annotation.js on OSX, because a) it runs without failure locally (cannot reproduce the failure) and b) to fix the test I need input from MattN and having this test work for OSX on our infra is lower prio than resolving this P3, IMHO.
Attachment #8389793 - Flags: review?(gijskruitbosch+bugs)
Attachment #8389793 - Flags: review?(gijskruitbosch+bugs) → review?(mconley)
(In reply to Mike de Boer [:mikedeboer] from comment #20)
> - I disabled browser_UITour_panel_close_annotation.js on OSX, because a) it
> runs without failure locally (cannot reproduce the failure) and b) to fix
> the test I need input from MattN and having this test work for OSX on our
> infra is lower prio than resolving this P3, IMHO.

In other words: I'm suggesting to move fixing this test for OSX in a follow-up bug.
Comment on attachment 8389793 [details] [diff] [review]
Patch 2: update tests

Review of attachment 8389793 [details] [diff] [review]:
-----------------------------------------------------------------

r=me after reverting browser.ini and updating the commit message

::: browser/modules/test/browser.ini
@@ +14,5 @@
>  [browser_UITour_availableTargets.js]
>  [browser_UITour_detach_tab.js]
>  [browser_UITour_annotation_size_attributes.js]
>  [browser_UITour_panel_close_annotation.js]
> +skip-if = os == "mac" # Popup handling failures due to bug 980374

This isn't necessary as the test failed because you did a try push on fx-team instead of m-c and pushed with a test failure from bug 971116 in it. You can remove this line and it'll be fine.
Attachment #8389793 - Flags: review?(mconley) → review+
Flags: needinfo?(MattN+bmo)
Alright! Thanks Matt, good thing I asked your for info ;)

Pushed to fx-team as:
https://hg.mozilla.org/integration/fx-team/rev/3f47ab139eb4
https://hg.mozilla.org/integration/fx-team/rev/ab6e51e115bc
Whiteboard: [Australis:P3] → [Australis:P3][fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/3f47ab139eb4
https://hg.mozilla.org/mozilla-central/rev/ab6e51e115bc
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:P3][fixed-in-fx-team] → [Australis:P3]
Target Milestone: --- → Firefox 30
Comment on attachment 8387799 [details] [diff] [review]
Patch v1.4: adjust OSX toolbar buttons height to match urlbar and search bar

[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 909349
User impact if declined: The toolbar buttons on OSX will appear to be too large when hover/ clicked.
Testing completed (on m-c, etc.): landed on m-c
Risk to taking this patch (and alternatives if risky): minor
String or IDL/UUID changes made by this patch: n/a
Attachment #8387799 - Flags: approval-mozilla-aurora?
Comment on attachment 8389793 [details] [diff] [review]
Patch 2: update tests

[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 909349
User impact if declined: Mochitest b-c test will fail if the patch in this bug is landed without updating the erroneous unit test.
Testing completed (on m-c, etc.): landed on m-c
Risk to taking this patch (and alternatives if risky): minor
String or IDL/UUID changes made by this patch: n/a
Attachment #8387799 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment on attachment 8389793 [details] [diff] [review]
Patch 2: update tests

Mike, you didn't explicitly required the uplift flag. I guess it is a mistake.
Attachment #8389793 - Flags: approval-mozilla-aurora+
Depends on: 984535
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: