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

Issue 29696583: Issue 6385 - Don't attempt to inject styles for frames we can't find (Closed)

Created:
Feb. 13, 2018, 3 p.m. by kzar
Modified:
Feb. 16, 2018, 5:06 p.m.
Reviewers:
Manish Jethani
CC:
Sebastian Noack
Visibility:
Public.

Description

Issue 6385 - Don't attempt to inject styles for frames we can't find

Patch Set 1 #

Total comments: 5

Patch Set 2 : Return `false` explicitly instead of `undefined` implicitly #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M lib/cssInjection.js View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 5
kzar
Patch Set 1
Feb. 13, 2018, 3 p.m. (2018-02-13 15:00:38 UTC) #1
Manish Jethani
https://codereview.adblockplus.org/29696583/diff/29696584/lib/cssInjection.js File lib/cssInjection.js (right): https://codereview.adblockplus.org/29696583/diff/29696584/lib/cssInjection.js#newcode110 lib/cssInjection.js:110: return; OK, I guess this is the right thing ...
Feb. 14, 2018, 1:41 p.m. (2018-02-14 13:41:17 UTC) #2
Manish Jethani
https://codereview.adblockplus.org/29696583/diff/29696584/lib/cssInjection.js File lib/cssInjection.js (right): https://codereview.adblockplus.org/29696583/diff/29696584/lib/cssInjection.js#newcode110 lib/cssInjection.js:110: return; On 2018/02/14 13:41:16, Manish Jethani wrote: > OK, ...
Feb. 14, 2018, 2:03 p.m. (2018-02-14 14:03:41 UTC) #3
kzar
Patch Set 2 : Return `false` explicitly instead of `undefined` implicitly https://codereview.adblockplus.org/29696583/diff/29696584/lib/cssInjection.js File lib/cssInjection.js (right): ...
Feb. 14, 2018, 2:52 p.m. (2018-02-14 14:52:58 UTC) #4
Manish Jethani
Feb. 15, 2018, 2:06 p.m. (2018-02-15 14:06:22 UTC) #5
https://codereview.adblockplus.org/29696583/diff/29696584/lib/cssInjection.js
File lib/cssInjection.js (right):

https://codereview.adblockplus.org/29696583/diff/29696584/lib/cssInjection.js...
lib/cssInjection.js:110: return;
On 2018/02/14 14:52:58, kzar wrote:
> On 2018/02/14 14:03:41, Manish Jethani wrote:
> > On 2018/02/14 13:41:16, Manish Jethani wrote:
> > > OK, I guess this is the right thing to do. But we should return false
> > > explicitly.
> > 
> > If this is reproduceable, we should check why it is happening. Clearly the
> > content script is still around when it gets a response, then we should find
> out
> > why ext.getFrame doesn't find the frame.
> 
> This is reproducible, the issue description is up to date with steps of how to
> reproduce and also my findings (tl;dr `framesOfTabs` really doesn't have the
> frame in question - I'm not sure why).

See my comment here:

https://issues.adblockplus.org/ticket/6385#comment:3

So I think this is OK as a short-term fix, but I think this is going to happen
very often on Firefox so we should try to do something better.

LGTM

Powered by Google App Engine
This is Rietveld