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

Issue 29583568: Issue 5880 - Basic issue reporter implementation (Closed)

Created:
Oct. 19, 2017, 12:28 p.m. by Wladimir Palant
Modified:
Oct. 24, 2017, 12:42 p.m.
Reviewers:
Felix Dahlke
CC:
Thomas Greiner
Base URL:
https://hg.adblockplus.org/adblockpluschrome
Visibility:
Public.

Description

This is mostly working, a few outstanding issues: 1) No error is being displayed if sending failed, 2) Clicking report link will show it in the frame, we want to replace the parent document instead, 3) Display of report data is suboptimal.

Patch Set 1 #

Patch Set 2 : Fixed error handling #

Patch Set 3 : Do not offer issue reporter for local pages #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+886 lines, -1 line) Patch
M _locales/en_US/messages.json View 1 1 chunk +85 lines, -0 lines 0 comments Download
A issue-reporter.html View 1 1 chunk +87 lines, -0 lines 0 comments Download
A issue-reporter.js View 1 1 chunk +442 lines, -0 lines 3 comments Download
M polyfill.js View 1 chunk +1 line, -0 lines 0 comments Download
M popup.html View 1 chunk +5 lines, -0 lines 0 comments Download
M popup.js View 2 chunks +10 lines, -0 lines 0 comments Download
A skin/icons/checkbox.png View Binary file 0 comments Download
A skin/issue-reporter.css View 1 1 chunk +249 lines, -0 lines 0 comments Download
M skin/popup.css View 1 2 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 6
Wladimir Palant
Oct. 19, 2017, 12:28 p.m. (2017-10-19 12:28:36 UTC) #1
Wladimir Palant
Patch Set 2 added proper error handling. Also, the frame showing submission results now allows ...
Oct. 19, 2017, 2:03 p.m. (2017-10-19 14:03:09 UTC) #2
Wladimir Palant
Patch Set 3 made sure that our bubble doesn't offer reporting issues for local pages.
Oct. 19, 2017, 2:07 p.m. (2017-10-19 14:07:24 UTC) #3
Felix Dahlke
LGTM. I've left one comment, but since we're in a hurry, I'm fine with addressing ...
Oct. 19, 2017, 4:48 p.m. (2017-10-19 16:48:05 UTC) #4
Wladimir Palant
https://codereview.adblockplus.org/29583568/diff/29583593/issue-reporter.js File issue-reporter.js (right): https://codereview.adblockplus.org/29583568/diff/29583593/issue-reporter.js#newcode345 issue-reporter.js:345: let url = "https://reports.adblockplus.org/submitReport?" + params; On 2017/10/19 16:48:04, ...
Oct. 19, 2017, 5:54 p.m. (2017-10-19 17:54:26 UTC) #5
Felix Dahlke
Oct. 19, 2017, 6:21 p.m. (2017-10-19 18:21:31 UTC) #6
(Probably my last comment in this review, since I'm off tomorrow and next week.)

https://codereview.adblockplus.org/29583568/diff/29583593/issue-reporter.js
File issue-reporter.js (right):

https://codereview.adblockplus.org/29583568/diff/29583593/issue-reporter.js#n...
issue-reporter.js:345: let url = "https://reports.adblockplus.org/submitReport?"
+ params;
On 2017/10/19 17:54:25, Wladimir Palant wrote:
> On 2017/10/19 16:48:04, Felix Dahlke wrote:
> > Why not make this a pref?
> 
> Why make it a pref? It used to be a pref in the legacy Firefox extension,
which
> made sense for testing. But with Web Extensions hidden preferences aren't
> exactly accessible.

Two reasons:

1. Feels wrong to hard code URLs in general. We have most (if not all?) of them
in prefs.js already.
2. Makes it easier for forks to change (granted, they have to host their own
backend, but still).

But like I said, I wouldn't insist.

Powered by Google App Engine
This is Rietveld