Closed
Bug 1173715
Opened 9 years ago
Closed 9 years ago
double borders when clicking on the magnifying glass of an empty searchbar, with all one-off engines hidden
Categories
(Firefox :: Search, defect, P5)
Firefox
Search
Tracking
()
VERIFIED
FIXED
Firefox 44
People
(Reporter: florian, Assigned: jeremyjpf, Mentored)
References
Details
(Whiteboard: [good first bug][lang=css][fxsearch])
Attachments
(2 files, 1 obsolete file)
14.48 KB,
image/png
|
Details | |
2.93 KB,
patch
|
florian
:
review+
|
Details | Diff | Splinter Review |
Edge case where we show 2 borders and should be showing only one. See attached screenshot. Steps to reproduce: - in the search settings, uncheck all the one-click search engines - click on the glass icon (will only show the bug when the textfield is empty)
Reporter | ||
Updated•9 years ago
|
Severity: normal → trivial
Comment 2•9 years ago
|
||
**can you please add a more info. of fixing it ?
Comment 3•9 years ago
|
||
Well I'm new. And I wanna try to fix this bug.
Comment 4•9 years ago
|
||
Great :) Good luck. Florian will help you with fixing the bug.
Assignee: nobody → fahimnadif
Comment 5•9 years ago
|
||
Florian can you please help me out. I don't know where to get started.
Reporter | ||
Comment 6•9 years ago
|
||
(In reply to Nadif Ali Fahim from comment #5) > Florian can you please help me out. I don't know where to get started. Hi Nadif :-). Do you already have a local build of Firefox that you can modify, or do you need help for this? The CSS files for this part of the UI are browser/themes/linux/searchbar.css browser/themes/osx/searchbar.css and browser/themes/windows/searchbar.css https://hg.mozilla.org/mozilla-central/rev/e73e95394f91#l4.25 is an example of what was done in bug 1136139 to prevent showing a double border when there's no search suggestion. When there's no one-off engine button to show, we hide the header and the list of one-off engines at http://mxr.mozilla.org/mozilla-central/source/browser/base/content/urlbarBindings.xml?rev=17f159b29970#1276 Feel free to ask questions if you need more help to get started.
Flags: needinfo?(florian)
Comment 7•9 years ago
|
||
Thanks alot Florian. But I need a little more help in getting the local build of Firefox. How am I supposed to get it? Or where can I find it?
Reporter | ||
Comment 8•9 years ago
|
||
(In reply to Nadif Ali Fahim from comment #7) > Thanks alot Florian. But I need a little more help in getting the local > build of Firefox. How am I supposed to get it? Or where can I find it? There are explanations on https://developer.mozilla.org/en-US/docs/Simple_Firefox_build
Updated•9 years ago
|
Rank: 50
Flags: firefox-backlog+
Priority: -- → P5
Whiteboard: [good first bug][lang=css] → [good first bug][lang=css][fxsearch]
Comment 9•9 years ago
|
||
Thanks for the help Florian. I'll try to fix the bug as fast as I can.
Assignee | ||
Comment 10•9 years ago
|
||
Hi, could I please try to fix this bug? I already have Firefox built and would like to try to fix this as my first bug.
Comment 11•9 years ago
|
||
Great Jeremy :) Please work with it. I am assigning you. Thanks for contributing!
Assignee: fahimnadif → jeremyjpf
Assignee | ||
Comment 12•9 years ago
|
||
Hi Atique, I believe that I have a fix for the bug on my working copy. What are the next steps to get my changes reviewed? Thanks!
Reporter | ||
Comment 13•9 years ago
|
||
(In reply to Jeremy from comment #12) > Hi Atique, I believe that I have a fix for the bug on my working copy. What > are the next steps to get my changes reviewed? Hi Jeremy, thanks for working on this bug! :) If you have a fix locally, the next step is to attach a patch and request review. You can generate a patch using 'hg diff', and then attach it to the bug using the "Add an attachment" link. On the attachment form, check the 'patch' checkbox; set the 'review' flag to '?' and put my email address in the requestee field that will appear.
Assignee | ||
Comment 14•9 years ago
|
||
I made the change on the three different css files for osx, windows, and linux. To fix the problem, I removed the bottom border on the search bar at the top and added a top border to the list of suggested searches. This way, you would no longer need to check which element is below the search bar if there are no suggestions and constantly remove the top borders off of the elements that are directly below. Since all of the below elements have top borders, this solves the bug and also let me remove the check on the search-panel-one-offs-header element to see if the suggestions element is collapsed or not. This seemed like the best solution because checking if all of the above elements are hidden/collapsed would be more complex. This should also ensure that you will not run into this bug again if any additional elements are added in the future.
Attachment #8676034 -
Flags: review?(florian)
Assignee | ||
Comment 15•9 years ago
|
||
Regarding my above comment, I actually didn't remove the bottom border off of the search bar, but rather the search-panel-current-engine element which contains the text "Google Search" under which the bug was occuring
Reporter | ||
Comment 16•9 years ago
|
||
Comment on attachment 8676034 [details] [diff] [review] bug1173715.txt Looks good to me, thanks! The next step is to get the patch checked in. Would it be possible for you to attach the patch with a commit message and author, as described at https://developer.mozilla.org/en-US/docs/Mercurial/Using_Mercurial#How_can_I_generate_a_patch_for_somebody_else_to_check-in_for_me.3F ?
Attachment #8676034 -
Flags: review?(florian) → review+
Assignee | ||
Comment 17•9 years ago
|
||
Hi Florian, I don't know if this is a dumb question, but I created the patch and it is located in the hidden .hg folder, so I cannot attach it here because I can't access the folder from the webbrowser
Assignee | ||
Comment 18•9 years ago
|
||
Here is the patch. I just made a copy of the patch onto my desktop to solve my above problem.
Reporter | ||
Comment 19•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/ef2b5e2a78672c228e42529ca181fdfae714fb1b Bug 1173715 - Removed the bottom border off of the search-panel-current-engine element and removed the check to see if the search suggestions is collapsed, r=florian.
Reporter | ||
Updated•9 years ago
|
Attachment #8676034 -
Attachment is obsolete: true
Reporter | ||
Comment 20•9 years ago
|
||
Comment on attachment 8678541 [details] [diff] [review] bug1173715.patch Review of attachment 8678541 [details] [diff] [review]: ----------------------------------------------------------------- (In reply to Jeremy from comment #17) > Hi Florian, I don't know if this is a dumb question, but I created the patch > and it is located in the hidden .hg folder, so I cannot attach it here > because I can't access the folder from the webbrowser You can use "hg export" and redirect the output to a file to generate a patch file where you want. If you are going to export patches to bugzilla often, you may want to install the bzexport mercurial extension (easily done by running mach mercurial-setup), see https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/How_to_Submit_a_Patch#Submitting_the_patch for details. ::: browser/themes/linux/searchbar.css @@ +88,5 @@ > + border-bottom: none; > +} > + > +.search-panel-tree { > + border-top: 1px solid #ccc !important; I missed this during the previous review: the indent here should be only 2 spaces, not 4. I fixed this before pushing the patch.
Attachment #8678541 -
Flags: review+
Comment 21•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ef2b5e2a7867
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 44
Comment 22•9 years ago
|
||
Successfully reproduce the bug on Firefox 42.0;Build ID:20151029151421;User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:42.0) Gecko/20100101 Firefox/42.0 The fix works for me on Firefox 44.0a2;Build ID:20151103004217;User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:44.0) Gecko/20100101 Firefox/44.0
Comment 23•9 years ago
|
||
Reproduced this bug on Nightly 41.0a1 (2015-06-11); (Build ID: 20150611030208) with the instruction from comment 0 on Linux, 64 bit This Bug is now verified as fixed on Latest Firefox Developer Edition 44.0a2 (2015-11-03) Build ID: 20151103004217 User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0 As it is also verified on Mac OS X (Comment 22), Marking it as verified!
QA Whiteboard: [bugday-20151104]
Reporter | ||
Comment 24•9 years ago
|
||
Jeremy, congratulations for your first patch that has landed and been verified :-). Would you like help to find another bug to work on next? (Bug 1119872 may be a good one)
Updated•9 years ago
|
Status: RESOLVED → VERIFIED
Assignee | ||
Comment 25•9 years ago
|
||
Hi, sorry for the late reply. Thanks a lot for all of the help with this bug. I would love the take a look at Bug 111982. I will look over it in the next few days.
Assignee | ||
Comment 26•9 years ago
|
||
I meant Bug 1119872.
You need to log in
before you can comment on or make changes to this bug.
Description
•