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

Issue 29350213: Issue 4364 - Drop support for Chrome 29-40 and remove legacy code (Closed)

Created:
Aug. 25, 2016, 3:09 p.m. by Sebastian Noack
Modified:
Sept. 13, 2016, 6:59 p.m.
Reviewers:
kzar
Visibility:
Public.

Description

Issue 4364 - Drop support for Chrome 29-40 and remove legacy code

Patch Set 1 #

Patch Set 2 : Got rid of init(), refactored element hiding code into a class #

Patch Set 3 : Remove legacy check from composer.postload.js #

Total comments: 16

Patch Set 4 : Rebased, renamed function to runInPageContext(), fixed typo in comment #

Total comments: 2

Patch Set 5 : Rephrased comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -147 lines) Patch
M chrome/ext/background.js View 1 2 3 4 1 chunk +30 lines, -39 lines 0 comments Download
M composer.postload.js View 1 2 2 chunks +2 lines, -6 lines 0 comments Download
M include.preload.js View 1 2 3 13 chunks +80 lines, -99 lines 0 comments Download
M metadata.chrome View 2 chunks +2 lines, -2 lines 0 comments Download
M safari/include.youtube.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6
Sebastian Noack
Aug. 25, 2016, 3:12 p.m. (2016-08-25 15:12:42 UTC) #1
kzar
I really like how you've refactored the element hiding logic in include.preload.js. Mostly Looks good ...
Aug. 30, 2016, 1:14 p.m. (2016-08-30 13:14:09 UTC) #2
Sebastian Noack
https://codereview.adblockplus.org/29350213/diff/29350230/chrome/ext/background.js File chrome/ext/background.js (right): https://codereview.adblockplus.org/29350213/diff/29350230/chrome/ext/background.js#newcode478 chrome/ext/background.js:478: // we are looking for the frame that contains ...
Sept. 9, 2016, 2:39 p.m. (2016-09-09 14:39:51 UTC) #3
kzar
Up to you about that confusing comment, otherwise LGTM. https://codereview.adblockplus.org/29350213/diff/29350230/chrome/ext/background.js File chrome/ext/background.js (right): https://codereview.adblockplus.org/29350213/diff/29350230/chrome/ext/background.js#newcode478 chrome/ext/background.js:478: ...
Sept. 13, 2016, 12:30 p.m. (2016-09-13 12:30:02 UTC) #4
Sebastian Noack
https://codereview.adblockplus.org/29350213/diff/29350230/chrome/ext/background.js File chrome/ext/background.js (right): https://codereview.adblockplus.org/29350213/diff/29350230/chrome/ext/background.js#newcode478 chrome/ext/background.js:478: // we are looking for the frame that contains ...
Sept. 13, 2016, 3:21 p.m. (2016-09-13 15:21:30 UTC) #5
kzar
Sept. 13, 2016, 5:08 p.m. (2016-09-13 17:08:58 UTC) #6
LGTM

https://codereview.adblockplus.org/29350213/diff/29350230/chrome/ext/backgrou...
File chrome/ext/background.js (right):

https://codereview.adblockplus.org/29350213/diff/29350230/chrome/ext/backgrou...
chrome/ext/background.js:478: // we are looking for the frame that contains the
element that
On 2016/09/13 15:21:30, Sebastian Noack wrote:
> On 2016/09/13 12:30:01, kzar wrote:
> > On 2016/09/09 14:39:50, Sebastian Noack wrote:
> > > On 2016/08/30 13:14:09, kzar wrote:
> > > > Mind making this comment a bit clearer (or removing it) while at it? I
> find
> > it
> > > > quite hard to understand.
> > > 
> > > Well, this comment isn't new and it makes sense to me. We are looking for
> the
> > > frame that contains the element this request belongs to. If that element
is
> > > loading a subdocument (e.g. if the element is an <iframe>), the frame that
> > > contains it is indicated by the parentFrameId property. However, if for
> > example
> > > it's an <img> element, the frame that contains it is indicated by the
> frameId
> > > property. Feel free to make a suggestion how to better phrase it.
> > 
> > Fair enough, well how about this?
> > 
> > "We are looking for the frame that contains the element which has triggered
> this
> > request. For most requests (e.g. images) we can just use the request's frame
> ID,
> > but for subdocument requests (e.g. iframes) we must instead use the
request's
> > parent frame ID."
> 
> Done.

Looks great, thanks.

Powered by Google App Engine
This is Rietveld