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

Issue 29329154: Issue 3108 - Implement security checks for elemhide registration channel on our end instead of leav… (Closed)

Created:
Oct. 15, 2015, 3:11 p.m. by Wladimir Palant
Modified:
Oct. 15, 2015, 6:05 p.m.
Reviewers:
Thomas Greiner
Visibility:
Public.

Description

Issue 3108 - Implement security checks for elemhide registration channel on our end instead of leav…

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -4 lines) Patch
M lib/elemHideHitRegistration.js View 2 chunks +12 lines, -4 lines 3 comments Download

Messages

Total messages: 6
Wladimir Palant
Oct. 15, 2015, 3:11 p.m. (2015-10-15 15:11:52 UTC) #1
Wladimir Palant
Note that this only seems to be solving one part of the problem - good ...
Oct. 15, 2015, 3:19 p.m. (2015-10-15 15:19:03 UTC) #2
Wladimir Palant
The issue with E10S is really that it isn't our implementation being queried there but ...
Oct. 15, 2015, 3:56 p.m. (2015-10-15 15:56:07 UTC) #3
Thomas Greiner
https://codereview.adblockplus.org/29329154/diff/29329155/lib/elemHideHitRegistration.js File lib/elemHideHitRegistration.js (right): https://codereview.adblockplus.org/29329154/diff/29329155/lib/elemHideHitRegistration.js#newcode71 lib/elemHideHitRegistration.js:71: newChannel: function(uri, loadInfo) Where is `loadInfo` coming from? It's ...
Oct. 15, 2015, 4:04 p.m. (2015-10-15 16:04:45 UTC) #4
Wladimir Palant
https://codereview.adblockplus.org/29329154/diff/29329155/lib/elemHideHitRegistration.js File lib/elemHideHitRegistration.js (right): https://codereview.adblockplus.org/29329154/diff/29329155/lib/elemHideHitRegistration.js#newcode71 lib/elemHideHitRegistration.js:71: newChannel: function(uri, loadInfo) On 2015/10/15 16:04:44, Thomas Greiner wrote: ...
Oct. 15, 2015, 5:59 p.m. (2015-10-15 17:59:16 UTC) #5
Thomas Greiner
Oct. 15, 2015, 6:03 p.m. (2015-10-15 18:03:09 UTC) #6
LGTM

https://codereview.adblockplus.org/29329154/diff/29329155/lib/elemHideHitRegi...
File lib/elemHideHitRegistration.js (right):

https://codereview.adblockplus.org/29329154/diff/29329155/lib/elemHideHitRegi...
lib/elemHideHitRegistration.js:71: newChannel: function(uri, loadInfo)
On 2015/10/15 17:59:16, Wladimir Palant wrote:
> On 2015/10/15 16:04:44, Thomas Greiner wrote:
> > Where is `loadInfo` coming from? It's not specified in the `nsIAboutModule`
> > interface.
> 
> It is:
>
http://mxr.mozilla.org/mozilla-central/source/netwerk/protocol/about/nsIAbout...
> (not on MDN of course because nobody thought of setting dev-doc-needed on
> https://bugzilla.mozilla.org/show_bug.cgi?id=1067468). This is all part of a
> huge refactoring effort under
> https://bugzilla.mozilla.org/show_bug.cgi?id=1006868.
> 
> It's being passed in by the networking code. Older Firefox versions don't have
> that parameter, but these also don't expect us to set nsIChannel.loadInfo - so
> passing undefined around is ok here.

I see, thanks for the details. I shouldn't have relied on MDN in that case.

Powered by Google App Engine
This is Rietveld