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

Issue 8560083: adblockplusopera: Port UI code from Chrome (Closed)

Created:
Oct. 12, 2012, 1:11 p.m. by Felix Dahlke
Modified:
Nov. 14, 2012, 7:09 a.m.
Reviewers:
Wladimir Palant
Visibility:
Public.

Description

I have ported most of our UI code over from Chrome. Please only review the following, the rest is just copied as-is: - background.js - config.xml - i18n.js (just the i18n object at the top) - options.js (only a few changes, best look at the diff to Chrome) I have deliberately omitted the popup, because both click hiding and enabling/disabling ABP on specific domains is not trivial. The code is in a branch called port-chrome-ui.

Patch Set 1 #

Total comments: 18

Patch Set 2 : #

Total comments: 18

Patch Set 3 : #

Patch Set 4 : #

Total comments: 5

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6062 lines, -881 lines) Patch
M background.js View 1 2 3 4 3 chunks +84 lines, -1 line 0 comments Download
R button.js View 1 chunk +0 lines, -50 lines 0 comments Download
M config.xml View 1 chunk +1 line, -1 line 0 comments Download
R design/default.css View 1 chunk +0 lines, -40 lines 0 comments Download
R design/footer.css View 1 chunk +0 lines, -8 lines 0 comments Download
R design/header.css View 1 chunk +0 lines, -19 lines 0 comments Download
R design/input.css View 1 chunk +0 lines, -67 lines 0 comments Download
R design/notify.css View 1 chunk +0 lines, -47 lines 0 comments Download
R help.html View 1 chunk +0 lines, -46 lines 0 comments Download
R help/help.js View 1 chunk +0 lines, -15 lines 0 comments Download
A i18n.js View 1 1 chunk +78 lines, -0 lines 0 comments Download
A icons/abp-128.png View Binary file 0 comments Download
A icons/abp-18.png View 1 Binary file 0 comments Download
A icons/abp-32.png View Binary file 0 comments Download
R images/googlePlus.png View Binary file 0 comments Download
R images/icon128.png View Binary file 0 comments Download
R images/icon256.png View Binary file 0 comments Download
R images/icon32.png View Binary file 0 comments Download
R images/icon64.png View Binary file 0 comments Download
R images/opera_small.png View Binary file 0 comments Download
R images/remove12.png View Binary file 0 comments Download
R images/remove14.png View Binary file 0 comments Download
R images/secure.png View Binary file 0 comments Download
A jquery-ui/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png View Binary file 0 comments Download
A jquery-ui/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png View Binary file 0 comments Download
A jquery-ui/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png View Binary file 0 comments Download
A jquery-ui/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png View Binary file 0 comments Download
A jquery-ui/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png View Binary file 0 comments Download
A jquery-ui/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png View Binary file 0 comments Download
A jquery-ui/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png View Binary file 0 comments Download
A jquery-ui/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png View Binary file 0 comments Download
A jquery-ui/css/smoothness/images/ui-icons_222222_256x240.png View Binary file 0 comments Download
A jquery-ui/css/smoothness/images/ui-icons_2e83ff_256x240.png View Binary file 0 comments Download
A jquery-ui/css/smoothness/images/ui-icons_454545_256x240.png View Binary file 0 comments Download
A jquery-ui/css/smoothness/images/ui-icons_888888_256x240.png View Binary file 0 comments Download
A jquery-ui/css/smoothness/images/ui-icons_cd0a0a_256x240.png View Binary file 0 comments Download
A jquery-ui/css/smoothness/jquery-ui-1.8.16.custom.css View 1 chunk +345 lines, -0 lines 0 comments Download
A jquery-ui/js/jquery-1.7.1.min.js View 1 chunk +4 lines, -0 lines 0 comments Download
A jquery-ui/js/jquery-ui-1.8.16.custom.min.js View 1 chunk +112 lines, -0 lines 0 comments Download
A locales/ar/messages.json View 1 2 3 4 1 chunk +179 lines, -0 lines 0 comments Download
A locales/bg/messages.json View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A locales/ca/messages.json View 1 2 3 4 1 chunk +44 lines, -0 lines 0 comments Download
A locales/cs/messages.json View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A locales/da/messages.json View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A locales/de/messages.json View 1 2 3 4 1 chunk +186 lines, -0 lines 0 comments Download
A locales/el/messages.json View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A locales/en-GB/messages.json View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
R locales/en/files/translate.js View 1 chunk +0 lines, -135 lines 0 comments Download
A locales/en/messages.json View 1 2 3 4 1 chunk +234 lines, -0 lines 0 comments Download
A locales/es-ES/messages.json View 1 2 3 4 1 chunk +186 lines, -0 lines 0 comments Download
A locales/es-LA/messages.json View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A locales/et/messages.json View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A locales/fi/messages.json View 1 2 3 4 1 chunk +179 lines, -0 lines 0 comments Download
A locales/fr/messages.json View 1 2 3 4 1 chunk +185 lines, -0 lines 0 comments Download
A locales/he/messages.json View 1 2 3 4 1 chunk +179 lines, -0 lines 0 comments Download
A locales/hr/messages.json View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A locales/hu/messages.json View 1 2 3 4 1 chunk +179 lines, -0 lines 0 comments Download
A locales/it/messages.json View 1 2 3 4 1 chunk +186 lines, -0 lines 0 comments Download
A locales/ja/messages.json View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A locales/ko/messages.json View 1 2 3 4 1 chunk +186 lines, -0 lines 0 comments Download
A locales/lt/messages.json View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A locales/lv/messages.json View 1 2 3 4 1 chunk +165 lines, -0 lines 0 comments Download
A locales/nl/messages.json View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A locales/pl/messages.json View 1 2 3 4 1 chunk +183 lines, -0 lines 0 comments Download
A locales/pt-BR/messages.json View 1 2 3 4 1 chunk +186 lines, -0 lines 0 comments Download
A locales/pt/messages.json View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A locales/ro/messages.json View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A locales/ru/messages.json View 1 2 3 4 1 chunk +179 lines, -0 lines 0 comments Download
A locales/sk/messages.json View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A locales/sl/messages.json View 1 2 3 4 1 chunk +47 lines, -0 lines 0 comments Download
A locales/sr/messages.json View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A locales/sv/messages.json View 1 2 3 4 1 chunk +186 lines, -0 lines 0 comments Download
A locales/th/messages.json View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A locales/tr/messages.json View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A locales/uk/messages.json View 1 2 3 4 1 chunk +56 lines, -0 lines 0 comments Download
A locales/vi/messages.json View 1 2 3 4 1 chunk +165 lines, -0 lines 0 comments Download
A locales/zh-CN/messages.json View 1 2 3 4 1 chunk +186 lines, -0 lines 0 comments Download
A locales/zh-TW/messages.json View 1 2 3 4 1 chunk +186 lines, -0 lines 0 comments Download
M options.html View 1 1 chunk +264 lines, -62 lines 0 comments Download
A options.js View 1 1 chunk +584 lines, -0 lines 0 comments Download
R options/about.js View 1 chunk +0 lines, -12 lines 0 comments Download
R options/cssDisplay.js View 1 chunk +0 lines, -80 lines 0 comments Download
R options/help.js View 1 chunk +0 lines, -12 lines 0 comments Download
R options/listsDisplay.js View 1 chunk +0 lines, -79 lines 0 comments Download
R options/other.js View 1 chunk +0 lines, -57 lines 0 comments Download
R options/privacy.js View 1 chunk +0 lines, -44 lines 0 comments Download
R options/time.js View 1 chunk +0 lines, -36 lines 0 comments Download
R options/whitelist.js View 1 chunk +0 lines, -70 lines 0 comments Download
A update_locales.py View 1 2 3 4 1 chunk +74 lines, -0 lines 0 comments Download

Messages

Total messages: 11
Wladimir Palant
icons/abp-18.png looks bad. The way to create that icon is to take icons/abp-16.png and to ...
Oct. 12, 2012, 3:04 p.m. (2012-10-12 15:04:02 UTC) #1
Wladimir Palant
http://codereview.adblockplus.org/8560083/diff/1/options.html File options.html (right): http://codereview.adblockplus.org/8560083/diff/1/options.html#newcode265 options.html:265: </div> We probably want to hide the three options ...
Oct. 14, 2012, 6:50 a.m. (2012-10-14 06:50:38 UTC) #2
Felix Dahlke
I've addressed all issues. There's now a new file "update_locales.py" that I would like you ...
Oct. 16, 2012, 2:20 p.m. (2012-10-16 14:20:01 UTC) #3
Wladimir Palant
Publishing incomplete review to get you going. http://codereview.adblockplus.org/8560083/diff/12001/background.js File background.js (right): http://codereview.adblockplus.org/8560083/diff/12001/background.js#newcode191 background.js:191: request.send(); What ...
Oct. 17, 2012, 10:17 a.m. (2012-10-17 10:17:14 UTC) #4
Felix Dahlke
I've addressed the issues you've found so far. It seems some parts of my code ...
Oct. 18, 2012, 8:08 a.m. (2012-10-18 08:08:45 UTC) #5
Wladimir Palant
Another incomplete review - as discussed on IRC, I consider the locale fallback mechanism broken ...
Oct. 18, 2012, 12:30 p.m. (2012-10-18 12:30:39 UTC) #6
Wladimir Palant
Another incomplete review - as discussed on IRC, I consider the locale fallback mechanism broken ...
Oct. 18, 2012, 12:30 p.m. (2012-10-18 12:30:42 UTC) #7
Felix Dahlke
Addressed all update_locales.py issues and uploaded a new patch set. http://codereview.adblockplus.org/8560083/diff/12001/update_locales.py File update_locales.py (right): http://codereview.adblockplus.org/8560083/diff/12001/update_locales.py#newcode20 ...
Oct. 18, 2012, 1:09 p.m. (2012-10-18 13:09:10 UTC) #8
Wladimir Palant
http://codereview.adblockplus.org/8560083/diff/42001/background.js File background.js (right): http://codereview.adblockplus.org/8560083/diff/42001/background.js#newcode191 background.js:191: request.send(); There is still a potential unhandled exception here ...
Oct. 19, 2012, 3:47 p.m. (2012-10-19 15:47:41 UTC) #9
Felix Dahlke
Addressed the latest review comments. http://codereview.adblockplus.org/8560083/diff/42001/background.js File background.js (right): http://codereview.adblockplus.org/8560083/diff/42001/background.js#newcode191 background.js:191: request.send(); On 2012/10/19 15:47:41, ...
Oct. 19, 2012, 4:07 p.m. (2012-10-19 16:07:27 UTC) #10
Wladimir Palant
Oct. 22, 2012, 8:57 a.m. (2012-10-22 08:57:51 UTC) #11
LGTM but I guess that we want to incorporate my recent Chrome changes to make
sure the differences are minimal.

http://codereview.adblockplus.org/8560083/diff/42001/background.js
File background.js (right):

http://codereview.adblockplus.org/8560083/diff/42001/background.js#newcode191
background.js:191: request.send();
Ok, it seems that the widget:// protocol behaves differently from file:// here -
my bad. I verified that the fallback works correctly if the locale doesn't
exist.

Powered by Google App Engine
This is Rietveld