Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29356477: Issue 4510 - Filter preferences: replace the built-in findbar widget by our own look-alike (Closed)

Created:
Oct. 11, 2016, 8:56 a.m. by Wladimir Palant
Modified:
Oct. 12, 2016, 5:53 p.m.
Reviewers:
Thomas Greiner
Base URL:
https://hg.adblockplus.org/adblockplus
Visibility:
Public.

Description

Issue 4510 - Filter preferences: replace the built-in findbar widget by our own look-alike

Patch Set 1 #

Patch Set 2 : Removed outdated CSS rule #

Total comments: 15

Patch Set 3 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -185 lines) Patch
M chrome/content/ui/filters.xul View 1 2 3 chunks +16 lines, -5 lines 0 comments Download
M chrome/content/ui/filters-search.js View 1 2 3 chunks +90 lines, -178 lines 0 comments Download
M chrome/locale/en-US/filters.dtd View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/skin/filters.css View 1 2 1 chunk +45 lines, -2 lines 0 comments Download

Messages

Total messages: 6
Wladimir Palant
Oct. 11, 2016, 8:56 a.m. (2016-10-11 08:56:34 UTC) #1
Wladimir Palant
There is a description of the changes under https://issues.adblockplus.org/ticket/4510#comment:1.
Oct. 11, 2016, 9 a.m. (2016-10-11 09:00:20 UTC) #2
Thomas Greiner
https://codereview.adblockplus.org/29356477/diff/29356483/chrome/content/ui/filters-search.js File chrome/content/ui/filters-search.js (right): https://codereview.adblockplus.org/29356477/diff/29356483/chrome/content/ui/filters-search.js#newcode117 chrome/content/ui/filters-search.js:117: E("findbar-textbox").setAttribute("status", currentStatus); Usually, what we do is set a ...
Oct. 12, 2016, 2:03 p.m. (2016-10-12 14:03:14 UTC) #3
Wladimir Palant
https://codereview.adblockplus.org/29356477/diff/29356483/chrome/content/ui/filters-search.js File chrome/content/ui/filters-search.js (right): https://codereview.adblockplus.org/29356477/diff/29356483/chrome/content/ui/filters-search.js#newcode117 chrome/content/ui/filters-search.js:117: E("findbar-textbox").setAttribute("status", currentStatus); On 2016/10/12 14:03:13, Thomas Greiner wrote: > ...
Oct. 12, 2016, 3:22 p.m. (2016-10-12 15:22:01 UTC) #4
Thomas Greiner
LGTM https://codereview.adblockplus.org/29356477/diff/29356483/chrome/content/ui/filters-search.js File chrome/content/ui/filters-search.js (right): https://codereview.adblockplus.org/29356477/diff/29356483/chrome/content/ui/filters-search.js#newcode121 chrome/content/ui/filters-search.js:121: return setStatus(""); On 2016/10/12 15:22:00, Wladimir Palant wrote: ...
Oct. 12, 2016, 5:18 p.m. (2016-10-12 17:18:10 UTC) #5
Wladimir Palant
Oct. 12, 2016, 5:53 p.m. (2016-10-12 17:53:31 UTC) #6
https://codereview.adblockplus.org/29356477/diff/29356483/chrome/content/ui/f...
File chrome/content/ui/filters.xul (right):

https://codereview.adblockplus.org/29356477/diff/29356483/chrome/content/ui/f...
chrome/content/ui/filters.xul:375: <hbox id="findbar" hidden="true"
align="center" onkeypress="FilterSearch.keyPress(event);">
On 2016/10/12 17:18:10, Thomas Greiner wrote:
> Unfortunately, the page you mentioned is quite ambiguous about that

The text seems to have been imported from XULPlanet.com (© 1999 - 2004) and
never changed - it could definitely use some improvement. The same thing is more
obvious on
https://developer.mozilla.org/en-US/Add-ons/Overlay_Extensions/Firefox_addons...

https://codereview.adblockplus.org/29356477/diff/29356483/chrome/skin/filters...
File chrome/skin/filters.css (right):

https://codereview.adblockplus.org/29356477/diff/29356483/chrome/skin/filters...
chrome/skin/filters.css:242: filter: drop-shadow(0 0 4px red);
On 2016/10/12 17:18:10, Thomas Greiner wrote:
> Alternatively, we
> could use the `<html:input>` element if we want to have more control over its
> design

Or we simply set `-moz-appearance: none` or drop `type="search"` which will also
give us full control over the design, but then we have to reimplement all the
styles and behavior. Mozilla doesn't mind doing that for the findbar, but for us
that would clearly be too much effort (particularly getting somewhat native
look&feel on all platforms).

Powered by Google App Engine
This is Rietveld