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

Issue 29336084: Issue 2426 - Open block.html as a popup window (Closed)

Created:
Feb. 8, 2016, 12:30 p.m. by kzar
Modified:
Feb. 17, 2016, 9:07 p.m.
Reviewers:
Sebastian Noack
Visibility:
Public.

Description

Issue 2426 - Open block.html as a popup window

Patch Set 1 : Renamed include.postload.js to blockElement.postload.js #

Patch Set 2 : Open block.html as a popup window #

Total comments: 20

Patch Set 3 : Addressed some initial feedback #

Total comments: 2

Patch Set 4 : Pass tab directly instead of getTab callback #

Total comments: 2

Patch Set 5 : Check callback exists outside of afterTabLoaded #

Total comments: 4

Patch Set 6 : Reduce callback checking boilerplate #

Patch Set 7 : Rebased, replaced search param with proper messaging #

Total comments: 2

Patch Set 8 : Assume createData parameter has been given #

Unified diffs Side-by-side diffs Delta from patch set Stats (+820 lines, -831 lines) Patch
M background.js View 1 2 3 4 5 6 4 chunks +41 lines, -5 lines 0 comments Download
M block.html View 1 2 chunks +1 line, -5 lines 0 comments Download
M block.js View 1 2 3 4 5 6 2 chunks +44 lines, -100 lines 0 comments Download
A blockElement.postload.js View 1 2 3 4 5 6 1 chunk +567 lines, -0 lines 0 comments Download
M chrome/ext/background.js View 1 2 3 4 5 8 chunks +38 lines, -24 lines 0 comments Download
M ext/background.js View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
D include.postload.js View 1 chunk +0 lines, -674 lines 0 comments Download
M lib/devtools.js View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M lib/icon.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M metadata.chrome View 1 1 chunk +0 lines, -1 line 0 comments Download
M metadata.common View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M popup.js View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M safari/ext/background.js View 1 2 3 4 5 6 7 7 chunks +23 lines, -9 lines 0 comments Download
A subscriptionLink.postload.js View 1 1 chunk +92 lines, -0 lines 0 comments Download

Messages

Total messages: 13
kzar
Patch Set 1 : Renamed include.postload.js to blockElement.postload.js Patch Set 2 : Open block.html as ...
Feb. 8, 2016, 12:42 p.m. (2016-02-08 12:42:05 UTC) #1
Sebastian Noack
https://codereview.adblockplus.org/29336084/diff/29336088/background.js File background.js (right): https://codereview.adblockplus.org/29336084/diff/29336088/background.js#newcode287 background.js:287: var url = ext.getURL("block.html") + "?targetPageId=" + sender.page._id + ...
Feb. 10, 2016, 12:26 p.m. (2016-02-10 12:26:57 UTC) #2
kzar
Patch Set 3 : Addressed some initial feedback https://codereview.adblockplus.org/29336084/diff/29336088/background.js File background.js (right): https://codereview.adblockplus.org/29336084/diff/29336088/background.js#newcode287 background.js:287: var ...
Feb. 10, 2016, 2:20 p.m. (2016-02-10 14:20:17 UTC) #3
Sebastian Noack
https://codereview.adblockplus.org/29336084/diff/29336088/background.js File background.js (right): https://codereview.adblockplus.org/29336084/diff/29336088/background.js#newcode287 background.js:287: var url = ext.getURL("block.html") + "?targetPageId=" + sender.page._id + ...
Feb. 10, 2016, 2:43 p.m. (2016-02-10 14:43:24 UTC) #4
kzar
Patch Set 4 : Pass tab directly instead of getTab callback https://codereview.adblockplus.org/29336084/diff/29336218/chrome/ext/background.js File chrome/ext/background.js (right): ...
Feb. 11, 2016, 3:20 p.m. (2016-02-11 15:20:21 UTC) #5
Sebastian Noack
https://codereview.adblockplus.org/29336084/diff/29336088/background.js File background.js (right): https://codereview.adblockplus.org/29336084/diff/29336088/background.js#newcode287 background.js:287: var url = ext.getURL("block.html") + "?targetPageId=" + sender.page._id + ...
Feb. 12, 2016, 5 p.m. (2016-02-12 17:00:01 UTC) #6
kzar
Patch Set 5 : Check callback exists outside of afterTabLoaded https://codereview.adblockplus.org/29336084/diff/29336088/background.js File background.js (right): https://codereview.adblockplus.org/29336084/diff/29336088/background.js#newcode287 ...
Feb. 13, 2016, 2:18 p.m. (2016-02-13 14:18:13 UTC) #7
Sebastian Noack
https://codereview.adblockplus.org/29336084/diff/29336088/background.js File background.js (right): https://codereview.adblockplus.org/29336084/diff/29336088/background.js#newcode287 background.js:287: var url = ext.getURL("block.html") + "?targetPageId=" + sender.page._id + ...
Feb. 15, 2016, 2:50 p.m. (2016-02-15 14:50:17 UTC) #8
Sebastian Noack
https://codereview.adblockplus.org/29336084/diff/29336334/chrome/ext/background.js File chrome/ext/background.js (right): https://codereview.adblockplus.org/29336084/diff/29336334/chrome/ext/background.js#newcode80 chrome/ext/background.js:80: chrome.tabs.create({url: url}, afterTabLoaded(callback)); Why didn't you go for |callback ...
Feb. 15, 2016, 2:53 p.m. (2016-02-15 14:53:45 UTC) #9
kzar
Patch Set 6 : Reduce callback checking boilerplate https://codereview.adblockplus.org/29336084/diff/29336334/chrome/ext/background.js File chrome/ext/background.js (right): https://codereview.adblockplus.org/29336084/diff/29336334/chrome/ext/background.js#newcode80 chrome/ext/background.js:80: chrome.tabs.create({url: ...
Feb. 15, 2016, 3:46 p.m. (2016-02-15 15:46:07 UTC) #10
kzar
Patch Set 7 : Rebased, replaced search param with proper messaging
Feb. 17, 2016, 8:07 p.m. (2016-02-17 20:07:50 UTC) #11
Sebastian Noack
https://codereview.adblockplus.org/29336084/diff/29336546/safari/ext/background.js File safari/ext/background.js (right): https://codereview.adblockplus.org/29336084/diff/29336546/safari/ext/background.js#newcode768 safari/ext/background.js:768: if (createData) I'd simply assume that createData is given ...
Feb. 17, 2016, 8:44 p.m. (2016-02-17 20:44:06 UTC) #12
kzar
Feb. 17, 2016, 8:52 p.m. (2016-02-17 20:52:22 UTC) #13
Patch Set 8 : Assume createData parameter has been given

https://codereview.adblockplus.org/29336084/diff/29336546/safari/ext/backgrou...
File safari/ext/background.js (right):

https://codereview.adblockplus.org/29336084/diff/29336546/safari/ext/backgrou...
safari/ext/background.js:768: if (createData)
On 2016/02/17 20:44:06, Sebastian Noack wrote:
> I'd simply assume that createData is given and has an URL. Note that the
> behavior when createData is missing is inconsistent with Chrome anyway. On
> Chrome this will open an empty window. But no reason, to cover a case that we
> don't have.
> 
> Otherwise, LGTM. Feel free to push, after removing the check, here.

Done.

Powered by Google App Engine
This is Rietveld