Closed
Bug 1169704
Opened 9 years ago
Closed 8 years ago
In-content preferences - Search tab - "One-click search engines" table remains highlighted after clicking elsewhere on the page
Categories
(Firefox :: Settings UI, defect)
Tracking
()
VERIFIED
FIXED
Firefox 50
Tracking | Status | |
---|---|---|
firefox50 | --- | verified |
People
(Reporter: roxrockers, Assigned: Fischer)
References
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:40.0) Gecko/20100101 Firefox/40.0
Build ID: 20150526004004
Steps to reproduce:
1 about:preferences#search
2 click on the search table,the border will get highlighted with blue dots
3 click outside anywhere
Actual results:
the border will still remain highlighted which is not an expected User experience
Expected results:
The border should have been went to normal state as it was
Comment 1•9 years ago
|
||
Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0
20150529030205
Also, after clicking a search engine in the list, it's not possible to deselect it via Ctrl+Click.
Blocks: 718011
Severity: normal → minor
Status: UNCONFIRMED → NEW
Component: Untriaged → Preferences
Ever confirmed: true
OS: Unspecified → All
Hardware: Unspecified → All
Summary: Table border css issue on prefrences/search → In-content preferences - Search tab - "One-click search engines" table remains highlighted after clicking elsewhere on the page
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → fliu
Assignee | ||
Comment 2•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/67142/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/67142/
Assignee | ||
Comment 3•8 years ago
|
||
Comment on attachment 8774692 [details]
Bug 1169704 - In-content preferences - Search tab - "One-click search engines" table remains highlighted after clicking elsewhere on the page,
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/67142/diff/1-2/
Assignee | ||
Comment 4•8 years ago
|
||
Comment on attachment 8774692 [details]
Bug 1169704 - In-content preferences - Search tab - "One-click search engines" table remains highlighted after clicking elsewhere on the page,
@Jared,
This patch makes the selected search engine and the search engine tab not highlighted when clicking outside the search engine tab.
Please have a look, thanks.
Attachment #8774692 -
Flags: review?(jaws)
Assignee | ||
Comment 5•8 years ago
|
||
@Jared,
Clicking on the "removeEngineButton" does not blur the selection since we should highlight what is being removed.
Comment 6•8 years ago
|
||
Comment on attachment 8774692 [details]
Bug 1169704 - In-content preferences - Search tab - "One-click search engines" table remains highlighted after clicking elsewhere on the page,
https://reviewboard.mozilla.org/r/67142/#review64162
r=me with the following nits fixed.
::: browser/components/preferences/in-content/search.js:111
(Diff revision 2)
> handleEvent: function(aEvent) {
> switch (aEvent.type) {
> case "click":
> + if (aEvent.target.id != "engineChildren" && aEvent.target.id != "removeEngineButton") {
> + let engineList = document.getElementById("engineList");
> + // We don't want to toogle off selection while editing keyword
s/toogle/toggle/
::: browser/components/preferences/in-content/search.js:114
(Diff revision 2)
> + if (aEvent.target.id != "engineChildren" && aEvent.target.id != "removeEngineButton") {
> + let engineList = document.getElementById("engineList");
> + // We don't want to toogle off selection while editing keyword
> + // so proceed only when the input field is hidden
> + if (engineList.inputField.hidden) {
> + var selection = engineList.view.selection;
s/var/let/
Attachment #8774692 -
Flags: review?(jaws) → review+
Assignee | ||
Comment 7•8 years ago
|
||
Comment on attachment 8774692 [details]
Bug 1169704 - In-content preferences - Search tab - "One-click search engines" table remains highlighted after clicking elsewhere on the page,
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/67142/diff/2-3/
Attachment #8774692 -
Flags: review+
Assignee | ||
Comment 8•8 years ago
|
||
Comment on attachment 8774692 [details]
Bug 1169704 - In-content preferences - Search tab - "One-click search engines" table remains highlighted after clicking elsewhere on the page,
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/67142/diff/3-4/
Attachment #8774692 -
Attachment description: Bug 1169704 - In-content preferences - Search tab - "One-click search engines" table remains highlighted after clicking elsewhere on the page → Bug 1169704 - In-content preferences - Search tab - "One-click search engines" table remains highlighted after clicking elsewhere on the page,
Updated•8 years ago
|
Attachment #8774692 -
Flags: review+
Assignee | ||
Comment 9•8 years ago
|
||
Keywords: checkin-needed
Comment 10•8 years ago
|
||
Pushed by mozilla@noorenberghe.ca:
https://hg.mozilla.org/integration/fx-team/rev/90b49d2b0133
In-content preferences - Search tab - "One-click search engines" table remains highlighted after clicking elsewhere on the page, r=jaws
Keywords: checkin-needed
Assignee | ||
Comment 11•8 years ago
|
||
@Carsten,
This bug's patch is merged. So we could mark it as FIXED, right? Thanks.
Flags: needinfo?(cbook)
Comment 12•8 years ago
|
||
hm, there is no rev like 90b49d2b0133 on central - but will check
Flags: needinfo?(cbook)
Comment 13•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 50
Comment 14•8 years ago
|
||
(In reply to Fischer [:Fischer] from comment #11)
> @Carsten,
> This bug's patch is merged. So we could mark it as FIXED, right? Thanks.
now it got merged :)
Comment 15•8 years ago
|
||
I have reproduced this bug with Nightly 41.0a1 (2015-05-29) on Windows 7, 64 Bit!
This bug's fix is verified on latest Aurora
Build ID 20160803004014
User Agent Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:50.0) Gecko/20100101 Firefox/50.0
[bugday-20160803]
Comment 16•8 years ago
|
||
Reproduced this bug in firefox nightly 41.0a1 (2015-05-29) as comment 0 with ubuntu 16.04 (64 bit)
Verified this bug as fixed with latest firefox aurora 50.0a2 (Build ID: 20160804004004)
Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0
QA Whiteboard: [bugday-20160803]
Comment 17•8 years ago
|
||
With the landing of this patch, it's fairly more troublesome to support the addition of new UI elements attached to commands for the selected search engine via an extension;
I have a WIP unpublished add-on adding a button below the engines list, next to "Remove". It applies only to the selected engine, and it's disabled if not engine is selected. This change disables it on click before it triggers.
I thinks that a friendly alternative would be checking for a class instead of the fixed "removeEngineButton" id,
something as:
>> if (aEvent.target.id != "engineChildren" && ! aEvent.target.classList.contains("searchEngineAction")) {
...where "searchEngineAction" is some new classname that need be added to #removeEngineButton.
Comment 18•8 years ago
|
||
(In reply to Carlos [nohamelin] from comment #17)
> With the landing of this patch, it's fairly more troublesome to support the
> addition of new UI elements attached to commands for the selected search
> engine via an extension;
> I have a WIP unpublished add-on adding a button below the engines list, next
> to "Remove". It applies only to the selected engine, and it's disabled if
> not engine is selected. This change disables it on click before it triggers.
>
> I thinks that a friendly alternative would be checking for a class instead
> of the fixed "removeEngineButton" id,
> something as:
>
> >> if (aEvent.target.id != "engineChildren" && ! aEvent.target.classList.contains("searchEngineAction")) {
>
> ...where "searchEngineAction" is some new classname that need be added to
> #removeEngineButton.
You should file a new bug ask :jaws to weight in.
Comment 19•8 years ago
|
||
(In reply to Carlos [nohamelin] from comment #17)
> With the landing of this patch, it's fairly more troublesome to support the
> addition of new UI elements attached to commands for the selected search
> engine via an extension;
> I have a WIP unpublished add-on adding a button below the engines list, next
> to "Remove". It applies only to the selected engine, and it's disabled if
> not engine is selected. This change disables it on click before it triggers.
>
> I thinks that a friendly alternative would be checking for a class instead
> of the fixed "removeEngineButton" id,
> something as:
>
> >> if (aEvent.target.id != "engineChildren" && ! aEvent.target.classList.contains("searchEngineAction")) {
>
> ...where "searchEngineAction" is some new classname that need be added to
> #removeEngineButton.
I am OK with this recommendation. Did you file a new bug for this change?
Flags: needinfo?(nohamelin)
Comment 20•8 years ago
|
||
(In reply to Jared Wein [:jaws] (please needinfo? me) from comment #19)
> I am OK with this recommendation. Did you file a new bug for this change?
Done.
Flags: needinfo?(nohamelin)
Updated•8 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•