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

Issue 29721716: Issue 6473 - Remove WebSocket wrapper (Closed)

Created:
March 13, 2018, 4:33 p.m. by Manish Jethani
Modified:
March 13, 2018, 11:16 p.m.
Reviewers:
Sebastian Noack, kzar
Base URL:
https://hg.adblockplus.org/adblockpluschrome/
Visibility:
Public.

Description

Issue 6473 - Remove WebSocket wrapper

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments to Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -69 lines) Patch
M inject.preload.js View 1 3 chunks +13 lines, -53 lines 0 comments Download
M lib/requestBlocker.js View 1 2 chunks +4 lines, -16 lines 0 comments Download

Messages

Total messages: 12
Manish Jethani
March 13, 2018, 4:33 p.m. (2018-03-13 16:33:22 UTC) #1
Manish Jethani
Patch Set 1
March 13, 2018, 4:34 p.m. (2018-03-13 16:34:19 UTC) #2
Sebastian Noack
https://codereview.adblockplus.org/29721716/diff/29721717/inject.preload.js File inject.preload.js (right): https://codereview.adblockplus.org/29721716/diff/29721717/inject.preload.js#newcode141 inject.preload.js:141: * Shared request checking code, used by the RTCPeerConnection ...
March 13, 2018, 5:43 p.m. (2018-03-13 17:43:01 UTC) #3
Manish Jethani
Patch Set 2: Address comments to Patch Set 1 https://codereview.adblockplus.org/29721716/diff/29721717/inject.preload.js File inject.preload.js (right): https://codereview.adblockplus.org/29721716/diff/29721717/inject.preload.js#newcode141 inject.preload.js:141: ...
March 13, 2018, 6:05 p.m. (2018-03-13 18:05:12 UTC) #4
Sebastian Noack
LGTM
March 13, 2018, 6:31 p.m. (2018-03-13 18:31:34 UTC) #5
Sebastian Noack
Argh, wait. There is also some legacy code, which is only used in combination with ...
March 13, 2018, 6:33 p.m. (2018-03-13 18:33:35 UTC) #6
kzar
On 2018/03/13 18:33:35, Sebastian Noack wrote: > Argh, wait. There is also some legacy code, ...
March 13, 2018, 8:55 p.m. (2018-03-13 20:55:16 UTC) #7
Manish Jethani
On 2018/03/13 18:33:35, Sebastian Noack wrote: > Argh, wait. There is also some legacy code, ...
March 13, 2018, 10:12 p.m. (2018-03-13 22:12:11 UTC) #8
Manish Jethani
On 2018/03/13 20:55:16, kzar wrote: > On 2018/03/13 18:33:35, Sebastian Noack wrote: > > Argh, ...
March 13, 2018, 10:13 p.m. (2018-03-13 22:13:30 UTC) #9
Sebastian Noack
On 2018/03/13 22:12:11, Manish Jethani wrote: > On 2018/03/13 18:33:35, Sebastian Noack wrote: > > ...
March 13, 2018, 10:51 p.m. (2018-03-13 22:51:05 UTC) #10
Manish Jethani
On 2018/03/13 22:51:05, Sebastian Noack wrote: > On 2018/03/13 22:12:11, Manish Jethani wrote: > > ...
March 13, 2018, 11:03 p.m. (2018-03-13 23:03:34 UTC) #11
Sebastian Noack
March 13, 2018, 11:13 p.m. (2018-03-13 23:13:10 UTC) #12
On 2018/03/13 23:03:34, Manish Jethani wrote:
> Correct me if I'm wrong, but setting the content security policy to
"connect-src
> http:" in a document's response headers effectively blocks all WebSocket
> connections, which is what is desired here. How is this related to the API
> wrapper?

True, filters like $webrtc,domain=example.com would still work with this
workaround, regardless of the WebSocket wrapper. But leaving this code around
just for Chrome <=57 still wouldn't be worth it. Anyway, I guess we can tackle
that separately (with Dave's upcoming changes). LGTM.

Powered by Google App Engine
This is Rietveld