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

Issue 29321336: Issue 2381 - Added share overlay to options page (Closed)

Created:
July 2, 2015, 3:25 p.m. by Thomas Greiner
Modified:
Sept. 24, 2015, 9:34 a.m.
Reviewers:
saroyanm
CC:
Felix Dahlke
Visibility:
Public.

Description

To avoid code duplication I also created common.js and common.css for code that's shared between the first-run page and the options page.

Patch Set 1 #

Patch Set 2 : Rebased to 312559088567 #

Patch Set 3 : Rebased to a40c644fc2aa #

Total comments: 7

Patch Set 4 : Rebased to 4a68f2a456d6 and set strict mode in common.js #

Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -176 lines) Patch
M README.md View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M background.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
A common.js View 1 2 3 1 chunk +146 lines, -0 lines 0 comments Download
M firstRun.html View 1 2 3 2 chunks +2 lines, -5 lines 0 comments Download
M firstRun.js View 1 2 3 chunks +2 lines, -106 lines 0 comments Download
M options.html View 1 chunk +2 lines, -0 lines 0 comments Download
M options.js View 1 1 chunk +31 lines, -21 lines 0 comments Download
A skin/common.css View 1 chunk +59 lines, -0 lines 0 comments Download
M skin/firstRun.css View 1 2 3 1 chunk +0 lines, -43 lines 0 comments Download
M skin/options.css View 1 2 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 4
Thomas Greiner
July 2, 2015, 3:27 p.m. (2015-07-02 15:27:04 UTC) #1
saroyanm
In general looks good, I can see that first-run page needs to be updated to ...
Sept. 8, 2015, 5:33 p.m. (2015-09-08 17:33:50 UTC) #2
Thomas Greiner
I also rebased it to the latest revision so ignore the changes in firstRun.html and ...
Sept. 23, 2015, 2:03 p.m. (2015-09-23 14:03:06 UTC) #3
saroyanm
Sept. 23, 2015, 4:09 p.m. (2015-09-23 16:09:42 UTC) #4
On 2015/09/23 14:03:06, Thomas Greiner wrote:
> I also rebased it to the latest revision so ignore the changes in
firstRun.html
> and firstRun.css.
> 
> https://codereview.adblockplus.org/29321336/diff/29322930/common.js
> File common.js (right):
> 
> https://codereview.adblockplus.org/29321336/diff/29322930/common.js#newcode17
> common.js:17: 
> On 2015/09/08 17:33:49, saroyanm wrote:
> > I think we should use "strict" here as well, but not sure why it's missing
in
> > background.js and i18n.js ? Is there a reason, or we forget to add ? 
> 
> The reason for that is that adding strict mode after the fact can cause
> unexpected errors. Since most of this code comes from a file that didn't use
> strict mode before, I didn't add it.
> 
> Anyway, I tested all functions in this file now and added the statement.
> 
> https://codereview.adblockplus.org/29321336/diff/29322930/common.js#newcode122
> common.js:122: iframe.className = "visible";
> On 2015/09/08 17:33:49, saroyanm wrote:
> > This implementation is inconsistent, with other similar implementation on
the
> > page, but it's not the part of the review and it just about reuse the
overlay,
> > so we can fix this also afterward.
> 
> Agreed, let's work on consistency changes separately.
> 
> https://codereview.adblockplus.org/29321336/diff/29322930/options.js
> File options.js (right):
> 
>
https://codereview.adblockplus.org/29321336/diff/29322930/options.js#newcode676
> options.js:676: function updateShareLink()
> On 2015/09/08 17:33:49, saroyanm wrote:
> > Shouldn't this implementation also be shared between scripts ?
> 
> No, the difference is that on the first-run page we check for a specific
> resource while here we check for all three of them.
> 
> The reason for that is that we still want to show the share overlay when
someone
> clicks on the Twitter button even if the Facebook script is blocked.

LGTM

Powered by Google App Engine
This is Rietveld