Closed Bug 1466346 Opened 6 years ago Closed 5 years ago

search bar (STRG + F) close button ends up off screen

Categories

(Toolkit :: Find Toolbar, defect, P3)

60 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1222710

People

(Reporter: felix.bau, Unassigned)

Details

Attachments

(2 files)

Attached image screenshot.PNG
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0
Build ID: 20180516032328

Steps to reproduce:

Pushed the Firefox window to the right half of the screen (Windows Aero) and searched for something on the page.


Actual results:

The text that tells you that Firefox started searching from the beginning of the page again pushes the close button off screen.
Component: Untriaged → Find Toolbar
Product: Firefox → Toolkit
Priority: -- → P3

still happening and probably fairly easy to fix.
I would be greatful if this could be marked as a good first bug :)

In fact it's probably a duplicate of the last one, bug 1222710.

Sadly can't edit my comments, so have to add another.

Let's keep bug 1466346 because it has higher priority than bug 1222710.

Per discussion there, P5 means it's unlikely to ever be fixed, unless someone comes up with a patch which the Mozilla devs would only need to approve. I wonder if the posted work-around would be good enough as a real bug fix? Except that it shouldn't go to userChrome.css , but somewhere else.

.findbar-closebutton { -moz-box-ordinal-group: 0 !important; }

This is a user side fix, how to turn this into an official bug fix?

Source: https://bugzilla.mozilla.org/show_bug.cgi?id=1222710#c7

Flags: needinfo?(dharvey)
Attachment #9074778 - Flags: ui-review+
Attachment #9074778 - Flags: review+
Attachment #9074778 - Flags: feedback+
Attachment #9074778 - Flags: data-review+
Attachment #9074778 - Flags: checkin+
Attachment #9074778 - Flags: a11y-review+
Flags: needinfo?(dharvey)
Attachment #9074778 - Flags: ui-review+
Attachment #9074778 - Flags: review+
Attachment #9074778 - Flags: feedback+
Attachment #9074778 - Flags: data-review+
Attachment #9074778 - Flags: checkin+
Attachment #9074778 - Flags: a11y-review+

Please dont abuse flags like that

https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/How_to_Submit_a_Patch has instructions for how to submit a patch, taking a very quick look a real fix is very unlikely to use "!important"

(In reply to Dale Harvey (:daleharvey) from comment #7)

Please dont abuse flags like that

https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/How_to_Submit_a_Patch has instructions for how to submit a patch, taking a very quick look a real fix is very unlikely to use "!important"

Sorry!

I think I found the file where the above CSS ID is used, and it does have a couple of "!important" flags in there. There's probably a better way, but it's as much as I know to fix the bug.

https://github.com/mozilla/gecko-dev/blob/master/toolkit/themes/shared/findBar.inc.css

It's currently this:

.findbar-closebutton {
padding: 0 8px;
}

https://github.com/mozilla/gecko-dev/blob/master/toolkit/content/widgets/findbar.js

Line 30: this.content = MozXULElement.parseXULToFragment(`

At the end there's <toolbarbutton anonid="find-closebutton" which could be moved to the top. Alternatively maybe there's a way to keep to close button from moving outside the visible area. E.g. a CSS style which attaches it to the right border.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: