Closed Bug 1085628 Opened 10 years ago Closed 10 years ago

browser_880164_customization_context_menus.js fails in OSX when the toolbar size is smaller than default

Categories

(Firefox :: Toolbars and Customization, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 36
Tracking Status
firefox33 --- wontfix
firefox34 --- wontfix
firefox35 --- fixed
firefox36 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(1 file, 1 obsolete file)

The following test fails to execute against Firefox dev edition, with a custom theme:
  browser/components/customizableui/test/browser_880164_customization_context_menus.js

The fake right click dispatched over here:
  http://mxr.mozilla.org/mozilla-central/source/browser/components/customizableui/test/browser_880164_customization_context_menus.js#119
is being done at a wrong position.

I don't know exactly why, the (100, urlbarRect.height - 1) doesn't work on FF dev ed.
The size of the toolbar is really smaller and there might be some padding/margin differences around the UI element being tested.

Clicking on (100, 1) works fine...
  https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=f943af7cb111
Blocks: 1053434
See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1053434#c101.  Gijs, is clicking on (100, 1) instead of (100, urlbarRect.height-1) a reasonable fix for this?
Flags: needinfo?(gijskruitbosch+bugs)
OS: Windows 7 → Mac OS X
Hardware: x86_64 → x86
Attached patch patch (obsolete) (deleted) — Splinter Review
Comment on attachment 8508220 [details] [diff] [review]
patch

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

Assuming tests pass on fx-team/try without further changes, it's an OK fix. As I said elsewhere, the proper fix might be adding a separate item with removable="false" set. If we don't need to do that here/yet, we can postpone that to get stuff in working order for devedition.
Attachment #8508220 - Flags: review+
(can someone fix the bug and patch summary, though?)
Flags: needinfo?(gijskruitbosch+bugs)
The try runs are going as expected (orange without the patch and green with it)
Summary: Strengthens customization context menu test → browser_880164_customization_context_menus.js fails in OSX when the toolbar size is smaller than default
Attached patch patch (deleted) — Splinter Review
New commit message, with a try run with the patch on top of m-c instead of gum:
https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=5bcde157f4a6
Attachment #8508220 - Attachment is obsolete: true
Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Comment on attachment 8508562 [details] [diff] [review]
patch

Carrying over r+
Attachment #8508562 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/1af0f51fc2e1
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 36
Comment on attachment 8508562 [details] [diff] [review]
patch

Approval Request Comment
[Feature/regressing bug #]: it's a test improvement that will be required once we uplift some other patches that will make the failure permanent
[User impact if declined]: none, only test failures
[Describe test coverage new/current, TBPL]: existing test
[Risks and why]: none, it's a test-only change
[String/UUID change made/needed]: none
Attachment #8508562 - Flags: approval-mozilla-aurora?
Comment on attachment 8508562 [details] [diff] [review]
patch

Apparently test-only fixes don't need approval.
Attachment #8508562 - Flags: approval-mozilla-aurora?
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: