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

Issue 29567749: Issue 5593 - Use messaging for the popup's notification code (Closed)

Created:
Oct. 6, 2017, 1:07 p.m. by kzar
Modified:
Oct. 9, 2017, 4:49 p.m.
CC:
Thomas Greiner
Visibility:
Public.

Description

Issue 5593 - Use messaging for the popup's notification code Depends on these reviews: - https://codereview.adblockplus.org/29567746/ - https://codereview.adblockplus.org/29567743/

Patch Set 1 #

Total comments: 16

Patch Set 2 : Use notifications.get message, addressed Manish's feedback #

Total comments: 3

Patch Set 3 : Replace !== with !=, === with == #

Total comments: 15

Patch Set 4 : Addressed Manish's feedback #

Total comments: 2

Patch Set 5 : Use chrome.tabs.create #

Patch Set 6 : Update dependencies #

Patch Set 7 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -53 lines) Patch
M dependencies View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M notification.js View 1 2 3 4 5 6 3 chunks +61 lines, -51 lines 0 comments Download
M popup.js View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 18
kzar
Patch Set 1 Obviously the dependencies are placeholders until the related changes land.
Oct. 6, 2017, 1:09 p.m. (2017-10-06 13:09:18 UTC) #1
Manish Jethani
Overall I wonder if some of the roundtrips to the background page could be reduced ...
Oct. 6, 2017, 2:26 p.m. (2017-10-06 14:26:05 UTC) #2
kzar
Patch Set 2 : Use notifications.get message, addressed Manish's feedback https://codereview.adblockplus.org/29567749/diff/29567750/notification.js File notification.js (right): https://codereview.adblockplus.org/29567749/diff/29567750/notification.js#newcode32 ...
Oct. 6, 2017, 8:05 p.m. (2017-10-06 20:05:34 UTC) #3
Sebastian Noack
https://codereview.adblockplus.org/29567749/diff/29567847/notification.js File notification.js (right): https://codereview.adblockplus.org/29567749/diff/29567847/notification.js#newcode91 notification.js:91: while (link && link !== messageElement && link.localName !== ...
Oct. 8, 2017, 1:19 a.m. (2017-10-08 01:19:22 UTC) #4
kzar
Patch Set 3 : Replace !== with !=, === with == https://codereview.adblockplus.org/29567749/diff/29567847/dependencies File dependencies (right): ...
Oct. 8, 2017, 10:13 a.m. (2017-10-08 10:13:46 UTC) #5
Sebastian Noack
LGTM https://codereview.adblockplus.org/29567749/diff/29569558/notification.js File notification.js (right): https://codereview.adblockplus.org/29567749/diff/29569558/notification.js#newcode18 notification.js:18: /* global togglePref */ As I already told ...
Oct. 8, 2017, 7:17 p.m. (2017-10-08 19:17:22 UTC) #6
Manish Jethani
https://codereview.adblockplus.org/29567749/diff/29569558/notification.js File notification.js (right): https://codereview.adblockplus.org/29567749/diff/29569558/notification.js#newcode24 notification.js:24: let docLinks = []; The variable is unnecessary here. ...
Oct. 8, 2017, 10:31 p.m. (2017-10-08 22:31:35 UTC) #7
Manish Jethani
https://codereview.adblockplus.org/29567749/diff/29569558/notification.js File notification.js (right): https://codereview.adblockplus.org/29567749/diff/29569558/notification.js#newcode112 notification.js:112: togglePref("notifications_ignoredcategories"); On 2017/10/08 22:31:34, Manish Jethani wrote: > [...] ...
Oct. 8, 2017, 10:40 p.m. (2017-10-08 22:40:59 UTC) #8
kzar
https://codereview.adblockplus.org/29567749/diff/29569558/notification.js File notification.js (right): https://codereview.adblockplus.org/29567749/diff/29569558/notification.js#newcode18 notification.js:18: /* global togglePref */ On 2017/10/08 19:17:22, Sebastian Noack ...
Oct. 9, 2017, 10:33 a.m. (2017-10-09 10:33:25 UTC) #9
Manish Jethani
https://codereview.adblockplus.org/29567749/diff/29569558/notification.js File notification.js (right): https://codereview.adblockplus.org/29567749/diff/29569558/notification.js#newcode24 notification.js:24: let docLinks = []; On 2017/10/09 10:33:25, kzar wrote: ...
Oct. 9, 2017, 10:54 a.m. (2017-10-09 10:54:13 UTC) #10
Manish Jethani
https://codereview.adblockplus.org/29567749/diff/29569558/notification.js File notification.js (right): https://codereview.adblockplus.org/29567749/diff/29569558/notification.js#newcode112 notification.js:112: togglePref("notifications_ignoredcategories"); On 2017/10/09 10:54:12, Manish Jethani wrote: > [...] ...
Oct. 9, 2017, 11:53 a.m. (2017-10-09 11:53:52 UTC) #11
kzar
Patch Set 4 : Addressed Manish's feedback https://codereview.adblockplus.org/29567749/diff/29569558/notification.js File notification.js (right): https://codereview.adblockplus.org/29567749/diff/29569558/notification.js#newcode24 notification.js:24: let docLinks ...
Oct. 9, 2017, 3:10 p.m. (2017-10-09 15:10:55 UTC) #12
Manish Jethani
LGTM, modulo the dependency update.
Oct. 9, 2017, 3:20 p.m. (2017-10-09 15:20:54 UTC) #13
Sebastian Noack
https://codereview.adblockplus.org/29567749/diff/29570608/notification.js File notification.js (right): https://codereview.adblockplus.org/29567749/diff/29570608/notification.js#newcode95 notification.js:95: ext.pages.open(link.href); ext.pages.open() doesn't exist anymore: https://hg.adblockplus.org/adblockpluschrome/rev/faf3d97ad473
Oct. 9, 2017, 3:40 p.m. (2017-10-09 15:40:18 UTC) #14
kzar
Patch Set 5 : Use chrome.tabs.create (Untested so far.) https://codereview.adblockplus.org/29567749/diff/29570608/notification.js File notification.js (right): https://codereview.adblockplus.org/29567749/diff/29570608/notification.js#newcode95 notification.js:95: ...
Oct. 9, 2017, 3:47 p.m. (2017-10-09 15:47:07 UTC) #15
Sebastian Noack
LGTM, once the dependency got updated.
Oct. 9, 2017, 3:56 p.m. (2017-10-09 15:56:56 UTC) #16
kzar
Patch Set 6 : Update dependencies
Oct. 9, 2017, 4:33 p.m. (2017-10-09 16:33:22 UTC) #17
Sebastian Noack
Oct. 9, 2017, 4:36 p.m. (2017-10-09 16:36:02 UTC) #18
LGTM

Powered by Google App Engine
This is Rietveld