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

Issue 29739603: Issue 6544 - Prevent requests sent by Chrome or Adblock Plus from being blocked (Closed)

Created:
April 2, 2018, 3:03 a.m. by Sebastian Noack
Modified:
April 12, 2018, 1:33 p.m.
Reviewers:
kzar
CC:
Manish Jethani
Visibility:
Public.

Description

Issue 6544 - Prevent requests sent by Chrome or Adblock Plus from being blocked

Patch Set 1 #

Total comments: 6

Patch Set 2 : Improved comment #

Patch Set 3 : Rebased #

Patch Set 4 : Also ignore requests sent by Chrome itself #

Patch Set 5 : Streamlined request logging #

Total comments: 12

Patch Set 6 : Introduced ignoredOrigins Set #

Total comments: 4

Patch Set 7 : Rebased #

Patch Set 8 : Made logic more verbose #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -20 lines) Patch
M lib/devtools.js View 1 2 3 4 5 6 1 chunk +8 lines, -6 lines 0 comments Download
M lib/requestBlocker.js View 1 2 3 4 5 6 7 2 chunks +23 lines, -14 lines 0 comments Download

Messages

Total messages: 15
Sebastian Noack
April 2, 2018, 3:04 a.m. (2018-04-02 03:04:10 UTC) #1
kzar
https://codereview.adblockplus.org/29739603/diff/29739604/lib/requestBlocker.js File lib/requestBlocker.js (left): https://codereview.adblockplus.org/29739603/diff/29739604/lib/requestBlocker.js#oldcode142 lib/requestBlocker.js:142: let originUrl = null; This diff doesn't seem right, ...
April 3, 2018, 12:06 p.m. (2018-04-03 12:06:45 UTC) #2
kzar
https://codereview.adblockplus.org/29739603/diff/29739604/lib/requestBlocker.js File lib/requestBlocker.js (left): https://codereview.adblockplus.org/29739603/diff/29739604/lib/requestBlocker.js#oldcode142 lib/requestBlocker.js:142: let originUrl = null; On 2018/04/03 12:06:45, kzar wrote: ...
April 3, 2018, 12:45 p.m. (2018-04-03 12:45:50 UTC) #3
Sebastian Noack
https://codereview.adblockplus.org/29739603/diff/29739604/lib/requestBlocker.js File lib/requestBlocker.js (right): https://codereview.adblockplus.org/29739603/diff/29739604/lib/requestBlocker.js#newcode151 lib/requestBlocker.js:151: // the browser (i.e. chrome://), while Chromium only allows ...
April 3, 2018, 11:36 p.m. (2018-04-03 23:36:28 UTC) #4
kzar
Otherwise LGTM https://codereview.adblockplus.org/29739603/diff/29739604/lib/requestBlocker.js File lib/requestBlocker.js (right): https://codereview.adblockplus.org/29739603/diff/29739604/lib/requestBlocker.js#newcode151 lib/requestBlocker.js:151: // the browser (i.e. chrome://), while Chromium ...
April 4, 2018, 5:38 p.m. (2018-04-04 17:38:45 UTC) #5
Sebastian Noack
https://codereview.adblockplus.org/29739603/diff/29739604/lib/requestBlocker.js File lib/requestBlocker.js (right): https://codereview.adblockplus.org/29739603/diff/29739604/lib/requestBlocker.js#newcode151 lib/requestBlocker.js:151: // the browser (i.e. chrome://), while Chromium only allows ...
April 5, 2018, 12:23 a.m. (2018-04-05 00:23:24 UTC) #6
Sebastian Noack
https://codereview.adblockplus.org/29739603/diff/29743555/lib/devtools.js File lib/devtools.js (right): https://codereview.adblockplus.org/29739603/diff/29743555/lib/devtools.js#newcode145 lib/devtools.js:145: } I figured now where we don't log requests ...
April 5, 2018, 5:42 a.m. (2018-04-05 05:42:45 UTC) #7
Sebastian Noack
https://codereview.adblockplus.org/29739603/diff/29743555/lib/devtools.js File lib/devtools.js (right): https://codereview.adblockplus.org/29739603/diff/29743555/lib/devtools.js#newcode145 lib/devtools.js:145: } On 2018/04/05 05:42:45, Sebastian Noack wrote: > I ...
April 5, 2018, 6:03 a.m. (2018-04-05 06:03:58 UTC) #8
kzar
https://codereview.adblockplus.org/29739603/diff/29743555/lib/devtools.js File lib/devtools.js (left): https://codereview.adblockplus.org/29739603/diff/29743555/lib/devtools.js#oldcode137 lib/devtools.js:137: if (panels.size == 0) How come you removed this ...
April 5, 2018, 10:56 a.m. (2018-04-05 10:56:37 UTC) #9
Sebastian Noack
https://codereview.adblockplus.org/29739603/diff/29743555/lib/devtools.js File lib/devtools.js (left): https://codereview.adblockplus.org/29739603/diff/29743555/lib/devtools.js#oldcode137 lib/devtools.js:137: if (panels.size == 0) On 2018/04/05 10:56:37, kzar wrote: ...
April 5, 2018, 5:39 p.m. (2018-04-05 17:39:00 UTC) #10
kzar
https://codereview.adblockplus.org/29739603/diff/29743555/lib/devtools.js File lib/devtools.js (right): https://codereview.adblockplus.org/29739603/diff/29743555/lib/devtools.js#newcode142 lib/devtools.js:142: let request = {url, type, docDomain, thirdParty, sitekey, specificOnly}; ...
April 6, 2018, 2:48 p.m. (2018-04-06 14:48:10 UTC) #11
Sebastian Noack
https://codereview.adblockplus.org/29739603/diff/29743555/lib/devtools.js File lib/devtools.js (right): https://codereview.adblockplus.org/29739603/diff/29743555/lib/devtools.js#newcode142 lib/devtools.js:142: let request = {url, type, docDomain, thirdParty, sitekey, specificOnly}; ...
April 6, 2018, 5:55 p.m. (2018-04-06 17:55:46 UTC) #12
kzar
https://codereview.adblockplus.org/29739603/diff/29743555/lib/devtools.js File lib/devtools.js (right): https://codereview.adblockplus.org/29739603/diff/29743555/lib/devtools.js#newcode142 lib/devtools.js:142: let request = {url, type, docDomain, thirdParty, sitekey, specificOnly}; ...
April 9, 2018, 11:08 a.m. (2018-04-09 11:08:44 UTC) #13
Sebastian Noack
https://codereview.adblockplus.org/29739603/diff/29743735/lib/requestBlocker.js File lib/requestBlocker.js (right): https://codereview.adblockplus.org/29739603/diff/29743735/lib/requestBlocker.js#newcode150 lib/requestBlocker.js:150: if (originUrl ? ignoredOrigins.has(originUrl.protocol) : details.tabId == -1) On ...
April 9, 2018, 9:37 p.m. (2018-04-09 21:37:17 UTC) #14
kzar
April 10, 2018, 10:51 a.m. (2018-04-10 10:51:44 UTC) #15
LGTM

Powered by Google App Engine
This is Rietveld