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

Issue 6184947589054464: Don't wrap tab info in Tab if Tab is not defined (Closed)

Created:
Jan. 14, 2014, 11:48 a.m. by Thomas Greiner
Modified:
Jan. 16, 2014, 11:35 a.m.
Reviewers:
Wladimir Palant
Visibility:
Public.

Description

This caused errors in the first-run page and was reported to us here https://adblockplus.org/forum/viewtopic.php?f=10&t=20365#p90014.

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M chrome/common.js View 1 chunk +1 line, -1 line 3 comments Download
M safari/common.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7
Thomas Greiner
Jan. 14, 2014, 11:52 a.m. (2014-01-14 11:52:32 UTC) #1
Wladimir Palant
This sounds like curing symptoms without understanding the problem. What's causing it, are we receiving ...
Jan. 15, 2014, 3:44 p.m. (2014-01-15 15:44:08 UTC) #2
Thomas Greiner
On 2014/01/15 15:44:08, Wladimir Palant wrote: > This sounds like curing symptoms without understanding the ...
Jan. 15, 2014, 5:52 p.m. (2014-01-15 17:52:14 UTC) #3
Wladimir Palant
LGTM http://codereview.adblockplus.org/6184947589054464/diff/5629499534213120/chrome/common.js File chrome/common.js (right): http://codereview.adblockplus.org/6184947589054464/diff/5629499534213120/chrome/common.js#newcode73 chrome/common.js:73: if ("Tab" in window && sender.tab && sender.tab.id ...
Jan. 16, 2014, 8:01 a.m. (2014-01-16 08:01:10 UTC) #4
Thomas Greiner
http://codereview.adblockplus.org/6184947589054464/diff/5629499534213120/chrome/common.js File chrome/common.js (right): http://codereview.adblockplus.org/6184947589054464/diff/5629499534213120/chrome/common.js#newcode73 chrome/common.js:73: if ("Tab" in window && sender.tab && sender.tab.id >= ...
Jan. 16, 2014, 10:15 a.m. (2014-01-16 10:15:30 UTC) #5
Thomas Greiner
"[...] but also to firstRun.html from the content script running within the iFrame showing share.adblockplus.org" ...
Jan. 16, 2014, 10:22 a.m. (2014-01-16 10:22:46 UTC) #6
Wladimir Palant
Jan. 16, 2014, 10:44 a.m. (2014-01-16 10:44:49 UTC) #7
http://codereview.adblockplus.org/6184947589054464/diff/5629499534213120/chro...
File chrome/common.js (right):

http://codereview.adblockplus.org/6184947589054464/diff/5629499534213120/chro...
chrome/common.js:73: if ("Tab" in window && sender.tab && sender.tab.id >= 0)
On 2014/01/16 10:15:30, Thomas Greiner wrote:
> According to this definition the message (including the tab property) is not
> only sent to the background page but also to firstRun.html from the content
> script running within the iFrame showing http://share.adblockplus.org

Ok, this actually makes sense then.

Powered by Google App Engine
This is Rietveld